refactor: Updated headers for the remaining of Rewards pages#27314
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
…to refactor/header-rewards-2
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
|



Description
Updates the Referral Rewards view, Rewards Settings view, and End of Season Claim bottom sheet to use the shared
HeaderCompactStandardcomponent and consistent safe-area handling, aligning with patterns used elsewhere in Rewards (e.g. Rewards Dashboard).getNavigationOptionsTitleand stack header; Settings and End of Season Claim used different header primitives (BottomSheetHeaderin the claim sheet). This was inconsistent and made safe-area behavior harder to reason about.HeaderCompactStandardwithSafeAreaViewandheaderShown: falsefor its stack screen. Settings view SafeAreaView usesedges={{ top: 'additive' }}andHeaderCompactStandardno longer usesincludesTopInset. End of Season Claim bottom sheet usesHeaderCompactStandardinstead ofBottomSheetHeader, with the sheet title passed as the headertitleprop (custom header title render removed).Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/issues?jql=issueKey%20in%20(DSYS-555%2CDSYS-556)&selectedIssue=DSYS-556
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI refactor affecting header rendering and safe-area insets on a few Rewards screens; main regression risk is incorrect insets or back/close behavior.
Overview
Unifies Rewards header behavior by moving the Referral screen off the stack header (
headerShown: false) and rendering an inlineHeaderCompactStandardinside aSafeAreaView.Adjusts Rewards Settings safe-area handling to use
edges={{ top: 'additive' }}(and removesincludesTopInsetfrom the header) for more consistent inset behavior.Replaces the End-of-Season claim sheet’s
BottomSheetHeaderwithHeaderCompactStandard, using the rewardtitledirectly (and removing the previous non-LINEA custom title renderer), and updates/streamlines associated tests accordingly.Written by Cursor Bugbot for commit 1affda9. This will update automatically on new commits. Configure here.