feat(grid-editor): add manual cell color control via right-click menu
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 23s
CI / test-go-edu-search (push) Successful in 25s
CI / test-python-klausur (push) Failing after 1m53s
CI / test-python-agent-core (push) Successful in 13s
CI / test-nodejs-website (push) Successful in 15s

Users can now right-click any cell to set text color (red, green, blue,
orange, purple, black) or remove the color bar without changing text.
A "reset" option restores the OCR-detected color. This enables accurate
Ground Truth marking when OCR assigns colors to wrong cells.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-24 08:51:18 +01:00
parent d54814fa70
commit 9d34c5201e
4 changed files with 116 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ export function StepGridReview({ sessionId, onNext, saveRef }: StepGridReviewPro
clearCellSelection,
toggleSelectedBold,
autoCorrectColumnPatterns,
setCellColor,
} = useGridEditor(sessionId)
const [showImage, setShowImage] = useState(true)
@@ -399,6 +400,7 @@ export function StepGridReview({ sessionId, onNext, saveRef }: StepGridReviewPro
onAddColumn={addColumn}
onDeleteRow={deleteRow}
onAddRow={addRow}
onSetCellColor={setCellColor}
/>
</div>
))}
@@ -438,6 +440,7 @@ export function StepGridReview({ sessionId, onNext, saveRef }: StepGridReviewPro
<span>Pfeiltasten: Navigation</span>
<span>Ctrl+Klick: Mehrfachauswahl</span>
<span>Ctrl+B: Fett</span>
<span>Rechtsklick: Farbe</span>
<span>Ctrl+Z/Y: Undo/Redo</span>
<span>Ctrl+S: Speichern</span>
</div>