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

fix: go back navigation #2862

Merged
merged 2 commits into from
Mar 26, 2024
Merged

fix: go back navigation #2862

merged 2 commits into from
Mar 26, 2024

Conversation

sshanzel
Copy link
Member

@sshanzel sshanzel commented Mar 26, 2024

Changes

Events

Did you introduce any new tracking events?
Don't forget to update the Analytics Taxonomy sheet

Log the new/changed events below:

Type event_name value
Change/New event name extra: { ... }

Please make sure existing components are not breaking/affected by this PR

Manual Testing

On those affected packages:

  • Have you done sanity checks in the webapp?
  • Have you done sanity checks in the extension?
  • Does this not break anything in companion?

Did you test the modified components media queries?

  • MobileL (420px)
  • Tablet (656px)
  • Laptop (1020px)

Did you test on actual mobile devices?

  • iOS (Chrome and Safari)
  • Android

WT-{number} #done

Preview domain

https://fix-navigation.preview.app.daily.dev

@sshanzel sshanzel requested a review from a team as a code owner March 26, 2024 10:20
Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 11:29am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
storybook ⬜️ Ignored (Inspect) Mar 26, 2024 11:29am

Copy link
Contributor

@nensidosari nensidosari left a comment

Choose a reason for hiding this comment

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

Looks good, non blocking comments

'invisible'
}
onClick={router.back}
className={!canGoBack && 'invisible'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we just do hidden rather then invisible?

Copy link
Member Author

Choose a reason for hiding this comment

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

We want to keep the height consistent, so we used invisible. We can use either of the two, just saw some benefits here.

Comment on lines 15 to 16
globalThis?.history &&
!!globalThis.history.length &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Why didn't u reuse !!globalThis?.window?.history?.length for these?

Copy link
Member Author

Choose a reason for hiding this comment

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

The condition isNullOrUndefined(globalThis.history.state.options.shallow) would be true if the globalThis?.history?.state is used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed the condition to make it easier to understand.

@sshanzel sshanzel merged commit 7a5f5a3 into main Mar 26, 2024
5 checks passed
@sshanzel sshanzel deleted the fix-navigation branch March 26, 2024 11:41
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.

2 participants