feature/version-tag-mismatch #2
Reference in New Issue
Block a user
Delete Branch "feature/version-tag-mismatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
- Add has_local_override field to InactiveJail model - Update _build_inactive_jail and list_inactive_jails to compute the field - Add delete_jail_local_override() service function - Add DELETE /api/config/jails/{name}/local router endpoint - Surface has_local_override in frontend InactiveJail type - Show Deactivate Jail button in JailsTab when has_local_override is true - Add tests: TestBuildInactiveJail, TestListInactiveJails, TestDeleteJailLocalOverride- Replace vague 'System Recovered' message with 'Configuration Rolled Back' and actionable text describing the rollback outcome - Replace 'Manual Intervention Required' with 'Rollback Unsuccessful' and specific instructions: check jail.d/{name}.local, fix manually, restart - Add test_activate_jail_rollback_deletes_file_when_no_prior_local to cover rollback path when no .local file existed before activation - Mark all three tasks complete in Tasks.mdRename GET/PUT /api/config/actions/{name} to /actions/{name}/raw in file_config.py to eliminate the route-shadowing conflict with config.py, which registers its own GET /actions/{name} returning ActionConfig. Add configActionRaw endpoint helper in endpoints.ts and update fetchActionFile/updateActionFile in config.ts to use it. Add TestGetActionFileRaw and TestUpdateActionFileRaw test classes.Add key={selectedActiveJail.name} and key={selectedInactiveJail.name} to JailConfigDetail and InactiveJailDetail in JailsTab.tsx so React unmounts and remounts the detail component whenever the selected jail changes, resetting all internal state including the loadedRef guard.- Inject __APP_VERSION__ at build time via vite.config.ts define (reads frontend/package.json#version); declare the global in vite-env.d.ts. - Render 'BanGUI v{__APP_VERSION__}' in the sidebar footer (MainLayout) when expanded; hidden when collapsed. - Rename fail2ban version tooltip to 'fail2ban daemon version' in ServerStatusBar so it is visually distinct from the app version. - Sync frontend/package.json version (0.9.0 → 0.9.3) to match Docker/VERSION; update release.sh to keep them in sync on every bump. - Add vitest define stub for __APP_VERSION__ so tests compile cleanly. - Add ServerStatusBar and MainLayout test suites (10 new test cases).