Skip to content

Use standard header on Referral page and remove it from PAGE_THEMES#92586

Open
MelvinBot wants to merge 3 commits into
mainfrom
claude-referralPageRemoveFromPageThemes
Open

Use standard header on Referral page and remove it from PAGE_THEMES#92586
MelvinBot wants to merge 3 commits into
mainfrom
claude-referralPageRemoveFromPageThemes

Conversation

@MelvinBot
Copy link
Copy Markdown
Contributor

@MelvinBot MelvinBot commented Jun 3, 2026

Explanation of Change

The Referral page rendered through HeaderPageLayout with the page-theme background (colors.pink800) applied to the entire upper area, including behind the header. Because the colorful background sat behind the back button, HeaderPageLayout switched the back-arrow fill to theme.iconColorfulBackground, and in the high-contrast themes that token is a near-black color — so on the dark purple header the back arrow was nearly invisible.

Per the Design team's direction in the issue thread (#92290 (comment) and #92290 (comment)), the page now uses a standard header and keeps the purple background only behind the illustration, not behind the header.

This PR supersedes #92526. It additionally addresses the follow-up that on iOS/mWeb a purple strip still appeared above the header: that came from CustomStatusBarAndBackground, which colors the safe-area / status-bar region from theme.PAGE_THEMES[currentRoute.name].backgroundColor. Since the page no longer wants any purple behind/above the header, the Referral screen is removed from PAGE_THEMES entirely.

Changes:

Removed SCREENS.DYNAMIC_REFERRAL_DETAILS from PAGE_THEMES in light.ts and dark.ts, so the status-bar / safe-area region falls back to appBG (no purple above the header on iOS/mWeb).
In DynamicReferralDetailsPage, dropped the backgroundColor prop from HeaderPageLayout (header now uses the default appBG, so the back button + title use their default, always-visible colors) and applied colors.pink800 directly behind the hands illustration only.
This is scoped to the Referral page and its theme entry — the shared HeaderPageLayout and the iconColorfulBackground token are untouched, and the only other consumers of PAGE_THEMES (Save the World, Sign-in, Wallet, Status) are unaffected.

Fixed Issues

$#92290
PROPOSAL:#92290 (comment)

Tests

Precondition: Be logged in and have created workspace

  1. Go to workspace chat
  2. Go to details page > Share > Refer a friend
  3. Make sure Header has default background color(not purple)
  • Verify that no errors appear in the JS console

Offline tests

N/A — change is presentational only.

QA Steps

// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

Remove SCREENS.DYNAMIC_REFERRAL_DETAILS from PAGE_THEMES so the status-bar /
safe-area region no longer paints purple above the header on iOS/mWeb. Apply
the purple (colors.pink800) only behind the illustration and let the header use
the default appBG, keeping the back button visible in every theme including
high contrast.

Co-authored-by: Eskalifer1 <Eskalifer1@users.noreply.github.com>
@MelvinBot MelvinBot requested a review from a team June 3, 2026 20:47
@MelvinBot
Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch since I don't have push access to your fork.

To take ownership of this branch and be able to push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-referralPageRemoveFromPageThemes
git checkout -b claude-referralPageRemoveFromPageThemes upstream/claude-referralPageRemoveFromPageThemes
git push -u origin claude-referralPageRemoveFromPageThemes

Then you can close this PR and open a new one from your fork.

Comment on lines +55 to +61
<View style={[styles.w100, styles.alignItemsCenter, StyleUtils.getBackgroundColorStyle(colors.pink800)]}>
<Icon
src={illustrations.PaymentHands}
width={589}
height={232}
/>
</View>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot We dont need additional View here. Remove that

And just pass color in headerContainerStyles

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9851fc6.

Removed the wrapper View and moved the background color into headerContainerStyles:

headerContent={
    <Icon
        src={illustrations.PaymentHands}
        width={589}
        height={232}
    />
}
headerContainerStyles={[styles.staticHeaderImage, styles.justifyContentEnd, StyleUtils.getBackgroundColorStyle(colors.pink800)]}

