Skip to content

fix: Show default chapter names in textarea instead of placeholder text#1428

Merged
mgogoulos merged 3 commits intomainfrom
fix/media-editor-chapters-first-chapter-not-saved
Nov 12, 2025
Merged

fix: Show default chapter names in textarea instead of placeholder text#1428
mgogoulos merged 3 commits intomainfrom
fix/media-editor-chapters-first-chapter-not-saved

Conversation

@Yiannistaos
Copy link
Collaborator

Summary

Improves the user experience when editing chapter titles by displaying default chapter names (e.g., "Chapter 1", "Chapter 2") directly in the textarea instead of showing placeholder text.

Behavior Changes

Before

  • When creating a new segment, the textarea would show placeholder text "Add Chapter Text"
  • After page reload, clicking on the first chapter would show placeholder text instead of "Chapter 1"

After

  • When creating a new segment, the textarea shows the actual default name (e.g., "Chapter 1", "Chapter 2")
  • After page reload, clicking on any chapter shows its actual title in the textarea
  • Users can still edit, clear, or replace the chapter names as before

Testing

  • ✅ Create new segments - shows "Chapter 1", "Chapter 2", etc. in textarea
  • ✅ Page reload - clicking on chapters shows their names instead of placeholder
  • ✅ Editing functionality remains unchanged
  • ✅ Chapter numbering updates correctly based on chronological position
  • ✅ Autosave functionality works correctly with default chapter names

Impact

  • Improved UX: Users immediately see what the chapter is called
  • Consistent behavior between new segments and existing segments
  • No breaking changes to existing functionality

Screenshots

image

Simplified chapter filtering to only exclude empty titles, allowing default chapter names. Updated auto-save logic to skip saving when there are no chapters or mediaId. Removed unused helper function and improved debug logging.
The chapter title is now always displayed in the textarea, including default names like 'Chapter 1'. Also, the initial segment is created with 'Chapter 1' as its title instead of an empty string for better clarity.
@mgogoulos mgogoulos merged commit 5eb6faf into main Nov 12, 2025
3 checks passed
@mgogoulos mgogoulos deleted the fix/media-editor-chapters-first-chapter-not-saved branch November 12, 2025 12:04
mgogoulos pushed a commit that referenced this pull request Feb 6, 2026
## [7.3.0](v7.2.0...v7.3.0) (2026-02-06)

### Features

* add package json for semantic release ([b405a04](b405a04))
* add semantic release github actions ([76a27ae](76a27ae))
* frontend unit tests ([1c15880](1c15880))
* Implement persistent "Embed Mode" to hide UI shell via Session Storage ([#1484](#1484)) ([223e870](223e870))
* Improve Visual Distinction Between Trim and Chapters Editors ([#1445](#1445)) ([d9b1d6c](d9b1d6c))
* semantic release ([b76282f](b76282f))

### Bug Fixes

* add delay to task creation ([1b3cdfd](1b3cdfd))
* Add regex denoter and improve celerybeat gitignore ([#1446](#1446)) ([90331f3](90331f3))
* adjust poster url for audio ([01912ea](01912ea))
* Chapter numbering and preserve custom titles on segment reorder ([#1435](#1435)) ([cd7dd4f](cd7dd4f))
* Show default chapter names in textarea instead of placeholder text ([#1428](#1428)) ([5eb6faf](5eb6faf))
* static files ([#1429](#1429)) ([ba2c31b](ba2c31b))

### Documentation

* update page link ([aeef828](aeef828))
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