From 65f00e6ce73962e02f8a83b9592d2df34cb74745 Mon Sep 17 00:00:00 2001 From: Marko Djordjevic Date: Mon, 16 Feb 2026 11:40:55 +0100 Subject: [PATCH] feat: complete prediction UI feedback tasks (11.2, 11.4, 11.5) - Implement disagreement visual highlighting with distinct colors - Yellow highlight for 'missed_by_human' predictions - Orange for 'label_mismatch' disagreements - Warning icon on disagreement markers - Add click-to-convert prediction feedback - Click disagreement predictions to create span annotations - Auto-fill with predicted label and times - Set source as 'model_confirmed' or 'model_corrected' - Add dismiss action for false positive predictions - Alt+Click or Ctrl+Click to dismiss predictions - Saves negative annotation with label 'O' - Records original prediction in model_prediction field - Filter predictions when 'Show only disagreements' is enabled --- AI-grep | 1 + CLAUDE.md | 134 ++++++++++++ next-env.d.ts | 2 +- openspec/changes/candle-backend/tasks.md | 6 +- .../line-rectangle-annotations/.openspec.yaml | 2 + .../line-rectangle-annotations/design.md | 92 ++++++++ .../line-rectangle-annotations/proposal.md | 29 +++ .../specs/annotation-tools/spec.md | 83 +++++++ .../specs/rectangle-annotation/spec.md | 105 +++++++++ .../line-rectangle-annotations/tasks.md | 57 +++++ src/app/page.tsx | 79 +++++++ src/components/CandleChart.tsx | 122 ++++++++++- src/plugins/trend-line.ts | 204 ++++++++++++++++++ 13 files changed, 905 insertions(+), 11 deletions(-) create mode 160000 AI-grep create mode 100644 openspec/changes/line-rectangle-annotations/.openspec.yaml create mode 100644 openspec/changes/line-rectangle-annotations/design.md create mode 100644 openspec/changes/line-rectangle-annotations/proposal.md create mode 100644 openspec/changes/line-rectangle-annotations/specs/annotation-tools/spec.md create mode 100644 openspec/changes/line-rectangle-annotations/specs/rectangle-annotation/spec.md create mode 100644 openspec/changes/line-rectangle-annotations/tasks.md create mode 100644 src/plugins/trend-line.ts diff --git a/AI-grep b/AI-grep new file mode 160000 index 0000000..b512548 --- /dev/null +++ b/AI-grep @@ -0,0 +1 @@ +Subproject commit b512548cf3ae90983631d0d2ca359a183b25d87c diff --git a/CLAUDE.md b/CLAUDE.md index c88f256..3fb36f6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -13,3 +13,137 @@ pause after every section. CLAUDE_DESCRIPTION.md is used for LLMs to understand the project faster. Keep it up to date with the latest changes and updates. + + +# RTK (Rust Token Killer) - Token-Optimized Commands + +## Golden Rule + +**Always prefix commands with `rtk`**. If RTK has a dedicated filter, it uses it. If not, it passes through unchanged. This means RTK is always safe to use. + +**Important**: Even in command chains with `&&`, use `rtk`: +```bash +# ❌ Wrong +git add . && git commit -m "msg" && git push + +# ✅ Correct +rtk git add . && rtk git commit -m "msg" && rtk git push +``` + +## RTK Commands by Workflow + +### Build & Compile (80-90% savings) +```bash +rtk cargo build # Cargo build output +rtk cargo check # Cargo check output +rtk cargo clippy # Clippy warnings grouped by file (80%) +rtk tsc # TypeScript errors grouped by file/code (83%) +rtk lint # ESLint/Biome violations grouped (84%) +rtk prettier --check # Files needing format only (70%) +rtk next build # Next.js build with route metrics (87%) +``` + +### Test (90-99% savings) +```bash +rtk cargo test # Cargo test failures only (90%) +rtk vitest run # Vitest failures only (99.5%) +rtk playwright test # Playwright failures only (94%) +rtk test # Generic test wrapper - failures only +``` + +### Git (59-80% savings) +```bash +rtk git status # Compact status +rtk git log # Compact log (works with all git flags) +rtk git diff # Compact diff (80%) +rtk git show # Compact show (80%) +rtk git add # Ultra-compact confirmations (59%) +rtk git commit # Ultra-compact confirmations (59%) +rtk git push # Ultra-compact confirmations +rtk git pull # Ultra-compact confirmations +rtk git branch # Compact branch list +rtk git fetch # Compact fetch +rtk git stash # Compact stash +rtk git worktree # Compact worktree +``` + +Note: Git passthrough works for ALL subcommands, even those not explicitly listed. + +### GitHub (26-87% savings) +```bash +rtk gh pr view # Compact PR view (87%) +rtk gh pr checks # Compact PR checks (79%) +rtk gh run list # Compact workflow runs (82%) +rtk gh issue list # Compact issue list (80%) +rtk gh api # Compact API responses (26%) +``` + +### JavaScript/TypeScript Tooling (70-90% savings) +```bash +rtk pnpm list # Compact dependency tree (70%) +rtk pnpm outdated # Compact outdated packages (80%) +rtk pnpm install # Compact install output (90%) +rtk npm run