feat: Chrome extension#8
Draft
specbug wants to merge 2 commits into
Draft
Conversation
## Backend Changes - Refactored PDFFile model → generic Source model - Added support for both PDFs and web pages - Added /sources/webpage endpoint for creating webpage sources - Migrated database with backwards compatibility - All existing PDF functionality preserved ## Chrome Extension - Manifest V3 configuration with side panel support - Simple homegrown highlighting system (no external library) - Text selection detection with tooltip - Best-effort fuzzy re-highlighting using text + context - Stores highlights with prefix/suffix for matching - Side panel React app with Odyssey design - NoteEditor component with LaTeX support (KaTeX) - NotesList component with formatted dates - Same fonts, colors, and aesthetic as webapp - Background service worker for API communication - Full CRUD operations for notes tied to URLs ## Technical Details - Build: Vite with vite-plugin-web-extension - Highlighting: XPath + text context for anchoring - API: Reuses existing backend (localhost:8000 for dev) - Graceful degradation: If highlight fails to restore, notes still accessible by URL 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Remove vite-plugin-web-extension (was causing module issues) - Configure proper bundling for content and background scripts - Add build script to copy manifest and CSS files - Remove 'type: module' from manifest for compatibility - Extension now builds properly bundled scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <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.
No description provided.