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

[feature] DRY-refactor chakra UI theme extension and implement typescript file generation #11872

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Philzen
Copy link
Contributor

@Philzen Philzen commented Dec 29, 2024

This PR

  • implements generation of a typescript chakra config with properly typed theme object (in typescript projects)
  • adds a DRY-refactoring by centralizing the extendTheme() call in the theme config file – reducing duplication in App.tsx and .storybook/preview.*

@Philzen Philzen marked this pull request as ready for review December 29, 2024 22:18
@Philzen Philzen changed the title [refactor] Centralize chakra UI theme extension and allow typescript [refactor] Centralize chakra UI theme extension and implement typescript generation Dec 29, 2024
@Philzen Philzen changed the title [refactor] Centralize chakra UI theme extension and implement typescript generation [feature] DRY-refactor chakra UI theme extension and implement typescript file generation Dec 29, 2024
@Philzen
Copy link
Contributor Author

Philzen commented Dec 29, 2024

@Tobbe This is ready for review.

But i'm pretty confused though looking at the test failure in the jobs package: https://cloud.nx.app/runs/B3Di6rkdxZ/task/%40redwoodjs%2Fjobs%3Atest as this PR doesn't touch that area 🤔

Will update the last commit's hash to trigger another run in order to confirm whether that is a flaky test or persists.

@Philzen Philzen force-pushed the refactor/centralize-chakra-ui-theme-extension-and-allow-typescript branch from 84d5f21 to f70c86d Compare December 29, 2024 22:41
@Philzen Philzen marked this pull request as draft December 29, 2024 23:23
@Tobbe
Copy link
Member

Tobbe commented Dec 30, 2024

Will update the last commit's hash to trigger another run in order to confirm whether that is a flaky test or persists.

Unfortunately that one is a little bit flaky :/

@Tobbe Tobbe added the release:feature This PR introduces a new feature label Dec 30, 2024
@Tobbe Tobbe added this to the next-release milestone Dec 30, 2024
@Philzen
Copy link
Contributor Author

Philzen commented Dec 30, 2024

Unfortunately that one is a little bit flaky :/

Things like that happen 🤷

Made us a quick reminder to look at that at times and to document that we're currently aware of this issue: #11873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants