Skip to content

The Library stops an ingestion, approves a file's tables and moves a collection; a source shows its details - #396

Merged
zlareb1 merged 11 commits into
mainfrom
feat/dashboard-documents
Nov 8, 2026
Merged

zlareb1 merged 11 commits into
mainfrom
feat/dashboard-documents

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • New Feature

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The Library stops an ingestion while it runs, shows the typed tables a document's file became and approves their column types, and moves a collection under another; a repository's document source opens its settings, last sync and the documents it wrote.

Why

knowledge.ingest_cancel, knowledge.dataset_get, knowledge.dataset_approve, knowledge.source.inspect and collection.move were callable only over HTTP, MCP or the SDKs, and server/operations/dashboard.py listed them as pending a dashboard control.

Scope and risk

  • Add document: while the upload's ingest job is followed, Stop ingestion calls knowledge.ingest_cancel for that job, and it takes over from the follow: the dialog holds (no Close, Escape or click outside) and only the Stop's answer closes it, so a job that publishes meanwhile is added once; a Stop that fails says the job may still be extracting and closes. A pending job stops at once; a running one is said to stop before it publishes; one that ended meanwhile says how (already added, which refreshes the list like any other add, already failed or already stopped). ingestFile hands the job's id to the dialog once it is queued (onQueued).
  • Library preview: a document with a stored file offers Tables, which reads knowledge.dataset_get and shows each table's columns, the type each was read as when it differs, the schema's state in words and the open questions. A writer (the role knowledge.dataset_approve asks) retypes columns and approves the schema; an approved schema offers the approve again only once a column is retyped; an approve that finds the table gone says so, and one a newer revision or approval moved on (the server's precondition refusal) reads the table again and shows it as it is now. A reader sees the types only. A document that became no table, and one that is gone, each say so. Any table the extractor reads becomes a dataset, from a spreadsheet or from a PDF, HTML or Word file alike, so Tables is offered on every stored file rather than on spreadsheet types alone. A place switch closes the dialog, as it closes the preview.
  • Library collection menu: an admin of the collection gets Move…, which puts it under another collection the person writes to (the handler asks writer on the new parent), or at the top (collection.move). Its own subtree is not offered, walked through every collection the person sees, those they only read included. The dialog says who reaches it afterwards: everyone who reaches the new parent, or only its own members at the top, and that whoever reached it only through the old parent loses that access, unless the new parent sits under the old one.
  • Repositories → a document source's name opens its details (knowledge.source.inspect): its kind in the card's words, its settings (a list of ids as one line; the credential is never returned), its last sync in the row's words (Synced, Incomplete, Sync failed …), a failed turn's error or an ok turn's note, and the documents it wrote. KnowledgeSourceDetail extends the existing KnowledgeSource type in lib/knowledgeSources.ts. It is a read, so any reader of the repository may open it. The dialog is loaded on demand.
  • Docs: the dashboard page's Library and Repositories rows name the new controls.
  • No server change; the five ops leave DASHBOARD_PENDING and PENDING_AT_MOST, and the reach manifest is regenerated.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert; nothing is stored.

Tests

  • vitest: AddDocumentDialog.test.tsx (stops the job it follows; a Stop that finds it published adds it; a Stop that fails says the job may still run; the dialog held while a Stop runs, failing without the hold; a job that publishes while its Stop runs is added once; a Stop of a running job), DatasetsDialog.test.tsx (columns, questions and state, approved as typed; a retyped column; an approve of a table that is gone, and of one a newer revision moved on; an approved table; a reader; no table; a gone document), MoveCollectionDialog.test.tsx (to the top level, with who loses access; no target inside its own subtree, through a collection the person only reads; no loss when the new parent sits under the old one), SourceDetailsDialog.test.tsx (settings with a list of ids, last sync, documents; an ok turn's note shown as a note, with the row's wording), Documents.url.test.tsx (a namespace switch closes Tables; fails without the reset), RepositoryCard.test.tsx (a reader opens the details from the source's name). tsc -b, the build and npm run budget clean.
  • tests/unit/test_op_surfaces.py, tests/unit/test_op_reach_census.py, op_reach_census --check, test_doc_links.py, test_public_copy.py.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. I checked each control's gate against its op's declared role.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Generated files are regenerated in this PR, not by hand (the reach manifest).
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

@zlareb1 zlareb1 changed the title The Library stops an ingestion, approves a spreadsheet's tables and moves a collection; a source shows its details The Library stops an ingestion, approves a file's tables and moves a collection; a source shows its details Nov 7, 2026
@zlareb1
zlareb1 force-pushed the feat/dashboard-documents branch 2 times, most recently from 9109eb1 to e27717b Compare November 8, 2026 02:12
zlareb1 and others added 11 commits November 8, 2026 03:06
…s tables and move a collection

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… closes on a place switch

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…eads a table a newer revision moved on

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…lks its tree with one predicate

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…its one close guard

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…log in one place

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…e test allows the name that opens its details

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… wider screen

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…in's rows

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the feat/dashboard-documents branch from e27717b to 1b7f0cf Compare November 8, 2026 03:08
@zlareb1
zlareb1 merged commit c89c4c7 into main Nov 8, 2026
38 checks passed
@zlareb1
zlareb1 deleted the feat/dashboard-documents branch November 8, 2026 03:50
@zlareb1 zlareb1 mentioned this pull request Nov 12, 2026
3 tasks done
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.

1 participant