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

Don't show the "Source imported successfully" modal when unpacking example projects #6260

Merged

Conversation

ericpgreen2
Copy link
Contributor

Reported in the bug bash

@@ -30,6 +30,7 @@ type FeatureFlagKey = keyof Omit<FeatureFlags, "set">;
class FeatureFlags {
adminServer = new FeatureFlag("rill", false);
readOnly = new FeatureFlag("rill", false);
sourceImportedModal = new FeatureFlag("rill", true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should not use FeatureFlags for this. Lets have a separate set of values for such use cases.

@briangregoryholmes
Copy link
Contributor

briangregoryholmes commented Dec 12, 2024

I agree with Aditya, but also think we should just remove this modal entirely for the time being. Forcing the user to choose one of these options isn't a good user experience even when it works properly. This should be part of a more robust toast notification system or we should develop a way of pointing out the CTA button via a small animation when certain conditions are met.

If you do go forward with this, the reason it shouldn't be shown is because there is already a downstream dashboard, so I would look into basing the hide/show rules around that, which may not require the use of a store.

@ericpgreen2
Copy link
Contributor Author

I agree with Aditya, but also think we should just remove this modal entirely for the time being. Forcing the user to choose one of these options isn't a good user experience even when it works properly. This should be part of a more robust toast notification system or we should develop a way of pointing out the CTA button via a small animation when certain conditions are met.

I agree this modal feels quite ham-fisted and that we could give the user a much more elegant nudge. For the time being, for the sake of keeping some CTA (which I believe Mike feels strongly about), I'll patch this as is.

If you do go forward with this, the reason it shouldn't be shown is because there is already a downstream dashboard, so I would look into basing the hide/show rules around that, which may not require the use of a store.

Done!

@ericpgreen2 ericpgreen2 merged commit 326ab38 into main Dec 13, 2024
7 checks passed
@ericpgreen2 ericpgreen2 deleted the no-source-import-modal-for-unpacked-example-projects branch December 13, 2024 04:29
ericpgreen2 added a commit that referenced this pull request Dec 13, 2024
…ample projects (#6260)

* Don't show the "Source imported successfully" modal when unpacking example projects

* Review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants