Commit Graph

9 Commits

Author SHA1 Message Date
Riccardo Giorato 89048bae15 Add redraw page functionality with pageId support and UI updates 2025-12-26 19:43:28 +01:00
Riccardo Giorato 7fd5367577 Refactor comic page generation and add add-page API
Introduces a new /api/add-page endpoint for adding pages to existing comics, refactors prompt construction into a shared utility (lib/prompt.ts), and updates the editor and modal components to use the new API and prompt builder. Removes manual style and character selection in the modal, streamlining the page generation workflow and ensuring previous story context is referenced automatically.
2025-12-26 17:51:08 +01:00
Riccardo Giorato 47263231af Move info and redraw actions to ComicCanvas, update sidebar UI
Shifted the info and redraw buttons from the editor toolbar to the ComicCanvas component, allowing for contextual actions per page. Enhanced ComicCanvas to support page navigation via image clicks and added optional callbacks for info and navigation. Updated the page sidebar to display page thumbnails instead of numbers, improved the add page button, and adjusted button sizes for better usability.
2025-12-26 17:40:41 +01:00
Riccardo Giorato 9895200db6 wip 2025-12-26 17:30:08 +01:00
Riccardo Giorato 4e4ce9ed35 wip 2025-12-26 14:32:49 +01:00
Riccardo Giorato 66b252fb2e Add loading state and style constants, enhance API key modal with delete 2025-12-26 12:15:01 +01:00
Riccardo Giorato ff25be7c85 This commit adds support for reusing existing character images from exis 2025-12-23 13:43:35 +01:00
Riccardo Giorato d2b94bde98 Refactor character image handling and API calls 2025-12-23 12:31:54 +01:00
Riccardo Giorato 3731e3f476 initial commit with Youssef work 2025-12-22 20:20:39 +01:00