Fix/79139b - Add sticky filters to the reports page#83457
Fix/79139b - Add sticky filters to the reports page#83457dmkt9 wants to merge 5 commits intoExpensify:mainfrom
Conversation
|
@hungvu193 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] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0beda4ff25
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
I'll review today |
|
🚧 @trjExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
Actioned on a build. CC: @Expensify/design on this as well |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
I might have missed something, but why are we only doing sticky filters for Expenses, Reports, and Chats? I ask because I just tested on |
|
The way we use exposed filters, and how they change between LHN items, makes this feel pretty strange IMO. Filters that are exposed on both Reports and Expenses feel pretty good (i.e. I don't really think this is a functionality problem, I think it's a visual-display-of-information problem, which will hopefully be remedied by the work Jon is currently focusing on with filters. Just wanted to note it here. |
I agree. Honestly, I kind of think we should hold on this PR, as I think we're exploring a lot of improvements to the filters that cause me to call into question whether we need this behavior in the first place. (As a reminder, contributors will be paid for their work at this point, no matter whether we close or merge the PR). |
|
Like just thinking out loud, but if we:
Then I think we basically get the "solution" in this PR in a different way, with better UX. So I more so start to favor holding on this right now vs pushing it forward. |
I agree the UX improvements for filters is going to help with this immensely, but I don't think they replace someone wanting their chosen filters to be sticky on one of the LHN items in addition. I still think there's utility in that - people are finding it super annoying that if you filter, go somewhere else, come back and have to re-filter again. |
I agree, though I do think this feature becomes much more welcome and valuable once it's clear what is happening. As it stands currently I worry that it will end up being more confusing. But, I'll let you and Jason battle out whether or not you think we should wait until those other improvements are live or press on with this one now. |
|
I personally find the current behavior confusing. It's not very predictable because we've implemented implicit logic, where some pages are sticky and some aren't. I agree this is coming up, though I think it's better to hold off until we have better filter UX. Because at that point it's still debatable whether we'll still move forward with this PR> |
|
I've been looking into this one for my filter prototypes and one thing I was trying out was having a difference between explicit filters vs implicit. Implicit being set by the LHN items and explicit being once you apply specifically yourself. It felt good with filters like workspace etc, but it quickly got a bit more messy with other filters that either don't apply from expenses to reports, or implicit ones you change that then go away when you change LHN. That was the closest thing I got to though. |
Yes, I do agree it should apply to them all really. I'm not entirely sure of the rationale for |
|
Yup, I agree with that too. |
|
We have decided to close this issue out in favor of a longer-term solution. @dmkt9 @hungvu193 thank you guys for the work on this, you will still be paid out for the work! |
|
Yeah, thanks everyone for the hard work in this PR! |
Explanation of Change
Follow-up PR #80247
allSearchAdvancedFiltersandprevSearchAdvancedFiltersFormsByTypeare not reset when clearing filters.This PR helps:
Expenses,Reports, andChatsitems in the Search type menu bar within the "Explore" section will be highlighted even when we change the values of the filters.Reports>Reportsdate, anduser, while on the reports pageExpensesand gets taken to the expenses viewdate, anduserReportsPagedate&userFixed Issues
$ #79139
PROPOSAL: #79139 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Test 1:
Test 2:
Test 3:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Test 1:
Android: Native
android.native.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.native.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
mac.safari.mp4
Test 2:
test2.mp4
Test 3:
test3.mp4