Skip to content

Add local app update control - #38

Merged
raychrisgdp merged 4 commits into
mainfrom
issue-34-update-app
Jun 25, 2026
Merged

Add local app update control#38
raychrisgdp merged 4 commits into
mainfrom
issue-34-update-app

Conversation

@raychrisgdp

Copy link
Copy Markdown
Owner

Summary

  • Add a local-only App Update control to the dashboard summary area.
  • Add /api/app-version to check the current checkout against latest origin/main and report whether an update is available.
  • Add localhost-only POST /api/update that refuses unsafe states, fast-forwards from origin main, runs uv sync, and reports restart-needed status.
  • Cover current, update-available, dirty-worktree, diverged, git failure, uv failure, and non-local request cases.

UX Notes

The dashboard shows one visible update control. It auto-detects whether latest main requires an update:

  • Up to Date when current with origin/main
  • Update App when a fast-forward update is available
  • Blocked when an update exists but local changes would be overwritten
  • Manual Update when the checkout cannot fast-forward cleanly

Validation

  • uv run python -m unittest tests.test_app tests.test_readme -v
  • uv run python -m py_compile app.py scripts/snapshot_dashboard.py
  • scripts/review.sh
  • Browser smoke check at http://localhost:8344/
  • Direct API checks for /api/app-version and POST /api/update

Closes #34

@raychrisgdp
raychrisgdp marked this pull request as ready for review June 25, 2026 06:13
@raychrisgdp
raychrisgdp merged commit a47c102 into main Jun 25, 2026
1 check passed
@raychrisgdp
raychrisgdp deleted the issue-34-update-app branch June 25, 2026 06:23
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.

Add simple local update button for dashboard app

1 participant