feat: add guided onboarding#37
Merged
Merged
Conversation
…sable component to use it on main page and while onboarding
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a guided onboarding experience and a contributor dashboard (heatmap + milestone badges), while also switching the session “competency mapping” flow over to a new server-side scheduling + voting pipeline backed by new tables/migrations.
Changes:
- Adds multi-step onboarding with a built-in practice mapping tutorial and “onboarded” tracking via localStorage.
- Introduces a contributor dashboard UI (stats, streaks, heatmap, milestone badges) plus client-side milestone toasts.
- Implements a new backend scheduling/voting system (new entities, repositories, services, controllers, and Flyway migrations) and updates the session client to use it.
Reviewed changes
Copilot reviewed 48 out of 50 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/SessionPage.tsx | Switches competency mapping to “next task + submit vote”, adds milestones/toasts, end-session overlay, and “all done” state. |
| src/pages/OnboardingPage.tsx | Replaces the old onboarding stub with a 5-step guided onboarding flow + practice session. |
| src/pages/HomePage.tsx | Routes “Start Contributing” to onboarding vs session based on localStorage; updates hero preview + adds network viz. |
| src/pages/DashboardPage.tsx | New dashboard page fetching contributor stats and rendering heatmap + milestone badges. |
| src/lib/milestones.ts | Defines milestone/badge metadata and helper for “newly earned” milestones. |
| src/lib/heatmap-helpers.ts | Adds helper to map activity counts to Tailwind color classes. |
| src/lib/api/session-helpers.ts | Adds scheduling-based “next relationship task” and “submit vote” helpers; removes relationship creation helper. |
| src/lib/api/scheduling.ts | New API client for scheduling “next task” and “vote” endpoints. |
| src/lib/api/contributor-stats.ts | New API client/types for contributor stats endpoint. |
| src/lib/api/competency-relationships.ts | Removes client-side “create relationship” API method (CRUD now limited to get/delete). |
| src/index.css | Adds explicit Geist font CSS variables. |
| src/components/ui/sonner.tsx | Adds themed Sonner toaster wrapper component. |
| src/components/ui/select.tsx | Adds Radix Select wrapper components. |
| src/components/ui/popover.tsx | Adds Popover wrapper component (Radix-based). |
| src/components/ui/dialog.tsx | Adds Dialog wrapper component (Radix-based). |
| src/components/ui/command.tsx | Adds cmdk-based Command components + Dialog integration. |
| src/components/session/SessionSummary.tsx | Adds end-of-session summary overlay (continue vs dashboard). |
| src/components/onboarding/OnboardingStep.tsx | Adds animated step transition wrapper for onboarding. |
| src/components/onboarding/OnboardingPractice.tsx | Adds onboarding practice tutorial with guided rounds and feedback. |
| src/components/navbar.tsx | Updates navbar controls (dashboard link, icon tweaks, class refactor). |
| src/components/dashboard/ContributionHeatmap.tsx | Adds scrollable contribution heatmap visualization. |
| src/components/competency-network/CompetencyNetworkViz.tsx | Adds lightweight SVG “competency network” preview viz for onboarding/home. |
| src/components/Layout.tsx | Adjusts layout min-height calculation. |
| src/App.tsx | Registers toaster and adds the new /dashboard route. |
| package.json | Adds dependencies for select/cmdk/sonner and a radix-ui dependency. |
| server/src/main/resources/db/migration/V8__seed_additional_competencies.sql | Seeds additional competencies/relationships/votes to exercise stats + streaks. |
| server/src/main/resources/db/migration/V7__add_competency_degree.sql | Adds degree column to competencies and backfills/indexes it. |
| server/src/main/resources/db/migration/V6__create_scheduling_tables.sql | Creates new scheduling tables for aggregated relationships + vote log. |
| server/src/main/resources/db/migration/V5__drop_old_relationships.sql | Drops the old relationships table/constraints (development reset). |
| server/src/main/resources/db/migration/V2__seed_sample_data.sql | Removes old relationship seed statements that no longer match schema. |
| server/src/main/java/de/tum/cit/memo/service/SchedulingService.java | Implements coverage/consensus scheduling pipeline + vote submission logic. |
| server/src/main/java/de/tum/cit/memo/service/ContributorStatsService.java | Computes total votes, streaks, heatmap daily counts, and badge IDs. |
| server/src/main/java/de/tum/cit/memo/service/CompetencyRelationshipService.java | Refactors relationship CRUD to align with new aggregated relationship model. |
| server/src/main/java/de/tum/cit/memo/repository/CompetencyRepository.java | Adds degree-based queries + increment/decrement helpers. |
| server/src/main/java/de/tum/cit/memo/repository/CompetencyRelationshipVoteRepository.java | Adds vote existence/count + daily aggregation query for stats. |
| server/src/main/java/de/tum/cit/memo/repository/CompetencyRelationshipRepository.java | Adds scheduling queries: high-entropy candidates, pool relationships, unvoted relationships. |
| server/src/main/java/de/tum/cit/memo/entity/CompetencyRelationshipVote.java | New entity for raw vote log. |
| server/src/main/java/de/tum/cit/memo/entity/CompetencyRelationship.java | Refactors relationship entity to aggregated vote counters + entropy + timestamps. |
| server/src/main/java/de/tum/cit/memo/entity/Competency.java | Adds degree field for scheduling. |
| server/src/main/java/de/tum/cit/memo/dto/VoteResponse.java | DTO for vote submission response. |
| server/src/main/java/de/tum/cit/memo/dto/VoteRequest.java | DTO for vote submission request (relationshipId or origin+destination). |
| server/src/main/java/de/tum/cit/memo/dto/VoteCounts.java | DTO for aggregated vote counts. |
| server/src/main/java/de/tum/cit/memo/dto/RelationshipTaskResponse.java | DTO for “next relationship” task response. |
| server/src/main/java/de/tum/cit/memo/dto/CreateCompetencyRelationshipRequest.java | Removes old create-relationship request DTO. |
| server/src/main/java/de/tum/cit/memo/dto/ContributorStatsResponse.java | DTO for contributor stats endpoint response. |
| server/src/main/java/de/tum/cit/memo/controller/SchedulingController.java | Adds /api/scheduling/next-relationship and /api/scheduling/vote endpoints. |
| server/src/main/java/de/tum/cit/memo/controller/ContributorStatsController.java | Adds /api/users/{userId}/stats endpoint. |
| server/src/main/java/de/tum/cit/memo/controller/CompetencyRelationshipController.java | Removes create endpoint; keeps CRUD with doc pointer to SchedulingController. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…into feature/onboarding
🔍 Code Quality Report📊 Code Statistics🚨 Potential Issues✅ No console statements found |
🔍 Code Quality Report📊 Code Statistics🚨 Potential Issues✅ No console statements found |
markstockhausen
requested review from
vtotalova
and removed request for
vtotalova
March 4, 2026 17:01
vtotalova
approved these changes
Mar 4, 2026
MaximilianAnzinger
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a full onboarding flow and user dashboard to the Memo platform. Users are now guided through a practice session when they first sign up, helping them understand the competency mapping task before starting real sessions.
Type of Change
Changes Made
Client:
OnboardingPage.tsx,OnboardingPractice.tsx,OnboardingStep.tsx) with a practice mapping session and profile setup stepOther:
Testing
Test Cases
Manual Testing
Screenshots/Videos
Before
Onboarding did not exist
After