Commit Graph

55 Commits

Author SHA1 Message Date
Jose Selesan
8c5caecdda feat: add country selection during onboarding and implement payment management features
- Introduced CountryStep component for selecting the country during onboarding, affecting payment currency.
- Updated FirstGroupStep to include country information.
- Enhanced PaymentsProvider to manage payment states and renewals.
- Created PaymentRow component for displaying individual payment details.
- Implemented PaymentsView for listing and filtering payments by group and status.
- Added API endpoints for fetching and creating payments, including batch processing.
- Defined payment schemas for validation and data handling.
- Updated GroupHeader and GroupDetailView to include charging functionality for group members.
2026-10-08 11:42:13 -03:00
Jose Selesan
21a4c69f38 feat(mp): add Mercado Pago reauthorization notice and status card components
- Implemented MpReauthNotice component to notify users when reauthorization is needed.
- Created MpStatusCard component to display the current status of the Mercado Pago account.
- Added utility functions and constants for handling Mercado Pago status and messages.
- Introduced hooks for managing the connection and disconnection of Mercado Pago accounts.
- Developed a disconnect confirmation modal for user actions.
- Added tests for the new functionality and utility functions.
- Defined schemas for Mercado Pago account status and callback reasons in shared package.
2026-10-07 12:00:38 -03:00
Jose Selesan
59a4d18ce6 feat: enhance MembersWaitlistSection and PendingView for improved layout and sticky controls 2026-10-02 09:42:11 -03:00
Jose Selesan
faf949fc9b feat(attendee-detail): enhance attendee detail view with payment and notes sections
- Added payment presentation logic to display payment status and due dates.
- Introduced AttendeeNotesSection and AttendeePaymentsSection components for managing notes and payments.
- Implemented forms for editing contact information and notes with validation.
- Updated API to support attendee updates and added corresponding tests.
- Improved attendance summary logic to reflect all visible sessions.
- Enhanced UI with loading states and error handling for better user experience.
2026-10-01 18:41:55 -03:00
Jose Selesan
6d120f4b1f feat: rename camelCase columns to snake_case in database models for consistency 2026-10-01 17:09:12 -03:00
Jose Selesan
69275c37b4 chore: update comments and documentation for clarity and consistency across various files
- Translated comments from Spanish to English in vite.config.ts, docker-compose.yml, attendance-risk.ts, analytics.ts, attendance.ts, attendees.ts, enums.ts, groups.ts, and onboarding.ts.
- Improved descriptions for better understanding of code functionality and purpose.
- Ensured uniformity in terminology and phrasing throughout the codebase.
2026-10-01 16:06:54 -03:00
Jose Selesan
01b35691df feat: improve UI layout and accessibility for group components 2026-10-01 14:25:43 -03:00
Jose Selesan
ef38f98747 feat: enhance UI spacing and layout for attendee detail sections 2026-10-01 12:35:57 -03:00
Jose Selesan
ea722a42f1 feat: enhance group management features with improved attendance tracking and UI components 2026-10-01 12:12:14 -03:00
Jose Selesan
416c6f12e1 feat: enhance AttendanceCapacityIndicator and GroupCard for improved UI and accessibility 2026-10-01 10:22:41 -03:00
Jose Selesan
b5a00b309d feat: add attendance risk management features
- Export attendance risk related schemas and types from shared package.
- Introduce new schemas for attendance risk levels and urgent member summaries.
- Implement attendance risk calculation logic in the shared library.
- Create tests for attendance risk calculations and group attendance summaries.
- Add a new component for visualizing attendance capacity indicators in the web app.
2026-10-01 10:01:38 -03:00
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
54f1c7ab34 feat: implement entrypoint script for backend to handle migrations and server startup 2026-09-28 19:41:50 -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
35ab3f0c06 Fix signout 2026-09-16 16:17:34 -03:00
Jose Selesan
a92e9e77c3 feat: basic onboarding flow\ 2026-09-15 15:41:45 -03:00
Jose Selesan
6246bf2341 refactor: migrate monorepo from pnpm to Bun runtime and workspaces
- root: bun workspaces via package.json, packageManager bun@1.4.0, scripts use bun --filter
- backend: Bun.serve, bun test (vitest removed), bun --watch dev script, tsconfig types bun
- tests: migrate 6 test files from vitest to bun:test (mock.module)
- validate: replace @hono/zod-validator with hono validator + zod safeParse (fixes TS2589)
- lockfile: bunfig.toml saveTextLockfile, regenerated bun.lock (text) for turbo
- docs: AGENTS.md, README.md, stack.md updated to Bun stack
2026-09-14 10:58:56 -03:00