feat: chunk annotations system + fix audit highlight (#23, #262 partial)#263
Open
nikazzio wants to merge 8 commits into
Open
feat: chunk annotations system + fix audit highlight (#23, #262 partial)#263nikazzio wants to merge 8 commits into
nikazzio wants to merge 8 commits into
Conversation
Adds a typed, per-chunk annotation system for the review phase. Users can annotate complex translation issues (comment, doubt, problem, approved), optionally anchoring each note to a specific phrase in the translation text. Notes persist across re-runs and are surfaced visually in the chunk grid dots and the index list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…aggregated stats (#262 partial)
- Right-click on selected translation text opens context menu → creates annotation with selected text pre-filled as anchor phrase - pendingAnnotationAnchor in uiStore bridges DocumentView → NotesTab - NotesTab: replace MarkdownEditor toolbar with plain textarea - NotesTab: TypeSelector uses IconButton filter bar (icon-only + italic label), removing chip-style type pills - NotesTab: action buttons use PillButton (accent/secondary), raw <button> removed - NotesTab: add form removes manual anchor input; shows read-only AnchorPill when anchor set via context menu (× to clear) - NotesTab: edit form keeps anchor text input for modifying existing anchor - i18n: add annotations.contextMenuAdd key (it + en)
…ontent
- NotebookPen button on each issue in IssueList and AuditPanel
- Sets pendingAnnotationAnchor with phrase as anchor text and '[Audit] {description}' as pre-filled content
- uiStore.pendingAnnotationAnchor extended with optional content field
- NotesTab useEffect reads content field to pre-populate form textarea
- AuditPanel button also navigates to document view before opening notes drawer
- Annotation with anchor text gets marker [^aN] inserted after phrase in translation - Footnote definition appended to translation text: [^aN]: content - Marker badge shown in annotation card in NotesTab - footnote_marker column added to annotations table (migration + schema bump) - Textarea rows 3→5 for more comfortable editing
… for nullable column
- Badge annotazione in lista chunk: da grigio a azzurro (sky-500) - Footnote inserita anche su chunk bloccati (updateChunkTranslationForce bypassa il lock) - Marker formato [a1] invece di [^\^a1], separatore --- prima della definizione - Marker [a1] aggiunto agli anchor highlights nella traduzione (stesso colore annotation type) - Toolbar MarkdownEditor: scrivi/anteprima/dividi e dimensione testo sempre visibili nel header; toggle mostra solo i comandi markdown; help sempre visibile
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
annotationsSQLite table and survive pipeline re-runsAlso fixes (#262 partial):
Closes
Closes #23 — partial fix for #262
Changes
annotationstable (idempotent CREATE IF NOT EXISTS)AnnotationType,Annotationintypes.tsannotationsStore.ts— CRUD + load/clear lifecycleopenProject,switchPipeline,closeProjectload/clear annotationsuseGlossaryHighlightextended withannotationAnchorsparamhl-annot-*CSS vars + mark classesNotesTabrewritten — inline add/edit form, typed cardsIndexTabshows note count badge with priority colorChunkSummaryTabshows aggregated per-category statsannotations.*keys + updated chunk summary labelsTest plan
annotationstable created🤖 Generated with Claude Code