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 support for Vendor Count in descriptions #5210

Merged
merged 6 commits into from
Aug 16, 2024

Conversation

gilluminate
Copy link
Contributor

@gilluminate gilluminate commented Aug 16, 2024

Closes PROD-2593

Description Of Changes

  • Replaces existing ""vendors page." auto-generated link, which didn't support non-english descriptions.
  • As a Fides admin, I can specify a template variable in the description text of the TCF experience that will render a link that opens the vendor tab of layer 2.
  • The template variable should render the count of vendors that are included in the TCF experience.
  • The rendered count also acts as a link or button that takes users to the Vendors tab of Layer 2 when clicked.

Code Changes

  • Created a new VendorButtonContext for making the vendor count available to components
  • Modified description to use ${VENDOR_COUNT_LINK} for replacement with the count/button instead of converting "vendors page" into a link.
  • Added privacy center e2e test

Steps to Confirm

(these steps have been updated as part of #5223. Use those steps instead)

Pre-Merge Checklist

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

Copy link

vercel bot commented Aug 16, 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 Aug 16, 2024 10:05pm

Copy link

cypress bot commented Aug 16, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit 5fe197c ℹ️
Started Aug 16, 2024 10:17 PM
Ended Aug 16, 2024 10:17 PM
Duration 00:38 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

@@ -17,7 +17,7 @@
"language": "en",
"accept_button_label": "Opt in to all",
"acknowledge_button_label": "OK",
"banner_description": "[banner] We use cookies and similar methods to recognize visitors and remember their preferences. We may also use these technologies to gauge the effectiveness of advertising campaigns, target advertisements, and analyze website traffic. Some of these technologies are essential for ensuring the proper functioning of the service or website and cannot be disabled, while others are optional but serve to enhance the user experience in various ways.\n\nWe, in collaboration with our partners, store and/or access information on a user's device, including but not limited to IP addresses, unique identifiers, and browsing data stored in cookies, in order to process personal data. You have the option to manage your preferences by selecting the 'Manage Preferences' option located in the page's footer. To review or object to instances where our partners assert a legitimate interest in utilizing your data, please visit our vendors page.\n",
"banner_description": "[banner] We, and our ${VENDOR_COUNT_LINK} vendors, use cookies and similar methods to recognize visitors and remember their preferences. We may also use these technologies to gauge the effectiveness of advertising campaigns, target advertisements, and analyze website traffic. Some of these technologies are essential for ensuring the proper functioning of the service or website and cannot be disabled, while others are optional but serve to enhance the user experience in various ways.\n\nWe, in collaboration with our partners, store and/or access information on a user's device, including but not limited to IP addresses, unique identifiers, and browsing data stored in cookies, in order to process personal data. You have the option to manage your preferences by selecting the 'Manage Preferences' option located in the page's footer. To review or object to instances where our partners assert a legitimate interest in utilizing your data, please visit our vendors page.\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

Assuming this text is typically just the number, is there concern here about clickability of a very short link? Maybe hyperlink " vendors" as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is just the number, and that's intentional to avoid complications with translation strings. This can be added to any language.

@gilluminate gilluminate merged commit 4fbe90d into main Aug 16, 2024
13 checks passed
@gilluminate gilluminate deleted the PROD-2593-tcf-support-link-to-vendors branch August 16, 2024 22:21
Copy link

cypress bot commented Aug 16, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit 4fbe90d
Started Aug 16, 2024 10:34 PM
Ended Aug 16, 2024 10:35 PM
Duration 00:38 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

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