How hueppi92/poll-app works
PollApp is an Angular survey app whose main workflow is browsing surveys, opening one to answer its questions, submitting votes, and viewing updated result percentages. A separate creation flow validates survey details and question/answer choices, saves them, then navigates to the new survey. The graph preserves the documented home, filtering, and ending-soon capabilities. Some UI components are unsampled; their inclusion and links reflect the README and project structure, while service and realtime links follow sampled source.
Main entry points: survey-service.ts Survey service · app.routes.ts Application routes · home.ts Home screen · single-survey-view.ts Survey view
Components 19
Navigation and shell
- Application routes
src/app/app.routes.ts - App shell
src/app/app.ts - Header
src/app/components/header/header.ts
Survey discovery
- Home screen
src/app/components/home/home.ts - Home hero
src/app/components/hero/hero.ts - Survey list
src/app/components/lists/survey-list/survey-list.ts - Ending-soon list
src/app/components/lists/ending-soon-list/ending-soon-list.ts - Survey snippet
src/app/components/survey-snippet/survey-snippet.ts
Create and answer
- Survey creator
src/app/components/new-survey/new-survey.ts - Survey view
src/app/components/single-survey-view/single-survey-view.ts - Question interaction
src/app/components/question/question.ts - Answer choice
src/app/components/answer/answer.ts - Result display
src/app/components/result-snippet/result-snippet.ts
Application services
- Survey service
src/app/components/service/survey-service.ts - Result service
src/app/components/service/result-service.ts - Database client
src/app/components/service/db-service.ts - Survey data types
src/app/components/interfaces/survey.ts
Persistence and realtime
- Supabase
Other components
- Survey user
Connections 25
- Survey user → Application routes: navigates
- Application routes → Home screen: routes to
- Application routes → Survey creator: routes to
- Application routes → Survey view: routes to
- App shell → Application routes: hosts outlet
- App shell → Header: renders
- Home screen → Home hero: renders
- Home screen → Survey list: renders
- Home screen → Ending-soon list: renders
- Survey list → Survey service: loads surveys
- Ending-soon list → Survey service: loads soon-ending
- Survey list → Survey snippet: displays surveys
- Survey creator → Survey service: creates records
- Survey view → Survey service: loads and submits
- Survey view → Question interaction: renders questions
- Survey view → Result display: renders results
- Question interaction → Survey service: loads answers
- Question interaction → Answer choice: renders choices
- Result display → Survey service: loads result data
- Result display → Database client: subscribes to updates
- Survey service → Database client: uses client
- Database client → Supabase: connects to
- Result service → Database client: uses client
- Survey service → Survey data types: uses types
- Result display → Survey data types: uses types