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

[$250] [Advanced Approval Workflows]: Implement Sorting #47698

Closed
dylanexpensify opened this issue Aug 20, 2024 · 16 comments
Closed

[$250] [Advanced Approval Workflows]: Implement Sorting #47698

dylanexpensify opened this issue Aug 20, 2024 · 16 comments
Assignees
Labels
External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2 Reviewing Has a PR in review Task

Comments

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Aug 20, 2024

Coming from this project, we have this follow-up polish issue we need to complete where we implement the ability to sort. More details here.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01078457d0b3153dad
  • Upwork Job ID: 1825862467827284233
  • Last Price Increase: 2024-08-20
Issue OwnerCurrent Issue Owner: @
@dylanexpensify
Copy link
Contributor Author

cc @blazejkustra

@blazejkustra
Copy link
Contributor

Hey! I’m Błażej Kustra from Software Mansion, an expert agency, and I’d like to work on this issue!

@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Aug 20, 2024
@melvin-bot melvin-bot bot changed the title [Advanced Approval Workflows]: Implement Sorting [$250] [Advanced Approval Workflows]: Implement Sorting Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01078457d0b3153dad

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

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

@dylanexpensify
Copy link
Contributor Author

Hi @blazejkustra! It's all yours!

@klajdipaja
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

During workflow configuration, when the Approver is being selected the list of the members shown for selections is not sorted alphabetically.

What is the root cause of that problem?

There is no sorting applied to the items in the list therefore they have the default ordering from the BE.

What changes do you think we should make in order to solve the problem?

In WorkspaceWorkflowsApprovalsApproverPage.tsx we need to sort the list of the items before they are passed to the Section.

Should be replaced with this:

data: OptionsListUtils.sortItemsAlphabetically(filteredApprovers)

Should be replaced with this:

data: OptionsListUtils.sortItemsAlphabetically(formattedApprover)

Should be replaced with this:

data: OptionsListUtils.sortItemsAlphabetically(formattedPolicyEmployeeList)

What alternative solutions did you explore? (Optional)

We could introduce sorting as a capability of the SelectionList component to have ordering built into it, so that when we pass sections to the component we can choose if the section items should be ordered ASC or DESC. That sounds like over engineering to me though.

Copy link

melvin-bot bot commented Aug 21, 2024

📣 @klajdipaja! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@klajdipaja
Copy link
Contributor

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~018cf234fc3c53341a

Copy link

melvin-bot bot commented Aug 21, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 23, 2024
@blazejkustra
Copy link
Contributor

PR is ready for your review @DylanDylann

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Sep 16, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

This issue has not been updated in over 15 days. @blazejkustra, @DylanDylann eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@DylanDylann
Copy link
Contributor

@dylanexpensify Please help process the payment for me. Thanks

@dylanexpensify
Copy link
Contributor Author

Payment summary:

Contributor+: @DylanDylann $250 via Upwork

Please apply/request!

@DylanDylann
Copy link
Contributor

@dylanexpensify The Upwork job is no longer available, could you create a new job and send the offer to my profile here? https://www.upwork.com/freelancers/~010c6310ab55f3d17d

Thanks

@DylanDylann
Copy link
Contributor

@dylanexpensify Bump on above comment

@dylanexpensify
Copy link
Contributor Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2 Reviewing Has a PR in review Task
Projects
Archived in project
Development

No branches or pull requests

4 participants