feat: add prelaunch site controls and refresh branding
Validate and deploy production / validate (push) Successful in 23s
Validate and deploy staging / validate (push) Successful in 19s
Validate and deploy production / deploy (push) Successful in 1m0s
Validate and deploy staging / deploy (push) Successful in 36s

This commit is contained in:
JB
2026-07-27 02:24:13 -04:00
parent 7b3aff30d8
commit 5a67b252aa
37 changed files with 1738 additions and 100 deletions
+18
View File
@@ -1123,3 +1123,21 @@ CREATE TABLE IF NOT EXISTS external_service_alert_deliveries (
);
CREATE INDEX IF NOT EXISTS external_service_alert_pending_idx
ON external_service_alert_deliveries(delivered_at,created_at);
CREATE TABLE IF NOT EXISTS site_launch_settings (
id TEXT PRIMARY KEY CHECK(id='primary'),
coming_soon_enabled INTEGER NOT NULL DEFAULT 1 CHECK(coming_soon_enabled IN (0,1)),
account_creation_enabled INTEGER NOT NULL DEFAULT 1 CHECK(account_creation_enabled IN (0,1)),
news_enabled INTEGER NOT NULL DEFAULT 1 CHECK(news_enabled IN (0,1)),
database_enabled INTEGER NOT NULL DEFAULT 1 CHECK(database_enabled IN (0,1)),
builds_enabled INTEGER NOT NULL DEFAULT 1 CHECK(builds_enabled IN (0,1)),
guides_enabled INTEGER NOT NULL DEFAULT 1 CHECK(guides_enabled IN (0,1)),
builder_enabled INTEGER NOT NULL DEFAULT 1 CHECK(builder_enabled IN (0,1)),
updated_at TEXT NOT NULL,
updated_by TEXT REFERENCES users(id)
);
INSERT OR IGNORE INTO site_launch_settings(
id,coming_soon_enabled,account_creation_enabled,news_enabled,database_enabled,
builds_enabled,guides_enabled,builder_enabled,updated_at
) VALUES('primary',1,1,1,1,1,1,1,'2026-07-27T00:00:00.000Z');
INSERT OR IGNORE INTO permissions(id,name,description)
VALUES('permission-site-settings-manage','site.settings.manage','Manage launch mode, account creation, and public section availability');