Files
buildfor_life_ops/graphify-out/cache/a5dca736edc496f50d8ab51b7ab122ce30b6ea80c889208c86c0849bc07baf77.json
grabowski b59904fdae Phases 1-5 + rooms/floors, accounts, custom types, users, notifications
Data model
- Properties, rooms (+optional floors), assets (typed custom fields + Zod
  runtime validator + move history), documents (polymorphic scope)
- Projects -> work packages -> tasks -> subtasks
- Decision events (scoped to project/property/asset/work_package)
- Checklist templates + instances, maintenance schedules (time + usage) with
  auto-materialized checklists on event recording
- Wiki (global + per-project) with revisions + tsvector FTS
- Property accounts (utility/meter numbers by kind)
- Notifications table + per-user channel prefs

Infra
- RBAC guards (requireCompany / requireAdmin)
- Storage abstraction: LocalDiskStorage (HMAC signed URLs) + S3Storage
  behind the same interface, switchable via STORAGE_BACKEND
- CSV export for assets / maintenance / decisions
- QR labels: /api/qr SVG endpoint + printable /assets/[id]/label
- Notifications: in-app + SMTP (own server via nodemailer) + Matrix
  (Client-Server API, per-company room) with opt-in per user
- Company switcher + auto-select first company on login

UI
- Topbar: bell with unread count, theme toggle, name, Sign Out (flat)
- Sidebar: main nav + dedicated Admin section (Asset types, Users, Company)
- Nested-route tabs on property / project / asset detail pages
- Admin UIs for users (invite, role, reset pw, deactivate) and company
  settings (default currency, Matrix room id)
- Custom asset type creation + field-def editor with immutable key/type
  guard and auto-deprecate when removing a field still referenced

Graph
- graphify-out/ committed: GRAPH_REPORT.md, graph.html, graph.json
2026-04-23 15:18:11 +07:00

1 line
4.9 KiB
JSON

{"nodes": [{"id": "src_lib_server_notifications_matrix_ts", "label": "matrix.ts", "file_type": "code", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L1"}, {"id": "matrix_ismatrixconfigured", "label": "isMatrixConfigured()", "file_type": "code", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L3"}, {"id": "matrix_buildbodies", "label": "buildBodies()", "file_type": "code", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L11"}, {"id": "matrix_sendmatrixmessage", "label": "sendMatrixMessage()", "file_type": "code", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L37"}], "edges": [{"source": "src_lib_server_notifications_matrix_ts", "target": "env", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L1", "weight": 1.0}, {"source": "src_lib_server_notifications_matrix_ts", "target": "matrix_ismatrixconfigured", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L3", "weight": 1.0}, {"source": "src_lib_server_notifications_matrix_ts", "target": "matrix_buildbodies", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L11", "weight": 1.0}, {"source": "src_lib_server_notifications_matrix_ts", "target": "matrix_sendmatrixmessage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L37", "weight": 1.0}, {"source": "matrix_sendmatrixmessage", "target": "matrix_ismatrixconfigured", "relation": "calls", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L38", "weight": 1.0}, {"source": "matrix_sendmatrixmessage", "target": "matrix_buildbodies", "relation": "calls", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L40", "weight": 1.0}], "raw_calls": [{"caller_nid": "matrix_ismatrixconfigured", "callee": "Boolean", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L4"}, {"caller_nid": "matrix_buildbodies", "callee": "join", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L12"}, {"caller_nid": "matrix_buildbodies", "callee": "join", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L19"}, {"caller_nid": "matrix_buildbodies", "callee": "map", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L19"}, {"caller_nid": "matrix_buildbodies", "callee": "escapeHtml", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L22"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "now", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L41"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "slice", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L41"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "toString", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L41"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "random", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L41"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "replace", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L42"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "encodeURIComponent", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L42"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "encodeURIComponent", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L42"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "fetch", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L56"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "stringify", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L62"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "catch", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L65"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "text", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L65"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "warn", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L66"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "slice", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L66"}, {"caller_nid": "matrix_sendmatrixmessage", "callee": "warn", "source_file": "src\\lib\\server\\notifications\\matrix.ts", "source_location": "L69"}]}