How mikchell/pulseee works
Pulseee is a Rails employee-pulse survey application. Its user-facing flow covers Google or development login, assigned survey responses, and administrative score and response-rate views; administrators also have survey creation, unanswered-user notifications, and CSV export capabilities. The graph includes the central models and background-work areas named in the source tree, but their internal call paths are not shown in the excerpts. Dashed edges mark documented product capabilities whose implementation wiring was not sampled.
Main entry points: schema.rb Application database · team_weekly_scores_controller.rb Team score dashboard · survey_responses_controller.rb Survey response · routes.rb HTTP routes
Components 29
Access and responses
- Session authentication
app/controllers/sessions_controller.rb - Home and login
app/controllers/home_controller.rb - Survey response
app/controllers/survey_responses_controller.rb - Score choice UI
app/javascript/controllers/score_choice_controller.js
Survey operations
- Survey operations
app/controllers/admin/survey_operations_controller.rb - Weekly survey creation
app/services/surveys/create_current_week_survey.rb - Survey creation job
app/jobs/survey_creation_job.rb - Unanswered users query
app/services/surveys/unanswered_users_query.rb - Unanswered notification job
app/jobs/survey_unanswered_notification_job.rb - Slack notification
app/services/slack/survey_unanswered_notifier.rb - Weekly aggregation job
app/jobs/survey_weekly_aggregation_job.rb
Analytics and export
- Survey results export route
app/controllers/admin/survey_results_controller.rb - CSV exporter
app/services/survey_result_csv_exporter.rb - Team score dashboard
app/controllers/admin/team_weekly_scores_controller.rb - Weekly response rates
app/services/surveys/weekly_response_rates_query.rb
Application data and runtime
- Survey assignments
app/models/survey_assignment.rb - Survey and questions
app/models/survey.rb - Survey answers
app/models/score_answer.rb - Free-text answers
app/models/free_text_answer.rb - Groups and snapshots
app/models/answer_group_snapshot.rb - Users and roles
app/models/user.rb - Application database
db/schema.rb - HTTP routes
config/routes.rb - Rails application config
config/application.rb - Boot config
config/boot.rb - Environment initialization
config/environment.rb
Other components
- Employee
- Administrator
- Google OAuth
Connections 38
- Employee → Session authentication: signs in
- Google OAuth → Session authentication: returns callback
- Administrator → Survey operations: manages surveys
- Administrator → Survey results export route: requests CSV
- Administrator → Team score dashboard: views scores
- Employee → Survey response: submits response
- Session authentication → Users and roles: looks up user
app/controllers/sessions_controller.rb - Session authentication → Application database: stores session state
- Survey response → Survey assignments: handles assignment
- Survey response → Survey answers: records answers
- Survey response → Survey and questions: serves survey
- Score choice UI → Survey response: supports selection
- Survey operations → Weekly survey creation: creates survey
- Survey creation job → Weekly survey creation: runs creation
- Survey operations → Unanswered users query: finds pending users
- Unanswered notification job → Unanswered users query: queries pending users
- Unanswered notification job → Slack notification: sends notification
- Weekly aggregation job → Application database: aggregates data
- Survey results export route → CSV exporter: exports results
- Team score dashboard → Weekly response rates: queries rates
app/controllers/admin/team_weekly_scores_controller.rb - Team score dashboard → Survey and questions: selects completed surveys
app/controllers/admin/team_weekly_scores_controller.rb - Team score dashboard → Survey answers: reads scores
app/controllers/admin/team_weekly_scores_controller.rb - Team score dashboard → Groups and snapshots: groups by snapshot
app/controllers/admin/team_weekly_scores_controller.rb - Weekly response rates → Survey and questions: loads active surveys
app/services/surveys/weekly_response_rates_query.rb - Weekly response rates → Survey assignments: counts submissions
app/services/surveys/weekly_response_rates_query.rb - Survey assignments → Application database: persists assignments
- Survey and questions → Application database: persists surveys
- Survey answers → Application database: persists answers
- Free-text answers → Application database: persists text answers
- Groups and snapshots → Application database: persists group snapshots
- Users and roles → Application database: persists users
- HTTP routes → Session authentication: routes callbacks
config/routes.rb - HTTP routes → Survey response: routes responses
config/routes.rb - HTTP routes → Survey operations: routes operations
config/routes.rb - HTTP routes → Survey results export route: routes results
config/routes.rb - HTTP routes → Team score dashboard: routes dashboard
config/routes.rb - Environment initialization → Rails application config: initializes application
config/environment.rb - Rails application config → Boot config: loads boot
config/application.rb