Watch
1
0
Fork
You've already forked RedFlag
0
RedFlag/web
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fimeg 2a0c800659 v0.2.2.0: enforce package state machine across all transitions, vuln dashboard
Route every current_package_state status change through one transitionStatus
path: read the observed status, validate against PackageStatusTransitions,
run a status-guarded UPDATE, record terminal history. Replaces ten raw-SQL
transition functions whose WHERE guards validated nothing and silently
no-op'd on an illegal state. ApproveUpdate, the Reject/Install/Set* family,
BulkApprove and UpdatePackageStatus now share the core; illegal moves return
a named from->to error instead of a silent miss, and concurrent callers are
caught by the guarded row count.

Migration 047 renames the terminal success state updated -> installed in
current_package_state and update_version_history, realigning both CHECK
constraints with the Go PackageStatus/HistoryStatus constants.
UpdateStats updated_updates -> installed_updates to match.

UpdateCurrentStateInTx documents its reconcile CASE as the SQL twin of
models.ReconcileFromScan so the two stay in lockstep.

Dashboard: vulnerable-package count surfaced in AttentionPanel, plus a
Vulnerable quick-filter on the Updates view.
2026-05-31 16:39:58 -04:00
..
public ui: replace stale vite.svg reference with RedFlag favicon 2026-05-22 14:20:26 -04:00
src v0.2.2.0: enforce package state machine across all transitions, vuln dashboard 2026-05-31 16:39:58 -04:00
.env.example refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
Dockerfile refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
index.html ui: replace stale vite.svg reference with RedFlag favicon 2026-05-22 14:20:26 -04:00
nginx.conf refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
package-lock.json fix(web): TypeScript errors for Vite 8 + Rolldown 2026-05-24 20:18:16 -04:00
package.json fix(web): TypeScript errors for Vite 8 + Rolldown 2026-05-24 20:18:16 -04:00
postcss.config.js refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
tailwind.config.js v0.2.1.3: fix dry-run version targeting, migration 046, helper cgroup access, UI refresh 2026-05-31 11:52:36 -04:00
tsconfig.json refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
tsconfig.node.json refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
vite.config.ts refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00