WS2 design polish: fix legislation chip dead-click and empty-quote tooltip
- ToolCallChip for legislation_tool_call rendered as a clickable button even when the host page (e.g. projects/[id] chat, which has no LegislationPanel) never passed onOpenLegislation - clicking silently did nothing. Gate the onClick on the handler actually being provided, same as every other optional callback in this file. - Citation pill/annotation tooltips showed `Companies Act 2006, s.994: ""` when a legislation citation carried a title but no verbatim quote. Extracted a shared citationTooltip() helper that omits the empty quote wrapper, keeping the tooltip "title + quote, not an artifact" per the design bar for legislation citations. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| Repository | Sloth-ninja/JessicaOSS |
|---|---|
| Author | sloth-ninja <ezanahaddis@gmail.com> |
| Authored | |
| Committed | |
| Parents | 68ea6e20 |
| Stats | 1 file changed , +21 , -4 |
| Part of | WS2 / WS7: legislation.gov.uk research integration |
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-abd3b978.md
from inside the repo you want the change in.