Skip to content

Add firm metadata and a publication gate - #41

Merged
swilla merged 1 commit into
librarianfrom
cursor/library-publication-metadata-1dea
Sep 27, 2026
Merged

swilla merged 1 commit into
librarianfrom
cursor/library-publication-metadata-1dea

Conversation

@swilla

@swilla swilla commented Sep 27, 2026

Copy link
Copy Markdown
Member

Details

Library items can now carry the day-one metadata a manifest supplies, and imports stay out of search until a gatekeeper publishes them.

What changed

  • Items store firm_path, library_area (folder / Library area), committee, and project_tags.
  • filament-library:import reads a CSV manifest and creates each row as pending or draft. A published value in the file is ignored.
  • Search All, the main Library list, and Public Library only include published items. Draft, pending, and rejected items stay out of search.
  • A gatekeeper publishes, rejects, or returns an item from the Gatekeeper Queue or with filament-library:review. Publishing fires LibraryItemPublished. Rejecting fires LibraryItemRejected.
  • Ordinary creates stay published unless publication.new_items_require_approval is turned on. publication.committees can restrict import committee names (leave it empty to allow any name).

Tests

vendor/bin/pest — 43 passed. PHPStan reports no errors.

Next slice

Wire this into s9-intranet-web: browse published items, Copy Path from firm_path, and a Design / Technical gatekeeper queue that calls publish and reject. Ask indexing should listen for LibraryItemPublished so drafts are never embedded. Leave MCP, spend caps, OCR, native CAD/BIM, directives, Electron open-in-Explorer, and Entra SSO for later.

Items can store firm path, library area, committee, and project tags. Manifest imports land as draft or pending and stay out of search until a gatekeeper publishes them.
@swilla
swilla changed the base branch from main to librarian September 27, 2026 13:51
@swilla
swilla marked this pull request as ready for review September 27, 2026 13:51
@swilla
swilla merged commit 86f0c8b into librarian Sep 27, 2026
9 checks passed
@swilla
swilla deleted the cursor/library-publication-metadata-1dea branch September 27, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants