Files
commitea/apps/desktop
Croissant Le Doux a04714bfa6 Kill screen fixtures: live/empty screens + one demo snapshot for e2e
The app is now fixture-free. All product screens render live data (via the
reconcile bridge + view builders) or an EmptyState — no hardcoded demo data,
metrics, or prose anywhere in the UI.

- Removed the `?? FIXTURE` fallbacks and embedded fake strings (fixed dates,
  'reconcile 3.2s', 'ahead of forecast', mock forecast prose) from all 10 product
  screens; each now shows an EmptyState when its live data is absent.
- directives-screen: fully live off pmstate.directives() (was seeded from a
  fixture with a fake consequence-diff card) — loading + empty states, no seed.
- use-chat: drop the CHAT seed (the model-status effect already sets the greeting).
- data/fixtures.ts → data/view-types.ts: stripped every const design fixture,
  kept only the view-model TYPES (the builder↔screen contract). Repointed imports.

Testing fixture (no live gitea), per the user's call:
- New apps/desktop/src/main/demo-snapshot.ts — one deterministic, gitea-shaped
  snapshot (issues/milestones/deps/timelines + capacity + directives + collaborators).
  Served by the reconcile/boot/collaborators/capacity/directives handlers when
  COMMITEA_E2E=1, so e2e renders it through the REAL builders with no token.
- smoke.spec rewritten to assert on the demo snapshot through the live render path;
  onboarding/offline-toggle assertions dropped (wizard is live → live-onboarding;
  offline is real state now). 12/12 smoke pass.

Verify: core tsc clean · desktop tsc clean · 12/12 smoke green (perf#32 benchmark
flakes under machine load — unrelated, passes in isolation).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-10 13:21:47 -04:00
..

CommiTea (desktop)

An AI project manager for Gitea, as an Electron desktop app. The token stays in the main process (OS keychain via safeStorage); the renderer never sees it.

Develop

yarn dev          # electron-vite dev, HMR renderer + main (logs → desktop.log)
yarn typecheck
yarn e2e          # builds, then Playwright against the built main (fixtures/demo)

For a live pass against a real Gitea, put a token in .env.local (GITEA_TOKEN=…) and run GITEA_LIVE=1 yarn e2e live-onboarding.

Package (shareable macOS .dmg)

yarn pack         # unpacked .app for the host arch (fast sanity check) → dist/
yarn dist         # arm64 + x64 .dmg → dist/CommiTea-<version>[-arm64].dmg

Config is electron-builder.yml. Builds are unsigned (no Apple certs, by decision) — electron-builder ad-hoc signs so the app can run, but it is not notarized. Bump version in package.json for a new release; keep electronVersion in electron-builder.yml in sync with the electron devDependency.

Installing a shared build (teammates)

macOS Gatekeeper blocks unsigned apps on first launch. To open:

  1. Open the .dmg and drag CommiTea to Applications.
  2. In Applications, right-click CommiTea → Open, then confirm Open in the dialog. (Double-clicking the first time just shows "cannot be opened".)
  3. It opens to the connection screen — enter your Gitea base URL, owner/repo, and a personal access token (repo scope). Each teammate uses their own token, so activity is attributed correctly. A model URL is optional; chat is disabled until one is configured, everything else works without it.

Grab the -arm64 dmg on Apple Silicon, the plain one on Intel.