Skip to content

Redesign results widget: row numbers, cell copy, linkification#192

Merged
RafaelPo merged 1 commit intomainfrom
feat/results-widget-redesign-main
Feb 24, 2026
Merged

Redesign results widget: row numbers, cell copy, linkification#192
RafaelPo merged 1 commit intomainfrom
feat/results-widget-redesign-main

Conversation

@RafaelPo
Copy link
Contributor

Summary

  • Row number column (#): Sticky left column with 1-based row numbers; click to select rows, shift+click for range selection
  • Cell-level interaction: Click a data cell to focus (blue outline), double-click to copy its value, Cmd+C copies focused cell or selected rows. Escape clears focus.
  • Inline linkification: All URLs in cell text are now clickable, not just cells that are entirely a URL. New truncSafe helper avoids breaking URLs mid-truncation.
  • Toolbar improvements: Copy button shows active format (e.g. "Copy TSV (3)"), new "Copy link" button copies CSV download URL to clipboard.
  • Robustness: # column excluded from sort, drag, and resize interactions.

Test plan

  • Row numbers show 1..N, update correctly after filter/sort
  • Click # cell toggles row selection, shift+click does range
  • Click a data cell shows blue outline; click again to deselect
  • Double-click a data cell copies value (toast confirms)
  • Cmd+C with rows selected copies rows; with cell focused copies cell
  • Escape clears cell focus
  • # column is not sortable, filterable, resizable, or draggable
  • # column stays fixed on horizontal scroll with no text overlap
  • URLs within mixed-text cells are clickable links
  • Truncated cells linkify correctly on initial render and after expand/collapse
  • "Copy link" button copies CSV download URL
  • 3 new widget data tests pass (TestResultsWidgetData)

🤖 Generated with Claude Code

- Add sticky # column with 1-based row numbers; click to select, shift+click for range
- Add cell focus (blue outline on click), double-click to copy cell value
- Add Cmd+C/Ctrl+C keyboard shortcut for copying selected rows or focused cell
- Replace simple linkify with URL-aware version that handles parentheses and mixed text
- Add truncSafe helper to avoid breaking URLs mid-truncation
- Update copy button label to show active format (e.g. "Copy TSV (3)")
- Add "Copy link" toolbar button for CSV download URL
- Guard # column against sort, drag, and resize interactions
- Add 3 new tests for HTTP widget data (csv_url, session_url presence/absence)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@RafaelPo RafaelPo merged commit d25a349 into main Feb 24, 2026
5 checks passed
@RafaelPo RafaelPo deleted the feat/results-widget-redesign-main branch February 24, 2026 10:48
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.

1 participant