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

Refactor App Routing & Navigation API's #785

Merged
merged 8 commits into from
Jul 17, 2024
Merged

Refactor App Routing & Navigation API's #785

merged 8 commits into from
Jul 17, 2024

Conversation

72A12F4E
Copy link
Contributor

@72A12F4E 72A12F4E commented Jul 11, 2024

What Changed

This change is a substantial refactor that changes how app routing and navigation state is handled across the app. I've introduced a new type, Router, that is the single source of truth for where the user is in the app. Navigation APIs in Messages, Nodes, and Settings were refactored to utilize the new Router type.

How is this tested?

I've added a unit test target to the app that validates several deep link URL's map to the appropriate routes, and done manual validation across two nodes & two client devices to send notifications back & forth.

Next Steps?

We still need to implement routing on the Map views to handle Waypoint notifications. We could also improve the map focus for map routing, but these can be done in a follow-up change.

@72A12F4E 72A12F4E force-pushed the app-routing branch 2 times, most recently from eb8949d to 228d1d9 Compare July 14, 2024 05:09
@72A12F4E 72A12F4E changed the title WIP: Implement a rudimentary router type and wire up through app state Refactor App Routing & Navigation API's Jul 14, 2024
@72A12F4E 72A12F4E requested review from garthvh and thebentern July 14, 2024 14:14
@72A12F4E 72A12F4E marked this pull request as ready for review July 14, 2024 14:14
@garthvh
Copy link
Member

garthvh commented Jul 16, 2024

On the messages tab I am not seeing the messaging pane updating properly in catalyst when selecting a contact for a DM, otherwise everything seems to match what is working currently, it is working on a phone.

@72A12F4E
Copy link
Contributor Author

On the messages tab I am not seeing the messaging pane updating properly in catalyst when selecting a contact for a DM, otherwise everything seems to match what is working currently, it is working on a phone.

fixed in latest

Copy link
Member

@garthvh garthvh left a comment

Choose a reason for hiding this comment

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

All of the nav and notifications seem to work as good as they did before.

@garthvh garthvh merged commit 488177c into main Jul 17, 2024
2 checks passed
@garthvh garthvh deleted the app-routing branch July 17, 2024 21:05
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