sentry icon indicating copy to clipboard operation
sentry copied to clipboard

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

Open gggritso opened this issue 1 year ago • 0 comments

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.

gggritso avatar Oct 18 '24 21:10 gggritso