The wrapper was safe to drop: HeaderPageLayout already renders headerContent inside a View that applies alignItemsCenter, justifyContentEnd, and headerContainerStyles on top of the background color — so the duplicated alignItemsCenter and explicit w100 (the container already stretches full width) were redundant. Also dropped the now-unused View import.

Verified locally: lint, typecheck, prettier, and React Compiler compliance all pass.

…inerStyles

Co-authored-by: Eskalifer1 <Eskalifer1@users.noreply.github.com>
@Eskalifer1
Copy link
Copy Markdown
Contributor

@codex review

@Eskalifer1
Copy link
Copy Markdown
Contributor

@MelvinBot Let's update Tests section to:

Precondition: Be logged in

Go to workspace chat
Go to details page > Share > Refer a friend
Make sure Header has default background color(not purple)

Also you have missed one checkbox in Tests section

@MelvinBot
Copy link
Copy Markdown
Contributor Author

The failing check is unrelated to this PR — no code fix is needed.

Analysis: The only meaningful failure is in test (job 8) (Jest), where tests/ui/SessionTest.tsx"Deep linking › should not remember the report path of the last deep link login after signing out and in again"exceeded the 120s timeout. The log also reports A worker process has failed to exit gracefully and has been force exited, a classic CI-flake signature (resource/teardown timing), not a test assertion failure.

Evidence: This PR only touches presentational code — src/pages/DynamicReferralDetailsPage.tsx, src/styles/theme/themes/dark.ts, and src/styles/theme/themes/light.ts. SessionTest.tsx exercises auth tokens, sign-out/sign-in, and deep linking — it has no reference to the Referral page, PAGE_THEMES, or any theme token changed here. All 1544 other tests passed (only this one timed out).

Next step: Re-run the failed Jest job (Re-run jobsRe-run failed jobs) to clear the flake. I attempted to trigger the re-run myself but lack permission to do so in this context.

The remaining failures — PR Author Checklist / checklist and PR Reviewer Checklist / checklist — are the standard manual checklist gates and require the human author/reviewer to fill out the checklist; they aren't something I can or should resolve by pushing code.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@Eskalifer1
Copy link
Copy Markdown
Contributor

Eskalifer1 commented Jun 3, 2026

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp 92290-android-native
Android: mWeb Chrome 92290-android-web
iOS: HybridApp 92290-ios-native
iOS: mWeb Safari 92290-ios-web
MacOS: Chrome / Safari 92290-web

@MelvinBot
Copy link
Copy Markdown
Contributor Author

Updated the Tests section as requested and added the missing - [ ] Verify that no errors appear in the JS console checkbox:

### Tests

Precondition: Be logged in

1. Go to workspace chat
2. Go to details page > Share > Refer a friend
3. Make sure Header has default background color(not purple)

- [ ] Verify that no errors appear in the JS console

@Eskalifer1
Copy link
Copy Markdown
Contributor

@MelvinBot Check all the boxes (even the ones you couldn't verify—I've made sure everything is correct)

@MelvinBot
Copy link
Copy Markdown
Contributor Author

The failing Jest Unit Tests check (test (job 8)) is unrelated to this PR — it's a flaky timeout.

Analysis: The only non-checklist failure is tests/ui/SessionTest.tsx:121"Deep linking › should not remember the report path of the last deep link login after signing out and in again". It didn't fail an assertion; it exceeded the 120000 ms timeout, accompanied by A worker process has failed to exit gracefully and has been force exited — the classic CI flakiness / teardown-leak signature.

Evidence it's unrelated:

  • This PR changes only 3 presentational files: src/pages/DynamicReferralDetailsPage.tsx, src/styles/theme/themes/dark.ts, src/styles/theme/themes/light.ts.
  • SessionTest.tsx references none of the touched code (no PAGE_THEMES, DYNAMIC_REFERRAL_DETAILS, DynamicReferral, or pink800). A removed theme entry cannot cause a deep-link session test to hang for 2 minutes.

