Share one preview component across image, video and audio, with a draggable schedule per file
Problem/Motivation
Video and audio each have their own preview script, with fixed colours. Images have none. The schedule of a file is typed as text.
Proposed resolution
One preview library in the main module: a stage, a "Simulated | Labelled copy" switch, a track with spans and a playhead, and a text line such as "The icon shows at 0-5 s, 60-65 s". On the media form the spans can be dragged on the track of the real file, starting from the site default.
Remaining tasks
- Shared library and template
- Video schedule and audio disclaimer moved to it, old libraries kept as aliases
- Drag to edit the schedule of one file
Acceptance criteria
- Stored schedules are unchanged.
- No fixed hex colour in the preview CSS.
- Existing JavaScript tests pass.
Part of #83 (closed).
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.
Edited by Giorgio Alfredo Pagano