-
Notifications
You must be signed in to change notification settings - Fork 682
Move installer to inertia #18064
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
Move installer to inertia #18064
Conversation
Ran into performance issues due to the number of items in the locales list
This modal will eventually get refactored into the @craftcms/cp package
| import '../option/option.js'; | ||
| import '../icon/icon.js'; | ||
|
|
||
| export default class CraftSelect extends LionSelectRich { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had originally planned to use the Rich Select for everything in the CP, but ran into performance issues when rendering the number of options for the site locale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@riasvdv I think this is because of the rector rules. I forget, is this what we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but we should just import it at the top 👍
Biting off a bit less than #18005 — moves the installer to Inertia. Still a lot of plumbing included in this one, but an easier first step.
Nothing super notable changed in the process the installer (for now) still behaves like you know and love.
This isn't even super inertia powered because Inertia doesn't really love multi-step forms that all appear on the same page.
In the future we might want to refactor this to be separate pages while keeping track of where a user is in the session, but that's for another day.
CleanShot.2025-11-18.at.14.07.51.mp4
This PR does not have an autocomplete component for the Site URL because we haven't built that component yet and it's a bit more complex than I wanted for this PR.
This also doesn't include Playwright tests because those seem to be broken in 6.x at the moment, going to be looking into that soon.