Repository navigation
fix(perps): truncate long market sort labels - #36852
Conversation
Long translations were wrapping one letter per line beside the sort direction instead of ellipsizing. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
Smart E2E Test SelectionSelected E2E tags: ALL AI Confidence: 100 E2E reasoningExpand to readTwo changes in this PR:
The hard rule seed correctly identified Performance reasoningExpand to readNo performance-sensitive code paths were changed. The PerpsMarketSortFieldBottomSheet change is a minor text truncation prop addition with no render performance impact. The default-fixture.json change adds a single string field to test fixture state with no app code changes. Neither change affects measured performance scenarios like account list rendering, onboarding flows, login, swaps, app launch, asset loading, predictions, perps trading performance, money account loading, or rewards tab. |
The title line clamp does not depend on which option is selected.
|



Description
On the Perps markets sort sheet, selecting a sort option shows the direction ("high to low") beside the option title. In long locales such as Greek, "Χρέωση χρηματοδότησης" was squeezed into a few pixels and wrapped one letter per line.
The title now stays on one line and ellipsizes when it does not fit next to the direction text.
Changelog
CHANGELOG entry: Fixed Perps market sort labels wrapping in long translations
Related issues
Fixes: none — no matching GitHub issue for this layout bug
Manual testing steps
Screenshots/Recordings
Before
Greek funding-rate label wraps one letter per line beside the direction text.

After
Greek funding-rate label stays on one line and ellipsizes (

Χρέω...).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
Note
Low Risk
Localized UI text layout in the Perps sort sheet plus a test fixture field; no auth, payments, or trading logic changes.
Overview
Fixes a Perps market sort bottom sheet layout issue where long translated option titles (e.g. Greek funding rate) wrapped one character per line beside the selected sort direction.
Each sort option’s
ListItemSelectnow passestitlePropswithnumberOfLines: 1andellipsizeMode: 'tail', so the label stays on one row and truncates with an ellipsis while the high/low direction text and arrow remain visible.The default test fixture also adds
KycController.providerFlowStatus: "not_started"so persisted state matches the current controller shape.Reviewed by Cursor Bugbot for commit 5576932. Bugbot is set up for automated code reviews on this repo. Configure here.