-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(import): github import wizard (#6507)
This PR adds a Github import wizard, tracking the progress of importing a project from Github, showing errors or warnings. The design is still preliminary, but it is hidden behind a feature switch so that the logic can be reviewed and merges, in order not to create a long living PR. <video src="https://github.com/user-attachments/assets/65c484b2-815a-4c07-8fb2-2346f06a466e"></video> It supports error/warning states: <img width="1362" alt="image" src="https://github.com/user-attachments/assets/cc999476-f2d8-43bb-b7aa-4999fe15f589"> ## PR Includes: 1. Adding three actions - `SetImportWizardOpen` - controlling the wizard UI - `UpdateImportOperations` - updating the results of individual import operations (desc. to follow). - `UpdateProjectRequirements` - updating the results of checking and fixing Utopia specific requirements 2. Utilities to start/end tracking of import operations, their results and timings. 3. Tracked import operations - tracking hooks are being called at appropriate places in the code. - Loading the code from Github - Parsing the files - Checking specific Utopia requirements - Loading dependencies 4. Utopia checks: - storyboard file (created if not present) - `utopia` entry in package.json - project composition (JS/TS) 5. Not tracked in this PR but will in subsequent ones (can be added modularily): - React version - currently a placeholder - Server side packages - mainly Node builtins - Style frameworks 6. The wizard UI itself - showing progress and results (still preliminary) **Note for reviewers:** there are a lot of changed files due to adding new actions and passing down the `dispatch` parameter, but the main logic is contained in the new services and the wizard React components. **Manual Tests:** I hereby swear that: - [X] I opened a hydrogen project and it loaded - [X] I could navigate to various routes in Play mode
- Loading branch information
Showing
25 changed files
with
1,569 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.