Commit a3f3899
chore(runway): cherry-pick chore(rewards): rename Perps competition CTA to "Trade now" (RWDS-1335) cp-7.79.0 (#30745)
- chore(rewards): rename Perps competition CTA to "Trade now"
(RWDS-1335) cp-7.79.0 (#30740)
## **Description**
Replaces the **"Open Position"** copy on the Perps Trading Competition
opted-in CTA with **"Trade now"**, per
[RWDS-1335](https://consensyssoftware.atlassian.net/browse/RWDS-1335).
Scope is intentionally copy-only:
- `locales/languages/en.json` —
`rewards.perps_trading_campaign.open_position_cta` value.
-
`app/components/UI/Rewards/components/Campaigns/PerpsTradingCampaignCTA.tsx`
— comment updated to match.
-
`app/components/UI/Rewards/components/Campaigns/PerpsTradingCampaignCTA.test.tsx`
— mock value, test name, and rendered-text assertion.
No behavior, navigation, or analytics changes — the CTA still deep-links
to `link.metamask.io/perps?screen=market-list`.
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Fixes:
[RWDS-1335](https://consensyssoftware.atlassian.net/browse/RWDS-1335)
## **Manual testing steps**
```gherkin
Feature: Perps Trading Competition CTA copy
Scenario: Opted-in user sees the renamed CTA
Given I am opted in to the Perps Trading Competition campaign
And the campaign is active
When I open the Rewards campaigns view
Then the campaign CTA reads "Trade now"
And tapping it deep-links to the Perps market list
```
## **Screenshots/Recordings**
### **Before**
CTA: "Open Position"
### **After**
CTA: "Trade now"
## **Pre-merge author checklist**
- [x] I've followed MetaMask Contributor Docs and MetaMask Mobile Coding
Standards.
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [ ] I've documented my code using JSDoc format if applicable
- [ ] I've applied the right labels on the PR
[RWDS-1335]:
https://consensyssoftware.atlassian.net/browse/RWDS-1335?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[RWDS-1335]:
https://consensyssoftware.atlassian.net/browse/RWDS-1335?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Copy-only change to an existing i18n string and tests; navigation and
campaign logic are unchanged.
>
> **Overview**
> Renames the opted-in **Perps Trading Competition** primary CTA label
from **"Open Position"** to **"Trade now"** via
`rewards.perps_trading_campaign.open_position_cta` in English
(`en.json`). The component still uses the same i18n key and
`handleOpenPosition` still deep-links to
`link.metamask.io/perps?screen=market-list`; only the displayed string
and an inline comment change. Unit tests update the i18n mock, test
description, and on-screen text assertion to match.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
a5c865b. 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: Claude Sonnet 4.6 <noreply@anthropic.com>
[22e2192](22e2192)
[RWDS-1335]:
https://consensyssoftware.atlassian.net/browse/RWDS-1335?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[RWDS-1335]:
https://consensyssoftware.atlassian.net/browse/RWDS-1335?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[RWDS-1335]:
https://consensyssoftware.atlassian.net/browse/RWDS-1335?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Co-authored-by: VGR <VanGulckRik@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 97ba7af commit a3f3899
3 files changed
Lines changed: 5 additions & 5 deletions
File tree
- app/components/UI/Rewards/components/Campaigns
- locales/languages
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8949 | 8949 | | |
8950 | 8950 | | |
8951 | 8951 | | |
8952 | | - | |
| 8952 | + | |
8953 | 8953 | | |
8954 | 8954 | | |
8955 | 8955 | | |
| |||
0 commit comments