Skip to content

[task] Add desktop app-server loading and error states #23

@phongndo

Description

@phongndo

Goal

Make desktop app-server startup, loading, and error states clear and actionable.

Why this matters

The desktop app depends on the Rust app-server. Users need to know whether Nexgit is loading, missing auth, outside a repo, blocked by app-server startup, or failing due to GitHub/API errors.

Command/API target

Improve renderer state handling around typed preload/app-server requests.

Depends on

Out of scope

  • Do not add new GitHub data methods.
  • Do not run GitHub calls from renderer code.
  • Do not redesign the full app shell.

Definition of done

  • Desktop distinguishes app-server starting, app-server failed, GitHub no-auth, no-repo, empty data, and normal loaded states.
  • Errors are readable and do not collapse the whole screen into raw stack traces.
  • Retry or refresh behavior is either implemented or clearly deferred.

Verification

  • pnpm desktop:typecheck
  • pnpm desktop:build
  • Run pnpm desktop:dev with normal and forced app-server failure conditions; include screenshots or observations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: desktopElectron, React, TypeScript, and desktop UX.help wantedMaintainers would welcome a community contribution on this work.kind: featureA user-facing capability request.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions