Add Companies House tool-call chips and CompanyPanel side panel

↗ view on GitHub · sloth-ninja · 2026-07-08 · 64a9659b

- shared/types.ts: companies_house_tool_call AssistantEvent variant
  (mirrors the backend shape, carrying the full get_company payload).
- useAssistantChat.ts: companies_house_tool_start/_result SSE handlers,
  same start/result pairing pattern as the MCP handlers.
- AssistantMessage.tsx: extracted the mcp_tool_call chip markup into a
  shared ToolCallChip component, reused by a new companies_house_tool_call
  branch with human-friendly labels ("Searching Companies House...",
  "Fetching company record...", "Fetching filing history..." plus done-state
  company name/number). Completed get_company chips are clickable.
- CompanyPanel.tsx (new): profile/officers/PSCs from the persisted
  get_company payload, UK date formatting throughout (e.g. "21 February
  2022", never MM/DD/YYYY), link-out to the public Companies House
  register.
- AssistantSidePanel.tsx/ChatView.tsx: new CompanyTab kind (not
  document-backed, deduped by companyNumber rather than documentId) and
  an openCompany helper alongside openCitation/openEditor/openDocument.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository Sloth-ninja/JessicaOSS
Author sloth-ninja <ezanahaddis@gmail.com>
Authored
Committed
Parents 37dd7ad7
Stats 6 files changed , +612 , -39
Part of WS1: Companies House integration (UK company data)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-64a9659b.md from inside the repo you want the change in.

⬇ Download capture-commit-64a9659b.md