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

Twig: fix boolean settings in patterns and components #973

Merged
merged 10 commits into from
May 15, 2024

Conversation

ademarco
Copy link
Collaborator

No description provided.

Copy link

changeset-bot bot commented Apr 19, 2024

🦋 Changeset detected

Latest commit: 95aa8bb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ilo-org/twig Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ademarco ademarco linked an issue Apr 19, 2024 that may be closed by this pull request
17 tasks
Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for ilo-ui-twig-develop ready!

Name Link
🔨 Latest commit 95aa8bb
🔍 Latest deploy log https://app.netlify.com/sites/ilo-ui-twig-develop/deploys/663b861b861c16000831b396
😎 Deploy Preview https://deploy-preview-973--ilo-ui-twig-develop.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 Apr 19, 2024

Deploy Preview for ilo-ui-react ready!

Name Link
🔨 Latest commit 95aa8bb
🔍 Latest deploy log https://app.netlify.com/sites/ilo-ui-react/deploys/663b861b820b7d0008acb64b
😎 Deploy Preview https://deploy-preview-973--ilo-ui-react.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 Apr 19, 2024

Deploy Preview for ilo-ui-twig ready!

Name Link
🔨 Latest commit 95aa8bb
🔍 Latest deploy log https://app.netlify.com/sites/ilo-ui-twig/deploys/663b861ba2de40000818475d
😎 Deploy Preview https://deploy-preview-973--ilo-ui-twig.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.

@justintemps
Copy link
Member

Hey @ademarco thanks for doing this, did you make sure that all of the values you updated still work in storybook? I checked a few that didn't look like they were working. Also a few places where the filter got added to the twig, but the pattern file didn't change.

@ademarco
Copy link
Collaborator Author

@justintemps I did test the manually when I changed them but I'll further test them now, that I have completed a first iteration of changes.

@Shashika6
Copy link
Collaborator

@ademarco Reviewed the components individually. Most of the components are working as expected I found small issues in the ones below.

  • The button component looks a bit off with the booleans. I think this can be tackled with the button cleanup that I'm working on
  • The hero component tooltip icon is not displaying.
  • The tooltip icon boolean is not working as expected.

  • Tags active state doesn't seem to function as expected as well but this issue exists in the twig currently so looks like we will have to create a seperate issue for this one @justintemps

@ademarco
Copy link
Collaborator Author

ademarco commented May 8, 2024

Thank you @Shashika6 I've fixed the following:

  • The button component looks a bit off with the booleans. I think this can be tackled with the button cleanup that I'm working on
  • The hero component tooltip icon is not displaying.
  • The tooltip icon boolean is not working as expected.

Please open a follow up for the active state, since this is present also in the current implementation.

@ademarco ademarco marked this pull request as ready for review May 8, 2024 08:15
@ademarco ademarco changed the title fix(twig): add boolval filter and fix button component Twig: fix boolean settings in patterns and components May 8, 2024
@justintemps
Copy link
Member

Hey @ademarco what will happen to users who don't have the boolval filter configured?

@ademarco
Copy link
Collaborator Author

ademarco commented May 8, 2024

@justintemps they need it loaded in their twig env, I have to add an entry to the readme, suggesting which library to integrate into their project. For ILO Base Theme users it will be transparent once this one gets in international-labour-organization/ilo_base_theme#13

@justintemps justintemps merged commit d5863b0 into develop May 15, 2024
14 checks passed
@justintemps justintemps deleted the fix/twig/GH-965-cast-boolean-values branch May 15, 2024 11:58
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.

Twig: fix boolean settings in patterns and components
3 participants