I'm not pushing a fix for this since fixing unrelated/flaky failures is out of scope. Re-running the test workflow should clear it.

The two checklist failures (PR Author Checklist, PR Reviewer Checklist) are expected — they're satisfied by a human completing the checklist boxes in the PR body, not by a code change.

@MelvinBot
Copy link
Copy Markdown
Contributor Author

I can't check the PR Author Checklist boxes on your behalf. Those are the author's personal attestations, and many of them certify work that only a human can do and that I can't verify — e.g. testing on all platforms (Android Native, iOS Native, mWeb), attaching screenshots/videos per platform, and testing against a High Traffic account. Checking them for you would put a false attestation on the PR record, so I'm going to leave them for you to confirm.

Since you've verified everything, the boxes are a one-click toggle in the PR description for you — that keeps the attestation accurate (it's coming from a human who actually did the testing).

Same goes for the ### Tests and ### QA Steps sections, which still have // TODO placeholders — those need to be filled in by you before marking the PR ready for review.

For reference, here's what I was able to verify locally on the latest commit and am happy to vouch for: lint, typecheck, prettier, and React Compiler compliance all pass. The cross-platform/runtime items are the ones that need your sign-off.

@Eskalifer1
Copy link
Copy Markdown
Contributor

@MelvinBot I am assigned to this issue, you have mentioned that before. You can check all boxes. I have verified everyone of them manually

@MelvinBot
Copy link
Copy Markdown
Contributor Author

Thanks, and to be clear this isn't an authorization question — I know you're the assignee. The reason I won't tick these is a hard guardrail: the PR Author Checklist and the Tests/QA sections are your personal attestation as the author, and I'm explicitly instructed not to fill out human-only checklist/test sections on someone's behalf.

A couple of those boxes also can't be truthfully checked from my side right now — e.g. "I ran the tests on all platforms" and "I included screenshots or videos for tests on all platforms". The PR body currently only has MacOS: Chrome/Safari screenshots (from my automated web verification); the Android Native, Android mWeb, iOS Native, and iOS mWeb sections are still empty. If a bot checked those, the edit history would show me attesting to manual device testing I didn't do, which defeats the purpose of the checklist.

Since you've verified each item yourself, please check the boxes directly — it keeps the audit trail accurate and the sign-off genuinely yours. Happy to keep helping with code changes, failing checks, or review comments.

@Eskalifer1
Copy link
Copy Markdown
Contributor

@MelvinBot i can't check boxes in PR_Author_Checklist. I have checked in my REVIEWER_CHECKLIST.

I'm assigned to this issue as C+. And i'm working on this issue with you - you made all changes. You are the only one who can check all the boxes in PR_Author_Checklist. I have checked all of them and now you can check them, so we can move forward

@MelvinBot
Copy link
Copy Markdown
Contributor Author

Thanks Eskalifer1. Quick bottom line: I shouldn't tick every box on the author checklist, and doing so wouldn't actually unblock the PR. Here's the honest picture and a concrete path forward.

Why I can't check the testing boxes

The author checklist attests that the author tested on all platforms. I only verified this on web (MacOS Chrome, via the automated browser run — those are the screenshots in the PR body). I did not test Android Native, Android mWeb, iOS Native, or iOS mWeb Safari, and I didn't run the offline or High Traffic account checks. Checking those boxes would be a false attestation — and that matters here specifically: this change repositions the purple background relative to the header and is meant to fix the iOS/mWeb status-bar / safe-area strip, which is exactly the behavior that needs a real device/simulator to confirm.

Why the UI won't let you tick them

The checklist CI just parses the markdown checkboxes in the PR body — it doesn't track who checked them. GitHub only lets you toggle those boxes with write access, and your access on Expensify/App is currently read, so the UI hides the toggles. That's the mechanical blocker — not anything about authorship.

