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

fix(tile): add a knob to have deterministic random in label and headline #12107

Merged

Conversation

m4olivei
Copy link
Contributor

@m4olivei m4olivei commented Nov 13, 2024

Related Ticket(s)

Follow up to #12091

Description

Since merging #12091, we've been getting Percy complaining about differences in the tile stories. The reason is that those stories have a random selection of labels and headlines each time you visit the story anew.

This PR introduces a pre-generated sequence of index numbers for the list of labels and headlines, which you can "pre-seed" by chosing a starting sequence number. This ensures that given any stating sequence number the chosen labels and headlines will be the same always. That should allow us to run Percy consistently wthout having to approve changes on every commit.

Note: Percy will report the same annoying differences in the tile story on this PR too, but after its merged, should never bother us again over differences in the chosen labels and headlines.

Changelog

Changed

  • Updated tile stories with a parameter to facilitate consistent "random" choices in label and headline text

@m4olivei m4olivei requested a review from a team as a code owner November 13, 2024 20:13
@m4olivei m4olivei requested review from bruno-amorim, marcelojcs, andy-blum and Valentin-Sorin-Nicolae and removed request for a team November 13, 2024 20:13
Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit 0811364
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/67350868d850450008a38c5e
😎 Deploy Preview https://deploy-preview-12107--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit 0811364
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/673508689cb0650008eb8013
😎 Deploy Preview https://deploy-preview-12107--ibm-dotcom-web-components-react-wrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andy-blum andy-blum added the Ready to merge Label for the pull requests that are ready to merge label Nov 14, 2024
@kodiakhq kodiakhq bot merged commit eeaad62 into carbon-design-system:main Nov 14, 2024
18 of 25 checks passed
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants