How lizer-webcoder/divine-rays-tech-hub works
Divine Rays Tech Hub is a browser-based support ticketing system with customer and agent accounts, ticket handling, and browser-local storage; the sampled login code also supports Supabase authentication and profile access. Its principal workflow is customer registration or sign-in, ticket submission and tracking, then agent claim, assignment, status updates, and replies. The repository also contains a separate Tech Log inventory and borrowing interface. README capability links are documented relationships; source excerpts show auth/profile and Tech Log data access, but do not reveal how most ticket modules are wired together.
Main entry points: app.js Ticket portal · index.ts Ticket email function · comments-live.js Replies and notes · tech-log-ui.js Inventory and loans
Components 26
Identity and sessions
- Account access
js/app.js - Agent credentials
js/agent-username-auth.js - Session restoration
js/session-guard.js - Session reset
js/session-reset.js
Support workflow
- Ticket portal
js/app.js - Replies and notes
js/comments-live.js - Ticket filtering
js/filters.js - Satisfaction and reports
js/extras.js - Ticket quotas
js/ticket-quota.js - Remote session requests
js/remote-session.js - Ticket email function
supabase/functions/send-ticket-email/index.ts
Agent operations
- Agent views
js/agent-views.js - Team board
js/team-board.js - Staff notifications
js/staff-ticket-notifs.js
Product experience
- Login interface
js/login-theme.js - Customer interface
js/customer-ux.js - Knowledge base
js/kb.js - Branch interface
js/branch-ui.js - Dashboard styling
js/sidebar-design.js
Tech Log
- Inventory and loans
js/tech-log-ui.js - Tech Log records
- Tech Log presentation
js/tech-log-ui.js
Other components
- Customer
- Support agent
- Supabase
- Resend email
Connections 11
- Customer → Account access: registers or signs in
- Support agent → Agent credentials: registers or signs in
- Customer → Ticket portal: submits and tracks
- Support agent → Ticket portal: claims and assigns
- Support agent → Ticket portal: changes status
- Customer → Replies and notes: replies publicly
- Support agent → Replies and notes: replies or notes
- Account access → Supabase: authenticates and reads profiles
js/app.js - Inventory and loans → Tech Log records: reads and writes
js/tech-log-ui.js - Ticket email function → Supabase: looks up recipient
supabase/functions/send-ticket-email/index.ts - Ticket email function → Resend email: sends email
supabase/functions/send-ticket-email/index.ts