Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(dashboards): Split dashboard warnings into components and hooks #79382

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gggritso
Copy link
Member

@gggritso gggritso commented Oct 18, 2024

Dashboard widgets have various little badges and warnings. Each of them is its own component that loads its own data. This works fine, but is blocking a refactor I'm doing. In the very near future I don't want to use those little components, but I need to re-use their logic.

This PR takes each of those components and splits it into a hook that returns its state, and a component that consumes that state and renders the UI. This will make it easy for me to re-use that hook (and the components) and render a different UI.

Best enjoyed with whitespace turned off.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant