enhance(onboard): simplify Overview, extract shared OnboardingCard, use theme tokens#1069
Open
plind-junior wants to merge 3 commits into
Open
enhance(onboard): simplify Overview, extract shared OnboardingCard, use theme tokens#1069plind-junior wants to merge 3 commits into
plind-junior wants to merge 3 commits into
Conversation
Contributor
Author
|
@xiao-xiao-mao double check |
Contributor
|
Holding off on merge — the structural refactor is great (extracting
Two reasons this needs fixing before merge:
Could you replace the hex literals with the semantic palette tokens? The structural extraction itself is solid — once the colors are reanchored to the theme, this is good to merge. |
Contributor
Author
|
Thanks for the review. Will push the update soon |
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.
Summary
Onboard page cleanup: reduces the Overview tab to a focused two-audience layout (miner / maintainer), extracts the OnboardingCard styling pattern into a shared component, and replaces local hex color constants with existing theme tokens.
Changes
Overview tab (
AboutContent.tsx)/onboard?tab=getting-started/repository-registrationShared
OnboardingCard(src/components/onboarding-card.tsx)surface.subtlebackground,border.mediumborderaccent={(theme) => ...}so callers can recolor without hardcoding hex.AboutContentto remove duplicated styling.Onboard page (
OnboardPage.tsx)Mui-selected→common.white).<Tabs>/<Tab>.Setup tab (
GettingStarted.tsx)const YELLOW = '#facc15'withSTATUS_COLORS.info(blue) from the theme.const GREEN = '#3fb950'withSTATUS_COLORS.merged.ArrowBackIconimport.Rewards source (
Scoring.tsx)const AMBER = '#facc15'with theme token reference.Why
STATUS_COLORS,theme.palette.*) rather than redeclaring hex constants inline.Test plan
/onboard— Overview tab shows two cards side-by-side (miner / maintainer)./onboard?tab=getting-startedand/repository-registrationrespectively.npm run type-checkpasses.Out of scope
OnboardingCardcomponent but does not yet refactorHomePage.tsxto use it. That refactor is left as a follow-up to keep this change focused on the onboard page.Screencast.from.2026-05-13.01-31-09.mp4