US-02: Data Access Layer and Supabase Integration (reportApi.js) #2

Closed
opened 2026-09-23 17:42:52 +00:00 by gabogg · 2 comments
Owner

User Story

As a developer, I need a centralized data access module that interacts with the Supabase client to execute CRUD operations on daily reports and fetch historical dates.

Acceptance Criteria

  • Supabase client initialized from Vite environment variables (, ).
  • function returning the current date in local format.
  • to retrieve a specific shift record.
  • to load Day and Night shifts in parallel.
  • executing an atomic UPSERT on .
  • returning unique dates with existing reports in the database.
## User Story As a developer, I need a centralized data access module that interacts with the Supabase client to execute CRUD operations on daily reports and fetch historical dates. ## Acceptance Criteria - [ ] Supabase client initialized from Vite environment variables (, ). - [ ] function returning the current date in local format. - [ ] to retrieve a specific shift record. - [ ] to load Day and Night shifts in parallel. - [ ] executing an atomic UPSERT on . - [ ] returning unique dates with existing reports in the database.
gabogg changed title from US-02: Capa de Acceso a Datos y Conexión Supabase (reportApi.js) to US-02: Data Access Layer and Supabase Integration (reportApi.js) 2026-09-23 17:46:10 +00:00
Author
Owner

Addressed in Pull Request #12: #12

Addressed in Pull Request #12: https://git.gaboggamer.online/gabogg/orinokia-mall-control/pulls/12
Author
Owner

Closed via merged PR #12.

Closed via merged PR #12.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gabogg/orinokia-mall-control#2
No description provided.