How arthur-rmota/comunica works
ComuniCA is an offline-first augmentative and alternative communication web app. A user navigates to communication categories, cards, quick phrases, or emergency phrases; selecting a communication item can produce spoken output. Caregivers can personalize content and routines, with PIN protection on management features. The graph combines the documented capabilities with relationships visible in the excerpts and SOURCE INDEX; unsampled page and service internals are represented at their exact paths, but their unverified calls are not inferred.
Main entry points: App.tsx Application routes · db.ts IndexedDB database · ManageRoutineActivitiesPage.tsx Routine activities · PinAccessPage.tsx PIN access screen
Components 26
Communication experience
- Application routes
src/App.tsx - Home and categories
src/pages/home/HomePage.tsx - Communication cards
src/pages/categories/CategoryCardsPage.tsx - Card presentation
src/components/common/CardItem.tsx - Quick phrases
src/pages/phrases/QuickPhrasesPage.tsx - Phrase favorites
src/services/quickPhraseFavoriteService.ts - Emergency phrases
src/pages/emergency/EmergencyPage.tsx - Speech playback
src/utils/speech.ts
Personalization and safety
- Category and card management
src/pages/categories/ManageCategoriesPage.tsx - Phrase management
src/pages/phrases/ManageQuickPhrasesPage.tsx - Emergency phrase management
src/pages/emergency/ManageEmergencyPhrasesPage.tsx - Profile and PIN
src/contexts/ProfileContext.tsx - PIN access screen
src/components/profile/PinAccessPage.tsx - PIN verification form
src/components/profile/PinVerificationForm.tsx
Routines and agenda
- Routine sections
src/pages/routine/ManageRoutinePage.tsx - Routine activities
src/pages/routine/ManageRoutineActivitiesPage.tsx - Routine operations
src/services/routineService.ts - Agenda and routine use
src/pages/routine/AgendaPage.tsx
Local data and foundations
- Initial data and migration
src/database/seed.ts - IndexedDB database
src/database/db.ts - Card data service
src/services/cardService.ts - Category data service
src/services/categoryService.ts - Quick phrase data service
src/services/quickPhraseService.ts - Emergency phrase data service
src/services/emergencyPhraseService.ts
Other components
- Communicator or caregiver
- Web Speech API
Connections 36
- Communicator or caregiver → Application routes: opens app
README.md - Application routes → Home and categories: routes to
src/App.tsx - Application routes → Communication cards: routes to
src/App.tsx - Application routes → Quick phrases: routes to
src/App.tsx - Application routes → Emergency phrases: routes to
src/App.tsx - Application routes → Category and card management: routes to
src/App.tsx - Application routes → Phrase management: routes to
src/App.tsx - Application routes → Emergency phrase management: routes to
src/App.tsx - Application routes → Routine sections: routes to
src/App.tsx - Application routes → Routine activities: routes to
src/App.tsx - Application routes → Agenda and routine use: routes to
src/App.tsx - Application routes → Profile and PIN: provides context
src/App.tsx - Communication cards → Card presentation: presents cards
- Quick phrases → Phrase favorites: manages favorites
- Communicator or caregiver → Speech playback: requests speech
README.md - Speech playback → Web Speech API: uses
README.md - Category and card management → Card data service: calls
- Category and card management → Category data service: calls
src/pages/categories/ManageCategoriesPage.tsx - Phrase management → Quick phrase data service: calls
src/pages/phrases/ManageQuickPhrasesPage.tsx - Emergency phrase management → Emergency phrase data service: calls
src/pages/emergency/ManageEmergencyPhrasesPage.tsx - Routine sections → Routine operations: calls
src/pages/routine/ManageRoutinePage.tsx - Routine activities → Routine operations: calls
src/pages/routine/ManageRoutineActivitiesPage.tsx - Routine activities → Card data service: loads cards
src/pages/routine/ManageRoutineActivitiesPage.tsx - Routine activities → Quick phrase data service: loads phrases
src/pages/routine/ManageRoutineActivitiesPage.tsx - Routine sections → PIN access screen: requires PIN
src/pages/routine/ManageRoutinePage.tsx - Routine activities → PIN access screen: requires PIN
src/pages/routine/ManageRoutineActivitiesPage.tsx - PIN access screen → Profile and PIN: reads PIN state
src/components/profile/PinAccessPage.tsx - PIN access screen → PIN verification form: renders
src/components/profile/PinAccessPage.tsx - Profile and PIN → Initial data and migration: uses profile hook
- Initial data and migration → IndexedDB database: seeds and migrates
src/database/seed.ts - Card data service → IndexedDB database: reads and writes
src/services/cardService.ts - Category data service → IndexedDB database: reads and writes
src/services/categoryService.ts - Quick phrase data service → IndexedDB database: reads and writes
src/services/quickPhraseService.ts - Emergency phrase data service → IndexedDB database: reads and writes
src/services/emergencyPhraseService.ts - Routine operations → IndexedDB database: reads and writes
src/services/routineService.ts - Phrase favorites → IndexedDB database: reads and writes
src/services/quickPhraseFavoriteService.ts