Commit Graph

39 Commits

Author SHA1 Message Date
Jose Selesan
454f20ed25 feat(api): add timezone support for group fetching and increase page size
feat(attendance): refactor attendance summary logic and update tests

feat(analytics): extend GroupRiskSummary schema with absence and attendance counts

feat(groups): enhance group schema with attendee and waitlist counts

chore(skills): add frontend design skill with guidelines and license

feat(attendee-detail): implement AttendeePhoneLine component for phone display

feat(groups): create AttendanceBadge and CapacityIndicator components for group cards

feat(groups): add card utility functions for attendance alerts and capacity summaries

test(groups): implement tests for attendance alert and capacity summary logic
2026-09-30 17:39:13 -03:00
Jose Selesan
4e86096653 refactor: remove unused attendee detail components and provider 2026-09-30 13:37:42 -03:00
Jose Selesan
27bff32e76 feat: enhance UI components for better accessibility and consistency 2026-09-30 10:33:06 -03:00
Jose Selesan
13c1446977 Improve group detail UI 2026-09-30 10:07:05 -03:00
Jose Selesan
581cf2f2b2 feat: implement immersive routes with Large Title component
- Added Large Title component to manage immersive screen headers.
- Created ImmersiveBarProvider to handle the sticky bar for immersive routes.
- Updated RootLayout to conditionally render Header based on immersive routes.
- Modified Sidebar to adjust its position and height in immersive mode.
- Integrated Large Title in ClassAttendanceView and AnalyticsView for consistent header display.
- Updated GroupHeader to use Large Title for better layout management.
- Implemented isImmersiveRoute function to determine immersive routes.
- Added tests for immersive route detection.
2026-09-29 21:23:56 -03:00
Jose Selesan
81ed5747f3 feat: add region handling for currency and locale formatting, including comprehensive tests 2026-09-29 21:01:24 -03:00
Jose Selesan
8ccff20473 feat: add accessible Tooltip component with hover, focus, and tap support 2026-09-29 20:12:06 -03:00
Jose Selesan
9520763ec3 feat: refactor group detail components for improved member and pending views 2026-09-29 16:29:38 -03:00
Jose Selesan
5ef393fa64 feat: add SectionChips component for improved navigation between members, pre-registrations, and waitlist 2026-09-29 15:41:13 -03:00
Jose Selesan
45a1f50231 feat: implement group pre-registration feature with approval and rejection workflows
- Add API endpoints for managing group pre-registrations, including approval and rejection.
- Create database migration for `group_pre_registrations` table and associated enum for status.
- Implement use cases for listing, approving, and rejecting pre-registrations.
- Add frontend components for displaying pre-registration details and managing approvals/rejections.
- Update shared schemas to include pre-registration data structures and validation.
- Remove obsolete `WaitlistNoticeCard` component and replace with `PreRegistrationNoticeCard`.
2026-09-29 15:25:24 -03:00
Jose Selesan
0f02331dfc Improved group detail look and feel 2026-09-29 09:19:29 -03:00
Jose Selesan
df510cfe45 fix(web): evitar el zoom residual de iOS al cerrar el teclado
iOS (Safari y standalone) auto-zoomea al enfocar un control de formulario
con font-size < 16px y, al cerrar el teclado, no restaura el scale: la app
quedaba con zoom hasta que el usuario hacía pinch-out o recargaba.

- Input sube a 16px en mobile (text-base sm:text-sm), manteniendo los
  14px de escritorio. iPad queda fuera porque el zoom-on-focus es
  exclusivo de iPhone.
- El prefijo $ de GroupForm sigue el mismo tamaño para no desalinearse.
- Guard en @layer base para textareas/selects/inputs crudos futuros.
2026-09-28 22:57:22 -03:00
Jose Selesan
9f2e770509 New page for Add group member 2026-09-28 22:51:09 -03:00
Jose Selesan
2be59f99dd fix(web): make PWA build work in Docker and serve manifest with correct MIME
El build de Docker fallaba con "Rollup failed to resolve import
workbox-window from virtual:pwa-register". Localmente no pasaba: bun
hoisteaba la dependencia transitiva de vite-plugin-pwa a la raíz, pero
en la imagen usa el layout aislado y la deja solo en node_modules/.bun/,
sin symlink alcanzable desde apps/web. Se declara como devDependency
directa de apps/web para que resuelva desde apps/web/node_modules.

