Skip to content

fix(web): persist channels table view options - #5363

Closed
QLHazyCoder wants to merge 1 commit into
QuantumNous:mainfrom
QLHazyCoder:codex/upstream-channels-view-options
Closed

QLHazyCoder wants to merge 1 commit into
QuantumNous:mainfrom
QLHazyCoder:codex/upstream-channels-view-options

Conversation

@QLHazyCoder

@QLHazyCoder QLHazyCoder commented Jun 7, 2026 •

Copy link
Copy Markdown

Summary\n- persist channel table column visibility in the new frontend\n- rehydrate saved view options on load so the \View\ menu behaves like the classic frontend\n- fall back to the legacy \channels-table-columns\ localStorage key for compatibility\n\n## Testing\n- bun run typecheck\n- bun run build\n

Summary by CodeRabbit

  • New Features
    • Column visibility preferences in the channels table are now automatically saved and restored between sessions.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 044e6b6a-c77a-4713-a4c1-52a3755ffab4

📥 Commits

Reviewing files that changed from the base of the PR and between 4ca47ee and 88f1dc3.

📒 Files selected for processing (1)
  • web/default/src/features/channels/components/channels-table.tsx

Walkthrough

ChannelsTable component now persists user column visibility preferences to browser localStorage. On component mount, column visibility is restored from storage with backward compatibility for a legacy key and fallback to sensible defaults. Column visibility changes are automatically persisted back to storage.

Changes

Column Visibility Persistence

Layer / File(s) Summary
localStorage persistence for column visibility
web/default/src/features/channels/components/channels-table.tsx
Import safeJsonParse, define localStorage keys for current and legacy visibility storage, establish DEFAULT_COLUMN_VISIBILITY configuration, initialize columnVisibility state by reading from storage (current key first, then legacy) with safe parsing and defaults fallback, and add a useEffect to persist visibility changes back to localStorage.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

In columns deep, a rabbit builds a store,
Where user choices live forevermore,
Through localStorage's quiet, faithful chest,
Each visibility preference finds its rest. 🐰✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(web): persist channels table view options' directly matches the main change: adding localStorage persistence for column visibility in the channels table component.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

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.

2 participants