feat(ui): settings menu restructure, git branch dropdown, and repo cleanup

This commit is contained in:
2026-02-22 21:29:30 +01:00
parent 831564762b
commit b955e4f464
15 changed files with 160 additions and 63 deletions

View File

@@ -334,6 +334,19 @@ async def get_version(
return result
@router.get("/branches")
async def get_branches(
current_user: User = Depends(get_current_user),
db: Session = Depends(get_db),
):
"""Return a list of available branches from the configured git remote."""
config = get_system_config(db)
if not config or not config.git_repo_url:
return []
branches = await update_service.get_remote_branches(config)
return branches
@router.post("/update")
async def trigger_update(
current_user: User = Depends(get_current_user),