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

Tweak the Model explanation banner #42413

Merged
merged 2 commits into from
May 10, 2024
Merged

Tweak the Model explanation banner #42413

merged 2 commits into from
May 10, 2024

Conversation

rafpaf
Copy link
Contributor

@rafpaf rafpaf commented May 8, 2024

This PR refactors the banner that appears on the Browse models page (the ModelExplanationBanner component) by replacing the existing code for dismissing the banner with the useUserSetting hook.

The previous implementation involved directly dispatching a Redux action. This has been replaced by the useUserSetting hook which simplifies the logic and makes the code cleaner.

Test the dismissal of the ModelExplanationBanner component by going to the Browse models page and dismissing the banner. It should not show up again on subsequent visits.

Copy link
Contributor Author

rafpaf commented May 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rafpaf and the rest of your teammates on Graphite Graphite

@metabase-bot metabase-bot bot added the .Team/AdminWebapp Admin and Webapp team label May 8, 2024
@rafpaf rafpaf changed the title rebase Tweak the Model explanation banner May 8, 2024
@rafpaf rafpaf marked this pull request as ready for review May 8, 2024 18:01
@rafpaf rafpaf requested a review from camsaul as a code owner May 8, 2024 18:05
@rafpaf rafpaf requested review from a team and removed request for camsaul May 8, 2024 18:07
Copy link

replay-io bot commented May 8, 2024

Status Complete ↗︎
Commit 7018673
Results
⚠️ 9 Flaky
2474 Passed

@rafpaf rafpaf force-pushed the browse/nav branch 2 times, most recently from d33df74 to 0fcdcf0 Compare May 8, 2024 20:18
Copy link
Contributor

@iethree iethree left a comment

Choose a reason for hiding this comment

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

🥳 this hook is really nice

Base automatically changed from browse/nav to master May 8, 2024 22:08
@rafpaf rafpaf enabled auto-merge (squash) May 9, 2024 23:49
@rafpaf rafpaf added this to the 0.50 milestone May 9, 2024
@rafpaf rafpaf added the no-backport Do not backport this PR to any branch label May 9, 2024
@rafpaf rafpaf merged commit 521fe4d into master May 10, 2024
119 of 129 checks passed
@rafpaf rafpaf deleted the browse/banner-tweak branch May 10, 2024 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants