← Back to Pull requests

feat: riverpod migration #1843

Closed
unknown closed this pull request without merging on Oct 23, 2026 12:32 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 05:06 UTC
Author

This PR rewrites the whole app to make use of Riverpod 3 (with codegen) + Go Router along with cleaning up dead code and simplifying the flows. The layer map file will explain the various layers the app is structured against and should be strictly followed. A couple of bug fixes have also been done along with QOL improvements.

List of bug fixes/QOL improvements/removals done compared to v7:
Remote config and session restore fetch happens behind the splash with a 10s timeout
Crashlytics only runs in release builds. Uncaught async errors are logged as non-fatal and Remote Config failures are logged as non-fatal with a reason
Notifications start lazily on first use instead of before runApp, so fewer things can black-screen startup
A 401 on any authenticated call signs the user out everywhere
SQLite and any package related to it
Quick actions - will be readded later properly
Every screen error has a Retry button (ErrorRetry), including offline Code Radio, podcasts, news and auth
Learn offline support and localisation changes have been removed as they were never implemented nor used
.env keys renamed - DEVELOPMENTMODE -> DEVELOPMENT_MODE, SHOWALLSB -> SHOW_ALL_SB
News
Feed and detail now use separate GraphQL fragments (PostSummary vs Post). A feed page dropped from 742KB to 32.5KB (23x smaller requests)
The SQLite -> JSON migrator is dropped as 98% of our users are on v7.5.x and so majority of the users are using the JSON stores. The SQLite -> JSON migration update happened around 8-9 months ago in v7.1.0
Code Radio
The code radio stream no longer reconnects on every song change. This fixes v7's audible gap every 2–4 minutes and the song changes now only update the notification metadata
Resuming after a pause jumps back to the live stream. Before, it could play up to minutes of stale buffered audio.
Fixed v7 showing the next song's artist as the current one
The notification keeps updating after leaving the screen
Podcasts
Deleting an episode now removes the mp3. v7 deleted from the wrong directory. A one-time startup sweep cleans up files leaked by v7
Fixed switching episodes saving the new episode's resume position onto the old one
Multiple downloads can run at once, keyed by episode. Failures show a retry button
Learn
Challenge types that don't use the editor (quiz, Python project, lesson, English) now show the assignments that v7 never displayed
When the test runner fails or doesn't start, you see an error message and a retry button
Fixed v7 sending the daily notification twice
The curriculum e2e runner now deletes the copied curriculum.json (v7 bundled ~120MB) and reads its results from report data, because device stdout cuts off the end of the run

<details><summary>Path routes of the various views(expand to view)</summary>
<p>

├─/learn (Widget)
├─/learn/daily-challenges (Widget)
├─/learn/daily-challenges/:day (Widget)
├─/learn/scene-fullscreen (Widget)
├─/learn/:superBlock (Widget)
├─/learn/:superBlock/:module (Widget)
├─/learn/:superBlock/:block/:challengeId (Widget)
├─ (ShellRoute)
│ ├─/news/bookmarks (Widget)
│ ├─/news (Widget)
│ └─/news/search (Widget)
├─/news/image (Widget)
├─/news/tag/:tagSlug (Widget)
├─/news/author/:username (Widget)
├─/news/bookmarks/:id (Widget)
├─/news/:slug (Widget)
├─/code-radio (Widget)
├─ (ShellRoute)
│ ├─/podcasts (Widget)
│ └─/podcasts/downloads (Widget)
├─/podcasts/:podcastId (Widget)
├─/podcasts/:podcastId/:episodeId (Widget)
├─/login (Widget)
├─/profile (Widget)
├─/settings (Widget)
└─/settings/delete-account (Widget)

</p>
</details>

Diff: 462 lines (+346 / -116) across 5 files Reviewer: Sembauke Review duration: 43645m
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.69) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 462 lines diff across 5 files
0.69
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.367
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #1843"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 68.8% (HIGH) · Higher = larger blast radius
68.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 29.7% · Safe to merge
29.7%