Files
metabuilder/frontends/qt6/config/frontpage-data.json
johndoe6345789 77bcf4532e refactor(qt6): JSON config extraction + CWorkflowCanvas split
95% JSON config principle applied:
- SuperGodPanel: mock tenants/users/metrics/transfers → config/*.json (806→588)
- WorkflowEditor: mock workflows → config/workflow-mock-data.json
- FrontPage: levels/tech/services/creds → config/frontpage-data.json
- App.qml: seed users/views → config/app-config.json

CWorkflowCanvas (384→182): CCanvasGrid, CCanvasZoomOverlay, CWorkflowNodeDelegate extracted

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:03:51 +00:00

33 lines
2.7 KiB
JSON

{
"levels": [
{ "level": 1, "name": "Guest", "accentKey": "slate", "desc": "Explore the platform. Component library, storybook, and public API.", "tags": ["Landing", "Storybook", "Docs"] },
{ "level": 2, "name": "User", "accentKey": "blue", "desc": "Your space. Dashboard, profile, forum, gallery, and packages.", "tags": ["Dashboard", "Profile", "Forum", "Gallery"] },
{ "level": 3, "name": "Moderator", "accentKey": "cyan", "desc": "Community management. Moderate content, manage reports, user warnings.", "tags": ["Moderation", "Reports", "Warnings"] },
{ "level": 4, "name": "Admin", "accentKey": "amber", "desc": "System administration. User tables, audit logs, entity management.", "tags": ["Users", "Audit", "Entities", "Config"] },
{ "level": 5, "name": "God", "accentKey": "violet", "desc": "The builder tier. Visual workflows, schema browser, 14 power tools.", "tags": ["Workflows", "Schemas", "Pages", "14 tools"] },
{ "level": 6, "name": "Super God", "accentKey": "rose", "desc": "Platform control. Multi-tenant management, system overrides.", "tags": ["Tenants", "Config", "Promote"] }
],
"techStack": [
{ "name": "Qt6 / QML", "desc": "Native desktop frontend", "accentKey": "blue" },
{ "name": "Next.js", "desc": "React web frontend", "accentKey": "cyan" },
{ "name": "C++ DBAL", "desc": "14-backend database abstraction", "accentKey": "violet" },
{ "name": "JSON Workflows", "desc": "152 node types, visual DAG editor", "accentKey": "amber" },
{ "name": "C++ CLI", "desc": "Headless command interface", "accentKey": "slate" },
{ "name": "Docker", "desc": "One-command stack deployment", "accentKey": "cyan" }
],
"services": [
{ "name": "DBAL Daemon", "statusKey": "dbal" },
{ "name": "PostgreSQL", "statusKey": "standby" },
{ "name": "Redis Cache", "statusKey": "standby" },
{ "name": "Workflow Engine", "statusKey": "dbal" },
{ "name": "Media Service", "statusKey": "standby" }
],
"quickCreds": [
{ "user": "demo", "pass": "demo", "label": "User", "level": 2, "accentKey": "blue" },
{ "user": "mod", "pass": "mod", "label": "Moderator", "level": 3, "accentKey": "cyan" },
{ "user": "admin", "pass": "admin", "label": "Admin", "level": 4, "accentKey": "amber" },
{ "user": "god", "pass": "god123", "label": "God", "level": 5, "accentKey": "violet" },
{ "user": "super", "pass": "super123", "label": "Super God", "level": 6, "accentKey": "rose" }
]
}