Skip to content

Demo redesign: single-column landing page with highlight-in-place input - #29

Merged
athrvk merged 1 commit into
masterfrom
claude/busy-tesla-nt8ytr
Sep 20, 2026
Merged

athrvk merged 1 commit into
masterfrom
claude/busy-tesla-nt8ytr

Conversation

@athrvk

@athrvk athrvk commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Summary

Rebuilds demo/index.html as a single centred column in the style of gpu-time.arikko.dev, keeping every developer feature of the old dashboard.

  • Try it out card: one-line input with pastel highlighting in place (fraction word / number / unit / currency / range), a calm Result panel (Indian grouping, ₹ prefix, verified badge with tooltip, unit caption, confidence), one row per amount, "No amount found" for negatives with a note on the built-in ones.
  • Tap one, see the number: 12 example cards across Hinglish, Hindi, Marathi, Gujarati, mixed shorthand and two "not money" negatives. Every example was verified against the built library.
  • Use it in your code: dark code block with the actual return shape, strict/minConfidence and parseBatch/WebGPU one-liners.
  • Inside the model: live per-character BIO/class strip from inspect(), decoded token chips, and the arithmetic line, captioned from modelInfo().
  • Developer options disclosure keeps strict mode, min-confidence slider, raw JSON + copy, backend/WebGPU status and the CPU-vs-WebGPU batch benchmark.
  • Shareable hash state, report-wrong-parse links, light/dark themes, SEO/OG meta, no horizontal scroll at 390px.

No library, weights or Python changes. CHANGELOG gets an Unreleased entry.

Test plan

  • npm test 215 passing
  • Screenshots at 1280 and 390 px, light and dark, multi-amount and negative phrases, zero console errors
  • CI on this PR; Pages deploy after merge

🤖 Generated with Claude Code

https://claude.ai/code/session_014m4us3Nx2Z2X5b7WbAw4iR


Generated by Claude Code

Rebuild demo/index.html around one centred 560px column: a Try it out card
that highlights the typed phrase in place by token class, a Result panel with
value, unit caption, confidence and the verified badge, a grid of tappable
examples across Hinglish/Hindi/Marathi/Gujarati (including two that correctly
find no amount), a code block, and an Inside the Model section that shows the
current phrase's per-character tags, decoded tokens and arithmetic.

Developer controls (strict mode, min-confidence, raw JSON, WebGPU status,
batch benchmark) move into a collapsed disclosure. URL hash state, parse
timing and wrong-parse reporting are preserved.
@athrvk
athrvk merged commit 47a84ac into master Sep 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants