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

AstroPi - hide save popup/toast #965

Merged
merged 9 commits into from Mar 15, 2024

Conversation

create-issue-branch[bot]
Copy link
Contributor

closes #953

@create-issue-branch create-issue-branch bot temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 12, 2024 17:01 Inactive
@loiswells97 loiswells97 temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 12, 2024 17:03 — with GitHub Actions Inactive
@loiswells97 loiswells97 temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 12, 2024 17:11 — with GitHub Actions Inactive
@loiswells97 loiswells97 temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 13, 2024 09:31 — with GitHub Actions Inactive
Copy link

@loiswells97 loiswells97 temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 13, 2024 11:29 — with GitHub Actions Inactive
Copy link

@loiswells97 loiswells97 marked this pull request as ready for review March 13, 2024 11:32
@loiswells97 loiswells97 temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 13, 2024 16:49 — with GitHub Actions Inactive
Copy link

@loiswells97 loiswells97 temporarily deployed to previews/issues/953-AstroPi_-_hide_save_popup/toast March 14, 2024 09:31 — with GitHub Actions Inactive
Copy link

Copy link

@@ -86,7 +86,7 @@ describe("When no user is in state", () => {
project: {
components: [],
},
hasShownSavePrompt: false,
hasShownSavePrompt: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this has been changed 🤔 hasShownSavePrompt should stay as it was and with showSavePrompt defaulting to false these tests should work without change unless I'm missing something

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it's because we're now defaulting to not showing the save prompt, so the change on line 109 of WebComponentLoader means that we're passing this in as true to stop the prompt from showing unless they've specified that they want it... Maybe the naming is not the best though?

Copy link
Contributor

Choose a reason for hiding this comment

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

AH Sorry!! I thought this was setting state, I should've checked the few lines above. Yea absolutely, that's fine

Copy link
Contributor

@sra405 sra405 left a comment

Choose a reason for hiding this comment

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

👍

@loiswells97 loiswells97 merged commit 5a37bc7 into main Mar 15, 2024
8 checks passed
@loiswells97 loiswells97 deleted the issues/953-AstroPi_-_hide_save_popup/toast branch March 15, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AstroPi - hide save popup/toast
2 participants