Skip to content

fix: remove search and multi-select from the token sources table (#1958) - #2108

Merged
larryro merged 1 commit into
mainfrom
tale/xs74jnqvzjfc8wced26sh34xkx896tsh
Jun 24, 2026
Merged

larryro merged 1 commit into
mainfrom
tale/xs74jnqvzjfc8wced26sh34xkx896tsh

Conversation

@larryro

@larryro larryro commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the unneeded search input and multi-select / bulk-delete from the Settings → Token sources table, per #1958.

  • Dropped createSelectColumn from the columns and the enableRowSelection / rowSelection / onRowSelectionChange props on DataTable.
  • Removed the BulkDeleteBar footer along with handleClearSelection / handleBulkDeleteItem and the rowSelection state.
  • Removed the search config from useListPage.
  • Removed the now-unused tokenSources.search translation key from en / de / fr messages.

Per-row edit/delete (via the row actions menu and confirm dialog) is unchanged.

Acceptance criteria

  • Token sources table has no search.
  • Token sources table has no multi-select / bulk actions.

Verification

  • bunx tsc --noEmit (platform): clean.
  • bunx oxlint --type-aware on the touched feature dir: 0 warnings, 0 errors.
  • token-sources-manager.test.tsx: passing.
  • All message JSON files validate.

Closes #1958

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@larryro, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 14 minutes and 2 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ef9330b0-7133-4973-9ca2-0c0b8e43c8db

📥 Commits

Reviewing files that changed from the base of the PR and between 6b90e78 and e999299.

📒 Files selected for processing (4)
  • services/platform/app/features/settings/token-sources/components/token-sources-manager.tsx
  • services/platform/messages/de.json
  • services/platform/messages/en.json
  • services/platform/messages/fr.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tale/xs74jnqvzjfc8wced26sh34xkx896tsh

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@larryro

larryro commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Desk Review — READY TO MERGE ✅

Reviewed the full implementation (whole component, not just the diff) across correctness, robustness, elegance, tests, and boundaries, with a second confirmation pass.

CI: All checks green (gh pr checks): Build platform, Type check, Lint, Format, Knip, Storybook, all 16 Playwright platform shards, Browser, CodeRabbit, Opengrep, etc. The two "skipping" jobs (Web container test, Smoke test fork PR) are conditional no-ops, not failures.

Tests: Ran the component UI test locally — bunx vitest --run --config vitest.ui.config.ts token-sources-manager → 1 passed. The existing token-sources.spec.ts e2e (CRUD via the row ellipsis menu) is unaffected by the removal.

Findings:

  • ✅ Search fully removed: search config dropped from useListPage, and the tokenSources.search key removed consistently from en/de/fr. No remaining reference to the key anywhere.
  • ✅ Multi-select / bulk-delete fully removed: createSelectColumn, RowSelectionState, rowSelection state, enableRowSelection/onRowSelectionChange, the BulkDeleteBar footer, and the handleClearSelection/handleBulkDeleteItem callbacks are all gone — no dangling references.
  • ✅ No orphaned imports: useCallback, Row, ColumnDef, ACTIONS_COLUMN_SIZE all still used. The removed props are all optional on DataTable and useListPage, so nothing breaks downstream.
  • ✅ Single-row delete (ConfirmDialog + row action menu), create/edit panel, and getRowId all intact; the backend deleteTokenSource action stays wired to the single-delete flow.
  • ✅ Shared createSelectColumn / BulkDeleteBar correctly left untouched — still used by ~16 other tables.
  • ✅ Minimal, focused change (4 files); both acceptance criteria met.

Non-blocking note (optional, not required): Because the unit test stubs DataTable down to its actionMenu slot, it cannot assert search/checkbox absence. A small regression guard would be nice-to-have but isn't necessary — the table primitive has its own suite and the e2e covers the delete path.

Verdict: READY TO MERGE.

@larryro
larryro merged commit e4f12b8 into main Jun 24, 2026
84 of 86 checks passed
@larryro
larryro deleted the tale/xs74jnqvzjfc8wced26sh34xkx896tsh branch June 24, 2026 08:55
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.

Improvement: Remove search + multi-select from the Token sources table

1 participant