Commit 44975fc
refactor: extract shared searchWithFallback into linkupClient (#368)
* fix(redesign): close all v2 prototype parity gaps for non-Home rails
- Inbox: collapsible trace, 92% confidence label, related threads section
- Me: collapsible traces in both guest and auth branches
- AgentShell: expand/collapse toggle with useState + data-width attribute
- Chat: graph SVG and report tab stats (prior session)
- Reports: action cards, signal timeline, collapsible trace (prior session)
- CSS: signal timeline, collapsible details/summary, confidence badge,
related threads, graph SVG, rail expand styles
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(redesign): close remaining v2 prototype parity gaps from systematic audit
Addresses 10 gaps found by side-by-side audit of home-v2.html vs shipped code:
- Chat rail: expand/collapse toggle, 4th source, 3rd thread, new-note button
- Inbox rail: tool tag spans, action card icons, "Defer to Thursday" label
- Reports rail: tool tag spans, action card icons
- Me rail (auth): session stats (threads/tools/cost/latency), permission colors
(green/amber/red), action cards with icons, tool tag spans
- Me rail (guest): tool tag spans
- CSS: .rd-v2-msg-tools, .rd-v2-action-icon, .rd-v2-note-add
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(proto): add Reports v3 prototype with 5-view layout + agent inspector
Standalone HTML prototype for the Reports redesign vision:
- Gallery (3 cards/row, 820px center), Board (kanban), Table, Notebook, Canvas
- Compact card v3: entity icon, status badge, thesis, signals, E/F/C scores
- Agent Inspector right panel: pipeline state, quality scores, warnings, actions
- Entity intelligence left nav: universes, entity types, operations
- Dark/light theme, prefers-reduced-motion, print stylesheet, skip link
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* polish(proto): Reports v3 — board scores, full inspector data, icon + theme fixes
Round 3 iterative polish of home-v3.html prototype:
- Board mini-cards: quality score badges on review/verified/archived columns
- Inspector: all 9 entities now update dynamically (added Bug0, Dario Amodei,
Google DeepMind, Daily Brief, Cohere with pipeline, scores, warnings)
- Left rail: replaced amateur Unicode icons (⚙→▶, !→⚑, ↷→◎)
- Theme toggle: moon/sun icon swap with aria-label, title attribute
- Board verified column: cleaner meta text ("12 sources · Updated 2h ago")
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* polish(proto): muted elegance pass — strip color to typography-only hierarchy
Replace all semantic colors (green/amber/red/blue) with grayscale tokens
across gallery, board, table, notebook, canvas, and inspector views.
Only remaining color: 5px status badge dots (the whisper).
Changes:
- Score fills, quality numbers, mini-card scores → ink-faint/ink-mute
- Quality ring JS + inspector dim fill JS → single ink-faint color
- Notebook state badges, pipeline steps, warnings → muted grayscale
- All inline-styled icons overridden via CSS !important → muted
- Canvas nodes, table action links → neutral tones
- Topbar nav, view tabs, status pills → ink-strong/muted (no accent)
- All hover states → line-strong/muted (no accent)
- Primary buttons → ink-strong ghost (no filled accent)
- Focus-visible outline preserved for a11y
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* polish(proto): rebalance — restore semantic + brand color, keep icon chrome muted
Over-corrected the muting pass. Restore:
- Score numbers/rings/bars: green/amber/red (informational)
- Table + inspector bar fills: colored (data visualization)
- Pipeline steps: green done, amber warn (status)
- Warnings: amber bg (attention signal)
- Canvas nodes: typed colors (entity identity)
- Notebook state badges: colored (ready/draft/stale)
- Brand accent: logo, CTA, primary button, active score
- Table action links: colored by urgency
Keep muted (the actual noise reduction):
- Card/table/left-rail icons: uniform gray (was loudest)
- Card left borders: removed
- Signal tags: muted
- Nav/tab active states: muted (no accent tint)
- Hover chrome: line-strong (no accent)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(proto): Ideaflow-inspired expandable graph notebook with entity context rail
Add source citation popovers, wiki link expansion, mention expansion with
agent deep dive simulation, backlinks with relation types, and entity
context card in the right rail. All features are interactive, dismiss
correctly across event boundaries, and coexist within a single notebook view.
- Source popovers: click [src:N] badges for title/URL/excerpt/date
- Mention expansion: click @Company/@person for inline entity blocks
with claims, graph edges, and action buttons
- Wiki expansion: click [[topic]] for inline definitions with tags
- Agent expansion: 4-step timed simulation appending new claims
- Entity context card: fills right rail dead space with metrics grid
and connected entities
- Right rail chat: entity-contextual agent thread
- Backlinks section: 5 relation types (MENTIONS/COMPETES/CITES/FOUNDER_OF/RELATED)
- Documentation: IDEAFLOW_FEATURES.md + EXPANDABLE_GRAPH_NOTEBOOK.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: replace Ideaflow references with Roam Research attribution
Remove all Ideaflow branding from codebase to avoid attribution
controversies. The expandable graph notebook patterns originate from
Roam Research (bidirectional backlinks, block references, outliner-first
editing). Updates 14 files across convex schema, architecture docs,
CSS comments, test fixtures, agent palette, and prototype documentation.
Exempt: chat-logs-unified (historical transcripts), docs/archive
(superseded), scripts/tax-2025 (employer records).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(proto): unified entity card style + in-place chain navigation across all 3 surfaces
Restyle all entity cards (Home mentions, report backlink panels, notebook
inline expansions) to match the clean "Pricing Power" concept card design
with kind-based color differentiation (company=terracotta, person=purple,
concept=cyan). Add chain navigation via tag chips on all surfaces —
clicking a tag dismisses the current card and opens the new entity's card
at the same position without scrolling.
Key changes:
- Rewrite showBacklinkPanel() for clean card style with kind icons, paragraphs, tags
- Rewrite buildRefBlock() for consistent inline expansion design
- Extract wireRefBlock() helper for recursive in-place chain navigation
- Fix notebook chain nav bug: tag clicks now replace card at anchor position
instead of scrolling to find @mention elsewhere in text
- Add buildHomeMentionCard() for Home surface chain navigation
- CSS: kind-colored top borders, glass-card DNA, rounded tag chips
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: extract shared searchWithFallback into linkupClient module
Both deepDiligence.ts and expandEntity.ts had near-identical
searchWithFallback() functions. Extracted into a shared
convex/domains/search/linkupClient.ts with SSRF validation,
bounded response reading, and Gemini grounding fallback.
deepDiligence gains SSRF + BOUND_READ protections it was missing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: hshum <hshum@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d2f20a8 commit 44975fc
16 files changed
Lines changed: 1921 additions & 70 deletions
File tree
- convex
- domains
- graph
- product
- search
- docs/architecture
- public/proto
- src
- features
- agents/lib
- entities/components/notebook
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
0 commit comments