14 Commits

Author SHA1 Message Date
Yiannis Christodoulou
03872d0b25 Support empty chapters state in editor
Allows users to clear all chapters, sending an empty array to the backend. Removes default segment creation when no chapters exist, updates UI and modal messaging for empty state, and ensures backend receives empty chapters when appropriate.
2025-10-19 12:40:12 +03:00
Yiannis Christodoulou
4772c11305 fix Format segments data for API request - use ref to get latest segments and sort by start time 2025-10-16 18:38:46 +03:00
Yiannis Christodoulou
5a282c7cd2 Improve Safari audio/video initialization and fallbacks
Adds Safari-specific detection and initialization logic to better support audio and video playback, especially for cases where metadata is not loaded as expected. Implements fallback event listeners, user interaction triggers, and exposes an initialization helper to ensure the editor works reliably on Safari and iOS devices.
2025-10-16 16:12:35 +03:00
Yiannis Christodoulou
d9aee11d44 fix: Edit: Chapter: When undoing / redoing edits, the edits are not saved 2025-10-13 01:49:53 +03:00
Yiannis Christodoulou
bd786c0fe6 Generate chapter names based on segment order
Introduces a helper function to assign chapter titles like 'Chapter 1', 'Chapter 2', etc., based on the chronological position of each segment. Updates all segment creation and splitting logic in TimelineControls and useVideoChapters to use this naming convention for improved clarity and consistency.
2025-10-13 01:45:18 +03:00
Yiannis Christodoulou
fb373f3c2c fix: Chapters: The default text in a new chapter’s text field is “segment”. Change to (e.g.): “Add Chapter Text” 2025-10-12 21:37:29 +03:00
Yiannis Christodoulou
bd12266054 cleanup console logs from chapters editor 2025-10-03 11:24:32 +03:00
Yiannis Christodoulou
e29d364fd3 feat: Fix chapters (rename text/name to chapterTitle) and fetch/post the correct object 2025-10-03 11:24:29 +03:00
Yiannis Christodoulou
2c6484b6ca chore: Replace segments string with chapters 2025-10-03 11:24:28 +03:00
Markos Gogoulos
e34bd55e7a wtv 2025-10-03 11:24:27 +03:00
Yiannis Christodoulou
6eab5bf7b7 fix: Change endpoint save_chapters to chapters [POST] 2025-10-03 11:24:26 +03:00
Yiannis Christodoulou
f472f94095 feat: Auto save functionality in both editors (video-editor, chapters-editor) 2025-10-03 11:24:25 +03:00
Yiannis Christodoulou
32af52ccda chore: Disable the unload page warning 2025-10-03 11:24:25 +03:00
Yiannis Christodoulou
8df5ea880c feat: Chapter editor main functionality and styling 2025-10-03 11:24:25 +03:00