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

add loading state to Notice switches #5489

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

gilluminate
Copy link
Contributor

@gilluminate gilluminate commented Nov 12, 2024

Closes HJ-189

Description Of Changes

Toggling the switches in the Notices table can sometimes take a moment or two and we aren't giving any feedback to the user. Now that we have toggle switches with loading states (thanks, Ant!) let's take advantage of that.

https://www.loom.com/share/c4da372b70ab46d89c01324a24fa8e53

Code Changes

  • Add a loading state to the EnablePrivacyNoticeCell component

Steps to Confirm

  1. Visit Manage privacy notices page /consent/privacy-notices
  2. Toggle some notices and notice the spinner while it loads (even after the confirmation modal)

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
  • Followup issues:
    • Followup issues created (include link)
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Nov 12, 2024 8:06pm

Copy link

cypress bot commented Nov 12, 2024

fides    Run #10962

Run Properties:  status check passed Passed #10962  •  git commit 730b9cc1b7 ℹ️: Merge f6522ea1b8ac385fe583d5ff8bbcb673e1f68194 into dd3ffd5e83aa6dd54f8c1bb159ea...
Project fides
Branch Review refs/pull/5489/merge
Run status status check passed Passed #10962
Run duration 00m 37s
Commit git commit 730b9cc1b7 ℹ️: Merge f6522ea1b8ac385fe583d5ff8bbcb673e1f68194 into dd3ffd5e83aa6dd54f8c1bb159ea...
Committer Jason Gill
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Copy link
Contributor

@jpople jpople left a comment

Choose a reason for hiding this comment

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

Tested locally, working for me.

@gilluminate gilluminate merged commit 2a3ec6c into main Nov 12, 2024
9 of 10 checks passed
@gilluminate gilluminate deleted the gill/HJ-189/enable-disable-notices-is branch November 12, 2024 20:07
Copy link

cypress bot commented Nov 12, 2024

fides    Run #10963

Run Properties:  status check passed Passed #10963  •  git commit 2a3ec6c4cb: add loading state to Notice switches (#5489)
Project fides
Branch Review main
Run status status check passed Passed #10963
Run duration 00m 38s
Commit git commit 2a3ec6c4cb: add loading state to Notice switches (#5489)
Committer Jason Gill
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

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.

2 participants