-
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
Disabled clickable & hoverable state in the banner if there's no clickable element in it. #13576
Conversation
@puneetlath @Santhosh-Sellavel 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] |
The diff looks huge due to indentation but the key changes are on lines (new) 48, 49, 57, 58, 65, 75 |
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.
Okay, it's too many changes, Having second thoughts about, Lot of unnecessary changes now. Maybe let's just introduce a prop, I think that's simpler any thoughts @puneetlath?
@Santhosh-Sellavel Did you check it with "Hide whitespace" tick marked? |
@Santhosh-Sellavel I don't think having too many props is ideal when we can already deduce things from existing props. But happy to hear others' thoughts @puneetlath |
Oh wow, I never knew about the "hide whitespace" setting option. That's cool. Looking at it after selecting that I feel comfortable with the changes as long as it tests well. |
Ohh nice, now you know! 😁 In regards to testing, it does work well. All platform's test videos attached. |
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.
👍 overall, I initially was concerned about this and thought maybe we should have just solved it with a different style applied but after trying to come up with the how of that idea I realize it's not that straight forward so am good with this solution.
I'm pretty new to the review flow, should I copy some checklist?
@bondydaa at least one reviewer needs to complete the full checklist. Typically the C+ (in this case @Santhosh-Sellavel) will take care of that. |
Reviewer Checklist
Screenshots/VideosWeb2022-12-15_18-40-14.mp4Mobile Web - ChromeMobile Web - SafariDesktopScreen.Recording.2022-12-16.at.6.06.26.AM.moviOS & AndroidScreen.Recording.2022-12-16.at.6.10.03.AM.mov |
Can you add recording for this or explain how to do this, So I can test this quickly! |
@Santhosh-Sellavel These are the conditions when it's shown but I don't know exactly when do we have an
Screen.Recording.2022-12-16.at.11.00.04.AM.mov |
@priyeshshah11 Seems there is no hover effect there? |
yes and that's expected as that's how that component is without my changes too, because of the |
@Expensify/design is this banner working as expected? |
I think that's right based on my local environment right now that is pretty up to date with 2022-12-15_17-28-46.mp4 |
@bondydaa I'm not sure how to get the account manager, So I'll add screens for others since you covered the account manager case! |
sounds good, the account manager stuff is tied to an NVP on the backend which we'd probably have to manually insert it into the DB for it to show up on one of your accounts. Let me pull your code locally and upload another screenshot but I think it'll end up looking the same as the one you got |
steps I did to pull your branch
Ran the app and it looks the same as far as I can tell 2022-12-15_17-45-42.mp4 |
Oh interesting, so there is no clickable link in that banner? One thing to note here - we need to update the border radius of this banner to use |
We have for account manager |
Got it. So yeah, if something is clickable, it makes sense to have a hover state for the cursor. |
The cursor works fine, but do we need a hover background here? |
At the very least I don't think this adds any regressions with the account manager banner with these changes. My feelings would be if you want to add the extra go for it but we can also spin up a new issue to add those states as well, thoughts @shawnborton ? |
I think just the cursor is fine, no need for BG changes? |
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.
Checklist: #13576 (comment)
Didn't add the web platforms screens, I am unable to add them due to login issues on the web. But this should work as I tested it on the Desktop. So Approving this one.
@priyeshshah11 |
@Santhosh-Sellavel done now, thanks! |
Oh I guess I could probably test that too 🤦 followed the same steps to checkout the fork ✅ |
I can't seem to get mobile web to work for me either |
I requested access here, https://expensify.slack.com/archives/C01GTK53T8Q/p1671150365051029?thread_ts=1670957921.425999&cid=C01GTK53T8Q. But still didn't get access, can you help here @bondydaa ? |
unfortunately i don't have access to our cloudflare so can't help expedite that. @puneetlath @arosiclair do either of you have working local environments and could follow the steps here #13576 (comment) to check this code out locally and confirm mobile web for us? To create an archived room, create a new workspace then close it and those will then show as "archived" ultimately I think it's pretty low risk if we can't confirm before merging - once this is on staging we'll be able to confirm for sure right? |
@bondydaa Let's merge this, I'm it won't break anything also we have a recording from PR Description which confirms that. Also it doesn't have any effect on mWeb as we don't hover there. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
Thanks team! 😄 @Santhosh-Sellavel @bondydaa @puneetlath @arosiclair |
🚀 Deployed to production by @yuwenmemon in version: 1.2.42-2 🚀
|
Details
Fixed Issues
$ #13452
PROPOSAL: #13452 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
banner-web.mov
Mobile Web - Chrome
banner-mweb-chrome.mov
Mobile Web - Safari
banner-mweb-safari.mov
Desktop
banner-desktop.mov
iOS
banner-ios1.mov
Android
banner-android.mov