=== Jeet Sanwal Committee Document Library ===
Contributors: jeetsanwal
Tags: committee, meeting, agenda, minutes, pdf
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A small public meeting library for named agenda, packet and minutes PDFs. No more “which PDF?” archaeology.

== Description ==

Jeet Sanwal Committee Document Library gives public meeting documents a predictable place on a WordPress page. Administrators save a meeting title, meeting date, committee name/slug and up to 12 named PDF attachment links. Deliberately choose Draft or Published, then show published meetings with:

[jeet_committee_library]

To make a dedicated committee or annual page:

[jeet_committee_library committee="finance" year="2026" title="Finance meeting documents"]

The public library groups records by year and committee, lists newest meeting dates first, and provides accessible tables, year/committee-slug filters and previous/next batches. Each request considers 20 candidate meetings plus a lookahead; unavailable or inconsistent records are rechecked and omitted. Continue through Next if a batch becomes empty. There is no entire-library count. Multiple shortcodes have separate numbered filter parameters.

**A deliberately public library**

This is for documents already intended for public access. A draft meeting is hidden from this shortcode, but Media Library files keep their normal public URLs. Changing a PDF parent to draft/private/password-protected removes its link here; that does not revoke a direct file URL, delete cached copies or protect the file. Purge your page/CDN cache after changing visibility or replacing links. Do not use this for confidential board papers, member-only access or a document vault.

**Small, explicit administration**

Open Tools → Committee documents. The dedicated save form is separate from native post/media forms. Find existing PDF attachment IDs in the bounded finder below the form; copy each ID and provide a clear link label such as Agenda, Meeting packet or Approved minutes. Existing PDFs can be linked in several meetings, but each PDF appears at most once in a meeting. Upload PDFs first in the normal Media Library; the plugin uploads/deletes no files.

Each candidate PDF must be editable by the saving administrator, have the registered application/pdf MIME and PDF file header, exist/read inside the local uploads directory, and have a registered URL that corresponds to that uploads path. It must be unattached or attached to a publicly viewable, non-password parent. Password, private, trashed, missing, offsite-only and remote-filtered files are omitted. These checks do not verify a PDF's content, accessibility or official approval.

The finder reads at most 20 candidate attachment IDs plus lookahead. Permission is checked before title filtering; search applies within the current batch, not the entire library. Empty filtered batches can precede later matching ones. Save edits before browsing finder batches.

**Predictable saving**

Management requires manage_options plus edit_post access to each existing meeting and selected PDF. POST saves use a meeting-specific nonce, strict field/date/ID checks, an atomic direct-database save claim, stale-version protection and readback checks. Existing published meetings are staged as drafts before changed metadata is written, then explicitly republished only after confirmation. A failed staged save can leave a draft (including an incomplete new draft) in Saved meetings; reopen it and re-enter rejected changes. No success is reported until the write is confirmed. Other plugins writing these private keys directly do not participate in the save protocol.

Meeting dates are separate from WordPress publication dates. A future meeting's agenda can be published now. Publish is immediate; there is no release scheduler, email, reminders, OCR, preview generator, uploads, member roles or approval workflow.

With optional installation reports off, no external requests, advertisements, accounts, telemetry, paid tier, frontend credits or WooCommerce dependency. Styles are scoped; public styles load only when the shortcode renders. Meeting records and files remain after deactivation/uninstall so reinstall can recover them. Self-hosted updates are installed manually using the replacement ZIP.

Author: Jeet Sanwal — https://jeetsanwal.in

== Installation ==

1. Upload the individual jeet-committee-document-library.zip through Plugins → Add New → Upload Plugin.
2. Activate the plugin. Open Tools → Committee documents as an administrator.
3. Upload public PDFs through Media → Add New if needed. An unattached PDF is eligible; PDFs attached to restricted parents are not listed.
4. Enter a meeting title, YYYY-MM-DD date, committee name and a stable lowercase slug such as finance.
5. Find attachment IDs below the form, add up to 12 uniquely selected PDFs and clear labels, and choose Draft or Published.
6. Save, then place [jeet_committee_library] in a Shortcode block on a public page. Check the page while logged out and purge caches after visibility changes.

== Frequently Asked Questions ==

= Are draft PDF files private? =

No. Draft only hides the meeting from this shortcode. Existing Media Library URLs, cached pages and downloaded copies keep their normal access rules. Use only documents intended for public access.

= Why is a PDF missing from the finder or public page? =

With optional installation reports off, it may be outside the current 20-candidate batch, filtered out, uneditable, missing locally, not a valid registered PDF, have a remote/changed URL, or have a restricted/password parent. Public rendering rechecks eligibility. The plugin makes no HTTP requests and cannot guarantee a download response.

= How do I unpublish or remove an old meeting? =

Open its saved record, choose Draft and save. It disappears from fresh shortcode output. Purge page/CDN caches separately. Records and files are retained; this plugin does not permanently delete them.

= Can I publish a future meeting's agenda? =

Yes. Meeting date is separate from native post publication date. Published is immediate; future dates do not schedule publication.

= Can standard editors manage the library? =

No. Management needs manage_options plus edit access to the meeting and selected PDFs. Custom role/multisite restrictions still apply. Public shortcode viewing requires no account.

= Can it store private papers, collect approvals or send reminders? =

No. It is a public list of existing PDF attachments. It provides no file access restriction, approval workflow, background work or emails.

= Why is Next shown when this batch has no rows? =

Pagination follows bounded candidate records. Current eligibility and public state are rechecked before output, so a candidate can disappear without suppressing later batches. The PDF finder also applies search only after permission checks inside the current batch.

= Can I use it with a remote media/CDN setup? =

Only when the attachment still exists locally under uploads and its URL matches the configured uploads base URL/path. Offsite-only files, signed URLs and arbitrary URL overrides are intentionally excluded.

= Is the plugin free on client websites? =

With optional installation reports off, yes. GPL-2.0-or-later, free and ad-free. No paid tier, signup, telemetry or public-page credit. Updates use manual self-hosted ZIP replacement.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-committee-document-library . Make a normal site backup and try the update on staging first. In WordPress, use Plugins > Add New > Upload Plugin and choose Replace current with uploaded when WordPress detects the existing installation. Keep the same plugin folder; do not uninstall/delete the plugin as an update step. Confirm the displayed version is 1.0.3, then reopen the plugin's normal screen and check one representative workflow described above. Clear relevant page caches if public output remains stale.

Updates are installed manually; a matching Update URI prevents unrelated directory plugins from replacing this package, but does not provide an update service. If replacement fails, check hosting upload limits and write permissions before retrying. To roll back, replace the plugin files with your saved previous ZIP; file replacement alone does not restore database records or deleted files. Use your site backup when data restoration is needed. Read this plugin's retention notes before deliberately uninstalling it.

Author and support: Jeet Sanwal — https://jeetsanwal.in/contact

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.0.3 =
* Updated the product display name to Jeet Sanwal Committee Document Library and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.0.2 =
* Added a complete US English installation and update guide; kept documented permissions, limits and manual rollback steps.


= 1.0.1 =
* Clarified the manual replacement, verification and rollback workflow, with direct author support details.
* Rechecked package metadata, source/archive consistency and existing isolated regressions.


= 1.0.0 =
* Initial public meeting library with explicit draft/published records, 12 named PDFs, filters, grouped tables and bounded pagination.
* Permission-first PDF finder, strict local PDF eligibility and public-state rechecks.
* Atomic save claim, stale-version checks, staged draft writes and persistence readback.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Back up your site before installation. Meeting records and existing media remain after uninstall.
