-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix icon color for saved search popup menu #49569
Fix icon color for saved search popup menu #49569
Conversation
@ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-21.at.5.01.17.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-21.at.5.03.21.PM.moviOS: NativeScreen.Recording.2024-09-21.at.4.52.02.PM.moviOS: mWeb SafariScreen.Recording.2024-09-21.at.4.54.35.PM.movMacOS: Chrome / SafariScreen.Recording.2024-09-21.at.4.48.39.PM.movMacOS: DesktopScreen.Recording.2024-09-21.at.7.19.15.PM.mov |
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!
Also since this changes colors for saved seach popover, tagging @Expensify/design for review
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-21.at.5.01.17.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-21.at.5.03.21.PM.moviOS: NativeScreen.Recording.2024-09-21.at.4.52.02.PM.moviOS: mWeb SafariScreen.Recording.2024-09-21.at.4.54.35.PM.movMacOS: Chrome / SafariScreen.Recording.2024-09-21.at.4.48.39.PM.movMacOS: DesktopScreen.Recording.2024-09-21.at.7.19.15.PM.mov |
This issue is actually not entirely correct. Cause our default colors on popup is that the icon is green: But for the Search LHN we've changed the icon color to be green on active and grey on inactive. I kinda think we should do one of two things here:
I don't think we should treat this as an exception, but keen to hear what @Expensify/design things. cc @luacmartins |
@dubielzyk-expensify option 2 seems like a better choice but if it affects in too many places and we go for option 1, I think it should be still changed for mobile/narrow screens. It is not like a popup there, so it seems inconsistent on mobile devices. (the below screenshot is with changes from this PR) |
Yeah. I think if we did 1 and 2 we'd just do it as a separate follow-up. I'm not totally against creating a specific override here, but it just feels a bit off. Let's hear what @dannymcclain thinks. |
Ok I think this is my perspective: BUT I am a bit torn because I do prefer the update (Option 2) 😅 but am a little concerned about how many places an update like that would touch. ...Although we've been talking about making that change for a looooooong time now. I do agree with Jon that we should not treat this as exception though. Can we get any insight into the level of effort/scariness for pursuing Option 2? |
How far are willing to go if we pursue Option 2, are we talking about only popover menu item icons across app or include the alll other menuitems we have @dannymcclain @dubielzyk-expensify Codewise i dont thinnk there's much effort to put in, we can default |
🫣 We were talking about ALL of them 🫣 Although your comment does make me wonder if there's a phased/stepped approach we could potentially take (like start with menu items, then go through our "regular" option rows, and then tackle any stragglers, etc). But yeah, initially I think Jon and I were talking about all of them everywhere. |
its not much of effort to change the color globally TBH, i have prepared a draft PR with no intention to merge if team wants to take a look and we can run adhoc build, if all good we can bring the the changes to this PR |
Whoa that's awesome. Let's have some peeps take a look! @dubielzyk-expensify I tried to run a build for the proof-of-concept-draft-PR mentioned above but likely won't be around when it's finished doing its thing. Please check it out and I'll plan on looking tomorrow. Also, is there anyone else we should bring into this convo about this? |
We'll have to do an audit cause I've already found 2 place where it doesn't replace the icon color: But that being said, I kinda wanna do this. Cause either we do it now-ish or we start having this half n half of Search being the outlier and the rest being different. Keen to hear if @trjExpensify or @JmillsExpensify have any thoughts. Also we can always revert this change later if we hate it, but I kinda dig it 😄 |
Totally agree. I also found a spot (Subscription > Request early cancellation) that didn't get the correct color.
This is how I feel too. We've been talking about this update for ages, and I feel like the Search release is "forcing our hand" in a good way. I think we should just lean into it. Like yes, it's totally possible/probable/likely that there will be a few scattered places that we won't catch and we'll have to file bug reports to fix—but IMO that's acceptable and worth it. |
The "issue" really becomes more pronounced on mobile where our LHN items and menu items become conflated and look almost the same but not quite the same. |
Agreed, there will be a few places with some specific exception but since this does not break any functionality I also think they can be fixed as we find them. Also, I investigated the places mentioned above and they have an issue on staging as well. They do not change color when hovered even on staging. This does not change color because table icon is hardcoded as green. This can be fixed by editing the svg and removing the hardcoded color. The color for this place is hardcoded here. |
Ok, sounds like a plan. @jaydamani can you update the PR to invert the isPaneMenu logic, e.g. how we have done here |
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.
@jaydamani please address the comments above
@luacmartins working on it |
…u > import spreadsheet)
Updated below places that had hardcoded colors. All of them now change colors on hover:
Let me know if any of them should be reverted. Also, I am not sure what should be the best steps for QA. Should we instruct them to roam around in app and find incorrect/old icons or just ask them to verify the above mentioned places where we explicitly made some changes. |
Gonna run an adhoc build. @dubielzyk-expensify @dannymcclain could you please test the build to make sure the colors are correct? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Looked everywhere and couldn't find any faults. Looking great! 👏 Would love @dannymcclain 's eyes on it as a double check before we go ahead, but I think this is good |
Thanks for testing. In this case, I'll go ahead and merge this to avoid any conflicts in the meantime. @dannymcclain let me know if you find anything weird and we can address it in a follow up. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Totally fine with y'all merging without my review—this is a pretty "low-stakes" update in that we're not really going to break anything here. Sorry I didn't get a chance to check it out yesterday! I will keep my eyes peeled for miscolored icons, but I'm stoked we're finally pushing this through! |
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.41-0 🚀
|
This appears to have caused a regression: #49885 |
Thanks! Fix merged |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
|
Details
The icon color inside three dot menu for saved search are incorrect.
Fixed Issues
$ #49440
PROPOSAL: #49440 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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