feat: DeepCitation branding, isImpreciseLocation refactor, truncateMiddle utility#388
feat: DeepCitation branding, isImpreciseLocation refactor, truncateMiddle utility#388bensonwong merged 9 commits intomainfrom
Conversation
Remove max-w-[200px] and MAX_URL_DISPLAY_LENGTH constraints from citation chips so text flows naturally within its container. Add min-w-0 for proper flex-item text overflow. Export truncateMiddle() for consumers who need middle-truncation (e.g. API keys, hashes). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…denceTray Instead of re-deriving imprecise location from citation fields in the UI, read the pre-computed flag stamped by the verification engine. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Prefix verified/partial-match/not-found status text with "DeepCitation" for clearer product attribution in the UI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…randing Propagate the "DeepCitation" prefix to status labels in all locale files (es, fr, vi), ARIA status suffixes for screen reader consistency, and update test assertions to match. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The variable name and the JSDoc on the Verification type already document the intent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix slice(-0) returning full string when maxLength=1, and negative half when maxLength=0. Add unit tests covering edge cases. Also update stale JSDoc comment in i18n.tsx. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
PR Review: feat: DeepCitation branding, isImpreciseLocation refactor, truncateMiddle utilityOverall this is a well-scoped PR with solid test coverage. A few issues worth addressing before merge. 🔴 Breaking Change:
|
✅ Playwright Test ReportStatus: Tests passed 📊 Download Report & Snapshots (see Artifacts section) What's in the Visual SnapshotsThe gallery includes visual snapshots for:
Run ID: 23736348290 |
Use truncateMiddle instead of end-truncation for citation titles so both the beginning and end of text are preserved. Cap VerificationLog source chips at 45 chars instead of Infinity. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
status.verified,status.partialMatch,status.notFoundandaria.statusSuffix.*labels with "DeepCitation" in default messages and all locale files (es, fr, vi). Updates all test assertions to match.isImpreciseLocation?: booleanflag on theVerificationtype, set by the verification engine.truncateMiddle(str, maxLength)function inreact/utils.ts, exported fromreact/index.ts. Includes edge-case guards formaxLength <= 1and unit tests.max-w-[200px]fromUrlCitationComponentchip, addmin-w-0for proper flex-based CSS truncation. RemoveMAX_URL_DISPLAY_LENGTHconstant fromVerificationLog, passInfinityto let CSS handle it.Test plan
bun run test— 1655 tests pass (7 new fortruncateMiddle)bun run lint— clean