feat: Add repository status and update functionality

- Add ORIGINAL_REPO_URL environment variable for repository updates
- Create RepoStatusButton component with status display and update functionality
- Enhance GitManager with fullUpdate() method (git pull + npm install + build)
- Add fullUpdateRepo API endpoint for complete repository updates
- Display repository status with visual indicators (up-to-date, updates available, etc.)
- Show real-time progress during update process
- Add manual refresh capability for repository status
- Integrate repository status component into main page
This commit is contained in:
Michel Roegl-Brunner
2025-09-15 15:31:51 +02:00
parent 067a7d6e79
commit cb724f245b
14 changed files with 1334 additions and 92 deletions

View File

@@ -41,6 +41,13 @@ export const scriptsRouter = createTRPCRouter({
return result;
}),
// Full update repository (git pull, npm install, build)
fullUpdateRepo: publicProcedure
.mutation(async () => {
const result = await gitManager.fullUpdate();
return result;
}),
// Get script content for viewing
getScriptContent: publicProcedure
.input(z.object({ path: z.string() }))