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 confirmation modal on deleting a privacy declaration #4439

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

jpople
Copy link
Contributor

@jpople jpople commented Nov 17, 2023

Closes #PROD-1317

Description Of Changes

Adds a confirmation modal on deleting a data use which warns the user that the data use and cookies will be deleted.

Screenshot 2023-11-17 at 4 14 59 PM

Steps to Confirm

  • View a non-locked-for-GVL system with data uses
  • Delete data use declaration by clicking "delete" button in data uses tab
  • Verify modal appears

Loom video

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Nov 17, 2023

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

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 5:10am

@jpople jpople marked this pull request as ready for review November 17, 2023 21:18
Copy link

cypress bot commented Nov 17, 2023

Passing run #5307 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge d7a4e79 into ecc01d3...
Project: fides Commit: d252f2cfe0 ℹ️
Status: Passed Duration: 00:35 💡
Started: Nov 21, 2023 5:19 AM Ended: Nov 21, 2023 5:20 AM

Review all test suite changes for PR #4439 ↗︎

Copy link
Contributor

@allisonking allisonking left a comment

Choose a reason for hiding this comment

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

nice, just some small comments!

Comment on lines 621 to 625
cy.fixture("systems/system.json").then((system) => {
cy.intercept("GET", "/api/v1/system/*", {
body: systems[0],
}).as("getFidesctlSystemWithDataUses");
body: system,
}).as("getDemoAnalyticsSystem");
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I think now that we aren't manipulating the fixture, this can be simplified to

cy.intercept("/api/v1/system/*", {
  fixture: "systems/system.json"
}).as("getDemoAnalyticsSystem");

);
});

cy.getByTestId("tab-Data uses").click();
});

it("can visit the privacy declaration tab", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: it feels a little weird for this test to be under the "delete privacy declaration" section

</Text>
, including all its cookies. Are you sure you want to
continue?
</Text>
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't see a design in the original ticket, but our modals have been skewing "centered" on the page with the isCentered prop

@jpople jpople merged commit 218cf83 into main Nov 21, 2023
13 checks passed
@jpople jpople deleted the jpople/prod-1317/delete-data-use-modal branch November 21, 2023 05:40
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