-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Return tags in the order of their orderWeight
#37471
Conversation
@alitoshmatov Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
3cff1e7
to
c3b3147
Compare
src/types/onyx/PolicyTag.ts
Outdated
|
||
/** Index by which the tag appears in the hierarchy of tags */ | ||
orderWeight: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB: I'm confused why this looks like a change if #37468 was merged 🤯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I was branching off that first branch. If I pull I believe it will go away one sec.
orderWeight
orderWeight
This is no longer on HOLD! |
Reviewer Checklist
Screenshots/VideosiOS: Native![tags-weight-ios](https://github.com/Expensify/App/assets/59907218/15a50a77-0ecb-42bf-b576-b40fb2a0d1ef) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@arosiclair Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
All yours @aldo-expensify |
@yuwenmemon you got some conflicts |
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.4.48-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.48-0 🚀
|
@aldo-expensify please review
HOLD ON https://github.com/Expensify/Auth/pull/10053Details
Returns tags in order of their
orderWeight
by sorting tags on that property before returning them in the form of an array of values.Fixed Issues
$ #37054
Tests/QA
On a collect policy that has a workspace chat or is otherwise connected to NewDot, upload a list of multi level tags:
uploads_1618929581886-Independent+with+GL+codes+format+-+Sheet1.csv
Rearrange the tag lists in the policy editor, so that they are not in alphabetical order:
Open up NewDot, and create a request on that policy
Make sure that the tags show up in the order you had specified in the policy editor before:
Finish creating the request, setting values for all the tags. Make sure that when you open the expense, you see the tag levels in that same order:
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop