Skip to content

[$1000] [HOLD for payment 2023-07-20] [Manual Requests] Make the Datepicker component more reusable #20630

Closed

Description

@mountiny

Problem

The NewDatePicker component has went trhough couple of iterations and its time to refactor it and mainly make it easier to reuse in other flows and pages of the app. Some context in this thread

Why is it important?

We are adding more flows which require a date picker component, however, the current implementation is hard to just take and plug into some other form with different routes so it just works. For example in this PR we need to make it easy to implement a date picker to a request details page

Solution

Explore how we can simplify this component so we keep the current functionality and design ideally while improving the DX.

cc @Beamanator @burczu @WoLewicki @adamgrzybowski @s77rt @luacmartins

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018d352aca1b0ce802
  • Upwork Job ID: 1683554983031660544
  • Last Price Increase: 2023-07-24

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 12, 2023
  2. self-assigned this
    on Jun 12, 2023
  3. melvin-bot commented on Jun 12, 2023

    @melvin-bot

    Triggered auto assignment to @kevinksullivan (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  4. melvin-bot commented on Jun 12, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  5. mountiny commented on Jun 12, 2023

    @mountiny
    ContributorAuthor

    Asking Bartek if he wants to tackle this one tomorrow as they originally worked on this issue

  6. burczu commented on Jun 14, 2023

    @burczu
    Contributor

    Hi I'm Bartek from Callstack - expert contributor group - I would like to work on this issue.

  7. WoLewicki commented on Jun 14, 2023

    @WoLewicki
    Contributor

    I would gladly review the part with subscribing to navigation and the information flow in those components 😅

  8. melvin-bot commented on Jun 14, 2023

    @melvin-bot

    Looks like something related to react-navigation may have been mentioned in this issue discussion.

    As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

    Feel free to drop a note in #expensify-open-source with any questions.

  9. mountiny commented on Jun 14, 2023

    @mountiny
    ContributorAuthor

    Nice, I will assign you too, its important issue to get done right

  10. mountiny commented on Jun 14, 2023

    @mountiny
    ContributorAuthor

    @burczu previously, we wanted the Year page to be its own route with the psuh-to-page design which is quite complicated.

    Could we potentially make this page "internal" to the datepicker route so it looks same as a new page in the stack. This might introduce issues with the navigation tho to keep the browser back and in-app Up actions consistent.

    Maybe we could also disallow deeplinking to the year page which could help with some edge cases so that when you try to access the year page by using deeplink it would redirect to the date picker first.

    Not sure whats the best way but lets brainstorm our options

  11. 51 remaining items

  12. changed the title [-][HOLD for payment 2023-07-20] [Manual Requests] Make the Datepicker component more reusable[/-] [+][$1000] [HOLD for payment 2023-07-20] [Manual Requests] Make the Datepicker component more reusable[/+] on Jul 24, 2023
  13. melvin-bot commented on Jul 24, 2023

    @melvin-bot
  14. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jul 24, 2023
  15. melvin-bot commented on Jul 24, 2023

    @melvin-bot

    Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new.

  16. kevinksullivan commented on Jul 24, 2023

    @kevinksullivan
    Contributor

    Just labeling to get the upwork job set up.

  17. melvin-bot commented on Jul 24, 2023

    @melvin-bot

    Current assignees @ArekChr and @fedirjh are eligible for the External assigner, not assigning anyone new.

  18. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jul 24, 2023
  19. kevinksullivan commented on Jul 24, 2023

    @kevinksullivan
    Contributor

    Offer sent @fedirjh ^^ . Let me know when you accept!

  20. fedirjh commented on Jul 24, 2023

    @fedirjh
    Contributor

    @kevinksullivan Thank you! Accepted

  21. JmillsExpensify commented on Jul 24, 2023

    @JmillsExpensify
    Contributor

    Woo! Awesome work on this one. Excited to have it in the wild.

  22. mountiny commented on Jul 26, 2023

    @mountiny
    ContributorAuthor

    @kevinksullivan All done here, can we close this?

  23. kevinksullivan commented on Jul 28, 2023

    @kevinksullivan
    Contributor

    All set / paid

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions