Skip to content

feat(dashboard): add quick hide action for platform cards#523

Open
manhbi18112005 wants to merge 1 commit intojlcodes99:mainfrom
manhbi18112005:improve-dashboard
Open

feat(dashboard): add quick hide action for platform cards#523
manhbi18112005 wants to merge 1 commit intojlcodes99:mainfrom
manhbi18112005:improve-dashboard

Conversation

@manhbi18112005
Copy link
Copy Markdown

Summary

This PR adds a quick hide control to dashboard platform cards. Users can now hide a platform card directly from the card header without opening platform layout settings.

What changed

  • Added an icon-only hide button in each platform card header
  • Hooked hide action into existing dashboard/platform layout visibility state
  • Added compact header icon button styling for consistent layout

Behavior

  • Clicking the hide icon immediately removes that platform card from the current dashboard view
  • Existing card actions (refresh, switch, collapse where applicable) continue to work as before

Validation

  • Type check passes successfully
  • No new compile errors introduced in dashboard page/styles

Copilot AI review requested due to automatic review settings April 19, 2026 16:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a quick “hide” control to each dashboard platform card so users can remove a card from the current view directly from the card header (reusing the existing platform layout visibility state).

Changes:

  • Added an icon-only hide button to platform card headers and wired it to usePlatformLayoutStore visibility (setHiddenEntry).
  • Updated card header markup to group header actions consistently via a header-action-group wrapper.
  • Added compact icon-button sizing styles for header actions (.header-icon-btn).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/pages/DashboardPage.tsx Adds hide-button rendering and handler, and updates card header action layout to include the new control.
src/pages/DashboardPage.css Introduces .header-icon-btn sizing to support the icon-only header hide button.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/pages/DashboardPage.css
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