Ubisam-MobileGit/tasks/005-repository-branch-ui.md

1.2 KiB

TASK-005: Browse repositories and branches

Status: planned — depends on TASK-002 and TASK-004 Owner: Codex Reviewer: Claude

Writable paths

  • app/src/main/java/com/ubisam/ubgitea/feature/repositories/
  • app/src/test/java/com/ubisam/ubgitea/feature/repositories/
  • app/src/main/res/values/strings_repositories.xml
  • app/src/main/java/com/ubisam/ubgitea/ui/navigation/
  • app/src/test/java/com/ubisam/ubgitea/ui/navigation/
  • tasks/005-repository-branch-ui.md

Outcome

A signed-in user can browse every repository and branch visible to their Gitea account with loading, pagination, refresh, empty, offline, expired-authentication, and server-error states.

Acceptance criteria

  • Repository and branch lists preserve pagination and refresh state.
  • Organization/owner, visibility, default branch, and selected branch are unambiguous.
  • Loading, empty, offline, authentication-expired, and server-error states are accessible and localized.
  • Retry and pagination cannot create duplicate items or overlapping requests.
  • UI and ViewModel tests cover primary states and selection behavior.
  • Resource names use the repositories_ prefix.
  • The reviewed completion commit is recorded as TASK-006's contract-freeze base.