-
Notifications
You must be signed in to change notification settings - Fork 466
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
Demo datasource project global banner #1494
Demo datasource project global banner #1494
Conversation
GB-293 Demo Datasource -> UI: Global banner to warn users about working in the demo datasource project
Add global UI to alert users they're in the demo project, which has limited capabilities and will have the resources deleted on cleanup. We can also add that if they accidentally deleted something, they can delete the project and recreate it to get it back. |
…-to-warn-users-about-working
Your preview environment pr-1494-bttf has been deployed. Preview environment endpoints are available at: |
@jdorn as requested I've added a badge/pill to highlight the demo project in the projects dropdown. ![]() ![]() ![]() |
Also made the copy changes requested fd249c5 |
}) | ||
? badgeProps | ||
: null | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need a isDemoDatasourceProject
check here. badgeProps
is null if it's not a demo project, so you can just always pass that in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Features and Changes
This banner will warn users when they're in the demo datasource project so that they don't accidentally create resources under it.
Clicking on the text will show a tooltip. Clicking on the text again or anywhere else on the screen will hide the tooltip.
It's gated behind a feature flag and will not be shown in demo datasource projects on prod without the feature being enabled.
Dependencies
n/a
Testing
Screenshots
When the project is the demo datasource project:
And on longer pages (org settings) it's sticky.
No project or a different project: