Skip to content

#4447 bay admin preview widget selection - #4622

Merged
wavehassman merged 17 commits into
feature/bay-dashboardfrom
#4447-bay-admin-preview-widget-selection
Oct 23, 2026
Merged

wavehassman merged 17 commits into
feature/bay-dashboardfrom
#4447-bay-admin-preview-widget-selection

Conversation

@cielbellerose

@cielbellerose cielbellerose commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Changes

admin tools bay dash!

  • SAVE/CLEAR functionality
  • select widgets from each size dropdown
  • endpoint to automatically update bay dashboard with current config

Note: moved getAvailableWidgets endpoint from unauthenticated to admin authenticated since its only used in admin tools

  • reduced queries for tv display

Notes

UNDO removed... happy to chat about this. I was unsure why undo would be useful - clear simple sets the widgets back to the current tv display. Undo would undo one singular click... but we could just unclick that widget? we only have three slots anyway

Screenshots

Screen.Recording.2026-10-21.at.5.37.33.PM.mov
Screenshot 2026-10-21 at 6 15 38 PM Screenshot 2026-10-21 at 6 17 54 PM Screenshot 2026-10-21 at 6 19 45 PM Screenshot 2026-10-21 at 6 19 36 PM Screenshot 2026-10-19 at 6 26 04 PM Screenshot 2026-10-19 at 6 25 55 PM

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4447 #4451 #4448 #4449

@cielbellerose cielbellerose self-assigned this Oct 19, 2026
@cielbellerose
cielbellerose marked this pull request as ready for review October 19, 2026 21:16
Comment thread src/frontend/src/pages/AdminToolsPage/BayDashConfig/AdminToolsBayDashConfig.tsx Outdated
Comment thread src/frontend/src/utils/bay-dashboard.utils.ts Outdated
Comment thread src/frontend/src/pages/BayDashboardPage/BayDashboardPage.tsx Outdated
const AdminToolsBayDashConfig: React.FC = () => {
const [selection, setSelection] = useState<BayDashboardWidgetSelection>({});
const hasSelection = Object.values(selection).some((type) => type);
const { data: config, isLoading, isError } = useGetCurrentBayDashboardConfig();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

need error

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the preview will already show error if this endpoint errors - on this page it is only used to enable/disable the save button

@wavehassman
wavehassman merged commit b0cc761 into feature/bay-dashboard Oct 23, 2026
4 checks passed
@wavehassman
wavehassman deleted the #4447-bay-admin-preview-widget-selection branch October 23, 2026 01:58
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