Let the Library panel rename a document#216
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SYNOPSIS
Add document rename to the Library panel's edit form. (The
doc_updatetool already accepted a title - this closes the UI gap.)PURPOSE
doc_updatehas accepted atitlefor 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->emitDocumentChangepath:.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