chore: Modify Cursor guidelines to include Tag specs#28923
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
✅ E2E Fixture Validation — Schema is up to date |
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** ### What is the goal of this PR? - Creates a tag component that can be used in `ListItems`, `Sections`, and `KeyValues` ### What are the key updates? - Adds a React Native Tag component with the variants, start/end icons props and conditional horizontal padding when icons are shown/not shown - Adds Code Connect (`Tag.figma.tsx`), stories, tests, and README/Figma link docs ## **Related issues** JIRA: - https://consensyssoftware.atlassian.net/browse/DSYS-568 This is a dependency for these migration PRs: - [chore: Add deprecation messages for Tag and StockBadge components](MetaMask/metamask-mobile#28918) - [chore: Modify Cursor guidelines to include Tag specs](MetaMask/metamask-mobile#28923) ## **Manual testing steps** 1. Run `yarn install && yarn build && yarn storybook:ios` to see changes ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** Component did not exist before this. ### **After** https://github.com/user-attachments/assets/6aa3f7c3-7e2f-4a13-a4a1-880f24553c74 ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Primarily additive design-system UI work (new component + shared types) with minimal impact outside new exports; risk is limited to potential styling/prop API integration issues for consumers. > > **Overview** > Adds a new React Native `Tag` component with shared `TagSeverity` semantics, optional start/end icons or custom accessories, and automatic padding adjustments based on icon presence. > > Introduces shared `TagSeverity`/`TagPropsShared` in `design-system-shared`, wires exports in both shared and RN component indexes, and includes Storybook stories, Code Connect (`Tag.figma.tsx`), unit tests, and README documentation. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7d5d89b. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Amanda <amanda@Amandas-MacBook-Pro.local>
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** ### What is the goal of this PR? - Creates a tag component that can be used in `ListItems`, `Sections`, and `KeyValues` ### What are the key updates? - Adds a React Native Tag component with the variants, start/end icons props and conditional horizontal padding when icons are shown/not shown - Adds Code Connect (`Tag.figma.tsx`), stories, tests, and README/Figma link docs ## **Related issues** JIRA: - https://consensyssoftware.atlassian.net/browse/DSYS-568 This is a dependency for these migration PRs: - [chore: Add deprecation messages for Tag and StockBadge components](MetaMask/metamask-mobile#28918) - [chore: Modify Cursor guidelines to include Tag specs](MetaMask/metamask-mobile#28923) ## **Manual testing steps** 1. Run `yarn install && yarn build && yarn storybook:ios` to see changes ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** Component did not exist before this. ### **After** https://github.com/user-attachments/assets/6aa3f7c3-7e2f-4a13-a4a1-880f24553c74 ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Primarily additive design-system UI work (new component + shared types) with minimal impact outside new exports; risk is limited to potential styling/prop API integration issues for consumers. > > **Overview** > Adds a new React Native `Tag` component with shared `TagSeverity` semantics, optional start/end icons or custom accessories, and automatic padding adjustments based on icon presence. > > Introduces shared `TagSeverity`/`TagPropsShared` in `design-system-shared`, wires exports in both shared and RN component indexes, and includes Storybook stories, Code Connect (`Tag.figma.tsx`), unit tests, and README documentation. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7d5d89b. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Amanda <amanda@Amandas-MacBook-Pro.local>
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** ### What is the goal of this PR? - Creates a tag component that can be used in `ListItems`, `Sections`, and `KeyValues` ### What are the key updates? - Adds a React Native Tag component with the variants, start/end icons props and conditional horizontal padding when icons are shown/not shown - Adds Code Connect (`Tag.figma.tsx`), stories, tests, and README/Figma link docs ## **Related issues** JIRA: - https://consensyssoftware.atlassian.net/browse/DSYS-568 This is a dependency for these migration PRs: - [chore: Add deprecation messages for Tag and StockBadge components](MetaMask/metamask-mobile#28918) - [chore: Modify Cursor guidelines to include Tag specs](MetaMask/metamask-mobile#28923) ## **Manual testing steps** 1. Run `yarn install && yarn build && yarn storybook:ios` to see changes ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** Component did not exist before this. ### **After** https://github.com/user-attachments/assets/6aa3f7c3-7e2f-4a13-a4a1-880f24553c74 ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Primarily additive design-system UI work (new component + shared types) with minimal impact outside new exports; risk is limited to potential styling/prop API integration issues for consumers. > > **Overview** > Adds a new React Native `Tag` component with shared `TagSeverity` semantics, optional start/end icons or custom accessories, and automatic padding adjustments based on icon presence. > > Introduces shared `TagSeverity`/`TagPropsShared` in `design-system-shared`, wires exports in both shared and RN component indexes, and includes Storybook stories, Code Connect (`Tag.figma.tsx`), unit tests, and README documentation. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7d5d89b. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Amanda <amanda@Amandas-MacBook-Pro.local>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
This file has zero impact on application code, test infrastructure, or runtime behavior. It only affects how the Cursor AI assistant provides coding suggestions to developers. No E2E tests or performance tests are warranted. Performance Test Selection: |
|



Description
This PR adds guidelines in the Cursor docs to use the DS Tag component.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
#28918
MetaMask/metamask-design-system#1053
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist