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

LJ-458-FE-Consent-reporting-page-initial-UI #5839

Merged
merged 49 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
618fc1a
Add consent reporting table and new endpoint
lucanovera Mar 4, 2025
1fef851
Improve code
lucanovera Mar 4, 2025
48b4514
WIP
lucanovera Mar 5, 2025
e3f2130
Merge branch 'main' of github.com:ethyca/fides into LJ-458-FE-Consent…
lucanovera Mar 5, 2025
5298895
Refactor report download
lucanovera Mar 5, 2025
5dc81a0
Add refresh button
lucanovera Mar 5, 2025
ee585f8
Update text
lucanovera Mar 5, 2025
fa0ef42
Add consent lookup modal
lucanovera Mar 5, 2025
bdde4c7
Add privacy preference lookup functionality
lucanovera Mar 5, 2025
fd26ce0
Add modal for consent report download
lucanovera Mar 6, 2025
1e97a41
Remove uneeded text
lucanovera Mar 6, 2025
a1065c6
Add link styles
lucanovera Mar 6, 2025
4031b0c
User geography column
lucanovera Mar 6, 2025
a6962e3
Update preference column
lucanovera Mar 6, 2025
e7273ab
Method labels
lucanovera Mar 6, 2025
9435817
Add request origin labels
lucanovera Mar 6, 2025
e2fa9a5
Adjust columns
lucanovera Mar 6, 2025
03b5c85
use relative timestamp
lucanovera Mar 6, 2025
60fe685
Update columns and date filters
lucanovera Mar 6, 2025
e81d3d8
adjust table size
lucanovera Mar 6, 2025
376da7a
adjust column tag
lucanovera Mar 6, 2025
59d1e7e
remove wrong type
lucanovera Mar 6, 2025
c97b79f
fix ts issue
lucanovera Mar 6, 2025
49ed385
fix consent reporting dates
lucanovera Mar 6, 2025
eabd4b9
Add custom range date selector
lucanovera Mar 6, 2025
7ebe932
improve no results message
lucanovera Mar 6, 2025
232affe
update badge colors and label name
lucanovera Mar 6, 2025
10af0bb
Adjust input label styles
lucanovera Mar 7, 2025
5f4c1fc
Adjust modal style
lucanovera Mar 7, 2025
434b8b9
uppercase for tcf
lucanovera Mar 7, 2025
d784a87
Add success toast
lucanovera Mar 7, 2025
0669376
Fix test
lucanovera Mar 7, 2025
53cf287
Add tests
lucanovera Mar 7, 2025
27742d2
Fix timezone issues with date picker
lucanovera Mar 7, 2025
331c0bd
Update modal
lucanovera Mar 7, 2025
589a4a1
Change layout to fixed
lucanovera Mar 7, 2025
78c1a69
Update tooltip
lucanovera Mar 7, 2025
2bd3a8e
Remove only
lucanovera Mar 7, 2025
eddbbb7
Add support for tcf
lucanovera Mar 7, 2025
f600e0e
reset navigation on refresh
lucanovera Mar 7, 2025
751df88
document hoc
lucanovera Mar 7, 2025
86f22a8
close modal after download starts
lucanovera Mar 7, 2025
a81021a
improve types
lucanovera Mar 7, 2025
7078d0a
Merge branch 'main' of github.com:ethyca/fides into LJ-458-FE-Consent…
lucanovera Mar 7, 2025
22cc6c2
fix type issue
lucanovera Mar 7, 2025
5528aa2
update link
lucanovera Mar 7, 2025
5efed09
Update changelog
lucanovera Mar 7, 2025
43a9771
update changelog to patch release
lucanovera Mar 7, 2025
e7d1c59
removed extra blank space
lucanovera Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 73 additions & 3 deletions clients/admin-ui/cypress/e2e/consent-reporting.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("Consent reporting", () => {
});
});

describe("downloading reports", () => {
describe("results view and download report", () => {
beforeEach(() => {
stubPlus(true, {
core_fides_version: "1.9.6",
Expand Down Expand Up @@ -70,10 +70,80 @@ describe("Consent reporting", () => {
url: "/api/v1/plus/consent_reporting*",
method: "GET",
}).as("getConsentReport");
cy.getByTestId("input-from-date").type("2023-11-01");
cy.getByTestId("input-to-date").type("2023-11-07");
cy.getByTestId("input-date-range").first().type("2023-11-01");
cy.getByTestId("input-date-range").last().type("2023-11-07");
cy.getByTestId("download-btn").click();
cy.getByTestId("download-report-btn").click();
cy.wait("@getConsentReport");
});
it("can lookup specific consent preferences", () => {
cy.intercept({
url: "/api/v1/current-privacy-preferences*",
method: "GET",
}).as("lookupConsentPreferences");
cy.getByTestId("consent-reporting-dropdown-btn").click();
cy.getByTestId("consent-preference-lookup-btn").click();
cy.getByTestId("subject-search-input").type("[email protected]{enter}");
cy.wait("@lookupConsentPreferences").then((interception) => {
const { url: requestUrl } = interception.request;
let url = new URL(requestUrl);
let params = new URLSearchParams(url.search);
expect(params.get("email")).to.equal("[email protected]");
expect(params.get("phone_number")).to.equal("[email protected]");
expect(params.get("fides_user_device_id")).to.equal("[email protected]");
expect(params.get("external_id")).to.equal("[email protected]");
});
});
it("loads the consent report table without date filters", () => {
cy.intercept(
{
url: "/api/v1/historical-privacy-preferences*",
method: "GET",
},
{
fixture: "consent-reporting/historical-privacy-preferences.json",
},
).as("getConsentReport");

cy.wait("@getConsentReport").then((interception) => {
const { url: requestUrl } = interception.request;
let url = new URL(requestUrl);
let params = new URLSearchParams(url.search);
expect(params.get("request_timestamp_gt")).to.be.null;
expect(params.get("request_timestamp_lt")).to.be.null;
});

cy.getByTestId("fidesTable-body").children().should("have.length", 22);
});
it("loads the consent report table with date filters", () => {
cy.intercept(
{
url: "/api/v1/historical-privacy-preferences*",
method: "GET",
},
{
fixture: "consent-reporting/historical-privacy-preferences.json",
},
).as("getConsentReport");

cy.wait("@getConsentReport");

cy.getByTestId("input-date-range").first().type("2023-11-01");
cy.getByTestId("input-date-range").last().type("2023-11-07{enter}");

cy.wait("@getConsentReport").then((interception) => {
const { url: requestUrl } = interception.request;
let url = new URL(requestUrl);
let params = new URLSearchParams(url.search);
expect(params.get("request_timestamp_gt")).to.equal(
"2023-11-01T00:00:00.000Z",
);
expect(params.get("request_timestamp_lt")).to.equal(
"2023-11-07T23:59:59.999Z",
);
});

cy.getByTestId("fidesTable-body").children().should("have.length", 22);
});
});
});
Loading