Files
metabuilder/frontends/qt6/config/admin-mock-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

85 lines
9.7 KiB
JSON

{
"User": [
{ "id": "USR-001", "username": "admin", "email": "admin@metabuilder.io", "role": "god", "status": "Active", "created": "2025-11-02" },
{ "id": "USR-002", "username": "jdoe", "email": "jdoe@example.com", "role": "admin", "status": "Active", "created": "2025-12-10" },
{ "id": "USR-003", "username": "alice", "email": "alice@devteam.org", "role": "editor", "status": "Active", "created": "2026-01-05" },
{ "id": "USR-004", "username": "bob_dev", "email": "bob@contractor.io", "role": "user", "status": "Inactive", "created": "2026-01-18" },
{ "id": "USR-005", "username": "carol", "email": "carol@metabuilder.io", "role": "admin", "status": "Active", "created": "2026-02-01" },
{ "id": "USR-006", "username": "dave", "email": "dave@external.com", "role": "user", "status": "Active", "created": "2026-02-14" },
{ "id": "USR-007", "username": "eve_sec", "email": "eve@security.io", "role": "auditor", "status": "Active", "created": "2026-03-01" },
{ "id": "USR-008", "username": "frank", "email": "frank@legacy.net", "role": "user", "status": "Inactive", "created": "2025-09-20" }
],
"Session": [
{ "id": "SES-001", "user": "admin", "ip": "192.168.1.10", "status": "Active", "started": "2026-03-18 08:00", "expires": "2026-03-18 20:00" },
{ "id": "SES-002", "user": "jdoe", "ip": "10.0.0.42", "status": "Active", "started": "2026-03-18 09:15", "expires": "2026-03-18 21:15" },
{ "id": "SES-003", "user": "alice", "ip": "172.16.0.5", "status": "Active", "started": "2026-03-18 10:30", "expires": "2026-03-18 22:30" },
{ "id": "SES-004", "user": "bob_dev", "ip": "192.168.1.88", "status": "Inactive", "started": "2026-03-17 14:00", "expires": "2026-03-17 23:59" },
{ "id": "SES-005", "user": "carol", "ip": "10.0.0.101", "status": "Active", "started": "2026-03-18 07:45", "expires": "2026-03-18 19:45" },
{ "id": "SES-006", "user": "dave", "ip": "192.168.2.33", "status": "Inactive", "started": "2026-03-16 11:00", "expires": "2026-03-16 23:00" }
],
"Workflow": [
{ "id": "WF-001", "name": "on_user_created", "trigger": "User.created", "nodes": "15", "status": "Active", "lastRun": "2026-03-18 09:01" },
{ "id": "WF-002", "name": "on_snippet_saved", "trigger": "Snippet.created", "nodes": "8", "status": "Active", "lastRun": "2026-03-18 08:45" },
{ "id": "WF-003", "name": "nightly_cleanup", "trigger": "cron:0 2 * * *", "nodes": "12", "status": "Active", "lastRun": "2026-03-18 02:00" },
{ "id": "WF-004", "name": "on_login_failed", "trigger": "Auth.failed", "nodes": "6", "status": "Active", "lastRun": "2026-03-17 23:12" },
{ "id": "WF-005", "name": "weekly_report", "trigger": "cron:0 9 * * MON", "nodes": "20", "status": "Inactive", "lastRun": "2026-03-11 09:00" },
{ "id": "WF-006", "name": "media_transcode", "trigger": "Media.uploaded", "nodes": "10", "status": "Active", "lastRun": "2026-03-18 07:30" }
],
"Package": [
{ "id": "PKG-001", "name": "forum", "version": "2.1.0", "author": "core-team", "status": "Active", "installed": "2025-12-01" },
{ "id": "PKG-002", "name": "guestbook", "version": "1.3.2", "author": "core-team", "status": "Active", "installed": "2025-12-01" },
{ "id": "PKG-003", "name": "notifications", "version": "1.8.0", "author": "core-team", "status": "Active", "installed": "2026-01-10" },
{ "id": "PKG-004", "name": "media-gallery", "version": "3.0.1", "author": "plugins", "status": "Active", "installed": "2026-01-15" },
{ "id": "PKG-005", "name": "irc-bridge", "version": "0.9.0", "author": "community", "status": "Inactive", "installed": "2026-02-05" },
{ "id": "PKG-006", "name": "analytics", "version": "1.2.0", "author": "core-team", "status": "Active", "installed": "2026-02-20" },
{ "id": "PKG-007", "name": "streaming", "version": "1.0.0", "author": "plugins", "status": "Active", "installed": "2026-03-01" }
],
"UiPage": [
{ "id": "PG-001", "title": "Dashboard", "route": "/", "layout": "full", "status": "Active", "modified": "2026-03-15" },
{ "id": "PG-002", "title": "User Profile", "route": "/profile", "layout": "sidebar", "status": "Active", "modified": "2026-03-10" },
{ "id": "PG-003", "title": "Settings", "route": "/settings", "layout": "full", "status": "Active", "modified": "2026-03-12" },
{ "id": "PG-004", "title": "Admin Panel", "route": "/admin", "layout": "sidebar", "status": "Active", "modified": "2026-03-18" },
{ "id": "PG-005", "title": "Workflow Editor", "route": "/workflows", "layout": "canvas", "status": "Active", "modified": "2026-03-14" },
{ "id": "PG-006", "title": "Legacy Import", "route": "/import", "layout": "full", "status": "Inactive", "modified": "2026-01-20" }
],
"Credential": [
{ "id": "CRD-001", "label": "SMTP Production", "type": "smtp", "scope": "global", "status": "Active", "created": "2025-12-01" },
{ "id": "CRD-002", "label": "AWS S3 Bucket", "type": "aws-s3", "scope": "media", "status": "Active", "created": "2026-01-10" },
{ "id": "CRD-003", "label": "GitHub Deploy Key", "type": "ssh-key", "scope": "ci-cd", "status": "Active", "created": "2026-01-20" },
{ "id": "CRD-004", "label": "Slack Webhook", "type": "webhook", "scope": "notifications", "status": "Active", "created": "2026-02-05" },
{ "id": "CRD-005", "label": "DB Staging", "type": "database", "scope": "staging", "status": "Inactive", "created": "2025-11-15" }
],
"Forum": [
{ "id": "FRM-001", "title": "Welcome to MetaBuilder", "author": "admin", "replies": "24", "status": "Active", "created": "2025-12-05" },
{ "id": "FRM-002", "title": "Bug: Workflow not firing", "author": "jdoe", "replies": "8", "status": "Active", "created": "2026-02-10" },
{ "id": "FRM-003", "title": "Feature: Dark mode toggle", "author": "alice", "replies": "15", "status": "Active", "created": "2026-02-18" },
{ "id": "FRM-004", "title": "How to create custom nodes?", "author": "dave", "replies": "6", "status": "Active", "created": "2026-03-02" },
{ "id": "FRM-005", "title": "Migration guide v1 to v2", "author": "carol", "replies": "31", "status": "Active", "created": "2026-01-25" },
{ "id": "FRM-006", "title": "Deprecated: Old API docs", "author": "admin", "replies": "2", "status": "Inactive", "created": "2025-10-10" }
],
"Notification": [
{ "id": "NTF-001", "type": "system", "recipient": "all", "message": "Maintenance window 03/20", "status": "Active", "sent": "2026-03-18 06:00" },
{ "id": "NTF-002", "type": "alert", "recipient": "admin", "message": "High CPU on dbal-prod", "status": "Active", "sent": "2026-03-18 07:30" },
{ "id": "NTF-003", "type": "info", "recipient": "jdoe", "message": "Your export is ready", "status": "Active", "sent": "2026-03-18 09:00" },
{ "id": "NTF-004", "type": "warning", "recipient": "eve_sec", "message": "3 failed login attempts", "status": "Active", "sent": "2026-03-18 08:15" },
{ "id": "NTF-005", "type": "system", "recipient": "all", "message": "v2.1.0 deployed", "status": "Inactive", "sent": "2026-03-15 12:00" }
],
"AuditLog": [
{ "id": "AUD-001", "action": "user.login", "user": "admin", "resource": "auth/session", "status": "Active", "timestamp": "2026-03-18 08:00" },
{ "id": "AUD-002", "action": "record.create", "user": "jdoe", "resource": "forum/post", "status": "Active", "timestamp": "2026-03-18 08:30" },
{ "id": "AUD-003", "action": "record.update", "user": "alice", "resource": "workflow/WF-001", "status": "Active", "timestamp": "2026-03-18 09:01" },
{ "id": "AUD-004", "action": "user.logout", "user": "bob_dev", "resource": "auth/session", "status": "Active", "timestamp": "2026-03-17 18:00" },
{ "id": "AUD-005", "action": "record.delete", "user": "admin", "resource": "media/MED-003", "status": "Active", "timestamp": "2026-03-18 07:45" },
{ "id": "AUD-006", "action": "config.change", "user": "carol", "resource": "settings/smtp", "status": "Active", "timestamp": "2026-03-17 16:30" },
{ "id": "AUD-007", "action": "auth.failed", "user": "unknown", "resource": "auth/login", "status": "Active", "timestamp": "2026-03-18 08:12" }
],
"Media": [
{ "id": "MED-001", "filename": "logo-dark.svg", "type": "image/svg", "size": "12 KB", "status": "Active", "uploaded": "2026-01-05" },
{ "id": "MED-002", "filename": "hero-banner.png", "type": "image/png", "size": "2.4 MB", "status": "Active", "uploaded": "2026-02-10" },
{ "id": "MED-003", "filename": "intro-video.mp4", "type": "video/mp4", "size": "48 MB", "status": "Active", "uploaded": "2026-02-20" },
{ "id": "MED-004", "filename": "user-guide.pdf", "type": "application/pdf", "size": "1.1 MB", "status": "Active", "uploaded": "2026-03-01" },
{ "id": "MED-005", "filename": "old-theme.css", "type": "text/css", "size": "85 KB", "status": "Inactive", "uploaded": "2025-09-15" },
{ "id": "MED-006", "filename": "avatar-defaults.zip", "type": "application/zip", "size": "5.6 MB", "status": "Active", "uploaded": "2026-03-10" }
]
}