Skip to content

TT-7414 Cleanup title editing - TitleEdit doesn't keep copy. Value i…#361

Merged
sarahentzel merged 4 commits into
developfrom
TT-7414
Jun 16, 2026
Merged

TT-7414 Cleanup title editing - TitleEdit doesn't keep copy. Value i…#361
sarahentzel merged 4 commits into
developfrom
TT-7414

Conversation

@sarahentzel

Copy link
Copy Markdown
Collaborator

…s only sent down if not editing.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines title editing behavior in the renderer by removing redundant local title state and preventing parent-prop updates from overwriting in-progress edits, while also simplifying a sheet update pathway.

Changes:

  • Updated MediaTitle to track focus and only sync title prop into local input state when not actively editing (or when titlekey changes).
  • Simplified TitleEdit by removing its internal title copy and rendering directly from the title prop.
  • Refactored ScriptureTable cell updates to apply immediately when not saving/updating, and defer only when blocked.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/renderer/src/control/MediaTitle.tsx Adds focus-aware syncing between title prop and local input value; introduces a ref-backed current text for blur handling.
src/renderer/src/components/Sheet/TitleEdit.tsx Removes local title state so MediaTitle is the single source of editing behavior.
src/renderer/src/components/Sheet/ScriptureTable.tsx Extracts applyCellChanges and avoids unconditional waiting when applying edits.

Comment thread src/renderer/src/control/MediaTitle.tsx

@gtryus gtryus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I proposed a small improvement.

Comment thread src/renderer/src/control/MediaTitle.tsx Outdated
@sarahentzel sarahentzel merged commit c9cb682 into develop Jun 16, 2026
1 check passed
@sarahentzel sarahentzel deleted the TT-7414 branch June 16, 2026 20:45
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.

3 participants