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 Profile link from drawer on Mobile Web #1437

Merged
merged 6 commits into from
Sep 14, 2023
Merged

Conversation

ansh
Copy link
Contributor

@ansh ansh commented Sep 12, 2023

Fixes following bugs on mobile web:

  • Active state was not registering with the bottom tab when on Profile
  • Profile link in drawer was not working

@pfrazee
Copy link
Collaborator

pfrazee commented Sep 12, 2023

I feel like this shouldnt work just glancing at the code. The web uses a single flat navigation system, and this approach puts two routes on with the same path. My guess is that either Profile and MyProfile are going to get hit by the routes

@ansh
Copy link
Contributor Author

ansh commented Sep 13, 2023

@pfrazee It did work but it was such a hack. I created a new solution that is also a hack but a little better hack in my opinion since it isolates the hack into 3 lines of code

Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

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

Okay yeah this looks better to me. One small question

src/view/shell/Drawer.tsx Show resolved Hide resolved
Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

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

🚀

@pfrazee pfrazee merged commit 50f8116 into main Sep 14, 2023
@pfrazee pfrazee deleted the web-fix-drawer-profile-link branch September 14, 2023 23:11
estrattonbailey added a commit that referenced this pull request Sep 15, 2023
* origin:
  Fix Profile link from drawer on Mobile Web (#1437)
  add build:apk and apk config (#1454)
  update Bluesky PBLLC to PBC (Public Benefit Corporation) (#1453)
  wrap impersonation text (#1447)
  share mute list link with did not handle (#1438)
  Fix 651 Make followers and following button into a `<Link>` (#1429)
  1.50
  Remove accessibilityRole=button on dropdown mask, it causes issues on firefox (#1436)
  Add birth date gating to moderation settings (#1435)
  Paginate the PostThread to avoid rendering too many posts and crashing the app on large threads (#1432)
  fix theme flashing (#1417)
  Separate list deletion into chunks (close #1430) (#1431)
  Revert "Fix 1338 mark notifications read with timeout and on app state change (#1340)" (#1433)
  Bump @atproto/[email protected] (#1434)
  make sure click events on the emoji picker don't bubble up to the mask (#1427)
  Lytic analytics migration (#1428)
  add new api event proxy (#1400)
  composer: inhibit Cmd-Enter from inputting newline (#1421)
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.

Dead clicks on side bar - Desktop web app - Portrait Monitors
4 participants