Skip to content

Let the Library panel rename a document#216

Merged
sysread merged 1 commit into
mainfrom
claude/affectionate-ritchie-1jcnn
May 29, 2026
Merged

Let the Library panel rename a document#216
sysread merged 1 commit into
mainfrom
claude/affectionate-ritchie-1jcnn

Conversation

@sysread
Copy link
Copy Markdown
Owner

@sysread sysread commented May 29, 2026

SYNOPSIS

Add document rename to the Library panel's edit form. (The doc_update tool already accepted a title - this closes the UI gap.)

PURPOSE

doc_update has accepted a title for a while, so a model-driven rename worked. But the panel only had a description editor; the title was a static heading with no way to change it. A user couldn't rename a document themselves.

DESCRIPTION

Consolidate the panel's editor into a single Edit form covering title + description, saved together via the existing updateDocument -> patchDocumentRow -> emitDocumentChange path:

  • The header Edit button (beside Download/Delete) opens the form.
  • The title heading hides while editing so the form's title input is the single source of truth (no stale duplicate on screen).
  • Non-empty-title guard - a blank title shows an inline error and blocks save.
  • Removed the CSS the old single-field editor left behind (.library-section-head, .link-btn, the description-textarea rule) so there are no unused-selector warnings.

Tool side needed no behavior change - only a stale "chunks" word fixed in doc_update's comment. User + dev docs updated to say the panel can rename, not just re-describe.

Gate green: svelte-check 0 errors / 0 warnings, lint, knip, 1769 tests, build clean, markdownlint. Rebased onto current main (driver-B embeds change); no interaction.


Generated by Claude Code

doc_update already accepted a title (model-driven rename worked), but the
panel only had a description editor - the title was a static heading with
no way to change it. Consolidate the panel's two would-be editors into a
single Edit form covering title + description, saved together, with a
non-empty-title guard. The header's Edit button opens it; the title
heading hides while editing so the form's title input is the single
source of truth.

Also drop the now-unused .library-section-head / .link-btn / description-
textarea CSS, and refresh the stale "chunks" wording in doc_update's
comment plus the user/dev docs.
@sysread sysread merged commit 68e8890 into main May 29, 2026
1 check passed
@sysread sysread deleted the claude/affectionate-ritchie-1jcnn branch May 29, 2026 23:01
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