How regianleopoldo/lembrai-frontend works
Agenda Fácil is a Next.js frontend for personal scheduling. The main user flow is Google sign-in, then browsing the dashboard and commitment lists, creating or editing commitments, and viewing their status; the UI exchanges data with a REST backend. Separate areas cover calendar, categories, disciplines, goals, reports, settings, and notifications. The graph reflects documented capabilities and source-index references; several feature pages are only partially sampled, so their backend calls and detailed interactions are not inferred.
Main entry points: page.tsx Dashboard · CardCompromisso.tsx Commitment actions · SinoNotificacoes.tsx Notification bell · LoginGoogle.tsx Google login
Components 26
Access and navigation
- Google login
src/components/LoginGoogle.tsx - Entry routes
src/app/page.tsx - Access guard
src/components/AuthGuard.tsx - App navigation
src/components/Sidebar.tsx - App header
src/components/Header.tsx
Commitment workflow
- Dashboard
src/app/inicio/page.tsx - Dashboard indicators
src/components/Dashboard.tsx - Commitment list
src/app/compromissos/CompromissosClient.tsx - Commitment actions
src/components/CardCompromisso.tsx - Create and edit
src/components/FormCompromisso.tsx - Commitment details
src/app/compromisso/[id]/page.tsx - Status formatting
src/utils/statusVisual.ts - Date formatting
src/utils/formatarData.ts
Planning and insights
- Calendar
src/app/calendario/CalendarioClient.tsx - Categories
src/app/categorias/CategoriasClient.tsx - Disciplines
src/app/disciplinas/DisciplinasClient.tsx - Goals
src/app/metas/MetasClient.tsx - Reports
src/app/relatorios/RelatoriosClient.tsx - Settings
src/app/configuracoes/ConfiguracoesClient.tsx
Notifications and API
- Notification bell
src/components/notificacoes/SinoNotificacoes.tsx - Notification state
src/hooks/useNotificacoes.ts - Notification item
src/components/notificacoes/ItemNotificacao.tsx - API client
src/lib/api.ts - REST backend
Other components
- User
- Google OAuth
Connections 27
- User → Entry routes: opens app
README.md - Entry routes → Google login: presents login
src/app/page.tsx - Google login → Google OAuth: authenticates with
README.md - User → Dashboard: uses
README.md - Dashboard → Dashboard indicators: renders
src/app/inicio/page.tsx - Dashboard → Commitment actions: renders
src/app/inicio/page.tsx - Dashboard → REST backend: loads commitments
src/app/inicio/page.tsx - Commitment list → REST backend: loads commitments
src/app/compromissos/CompromissosClient.tsx - Commitment actions → Status formatting: formats status
src/components/CardCompromisso.tsx - Commitment actions → Date formatting: formats dates
src/components/CardCompromisso.tsx - Commitment actions → REST backend: updates commitment
- Create and edit → REST backend: saves commitment
- Commitment details → Status formatting: formats status
src/app/compromisso/[id]/page.tsx - User → Create and edit: creates or edits
README.md - User → Commitment details: views details
README.md - Calendar → REST backend: loads commitments
- Categories → REST backend: manages categories
- Disciplines → REST backend: manages disciplines
- Goals → API client: requests goals
src/app/metas/MetasClient.tsx - API client → REST backend: sends API requests
README.md - Reports → REST backend: loads report data
- Settings → Google login: uses login UI
src/app/configuracoes/ConfiguracoesClient.tsx - User → App navigation: navigates
README.md - App header → Notification bell: renders
src/components/Header.tsx - Notification bell → Notification state: uses state hook
src/components/notificacoes/SinoNotificacoes.tsx - Notification bell → Notification item: renders items
src/components/notificacoes/SinoNotificacoes.tsx - Notification state → REST backend: fetches and updates
src/hooks/useNotificacoes.ts