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

Hamburger menu updates #151

Merged
merged 2 commits into from
May 11, 2020
Merged

Hamburger menu updates #151

merged 2 commits into from
May 11, 2020

Conversation

thumn
Copy link
Contributor

@thumn thumn commented May 7, 2020

What's new in this PR

  • Updated MapScreen drawer label from "Stores" to "Map"
  • Moved "Feedback" to top half portion of tabs

How to review

Hamburger menu tabs should still operate as usual.

Use this Expo link to test on Android

Relevant Links

Online sources

Related PRs

Next steps

If possible, figure out how to make StoresList a tab in the hamburger menu. I made some progress in this (and git stashed it), up until the point where the tab displays and navigates to the stores list with all stores loaded in alphabetical order, but the changes made cause more problems than the good it'll do, so we're gonna backlog this for now. :(

Namely, when clicking on store cards, the map screen doesn't update the current store. Also, the tab doesn't always navigate to the StoresList screen.

Screenshots

IMG_2803

CC: @anniero98 @wangannie

@thumn thumn requested review from wangannie and aceschen May 7, 2020 02:43
Copy link
Member

@wangannie wangannie left a comment

Choose a reason for hiding this comment

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

Everything works well! I'm still on the fence about having Rewards in the hamburger menu when it kind of disrupts the pattern of being able to swipe down to close it, but I do understand why it would be important to include in the menu. I trust @12aschen to make the decision on that!

@@ -17,7 +17,7 @@ export default function ResourcesStackNavigator() {
return (
<ResourcesStack.Navigator
screenOptions={{
drawerLabel: 'Rewards',
drawerLabel: 'Resources',
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch 😅

Copy link
Contributor

@aceschen aceschen left a comment

Choose a reason for hiding this comment

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

  • Menu items work!!
  • Preserves scroll location/tab on resources and rewards - don't think this is a huge issue though

I do still think it's important to have rewards here to make it discoverable in two places! There was conflicting feedback on the green banner being discoverable (which .. would have been nice to get more user feedback on :'))) rip) but I think better safe than sorry!

@wangannie wangannie merged commit e2d901d into master May 11, 2020
@wangannie wangannie deleted the thu/drawer-fix branch May 11, 2020 00:44
@thumn
Copy link
Contributor Author

thumn commented May 11, 2020

Yeah I'm still super confused as to why RewardsScreen doesn't swipe down to close through hamburger as it does in Map despite it having the same navigation settings in the stack :( but I will continue looking at this and hopefully submit a smaller PR to fix it!!

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