feat(learn): add web-only indicator icon and direct browser launch fo… - #1824
Open
rohanesor wants to merge 1 commit into
Open
feat(learn): add web-only indicator icon and direct browser launch fo…#1824rohanesor wants to merge 1 commit into
rohanesor wants to merge 1 commit into
Conversation
rohanesor
force-pushed
the
feat/web-only-course-indicators
branch
from
August 6, 2026 04:00
97ab3f3 to
a20b05b
Compare
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
Adds a visual indicator (
open_in_newicon) to course cards on the Learn page for superblocks that require a web browser (Coding Interview Prep, Project Euler, Rosetta Code, The Odin Project, Foundational C# with Microsoft). Tapping these cards now routes the user directly to the course in the web browser instead of showing a snackbar message or opening incomplete in-app templates.Motivation & Context
Previously, web-only courses looked identical to mobile-native courses with an arrow (
>) icon. Users only discovered that a course required a web browser after tapping it, resulting in an inconsistent user experience.Changes Made
mobile-app/lib/ui/views/learn/utils/learn_globals.dart: AddedwebOnlySuperBlocksregistry listing dashed names of browser-required courses (following existinghasNoCert,hasDialogue, andchapterBasedSuperBlockspatterns).mobile-app/lib/ui/views/learn/landing/landing_viewmodel.dart: AddedopenInBrowser(String dashedName)to launch${AuthenticationService.baseURL}/learn/$dashedNameusingurl_launcher.mobile-app/lib/ui/views/learn/landing/landing_view.dart:Icons.open_in_newtrailing icon for web-only courses.Tooltipshowing"Not available use the web version"(context.t.not_available_web) on long press.isWebOnlyis true.Checklist
not_available_web).