Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BX-790][BX-728] Hide Back Button When Navigating to Full Screen #693

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

derHowie
Copy link
Member

What changed (plus any additional context for devs)

I am passing params in the URL to hide the back buttons when we navigate to the browser on a screen with a navbar from the extension. This solution is pretty manual. Lmk if you have an ideas on how to do this cleaner.

Screen recordings / screenshots

Add HWW Flow: https://recordit.co/RTgk2yVrDE
HWW Swap Flow: https://recordit.co/OPAYYjFDZ3

What to test

Ensure we aren't hiding the back buttons in scenarios where we want it to appear.

Final checklist

  • I have tested my changes in a LavaMoat bundle (yarn build).
  • I have tested my changes in Chrome & Brave.
  • If your changes are visual, did you check both the light and dark themes?

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-7b79908ce32a9d84de459988d43a40e06902cfd2.zip

@@ -14,7 +14,7 @@ export const useNavigateToSwaps = () => {

return () => {
return type === KeychainType.HardwareWalletKeychain && !isFullScreen
? goToNewTab({ url: POPUP_URL + `#${ROUTES.SWAP}` })
? goToNewTab({ url: POPUP_URL + `#${ROUTES.SWAP}?hideBack=true` })
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this use location state to pass these flags as we do for other routes?

Copy link
Contributor

Choose a reason for hiding this comment

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

nvm

@github-actions
Copy link

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-ac5f982b9541044afc815b3eec8d378b1741b54a.zip

Copy link
Member

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

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

This is exactly what I had in mind. Thanks!

@github-actions
Copy link

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-ac5f982b9541044afc815b3eec8d378b1741b54a.zip

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-c4174445e15e093b9b765e227cc049248357bf03.zip

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-6dd14aea676c027840d70ad3a88057cda318a762.zip

@derHowie derHowie merged commit 98bf27d into master Jun 27, 2023
@derHowie derHowie deleted the @chris/exclude-back-button branch June 27, 2023 19:18
@github-actions
Copy link

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-98bf27da2840c957687b3c236f6891f9f82a3e64.zip

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