ui fixes for repo page, fix scanner priority, cleanup goreleaser scripts

This commit is contained in:
Evan Jarrett
2026-04-03 16:48:21 -05:00
parent ca69c0d1c2
commit fd5bfc3c50
51 changed files with 3424 additions and 744 deletions
+19
View File
@@ -30,6 +30,7 @@ CREATE TABLE IF NOT EXISTS manifests (
config_digest TEXT,
config_size INTEGER,
artifact_type TEXT NOT NULL DEFAULT 'container-image', -- container-image, helm-chart, unknown
subject_digest TEXT, -- digest of the parent manifest (for attestations/referrers)
created_at TIMESTAMP NOT NULL,
UNIQUE(did, repository, digest),
FOREIGN KEY(did) REFERENCES users(did) ON DELETE CASCADE
@@ -38,6 +39,7 @@ CREATE INDEX IF NOT EXISTS idx_manifests_did_repo ON manifests(did, repository);
CREATE INDEX IF NOT EXISTS idx_manifests_created_at ON manifests(created_at DESC);
CREATE INDEX IF NOT EXISTS idx_manifests_digest ON manifests(digest);
CREATE INDEX IF NOT EXISTS idx_manifests_artifact_type ON manifests(artifact_type);
CREATE INDEX IF NOT EXISTS idx_manifests_subject_digest ON manifests(subject_digest);
CREATE TABLE IF NOT EXISTS repository_annotations (
did TEXT NOT NULL,
@@ -167,6 +169,17 @@ CREATE TABLE IF NOT EXISTS repository_stats (
CREATE INDEX IF NOT EXISTS idx_repository_stats_did ON repository_stats(did);
CREATE INDEX IF NOT EXISTS idx_repository_stats_pull_count ON repository_stats(pull_count DESC);
CREATE TABLE IF NOT EXISTS repository_stats_daily (
did TEXT NOT NULL,
repository TEXT NOT NULL,
date TEXT NOT NULL,
pull_count INTEGER NOT NULL DEFAULT 0,
push_count INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY(did, repository, date),
FOREIGN KEY(did) REFERENCES users(did) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS idx_repo_stats_daily_date ON repository_stats_daily(date DESC);
CREATE TABLE IF NOT EXISTS stars (
starrer_did TEXT NOT NULL,
owner_did TEXT NOT NULL,
@@ -273,3 +286,9 @@ CREATE TABLE IF NOT EXISTS scans (
PRIMARY KEY(hold_did, manifest_digest)
);
CREATE INDEX IF NOT EXISTS idx_scans_user ON scans(user_did);
CREATE TABLE IF NOT EXISTS advisor_suggestions (
manifest_digest TEXT PRIMARY KEY,
suggestions_json TEXT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);