Skip to content

test(git-ui): cover empty repository and empty history states (#1576)#1651

Merged
oscharko merged 1 commit into
feat/keiko-repository-centered-desktop-workflowfrom
claude/epic-1571-empty-state-regression-tests
Jun 28, 2026
Merged

test(git-ui): cover empty repository and empty history states (#1576)#1651
oscharko merged 1 commit into
feat/keiko-repository-centered-desktop-workflowfrom
claude/epic-1571-empty-state-regression-tests

Conversation

@oscharko

Copy link
Copy Markdown
Contributor

Summary

This PR closes the single evidence gap found during a full acceptance-criteria audit of Epic #1571 (Git Client: Repository-Centered Desktop Workflow).

The audit verified every Epic + child-issue acceptance criterion against the merged code on feat/keiko-repository-centered-desktop-workflow (merge commit db33a485). The implementation is genuine and complete; one criterion had correct production behaviour but no dedicated regression test:

The two empty states are implemented in production code but were untested:

  • RepositoryListSearch.tsx:102-106 — no-repository state: "No repositories yet. Add a repository to begin." + add-repository affordance.
  • HistoryPane.tsx:93-100 — zero-commit history state: "No commits yet. Make a commit to start history."

Change

Adds two GitClientWindow regression tests (test-only, no production behaviour change):

  1. No-repository empty state renders the guidance text and keeps the Add repository button reachable.
  2. An initialized repository with zero commits renders the no-commits history guidance and omits the Commit history listbox.

Acceptance-criteria mapping

Epic #1571 / #1576 criterion This PR
#1576 AC "Empty repository and no-repository states guide users…" Now backed by executable regression tests (was production-only)
#1576 EV "component tests cover … empty states" Empty-history + empty-repo-list now asserted
No production behaviour change / no gate weakening Test-only addition; strengthens coverage

Verification

  • npx vitest run …/git-client/GitClientWindow.test.tsx74 passed (was 72).
  • npx vitest run …/git-client (full dir) → 183 passed (was 181).
  • eslint GitClientWindow.test.tsx --max-warnings=0 → clean.
  • Required GitHub check ci must pass on this PR head.

Scope

Epic-scoped to #1571 / #1576. No unrelated refactors. No security/architecture/CSP/evidence gate changes.

Refs #1571
Refs #1576

🤖 Generated with Claude Code

The #1576 acceptance criterion "Empty repository and no-repository states
guide users to clone or open a local repository" and its "empty states"
verification gate were satisfied in production code (RepositoryListSearch
and HistoryPane) but lacked dedicated regression tests. An acceptance audit
of Epic #1571 confirmed the behaviour is correct yet untested.

Add two GitClientWindow regression tests:
- no-repository state renders the add-repository guidance and affordance
- an initialized repository with zero commits renders the no-commits history
  guidance and omits the commit listbox

No production behaviour changes; this closes the one evidence gap found
during the Epic #1571 acceptance-criteria audit.

Refs #1571
Refs #1576

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@oscharko oscharko merged commit a89e609 into feat/keiko-repository-centered-desktop-workflow Jun 28, 2026
8 checks passed
@oscharko oscharko deleted the claude/epic-1571-empty-state-regression-tests branch June 28, 2026 05:44
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