Skip to content

[PB-6439]: open referral widget via ?referral=open URL param#1976

Open
terrerox wants to merge 1 commit into
masterfrom
feature/direct-referral-opening
Open

[PB-6439]: open referral widget via ?referral=open URL param#1976
terrerox wants to merge 1 commit into
masterfrom
feature/direct-referral-opening

Conversation

@terrerox
Copy link
Copy Markdown
Contributor

Description

Add a URL contract so the Desktop app can deep-link users directly into the referral experience on Drive instead of only landing on the main page.

Introduce the useReferralParamsChange hook, which reads the ?referral=open query param and opens the Cello referral widget via referralService.openPanel once the user and eligibility have loaded. The widget only opens for eligible users, and the param is stripped from the URL afterwards so refresh/back navigation does not reopen it. The hook is wired into SidenavWrapper, the existing referral entry point.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

@terrerox terrerox changed the title feat: open referral widget via ?referral=open URL param [PB-6439]: open referral widget via ?referral=open URL param May 29, 2026
@sonarqubecloud
Copy link
Copy Markdown

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: a40d89b
Status: ✅  Deploy successful!
Preview URL: https://7b126004.drive-web.pages.dev
Branch Preview URL: https://feature-direct-referral-open.drive-web.pages.dev

View logs

@terrerox terrerox self-assigned this May 29, 2026
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.

1 participant