feat(init-prompt): open a small standalone prompt for folders outside a Git repo #59

Merged
Christoph merged 1 commit from ChangesMarker into main 2026-09-30 09:41:04 +00:00
Owner

Show a compact "init prompt" window when the app is launched from Explorer with a plain folder
that is not part of any Git work tree, instead of creating/opening the full main window.

  • New UI and assets: adds a standalone init-prompt HTML entry, Svelte InitPrompt component,
    and bootstrap script that runs before the main frontend.
  • Tauri backend: new InitPrompt state and commands (init_prompt_path, init_prompt_confirm,
    init_prompt_cancel); is_folder_outside_repository helper; startup flow updated to open the
    prompt for non-repo folders and to create main/splash windows lazily. The confirm action
    initializes the repo (calls init_repository) and then opens the main window; cancel closes
    the prompt and exits if no main window exists.
  • Misc fixes and plumbing:
    • repair_quoted_drive_root handles Explorer's quoted drive-root argument (e.g. C:" -> C:);
      includes a unit test.
    • tauri config and capabilities updated (main/splash declared "create": false; add
      core🪟allow-set-size and include init-prompt window in default capabilities) so the
      prompt can be shown alone and resized to its content.
    • NSIS installer hooks add Explorer context-menu verbs ("Open in Gitty") for folders and
      remove them on uninstall.
    • Add localized messages and a small storedPreferences helper used by the prompt.
  • CI: add a .gitea workflow to produce a manual Windows test installer without publishing
    updater artifacts.

The change keeps existing behavior for normal startup and clone flows; main windows are now
created lazily so a folder-only prompt can run by itself.

Show a compact "init prompt" window when the app is launched from Explorer with a plain folder that is not part of any Git work tree, instead of creating/opening the full main window. - New UI and assets: adds a standalone init-prompt HTML entry, Svelte InitPrompt component, and bootstrap script that runs before the main frontend. - Tauri backend: new InitPrompt state and commands (init_prompt_path, init_prompt_confirm, init_prompt_cancel); is_folder_outside_repository helper; startup flow updated to open the prompt for non-repo folders and to create main/splash windows lazily. The confirm action initializes the repo (calls init_repository) and then opens the main window; cancel closes the prompt and exits if no main window exists. - Misc fixes and plumbing: - repair_quoted_drive_root handles Explorer's quoted drive-root argument (e.g. C:" -> C:\); includes a unit test. - tauri config and capabilities updated (main/splash declared "create": false; add core:window:allow-set-size and include init-prompt window in default capabilities) so the prompt can be shown alone and resized to its content. - NSIS installer hooks add Explorer context-menu verbs ("Open in Gitty") for folders and remove them on uninstall. - Add localized messages and a small storedPreferences helper used by the prompt. - CI: add a .gitea workflow to produce a manual Windows test installer without publishing updater artifacts. The change keeps existing behavior for normal startup and clone flows; main windows are now created lazily so a folder-only prompt can run by itself.
Show a compact "init prompt" window when the app is launched from Explorer with a plain folder
that is not part of any Git work tree, instead of creating/opening the full main window.

- New UI and assets: adds a standalone init-prompt HTML entry, Svelte InitPrompt component,
  and bootstrap script that runs before the main frontend.
- Tauri backend: new InitPrompt state and commands (init_prompt_path, init_prompt_confirm,
  init_prompt_cancel); is_folder_outside_repository helper; startup flow updated to open the
  prompt for non-repo folders and to create main/splash windows lazily. The confirm action
  initializes the repo (calls init_repository) and then opens the main window; cancel closes
  the prompt and exits if no main window exists.
- Misc fixes and plumbing:
  - repair_quoted_drive_root handles Explorer's quoted drive-root argument (e.g. C:" -> C:\);
    includes a unit test.
  - tauri config and capabilities updated (main/splash declared "create": false; add
    core🪟allow-set-size and include init-prompt window in default capabilities) so the
    prompt can be shown alone and resized to its content.
  - NSIS installer hooks add Explorer context-menu verbs ("Open in Gitty") for folders and
    remove them on uninstall.
  - Add localized messages and a small storedPreferences helper used by the prompt.
- CI: add a .gitea workflow to produce a manual Windows test installer without publishing
  updater artifacts.

The change keeps existing behavior for normal startup and clone flows; main windows are now
created lazily so a folder-only prompt can run by itself.
Sign in to join this conversation.
No description provided.