Commit d794ad7
authored
chore: tweaks to end of season reward claiming (#24562)
## **Description**
- Use in app browser for NANSEN and OTHERSIDE
- Don't use LINEA error/loading state for balance, either show default
sheet title or the variant which has the balance in it.
- Small change when retrieving season metadata to detect if a season is
no longer the current season.
- Dedicated success toasts for metal card and linea.
- Changed end of season bottom sheet label
## **Changelog**
CHANGELOG entry: null
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> - Navigate to in-app browser (`Routes.BROWSER`) for
`NANSEN`/`OTHERSIDE` rewards instead of `Linking.openURL` and update
tests accordingly
> - Simplify LINEA tokens title: show default or "You earned {{amount}}
$LINEA" only; remove loading/error UI and related strings
> - Update modal header copy to `Reward Details` and show success toasts
per reward type (METAL_CARD contact info, LINEA address)
> - Add coercion in `getDiscoverSeasons` to move expired `current`
season into `previous`; broaden tests to use future dates and cover edge
cases
> - Minor i18n copy adjustments and associated unit test updates
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
b088248. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 0a98f56 commit d794ad7
5 files changed
Lines changed: 216 additions & 104 deletions
File tree
- app
- components/UI/Rewards/components/EndOfSeasonClaimBottomSheet
- core/Engine/controllers/rewards-controller/services
- locales/languages
Lines changed: 21 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 44 | | |
56 | 45 | | |
57 | 46 | | |
| |||
123 | 112 | | |
124 | 113 | | |
125 | 114 | | |
126 | | - | |
| 115 | + | |
127 | 116 | | |
128 | 117 | | |
129 | 118 | | |
| |||
138 | 127 | | |
139 | 128 | | |
140 | 129 | | |
141 | | - | |
142 | 130 | | |
143 | | - | |
144 | | - | |
145 | 131 | | |
146 | 132 | | |
147 | 133 | | |
| |||
475 | 461 | | |
476 | 462 | | |
477 | 463 | | |
478 | | - | |
| 464 | + | |
479 | 465 | | |
480 | 466 | | |
481 | 467 | | |
| |||
737 | 723 | | |
738 | 724 | | |
739 | 725 | | |
740 | | - | |
| 726 | + | |
741 | 727 | | |
742 | 728 | | |
743 | 729 | | |
| |||
757 | 743 | | |
758 | 744 | | |
759 | 745 | | |
760 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
761 | 753 | | |
762 | 754 | | |
763 | | - | |
| 755 | + | |
764 | 756 | | |
765 | 757 | | |
766 | 758 | | |
| |||
780 | 772 | | |
781 | 773 | | |
782 | 774 | | |
783 | | - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
784 | 782 | | |
785 | 783 | | |
786 | | - | |
| 784 | + | |
787 | 785 | | |
788 | 786 | | |
789 | 787 | | |
| |||
801 | 799 | | |
802 | 800 | | |
803 | 801 | | |
804 | | - | |
| 802 | + | |
805 | 803 | | |
806 | 804 | | |
807 | 805 | | |
| |||
Lines changed: 22 additions & 70 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 99 | + | |
106 | 100 | | |
107 | 101 | | |
108 | 102 | | |
| |||
153 | 147 | | |
154 | 148 | | |
155 | 149 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
160 | 157 | | |
161 | 158 | | |
162 | | - | |
| 159 | + | |
163 | 160 | | |
164 | 161 | | |
165 | 162 | | |
| |||
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
204 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
| 278 | + | |
275 | 279 | | |
276 | 280 | | |
277 | 281 | | |
| |||
369 | 373 | | |
370 | 374 | | |
371 | 375 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 376 | + | |
404 | 377 | | |
405 | 378 | | |
406 | 379 | | |
| |||
422 | 395 | | |
423 | 396 | | |
424 | 397 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 398 | + | |
447 | 399 | | |
448 | 400 | | |
449 | 401 | | |
| |||
577 | 529 | | |
578 | 530 | | |
579 | 531 | | |
580 | | - | |
| 532 | + | |
581 | 533 | | |
582 | 534 | | |
583 | 535 | | |
| |||
0 commit comments