Repository navigation
feat(dsr): add Content React parity (DSYS-1043) - #1436
Open
cursor[bot] wants to merge 4 commits into
Open
cursor[bot] wants to merge 4 commits into
cursor[bot] wants to merge 4 commits into
Conversation
Add design-system-react Content matching the shared ContentVariant API and React Native consumer props, implemented with a flatter Box + Text / SensitiveText layout (no BoxRow/BoxColumn/TextOrChildren). Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Contributor
📖 Storybook LinksCompare the preview for this pull request with the latest Storybooks from the 🔀 Pull Request Preview
🌳 Main Branch (Latest)
|
…lease Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Contributor
📖 Storybook LinksCompare the preview for this pull request with the latest Storybooks from the 🔀 Pull Request Preview
🌳 Main Branch (Latest)
|
This was referenced Aug 8, 2026
georgewrmarshall
marked this pull request as ready for review
August 11, 2026 22:27
georgewrmarshall
enabled auto-merge (squash)
August 11, 2026 22:27
georgewrmarshall
previously approved these changes
Aug 11, 2026
Contributor
📖 Storybook LinksCompare the preview for this pull request with the latest Storybooks from the 🔀 Pull Request Preview
🌳 Main Branch (Latest)
|
georgewrmarshall
disabled auto-merge
August 11, 2026 22:35
Contributor
Author
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 4 total unresolved issues (including 3 from previous reviews).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e5df756. Configure here.
- Omit w-full on value/subvalue TextRows so the right column end-aligns - Remove padded/background story decorator - Import BoxProps/TextProps from sibling barrels - Align README quick-start with Default story args Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Contributor
📖 Storybook LinksCompare the preview for this pull request with the latest Storybooks from the 🔀 Pull Request Preview
🌳 Main Branch (Latest)
|
This branch has not been deployed
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 React (
@metamask/design-system-react) Content parity for epic DSYS-302 / DSYS-1043, matching the existing React Native + sharedContentVariantconsumer API.Implementation follows the flatter parity strategy: direct
Box+ leafText/SensitiveText(no ReactBoxRow/BoxColumn/TextOrChildren). Shared types already existed; this PR only adds the React platform layer, stories, tests, and docs.Audit comparison (Phase 1)
Contentincomponent-library. Nearest analogues: legacyui/components/ui/list-item(title,subtitle,icon,rightContent) and product rows likeTokenListItem(title,primary,secondary,privacyMode)Contentwithvariant,avatar,title/description/value/subvalue+ inline accessoriesContentname in DSR; Extension list-item variants are differently named consumerssubtitle,rightContent,icon,midContentdescription,value/subvalue,avatar,*StartAccessory/*EndAccessoryContentconsumers)list-item--single-content-row); no shared variant enumContentVariant(one-line/two-lines/multi-line)ContentVariantSensitiveText/privacyModein product rowsdescriptionProps/valueProps/subvaluePropssupportisHidden/lengthviaSensitiveTextSensitiveText; title usesTextonClickon interactive list shellsclassNametwClassNameclassNameon React)Answers
variant, slots, accessories. Platform:className/style, ReactBox/Text/SensitiveTextprop bags. DOMtitleomitted fromBoxPropsso Contenttitle?: ReactNodewins.subtitle→ MMDSdescription; nodisabled/isDisabledon Content.Content. Extension counterparts are differently named list-item variants, not a drop-in rename.Known gaps
ListItem(DSYS-713) still outstanding; Content docs note ListItem as the padded shell once available on React.BoxRow/BoxColumn/TextOrChildrenwere introduced (intentional).Related issues
Fixes: DSYS-1043 (parent epic DSYS-302)
Manual testing steps
yarn storybook(port 6006)isHidden)Screenshots/Recordings
Before
N/A — React
Contentdid not exist.After
content.after.mov
content.stories.after.mov
Storybook Default (shell):
Content Default story in Storybook
Default iframe (light + dark):
Content Default light and dark
Variant story (OneLine / TwoLines / MultiLine):
Content Variant stories
Subvalue story:
Content Subvalue story
Avatar story:
Content Avatar story
Value Props (
isHidden):Content ValueProps hidden masking
Pre-merge author checklist
Pre-merge reviewer checklist
To show artifacts inline, enable in settings.
Note
Low Risk
New presentational design-system component with tests and docs; no auth, data, or consumer-breaking changes.
Overview
Adds the React
Contentcomponent to@metamask/design-system-react, bringing list-row layout parity with the existing React Native API and sharedContentVariant.Contentis a layout-only inner row: optionalavatar, lefttitle/description, rightvalue/subvalue, plus start/end accessories. String slots for description/value/subvalue useSensitiveText(withisHidden/length); title usesText. Variants control which secondary slots render and vertical alignment (OneLine/TwoLines/MultiLine).Includes Storybook stories, unit tests, docs, and package exports. Shared types already existed; this PR only adds the React platform layer.
Reviewed by Cursor Bugbot for commit 3e7bf76. Bugbot is set up for automated code reviews on this repo. Configure here.