Migrate HTML ebook to read from Convex database#25
Open
Selcukatli wants to merge 5 commits intomainfrom
Open
Conversation
- Add `figure` code fence syntax for embedding generation prompts in markdown - Create figure parser (src/lib/ebook-figure-parser.ts) to extract specs - Add LLM-enhanced prompt generation with style presets (3D isometric visual identity) - Create parallel figure generation script (scripts/generate-ebook-figures.mjs) - Update generateEbookFigure Convex action with style parameter - Update CLAUDE.md with comprehensive figure spec documentation - Include test figure to validate generation pipeline Style presets match existing ebook figures: - 3D isometric perspective with depth and polish - Color palette: dark teal/navy (#1e3a5f), amber/gold (#f59e0b) - Glossy surfaces with gradients and lighting effects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add 5 new ebook tables to Convex schema (ebookDrafts, ebookParts, ebookChapters, ebookBlocks, ebookFigures) - Create mutations for AI editing: insert, update, delete, move blocks - Create queries for reading ebook content from Convex - Add migration scripts for figures and content import - Update all ebook pages to read from Convex instead of filesystem - Fix hydration error when images appear in paragraphs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Fixed insertBlock to append blocks at the end when afterBlockId is not provided (was incorrectly prepending at the beginning) - Added clearDraftContent mutation for reimporting content - Added --force flag to import script to clear and reimport 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added *.convex.cloud to remotePatterns in next.config.js to allow ebook figures stored in Convex storage to be served via next/image. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add edit mode for ebook chapters with block-based editing - Implement FigureBlockEditor with compact inline view - Create FigureLightbox modal with Generate/Upload tabs - Support AI image generation via Fal AI with LLM-enhanced prompts - Add drag-and-drop block reordering with @dnd-kit - Implement slash command menu for block type conversion - Add authentication check for edit mode access - Extend mutations for figure metadata (prompt, style, dimensions) - Fix handle colors to avoid amber/figure border confusion - Add delete button on figure blocks (hover state) - Lock body scroll when lightbox is open 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code