Skip to content

Name empty Astro projects like Lumos sites - #55

Open
SylvainDruaux wants to merge 3 commits into
flowtricks:mainfrom
SylvainDruaux:create-project-options
Open

SylvainDruaux wants to merge 3 commits into
flowtricks:mainfrom
SylvainDruaux:create-project-options

Conversation

@SylvainDruaux

Copy link
Copy Markdown
Contributor

The "Empty Astro project…" option asked for an empty folder that you had
to create yourself first. It now works like "Start from Lumos…": choose
where the site should go, then name it in the wizard.

  • Both wizards share one Site name field (default my-site) with a
    preview of the folder that will be created.
  • The main process creates <parent>/<name> and checks the name the
    same way for both flows (newSiteDirectory).
  • If create-astro fails before writing anything, the empty folder is
    removed, so "Try again" works.
  • Fixes the Site name label sitting directly on its input, in both
    wizards.
  • Removes the now unused project:newDialog channel.

Merge note: this PR and the Wrangler / package manager PR both change
the handler count in test/electron/app/mainBoundaries.test.ts. If they
are merged in either order, the second one conflicts there, and the
right value is 134.

Tested: the full gate passes, and both wizards were tested by hand on
macOS (create, invalid name, existing folder).

The "Empty Astro project…" wizard now asks for a site name, shows
the folder it will create and only asks where the site should go.
Both wizards share one name field and the main process checks the
name the same way for both. If create-astro fails before writing
anything, the empty folder is removed so "Try again" works.
The modal's label rule overrode the field's column layout, so the
name sat directly on its input. The gap now matches the template
question's spacing, in both the Lumos and empty Astro wizards.
The empty Astro project wizard now names its own folder, so nothing
calls project:newDialog any more.
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.

1 participant