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

feat: Component refactor and toolkit #545

Merged
merged 10 commits into from
Aug 29, 2024
Merged

feat: Component refactor and toolkit #545

merged 10 commits into from
Aug 29, 2024

Conversation

ramedina86
Copy link
Collaborator

@ramedina86 ramedina86 commented Aug 29, 2024

This PR introduces the concept of "toolkit", namely:

  • core (collection of all the component templates we now until now, including Section, Page, etc)
  • workflows (new collection for Workflows)

It also updates the mode switcher so you can choose 4 modes:

  • User Interface
  • Code
  • Workflows (feature flagged)
  • Preview

A switch in mode determines which toolkit is shown; only the Workflows mode shows the workflows toolkit.

Screenshot 2024-08-29 at 12 54 20

There's also been a refactor in the core_components folder to allow for a neater hierarchy that can accommodate the two toolkits, core and workflows. Paths have been updated to use the "@/" syntax, since the relative syntax was getting out of hand i.e. ../../../injectionKeys etc.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't you think it should be placed in src/components/custom

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't think it was urgent but yes, absolutely. I'll create a Jira ticket so that we don't forget.

@ramedina86 ramedina86 merged commit 45c0ba9 into dev Aug 29, 2024
18 checks passed
@ramedina86 ramedina86 deleted the feat-component-toolkit branch August 29, 2024 12:44
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.

3 participants