De paso, nginx servía el manifest como application/octet-stream porque
mime.types de alpine no conoce webmanifest; se mueve a su propia location
con el tipo correcto. Sigue en no-cache y con =404.
2026-09-28 22:34:35 -03:00
Jose Selesan
56096b1e35 Added installation notification 2026-09-28 22:20:11 -03:00
Jose Selesan
2fd1826014 feat(pwa): implement PWA installation banner and context provider
- Add `generate-icons.ts` script to generate PWA icons from SVG.
- Create `InstallBanner` component for prompting users to install the app.
- Implement `PwaProvider` to manage PWA installation state and events.
- Export `PwaProvider` and `InstallBanner` from the PWA feature index.
2026-09-28 20:55:48 -03:00
Jose Selesan
05da085e36 feat: update onboarding route to include OnboardingProvider and clarify Docker port mapping in compose file 2026-09-28 20:23:06 -03:00
Jose Selesan
f05fbf9e30 feat: enhance Docker setup and deployment configuration 2026-09-28 16:41:28 -03:00
Jose Selesan
02af5e3c11 feat: add attendee detail and stats features
- Implemented API endpoints to fetch attendee details and statistics.
- Created new route for fetching attendee by ID and their attendance stats.
- Added schemas for attendee statistics.
- Developed frontend components to display attendee details and attendance statistics.
- Integrated attendee detail provider to manage state and data fetching.
- Added tests for attendee retrieval and statistics calculation.
2026-09-28 16:16:21 -03:00
Jose Selesan
e736ed3547 Updated spanish routes to english 2026-09-25 10:10:28 -03:00
Jose Selesan
94c353f4f2 Added routes 2026-09-25 10:05:56 -03:00
Jose Selesan
336e1af523 Migrate to file based routing on frontendf 2026-09-25 10:05:47 -03:00
Jose Selesan
efde1aaf33 feat: implement groups risk overview feature with analytics and routes 2026-09-24 20:45:11 -03:00
Jose Selesan
2e184845e1 feat: add absence notification and analytics features
- Implemented AbsenceNotifyView for notifying absence with session details.
- Created AnalyticsView for displaying group analytics and managing students at risk.
- Added ClassAttendanceView for marking attendance in classes.
- Defined new schemas for analytics and attendance in shared package.
2026-09-23 16:24:45 -03:00
Jose Selesan
f1e0fc5aae feat(home): implement home summary feature with routes and use case
- Added home routes and corresponding route handler for fetching home summary.
- Created GetHomeSummary use case to aggregate user data including groups, attendees, and upcoming payments.
- Introduced HomeSummaryDto and related schemas for data validation.
- Implemented nextClassOccurrence function to determine the next class based on user timezone.
- Added tests for home summary functionality and next class occurrence logic.
2026-09-23 10:35:24 -03:00
Jose Selesan
c1b99804b3 Removed "Back" link in create group page 2026-09-23 09:28:29 -03:00
Jose Selesan
5572ef0869 feat(groups): implement group creation functionality and refactor related components
- Removed organization dependency from group creation logic.
- Introduced new route and use-case for creating groups.
- Refactored form handling for group creation into a reusable GroupForm component.
- Updated API calls to support new group creation endpoint.
- Adjusted tests to reflect changes in group creation logic and validation.
- Removed obsolete organizations route and related components.
- Updated breadcrumb navigation and routing for group management.
2026-09-23 09:19:52 -03:00
Jose Selesan
fc30927b8b feat: manage waitlist and remove group members
- Add group-waitlist module (list/promote/remove entries)
- Remove attendee with optional atomic promotion from waitlist
- Block removal when attendee has payments (attendee_has_payments)
- Waitlist detail modal matching members UI; optimistic add-to-waitlist
- Responsive tweaks for the members/waitlist tabs
2026-09-22 17:04:41 -03:00
Jose Selesan
785d54df7e feat: add group waitlist functionality
- Introduced GroupWaitlistEntry model in Prisma schema to manage waitlisted users for groups.
- Implemented API route to add users to the group waitlist with validation.
- Enhanced attendee creation logic to handle group capacity and waitlisting scenarios.
- Added new problem builders for handling waitlist-related errors.
- Updated frontend to support waitlist interactions, including modals for capacity warnings.
- Created tests for waitlist functionality, ensuring proper handling of full groups and existing waitlist entries.
2026-09-22 16:28:54 -03:00
Jose Selesan
533bae021b feat: Share whatsapp message 2026-09-22 15:25:26 -03:00
Jose Selesan
d76c7e6200 Improved Attendee list look and feel 2026-09-18 10:49:41 -03:00
Jose Selesan
d7ebb5b234 Initial attendee management 2026-09-18 09:42:37 -03:00
Jose Selesan
fa30fe2cff Renamed Student to Attendee 2026-09-17 18:58:00 -03:00
Jose Selesan
e8bca3a5ae feat: implement AppLayoutGuard for onboarding redirection 2026-09-17 18:41:28 -03:00
Jose Selesan
6100c998be feat: add brand assets, design tokens and light/dark theme
- Use real logo/isotype SVGs across app and emails
- Token-based color system aligned with landing (brand scale + semantic tokens)
- ThemeProvider (light/dark/system) with header toggle and settings card
- Embed logo in transactional emails; centralize email colors
2026-09-16 17:35:24 -03:00
Jose Selesan
a92e9e77c3 feat: basic onboarding flow\ 2026-09-15 15:41:45 -03:00
Jose Selesan
4b1f356fab refactor: migrate backend to pnpm monorepo with Hono module architecture
- Replace Bun with pnpm 9 + Turborepo + tsx; apps/api renamed to apps/backend
- Split backend into http/, modules/, lib/ layers mirroring tai-specguard
- Add use-case + Result pattern, Problem Details RFC 7807, basePath /api/v1
- Mount Better Auth at /api/v1/auth, keep session-auth whitelist
- Split Prisma schema into prisma/models/*, generate into generated/
- Rework packages/shared into lib/ + schemas/ with pagination DTOs
- Implement health, groups, students, payments, waitlist modules
- Add vitest suite with prisma mocks (21 tests), biome lint
- Point web client to /api/v1/auth and /api/v1/groups/from-organization
2026-09-14 09:18:40 -03:00
Jose Selesan
b41fffa40a feat: basic initial UI layout for mobile and desktop 2026-09-07 09:33:07 -03:00
Jose Selesan
ed8d280995 feat: initialize monorepo structure with Bun and Turborepo
- Add package.json for the root with workspace configuration and scripts
- Create @gruperly/config package with TypeScript configuration
- Establish shared package @gruperly/shared with Zod schemas for validation
- Implement group, student, and payment schemas using Zod
- Set up TypeScript configuration for shared package
- Document stack architecture and technical specifications in stack.md
- Configure Turborepo with build, dev, lint, and typecheck tasks
2026-08-28 17:03:53 -03:00