v1.6.0: max_bot fixes — feature keys, flush→commit, test-run, categories, broadcast page, proxy error handling, deploy scripts

This commit is contained in:
2026-05-24 07:50:38 +03:00
parent bd048ea23d
commit 493e0b37a1
127 changed files with 6082 additions and 65 deletions
@@ -0,0 +1,26 @@
-- Migration v1.5.2: Role-based menu permissions
CREATE TABLE IF NOT EXISTS role_menu_permissions (
id SERIAL PRIMARY KEY,
role VARCHAR(20) NOT NULL,
menu_key VARCHAR(50) NOT NULL,
visible BOOLEAN NOT NULL DEFAULT TRUE,
UNIQUE(role, menu_key)
);
-- Default: enable all menus for both roles
INSERT INTO role_menu_permissions (role, menu_key, visible) VALUES
('engineer', 'tasks', true),
('engineer', 'reports', true),
('engineer', 'incidents', true),
('engineer', 'questionnaire', true),
('engineer', 'passports', true),
('engineer', 'customers', true),
('engineer', 'objects', true),
('engineer', 'sla', true),
('engineer', 'tech_access', true),
('engineer', 'docs', true),
('technician', 'tasks', true),
('technician', 'reports', true),
('technician', 'incidents', true),
('technician', 'checklist', true)
ON CONFLICT (role, menu_key) DO NOTHING;