Skip to content

[HOLD for payment 2024-05-29] [Wave Collect] [Ideal nav] Simplify the navigator structure #40681

Closed

Description

@mountiny

Follow up to the ideal navigation project, we have one task to simplify the structure now.

Problem

Currently, central pane screens in FullScreenNavigator are wrapped with the central pane navigator. A similar pattern can be seen in LHP where single screens are wrapped with navigators.
This may be problematic for two reasons:

  • Getting information about the actual screen requires more code. It has become visible especially after we migrated to typescript. Instead of just getting the route name we have to extract the route from the state or params of the parent navigator.
  • More nested navigators means worse performance.

Solution

In the early implementation of navigation, we used the custom component ThreePaneView. That was the main reason to encapsulate screens with central pane navigators. Now we use StackView for both narrow and wide layouts and the wide layout is achieved using styles.

This allows us to flatten the navigation structure. Now screens in FullScreenNavigator and LHP will be mounted directly
This way developing and maintaining navigation should be easier and we should get a slight performance boost.

cc @adamgrzybowski @WojtekBoman

Activity

  1. added
    Daily
    NewFeature
    on Apr 22, 2024
  2. self-assigned this
    on Apr 22, 2024
  3. melvin-bot commented on Apr 22, 2024

    @melvin-bot

    Triggered auto assignment to @stephanieelliott (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

  4. added
    Weekly
    and removed
    Daily
    on Apr 22, 2024
  5. WojtekBoman commented on Apr 22, 2024

    @WojtekBoman
    Contributor

    Hi! I'm working on that :)

  6. added
    NewFeature
    and removed
    NewFeature
    on Apr 23, 2024
  7. melvin-bot commented on Apr 23, 2024

    @melvin-bot

    Triggered auto assignment to @strepanier03 (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

  8. 9 remaining items

  9. added
    Weekly
    and removed
    Weekly
    on May 10, 2024
  10. stephanieelliott commented on May 17, 2024

    @stephanieelliott
    Contributor

    Hey @WojtekBoman, any update on this?

  11. mountiny commented on May 20, 2024

    @mountiny
    ContributorAuthor

    This was merged and deployed to staging, awaiting production deploy

  12. stephanieelliott commented on May 29, 2024

    @stephanieelliott
    Contributor

    This was deployed to prod on May 22! Will be ready for payment on May 29

  13. added
    Awaiting Payment
    on May 29, 2024
  14. changed the title [-][Wave Collect] [Ideal nav] Simplify the navigator structure[/-] [+][HOLD for payment 2024-05-29] [Wave Collect] [Ideal nav] Simplify the navigator structure[/+] on May 29, 2024
  15. mountiny commented on May 29, 2024

    @mountiny
    ContributorAuthor

    @ahmedGaber93 is the only person required payment of $250 on this issue

    No regression testing required

  16. melvin-bot commented on May 29, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@stephanieelliott)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  17. stephanieelliott commented on May 30, 2024

    @stephanieelliott
    Contributor

    I had to manually create a job on Upwork for this

    @ahmedGaber93 please let me know when you've accepted the offer so I can issue payment!

  18. ahmedGaber93 commented on May 30, 2024

    @ahmedGaber93
    Contributor

    @stephanieelliott Offer accepted. Thanks!

  19. stephanieelliott commented on Jun 1, 2024

    @stephanieelliott
    Contributor

    Thanks @ahmedGaber93, all paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentNewFeatureReviewingWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions