-
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: change styles for the requestee #25952
fix: change styles for the requestee #25952
Conversation
@@ -92,6 +92,8 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, trans | |||
|
|||
const isDistanceRequest = TransactionUtils.isDistanceRequest(transaction); | |||
|
|||
const isInteractive = canEdit && !isSettled; |
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.
This condition is redundant I think. If canEdit, !isSettled already
Lines 1264 to 1267 in 643e2e8
const isReportSettled = isSettled(moneyRequestReport.reportID); | |
const isAdmin = isExpenseReport(moneyRequestReport) && lodashGet(getPolicy(moneyRequestReport.policyID), 'role', '') === CONST.POLICY.ROLE.ADMIN; | |
const isRequestor = currentUserAccountID === reportAction.actorAccountID; | |
return !isReportSettled && (isAdmin || isRequestor); |
I am not sure this is bug but IMO when hover on text, cursor should be I-beam as text is selectable and copiable bug.mov |
@shawnborton can you please confirm - #25952 (comment) |
That makes sense to me, yup. Also @situchan, please use the @expensify/design team handle from here on out instead of just tagging me directly. Thanks! |
@shawnborton I can change it easily by changing cursor styles for MenuItem component - but is it ok to change it for all the components? We're using MenuItems here: |
I feel like this needs to be done separately (out of scope for this PR) as already happens on production |
@mountiny what do you suggest? should be fixed here or separately? |
@situchan but it's a one-liner 😃 it's ready and I can push it now, but I just wanted to make sure before I do that |
sure we do. Just hesitated as this affects the entire app where MenuItem component is used |
Good point, let's just leave this out for now and not worry about it. |
so we're leaving it as it is? no need to push the changes now? |
correct. I will checklist shortly |
I'll be OOO from tomorrow, but if any changes are required, someone from my team can take it over. |
@situchan Quick heads up that this PR is clean-up for a high-priority internal initiative. It'd be great if you can prioritize this PR over your other reviews. Thanks! |
on it now |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.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.
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.
Thanks 🚀
✋ 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/mountiny in version: 1.3.60-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.60-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.60-3 🚀
|
Details
Fixed Issues
$ #25931
PROPOSAL: #25931
Tests
there's no chevrons, items are not clickable
items are not highlighted on hover
the cursor is default
Verify that no errors appear in the JS console
Offline tests
N/A
QA Steps
there's no chevrons, items are not clickable
items are not highlighted on hover
the cursor is default
Verify that no errors appear in the JS console
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)/** 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.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
Web
not visible in the screenshot, but the cursor is default
Mobile Web - Chrome
Mobile Web - Safari
Desktop
not visible in the screenshot, but the cursor is default
iOS
Android