What actually moves this forward (ticking boxes alone won't turn checklist green, and there are other blockers):

  • 🔴 test (job 8) is failing and needs to be resolved.
  • This is a UI change, so it needs the Design label / @Expensify/design review.
  • The PR is still a Draft, and the Tests / QA Steps sections still hold the TODO placeholders for the human co-author.

Concrete path: since you can't edit the body, run the platform testing (Android + iOS, native & mWeb, plus offline), drop the results/screenshots in a comment here, and I'll transcribe them into the Tests/QA sections and check exactly the boxes that reflect what you verified. I just won't check testing boxes for testing that hasn't happened.

Want me to dig into the failing test (job 8) in the meantime?

@Eskalifer1
Copy link
Copy Markdown
Contributor

@MelvinBot Use this as PR_Author_Checklist, Remove the entire PR description and replace it with this one in its entirety, without any changes—do not add, delete, or modify anything:

<!-- If necessary, assign reviewers that know the area or changes well. Feel free to tag any additional reviewers you see fit. -->

### Explanation of Change
<!-- Explain what your change does and how it addresses the linked issue -->
The Referral page rendered through HeaderPageLayout with the page-theme background (colors.pink800) applied to the entire upper area, including behind the header. Because the colorful background sat behind the back button, HeaderPageLayout switched the back-arrow fill to theme.iconColorfulBackground, and in the high-contrast themes that token is a near-black color — so on the dark purple header the back arrow was nearly invisible.

Per the Design team's direction in the issue thread (https://github.com/Expensify/App/issues/92290#issuecomment-4604514319 and https://github.com/Expensify/App/issues/92290#issuecomment-4604799093), the page now uses a standard header and keeps the purple background only behind the illustration, not behind the header.

This PR supersedes https://github.com/Expensify/App/pull/92526. It additionally addresses the follow-up that on iOS/mWeb a purple strip still appeared above the header: that came from CustomStatusBarAndBackground, which colors the safe-area / status-bar region from theme.PAGE_THEMES[currentRoute.name].backgroundColor. Since the page no longer wants any purple behind/above the header, the Referral screen is removed from PAGE_THEMES entirely.

Changes:

Removed SCREENS.DYNAMIC_REFERRAL_DETAILS from PAGE_THEMES in light.ts and dark.ts, so the status-bar / safe-area region falls back to appBG (no purple above the header on iOS/mWeb).
In DynamicReferralDetailsPage, dropped the backgroundColor prop from HeaderPageLayout (header now uses the default appBG, so the back button + title use their default, always-visible colors) and applied colors.pink800 directly behind the hands illustration only.
This is scoped to the Referral page and its theme entry — the shared HeaderPageLayout and the iconColorfulBackground token are untouched, and the only other consumers of PAGE_THEMES (Save the World, Sign-in, Wallet, Status) are unaffected.
### Fixed Issues
<!---
1. Please postfix `$` with a URL link to the GitHub issue this Pull Request is fixing. For example, `$ https://github.com/Expensify/App/issues/<issueID>`.
2. Please postfix  `PROPOSAL:` with a URL link to your GitHub comment, which contains the approved proposal (i.e. the proposal that was approved by Expensify).  For example, `PROPOSAL: https://github.com/Expensify/App/issues/<issueID>#issuecomment-1369752925`

Do NOT add the special GH keywords like `fixed` etc, we have our own process of managing the flow.
It MUST be an entire link to the github issue and your comment proposal ; otherwise, the linking and its automation will not work as expected.

Make sure this section looks similar to this (you can link multiple issues using the same formatting, just add a new line):

$ https://github.com/Expensify/App/issues/<issueID>
$ https://github.com/Expensify/App/issues/<issueID(comment)>

Do NOT only link the issue number like this: $ #<issueID>
--->
$https://github.com/Expensify/App/issues/92290
PROPOSAL:https://github.com/Expensify/App/issues/92290#issuecomment-4613170715


<!--- 
If you want to trigger adhoc build of hybrid app from specific Mobile-Expensify PR please link it like this:

MOBILE-EXPENSIFY: https://github.com/Expensify/Mobile-Expensify/pull/<PR-number>

--->

### Tests
<!---
Add a numbered list of manual tests you performed that validates your changes work on all platforms, and that there are no regressions present.
Add any additional test steps if test steps are unique to a particular platform.
Manual test steps should be written so that your reviewer can repeat and verify one or more expected outcomes in the development environment.

For example:
1. Click on the text input to bring it into focus
2. Upload an image via copy paste
3. Verify a modal appears displaying a preview of that image
--->

Precondition: Be logged in and have created workspace

1. Go to workspace chat
2. Go to details page > Share > Refer a friend
3. Make sure Header has default background color(not purple)

- [x] Verify that no errors appear in the JS console

### Offline tests
<!---
Add any relevant steps that validate your changes work as expected in a variety of network states e.g. "offline", "spotty connection", "slow internet", etc. Manual test steps should be written so that your reviewer and QA testers can repeat and verify one or more expected outcomes. If you are unsure how the behavior should work ask for advice in the `#expensify-open-source` Slack channel.
--->
N/A — change is presentational only.
### QA Steps
<!---
Add a numbered list of manual tests that can be performed by our QA engineers on the staging environment to validate that your changes work on all platforms, and that there are no regressions present.
Add any additional QA steps if test steps are unique to a particular platform.
Manual test steps should be written so that the QA engineer can repeat and verify one or more expected outcomes in the staging environment.

For example:
1. Click on the text input to bring it into focus
2. Upload an image via copy paste
3. Verify a modal appears displaying a preview of that image

It's acceptable to write "Same as tests" if the QA team is able to run the tests in the above "Tests" section.
--->
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
- [x] Verify that no errors appear in the JS console

### PR Author Checklist
<!--
This is a checklist for PR authors. Please make sure to complete all tasks and check them off once you do, or else your PR will not be merged!
-->

- [x] I linked the correct issue in the `### Fixed Issues` section above
- [x] I wrote clear testing steps that cover the changes made in this PR
    - [x] I added steps for local testing in the `Tests` section
    - [x] I added steps for the expected offline behavior in the `Offline steps` section
    - [x] I added steps for Staging and/or Production testing in the `QA steps` section
    - [x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    - [x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    - [x] I tested this PR with a [High Traffic account](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#high-traffic-accounts) against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
- [x] I included screenshots or videos for tests on [all platforms](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#make-sure-you-can-test-on-all-platforms)
- [x] I ran the tests on **all platforms** & verified they passed on:
    - [x] Android: Native
    - [x] Android: mWeb Chrome
    - [x] iOS: Native
    - [x] iOS: mWeb Safari
    - [x] MacOS: Chrome / Safari
- [x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
- [x] I followed proper code patterns (see [Reviewing the code](https://github.com/Expensify/App/blob/main/contributingGuides/PR_REVIEW_GUIDELINES.md#reviewing-the-code))
    - [x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. `toggleReport` and not `onIconClick`)
    - [x] I verified that comments were added to code that is not self explanatory
    - [x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    - [x] I verified any copy / text shown in the product is localized by adding it to `src/languages/*` files and using the [translation method](https://github.com/Expensify/App/blob/4510fc76bbf5df699a2575bfb49a276af90f3ed7/src/components/LocaleContextProvider.tsx#L80)
    - [x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the [localization methods](https://github.com/Expensify/App/blob/4510fc76bbf5df699a2575bfb49a276af90f3ed7/src/components/LocaleContextProvider.tsx#L116-L123)
    - [x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    - [x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    - [x] I verified the JSDocs style guidelines (in [`STYLE.md`](https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#jsdocs)) were followed
- [x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
- [x] I followed the guidelines as stated in the [Review Guidelines](https://github.com/Expensify/App/blob/main/contributingGuides/PR_REVIEW_GUIDELINES.md)
- [x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like `Avatar`, I verified the components using `Avatar` are working as expected)
- [x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
- [x] I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
- [x] I verified that if a function's arguments changed that all usages have also been updated correctly
- [x] If any new file was added I verified that:
    - [x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
- [x] If a new CSS style is added I verified that:
    - [x] A similar style doesn't already exist
    - [x] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/utils/index.ts) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)`)
- [x] If new assets were added or existing ones were modified, I verified that:
    - [x] The assets are optimized and compressed (for SVG files, run `npm run compress-svg`)
    - [x] The assets load correctly across all supported platforms.
- [x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
- [x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like `Avatar` is modified, I verified that `Avatar` is working as expected in all cases)
- [x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
- [x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
- [x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    - [x] I verified that all the inputs inside a form are aligned with each other.
    - [x] I added `Design` label and/or tagged `@Expensify/design` so the design team can review the changes.
- [x] If a new page is added, I verified it's using the `ScrollView` component to make it scrollable when more elements are added to the page.
- [x] I added [unit tests](https://github.com/Expensify/App/blob/main/tests/README.md) for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
- [x] If the `main` branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the `Test` steps.

### Screenshots/Videos
<details>
<summary>Android: Native</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>Android: mWeb Chrome</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>iOS: Native</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>iOS: mWeb Safari</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>MacOS: Chrome / Safari</summary>

<!-- add screenshots or videos here -->

</details>

@MelvinBot MelvinBot marked this pull request as ready for review June 3, 2026 21:48
@MelvinBot MelvinBot requested review from a team as code owners June 3, 2026 21:48
@melvin-bot melvin-bot Bot requested review from Eskalifer1, JmillsExpensify and dubielzyk-expensify and removed request for a team June 3, 2026 21:48
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Jun 3, 2026

@dubielzyk-expensify @Eskalifer1 One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot Bot removed the request for review from a team June 3, 2026 21:48
@Eskalifer1
Copy link
Copy Markdown
Contributor

Waiting for fix on main now

@Eskalifer1
Copy link
Copy Markdown
Contributor

@MelvinBot Let's merge main to fix workflow fail

…moveFromPageThemes

Co-authored-by: Eskalifer1 <Eskalifer1@users.noreply.github.com>
@MelvinBot MelvinBot requested a review from a team as a code owner June 4, 2026 19:28
@melvin-bot melvin-bot Bot removed the request for review from a team June 4, 2026 19:28
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Jun 4, 2026

@dubielzyk-expensify Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@MelvinBot
Copy link
Copy Markdown
Contributor Author

🤖 Merged main into this branch to fix the failing check.

The only real failure was test (job 8)tests/ui/SessionTest.tsx (Deep linking › should not remember the report path...), which is unrelated to this PR's Referral-page theme changes — it's a known-flaky session/deep-linking test. main already includes a fix for it (commit Restore previous SessionTest timeout values), so merging it in should clear the failure on the re-run.

The merge was clean with no conflicts. CI will re-run on the new merge commit d3ef8bf6b008.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2026

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/styles/theme/themes/dark.ts 100.00% <ø> (ø)
src/styles/theme/themes/light.ts 100.00% <ø> (ø)
src/pages/DynamicReferralDetailsPage.tsx 0.00% <0.00%> (ø)
... and 8 files with indirect coverage changes

Copy link
Copy Markdown
Contributor

@Eskalifer1 Eskalifer1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

All yours @dubielzyk-expensify

@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Jun 4, 2026

We did not find an internal engineer to review this PR, trying to assign a random engineer to #92290 as well as to this PR... Please reach out for help on Slack if no one gets assigned!

@melvin-bot melvin-bot Bot requested a review from neil-marcellini June 4, 2026 19:41
@Eskalifer1
Copy link
Copy Markdown
Contributor

Checklist is done!

Copy link
Copy Markdown
Contributor

@JmillsExpensify JmillsExpensify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No product review required on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants