Compare commits

...

2 commits

Author SHA1 Message Date
dc269f13ee Add edit capability to reports app for Directors Forecast
Adds a third capability 'edit' (Edit Directors Forecast) for the reports
app to gate pickup/dry/wet override saves and snapshot creation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 10:24:55 +00:00
8f1e985cbc Register directors-report app in auth seed
LXC 123, 10.10.10.123, #7c3aed, FileBarChart icon.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 10:10:06 +00:00

View file

@ -286,8 +286,9 @@ export async function initDb() {
SELECT a.id, c.slug, c.name, c.description, c.sort_order
FROM apps a
CROSS JOIN (VALUES
('view', 'View & Run Reports', 'Browse and run all custom reports', 1),
('export', 'Export to CSV', 'Download report results as a CSV file', 2)
('view', 'View & Run Reports', 'Browse and run all custom reports', 1),
('export', 'Export to CSV', 'Download report results as a CSV file', 2),
('edit', 'Edit Directors Forecast', 'Edit pickup/dry/wet overrides and save forecast snapshots', 3)
) AS c(slug, name, description, sort_order)
WHERE a.slug = 'reports'
ON CONFLICT (app_id, slug) DO UPDATE SET