-
Notifications
You must be signed in to change notification settings - Fork 72
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
Updated privacy declarations #2648
Updated privacy declarations #2648
Conversation
…598/privacy-declarations
…598/privacy-declarations
@@ -24,6 +24,9 @@ export const dataUseApi = createApi({ | |||
transformResponse: (uses: DataUse[]) => | |||
uses.sort((a, b) => a.fides_key.localeCompare(b.fides_key)), | |||
}), | |||
getDataUseByKey: build.query<DataUse, string>({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turns out I didn't need this, but might still be useful to keep around
* If true, when isMulti=false, the selected value will be rendered as a block, | ||
* similar to how the multi values are rendered | ||
*/ | ||
singleValueBlock?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing run #257 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportBase: 86.23% // Head: 86.23% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## aking/2434/new-manual-add-design #2648 +/- ##
=================================================================
Coverage 86.23% 86.23%
=================================================================
Files 289 289
Lines 15796 15796
Branches 1986 1986
=================================================================
Hits 13622 13622
Misses 1786 1786
Partials 388 388 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! Very modular. It does look like I'll be able to drop PrivacyDeclarationManager.tsx
right into the datamap ui since the redux calls are passed down from the parent.
So far everything makes sense. I think this is ready to merge into the upstream branch and I'll start testing things out in fidesplus. If I hit any snags we can merge the fixes into the new-manual-add-design
branch.
Closes https://github.com/ethyca/fidesplus/issues/598
Code Changes
Okay this is a hefty one but hopefully for good reason!! On the surface, it just changes the privacy declaration form to a nifty accordion setup.
But if you go deeper, it's also trying to be modular so that it can be imported more easily into the datamap-ui.
system
calledprivacy-declarations
which has:PrivacyDeclarationStep.tsx
: the parent component which handles redux calls and the copy surrounding the more complex partsPrivacyDeclarationManager.tsx
: basically the complex component of Accordion + new declaration form + "Add a Data Use" button. No redux calls. In theory, this component can be plopped into Datamap UIPrivacyDeclarationForm.tsx
: the individual parts of the privacy declaration form, exported into modular parts. This is because the form is used both as a normal looking form and as an accordion, where the title needs to be an accordion button ⬇️PrivacyDeclarationAccordion.tsx
: the parts of the form reused for Accordion form.PrivacyDeclarationForm
, and you can refer toPrivacyDeclarationAccordion
to see how that can be done. But I think it might work to pullPrivacyDeclarationManager
directly, which would handle all the logic. provided the datamap UI designs don't look any different. If they do, then you may need to use the component parts f romPrivacyDeclarationForm
instead.Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
Description Of Changes
https://www.loom.com/share/561080864cb944fc89b7f67ae18fc695