SentinelEdge MX Attendance

MR Open — Docker
Microsoft Teams Tab — Control de asistencia para técnicos de campo SentinelEdge MX · sentineledge-mx-attandace.vercel.app · Next.js 14 + supabase-js + n8n webhook + Vercel Cron + Teams SSO · Local: /home/ardepa/sentineledge-mx-attendance · Live
17
Done
🔄
1
In Progress
0
Blocked
📋
2
Backlog
📋 Backlog2
Configure manifest.json with real Azure App ID
Replace REPLACE_WITH_YOUR_DOMAIN and REPLACE_WITH_YOUR_AZURE_APP_ID placeholders with real Entra ID values. Register the app in Azure Portal as a Single-page app with Teams redirect URI.
InfraAuth
Upload manifest to Teams Admin Center
Package manifest.json + icons in .zip and upload to Teams Admin Center of the SentinelEdge MX tenant to enable the Teams tab.
Infra
🔄 In Progress1
MR !1 open — Docker + CI/CD awaiting review
feat(docker): Add Docker + GitLab CI/CD for VPS auto-deploy. Risk Score 28/100.
dockercicdgitlab
⛔ Blocked0
Vacío
✅ Done17
Scaffold Next.js 14 project + folder structure
Infra
DB Schema — tbmmxattendance table in Supabase
Infra
lib/types.ts — AttendanceRecord + getButtonStates()
Feature
lib/timezone.ts — Phoenix timezone helpers
Feature
lib/attendance-helpers.ts — hoursDiff + round2 + parseAttendanceBody
Feature
lib/teams.ts — Teams SSO with dynamic import
Auth
lib/db.ts — pg Pool singleton (cron only)
Infra
API Route Handlers — action proxy + today
Feature
Full UI — app/page.tsx (dark-first, 6 buttons, summary card)
Frontend
next.config.js — CSP con unsafe-eval condicional en dev
Security
public/manifest.json — Teams Tab manifest v1.19
Infra
Deploy Vercel — sentinel-edge-ai/sentineledge-mx-attandace
Infra
Fix: table name attendance → tbmmxattendance
Infra
Refactor reads: pg → supabase-js (lib/supabase.ts)
Infra
Fix RLS: CREATE POLICY "anon_read_own"
Security
Fix fetchRecord: do not overwrite state during active session
Feature
Cron job nightly — /api/cron/compute-hours
FeatureInfra
📓 Daily Recaps