How yashwanth-20/aiops-tracker works
AIops-Tracker tracks employee snapshot postings against a roster calendar, with end-of-day and monthly reports. Users interact through the browser UI and API: employee and roster administration, snapshot posting, channel viewing, and compliance reporting are handled by the Express application. Roster logic resolves defaults and overrides; repository adapters persist records, and image storage supports local files or Vercel Blob. The excerpts establish server startup, domain logic, and storage calls; browser-to-API wiring and some deployment relationships are not shown, so uncertain links are marked dashed.
Main entry points: app.js HTTP API · repo.js Repository selector · storage.js Image storage · retention.js Monthly retention
Components 20
User Interface
- Tracker UI
public/app.js
Application
- Serverless entry
api/index.js - Server startup
server.js - HTTP API
app.js - Employee management
app.js - Snapshot posting
app.js - Channel feed
app.js - Compliance reports
app.js - Monthly retention
retention.js
Roster And Dates
- Roster resolution
roster.js - Date utilities
dates.js
Persistence And Media
- Repository selector
repo.js - Local repository
repo.local.js - Postgres repository
repo.postgres.js - JSON file store
store.js - Image storage
storage.js
Other components
- Tracker user
- Vercel Blob
- Postgres database
- Local filesystem
Connections 21
- Tracker user → Tracker UI: uses
- Tracker UI → HTTP API: sends requests
- Serverless entry → HTTP API: exports
api/index.js - Server startup → HTTP API: starts
server.js - Server startup → Repository selector: initializes
server.js - HTTP API → Repository selector: reads and writes
app.js - HTTP API → Roster resolution: resolves roster
app.js - HTTP API → Date utilities: validates dates
app.js - HTTP API → Image storage: manages images
app.js - Roster resolution → Repository selector: loads records
roster.js - Roster resolution → Date utilities: uses calendar
roster.js - Repository selector → Postgres repository: selects
repo.js - Repository selector → Local repository: selects
repo.js - Local repository → JSON file store: loads and saves
repo.local.js - Local repository → Local filesystem: persists JSON
- Postgres repository → Postgres database: queries
repo.postgres.js - Monthly retention → Repository selector: purges records
retention.js - Monthly retention → Date utilities: gets current month
retention.js - Monthly retention → Image storage: deletes images
retention.js - Image storage → Vercel Blob: stores optionally
storage.js - Image storage → Local filesystem: stores locally
storage.js