mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-11 03:40:05 +00:00
Two wins here. First, the `session`/`loadingSession`/`sessionError` triple is replaced with a single `SessionState` discriminated union, so the component can switch on `.status` instead of juggling three correlated flags. Second, the seven flat `useState` calls for the GitHub step are grouped into `githubStrategy` + `tokenForm` + `appForm`, with `appForm.owner` typed as the generated `InstallGithubAppOwner` tagged object. Invalid states like "token flow but org slug set" simply stop existing. \`buildInstallGithubAppOwner\` is deleted (unused) — form handlers build the tagged object in place, which is small enough to stay readable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| public | ||
| scripts | ||
| .dockerignore | ||
| .gitignore | ||
| bun.lock | ||
| index.template.html | ||
| package.json | ||
| tsconfig.json | ||