Skip to content

chore: table toolbar simplifications#9296

Merged
AdityaHegde merged 3 commits intomainfrom
chore/table-toolbar-simplifications
Apr 27, 2026
Merged

chore: table toolbar simplifications#9296
AdityaHegde merged 3 commits intomainfrom
chore/table-toolbar-simplifications

Conversation

@AdityaHegde
Copy link
Copy Markdown
Collaborator

  1. Simplified the table toolbar by using value binding for searchText, sortDirection and viewMode instead of callbacks to update values.
  2. Pushes down value toggle to individual components for sortDirection and viewMode.
  3. Pushes value toggle of filterGroups to TableToolbarFilterDropdown so that consumers dont have to manually toggle.
  4. Improves the animation for TableToolbarAppliedFilters to apply to both addition and deletion.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@AdityaHegde AdityaHegde requested a review from royendo April 24, 2026 07:05
@AdityaHegde AdityaHegde requested a review from a team as a code owner April 24, 2026 10:58
@AdityaHegde AdityaHegde force-pushed the chore/table-toolbar-simplifications branch from 57b2c49 to b5d748e Compare April 24, 2026 11:05
@AdityaHegde AdityaHegde force-pushed the chore/table-toolbar-simplifications branch from b5d748e to d73e6a0 Compare April 24, 2026 11:09
Copy link
Copy Markdown
Contributor

@royendo royendo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@AdityaHegde AdityaHegde requested a review from djbarnwal April 24, 2026 13:44
@AdityaHegde AdityaHegde merged commit eab6ea5 into main Apr 27, 2026
22 of 26 checks passed
@AdityaHegde AdityaHegde deleted the chore/table-toolbar-simplifications branch April 27, 2026 05:27
royendo added a commit that referenced this pull request Apr 27, 2026
Brings in #9296's table-toolbar simplifications, which moved the toolbar
to bindable props (`bind:searchText`, `bind:sortDirection`) and changed
`onFilterChange`'s second arg from a single value to the full new
selection (the dropdown now performs the toggle internally).

- Adopt main's TableToolbar + filter-dropdown + sort APIs.
- Re-add `showSearch` and `disabled` props that this branch had previously
  introduced; propagate `disabled` to `TableToolbarSort` and
  `TableToolbarFilterDropdown` so empty-data tables disable cleanly.
- Migrate the five caller tables (alerts listing, alerts history, reports
  listing, reports history, dashboards) to the bindable API and rewrite
  each `handleFilterChange` to consume the new array signature.
- Drop the now-unused `toggleArrayValue` helper since the toolbar owns
  the toggle.
- Take main's rewritten `ProjectLogsPage.svelte`, which no longer uses
  `TableToolbar` (uses `Search` + `DropdownMenu` directly).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
royendo added a commit that referenced this pull request Apr 27, 2026
Brings in 46 commits from main, most notably:

- #8912 Cloud editing MVP: branch deployment selector pill, `@branch`
  path-segment routing, "Open in editor" affordance.
- #9296 Table toolbar simplifications (bindable API, new
  `onFilterChange(key, selected)` signature).
- #9187 Chart type selector in explore (replaces `chart_force_line` proto
  field with `reserved 36`).

Conflicts resolved:

- `resource-graph/graph-canvas/ResourceNode.svelte`: kept this branch's
  refactored node structure (horizontal handles, inspect-store,
  test-failure marker, loading spinner), and ported main's
  "Open in editor" affordance — `NodeToolbar` with an `ExternalLink`
  button shown when a node is selected and resolves to a file artifact.
  Skipped main's error popover since this branch surfaces errors via
  the inspect store. Added `.toolbar-open-btn` styles.
- `resource-graph/summary/SummaryGraph.svelte` and
  `summary/SummaryNode.svelte`: kept this branch's deletes (the summary
  surface was superseded). Main's `branchSearchSuffix` change to those
  files goes nowhere — the files no longer exist on this branch.
- `web-local/.../graph/+page.svelte`: kept this branch's rich
  implementation. Main's replacement (`<GraphWorkspace />`) is a
  cloud-only entry point that doesn't fit `web-local`.
- `models/navigation/ModelMenuItems.svelte`: combined imports — kept
  this branch's `resourceShorthandMapping` / `ResourceKind`, added
  main's `navigateToFile`, restored a missing `goto` import for
  `viewGraph`. Dropped the unused `openResourceGraphQuickView` import.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

3 participants