Fix - Update empty state for tag and category#62670
Fix - Update empty state for tag and category#62670thienlnam merged 18 commits intoExpensify:mainfrom
Conversation
|
@shawnborton @fedirjh One of you needs to 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] |
|
@shawnborton I don't like the styling on large screens. The empty state component has maxWidth of 400 but looks like this is too small for importspreadsheet and add category buttons. We have many options but let me know your suggestion and will implement it 👍 |
|
Hmm what if we shorten the button label to just be "Import"? Cc @Expensify/design for thoughts on that, but I think that would be really helpful and allow us to maintain the 50/50 split. |
|
We can also consider increasing maxWidth. |
|
I'd prefer not to, as we've kind of standardized on this component in many places. |
@shawnborton @FitseTLT we can use
|
|
Not against shortening to |
|
@fedirjh do we still have room to keep |
|
@shawnborton These are different variations, For mobile should we make buttons go full width?
|
|
It looks like this: Let me know your opinion on the 2025-05-30.23-28-24.mp4In small screen, I think it is better if we stretch the buttons. I don't like it now. 2025-05-30.23-33-20.mp4 |
|
Yeah, again, please see our comments here - on mobile, the buttons are stacked and take up 100% width. |
|
@FitseTLT Can you merge main and address this #62670 (comment) ? |
|
@shawnborton should that be applied to empty state component generally so that other instances using it would be affected too? |
|
What do you mean exactly? |
|
Ah, I didn't realize it was like that on mobile. Yes, we should update that for every place we use it, not just this PR. Can you take care of that? |
Its even easier from programmiing perspective. ON IT. |
|
Nice catch @shawnborton Fixed
|
|
Nice, and can you show me what it looks like now on mobile when there is indeed a category present? Thanks! |
2025-06-04.17-15-07.mp4 |
|
Okay nice, that looks correct to me. I think we can move into final review then! |
|
Ah conflicts |
|
I have resolved it but wait. I have one question for the author of the pr that conficted with this pr 👍 |
|
@fedirjh I have added one change of hiding the action buttons when policy has accounting connections. U can give a quick 👀 and we are good to go. |
| lottieWebViewStyles={styles.emptyStateFolderWebStyles} | ||
| headerContentStyles={styles.emptyStateFolderWebStyles} | ||
| buttons={ | ||
| !policyHasAccountingConnections |
There was a problem hiding this comment.
@FitseTLT Can you please explain this change, why the buttons are hidden in this case?
There was a problem hiding this comment.
Because we don't show the buttons when there is accounting connections even in their original place so we shouldn't do in the empty state component too.
App/src/pages/workspace/tags/WorkspaceTagsPage.tsx
Lines 400 to 403 in 2a74195
There was a problem hiding this comment.
Aha, So that means tags and categories are managed in the accounting software. @shawnborton should we update the text in that case? Current state when accounting is enabled :
There was a problem hiding this comment.
I definitely think we should.
There was a problem hiding this comment.
Totally agree that we should update the text. cc @jamesdeanexpensify @LLPeckham in case you have any good ideas here. Basically we want to change the empty state text to let them know that tags are controlled by their accounting sync.
There was a problem hiding this comment.
Your tags are currently importing from an accounting connection. Head over to [accounting] to make any changes.
Or something like that?
There was a problem hiding this comment.
Love it, that sounds great to me!
There was a problem hiding this comment.
We also need for categories @jamesdeanexpensify
There was a problem hiding this comment.
You mean like:
Your categories are currently importing from an accounting connection. Head over to [accounting] to make any changes.
|
Here is how it looks 2025-06-11.16-37-43.mp4 |
|
Feels pretty good to me 👍 |
thienlnam
left a comment
There was a problem hiding this comment.
Sweet! Thanks for being thorough with design on this one!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 9.1.65-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.65-1 🚀
|



























Details
Fixed Issues
$ #61908
PROPOSAL: #61908 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Android: Native
2025-05-23.21-35-56.mp4
Android: mWeb Chrome
2025-05-23.21-34-39.mp4
iOS: Native
2025-05-23.19-48-07.mp4
iOS: mWeb Safari
2025-05-23.19-49-32.mp4
MacOS: Chrome / Safari
2025-05-23.19-46-10.mp4
MacOS: Desktop
2025-05-23.19-46-47.mp4