-
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
Notice toggle table for fides-js #3291
Conversation
Passing run #2069 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
I've been really struggling getting What I've tried:
I'm going to try to tackle other parts of this ticket for now. I don't think it'd be the worst thing if the apps don't share this component, since Privacy Center can build its own version of this component with chakra which would be much easier. But it'd be nice to get this figured out at some point! |
ah, that's unfortunate to hear. Have you tried adding the rollup typescript plugin?- https://www.npmjs.com/package/rollup-plugin-typescript2 I'm reading https://stackoverflow.com/a/70163537 which seems to be a similar issue, using Rollup. If this takes too much time, though, I'm OK with not sharing the toggle component between fides-js and privacy center for now. This can be a follow-up item. |
37a2be1
to
fc7b882
Compare
2e75f93
to
0ddc5c4
Compare
turns out I just needed to alias in two places! 🤦♀️ 0ddc5c4 thanks for the assist @eastandwestwind 🙌 |
and the toggles can update/change their data accordingly. I'm having trouble importing the
|
5bfbe7e
to
c4e3eb3
Compare
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.
Just tested manually and it's looking good so far! Nice to see you even got the background scrolling working behind the modal :)
https://www.loom.com/share/a9038b903dbd4177b346a82a861570a5
On thing I want to point out is I see that the modal does not currently:
- close the banner on save / accept all / reject all- could we add this in easily? Since testing data is passed in on every page load, the banner should still re-open on subsequent page loads, so testing won't be inhibited by this.
- write the cookie on save, like we do for accept all / reject all- do we have a follow-up ticket for this, or should I handle it on my end?
Update rollup to support React (kind of, doesn't work 100% yet 🥲 )
Could you describe how to replicate the part that doesn't work with React?
Thanks @eastandwestwind , all great points!
|
Testing functionality now and all is looking good! The banner closes when the modal is opened, and I see the modal preserves state of consented notices when I reload the page to re-trigger the banner. Also the cookie is appropriately updated, along with the window.Fides obj upon saving consent preferences. I want to confirm- if we have legacy consent preferences, we currently don't override them, just ensure that they remain in the cookie. The only use case where we touch legacy consent preferences is if the overlay is disabled, and we must use read from the legacy |
Oh, no I don't think I have that behavior. Am I understanding correctly that let's say...
That is not true right now, but I can probably merge the cookie values instead of overwriting them? |
Ok I think we should keep the functionality already in place, where we overwrite the cookie with the most recent notices. 2 reasons behind this:
|
Most of #3161
Still need to:
Code Changes
ConsentModal.tsx
NoticeToggle
which renders the bulk of the modal contentsToggle
component which adheres to a11y rulesSteps to Confirm
npm run dev-pc
in theclients
folderPre-Merge Checklist
CHANGELOG.md
Description Of Changes