You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-06-21] [$1000] Dev: Only description's text has reduced opacity when it's disabled #19232
The values of both the description and title should be displayed with reduced opacity.
Actual Result :
Only description's text has reduced opacity
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: Main branch Reproducible in staging?: needs reproduction Reproducible in production?: needs reproduction If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
task header description's text has reduced opacity when it's disabled.
I think the Expected Result is the both fields should be without opacity, not with opacity, to be consistent with MoneyRequestHeader.
What is the root cause of that problem?
After make the task mark as done, we disable the item to disable edit it, But we use different style for item disabled here.
the disable style work for task description, but not work for task title because title has additional prop shouldShowHeaderTitle which override disabled text color.
What changes do you think we should make in order to solve the problem?
Solution A
set titleStyle={styles.colorHeading} for MenuItemWithTopDescriptionhere to override disabled color like this.
<MenuItemWithTopDescriptiontitle={lodashGet(props.report,'description','')}description="Description"onPress={()=>Navigation.navigate(ROUTES.getTaskReportDescriptionRoute(props.report.reportID))}disabled={!isOpen}titleStyle={styles.colorHeading}// <<<<<<<<< add this prop/>
Solution B
add prop shouldShowHeaderTitle to task description to be same as task title.
What alternative solutions did you explore? (Optional)
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
I think this is resulted by change in design rather than a bug. So, it couldn't have caught earlier.
Activity
melvin-bot commentedon May 18, 2023
Triggered auto assignment to @johncschuster (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 18, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)ahmedGaber93 commentedon May 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
task header description's text has reduced opacity when it's disabled.
I think the Expected Result is the both fields should be without opacity, not with opacity, to be consistent with MoneyRequestHeader.
What is the root cause of that problem?
After make the task mark as done, we disable the item to disable edit it, But we use different style for item disabled here.
App/src/components/MenuItem.js
Line 72 in 2090c05
the disable style work for task description, but not work for task title because title has additional prop
shouldShowHeaderTitlewhich override disabled text color.What changes do you think we should make in order to solve the problem?
Solution A
set
titleStyle={styles.colorHeading}forMenuItemWithTopDescriptionhere to override disabled color like this.Solution B
add prop
shouldShowHeaderTitleto task description to be same as task title.What alternative solutions did you explore? (Optional)
aman-atg commentedon May 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Only description's text has reduced opacity when it's disabled
What is the root cause of that problem?
It is caused by adding this line which overrides the above styles
What changes do you think we should make in order to solve the problem?
We should move it to the top of "disabled styles" like below which will resolve the issue.
As per the new requirements, we now have two options for Task header MenuItems :-
1. No reduced opacity and default cursor
To get this, we just need to use
interactiveprop and remove thedisabledprop like belowCode
Result
interactive.mp4
2. No reduced opacity and not-allowed cursor
To get this, we need to use both
disabledandinteractiveprops like belowCode
Result
disabled.mp4
johncschuster commentedon May 19, 2023
I don't think this is a bug. (Asking in Slack)
melvin-bot commentedon May 22, 2023
@johncschuster Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon May 24, 2023
@johncschuster Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon May 26, 2023
@johncschuster Still overdue 6 days?! Let's take care of this!
johncschuster commentedon May 30, 2023
Ok! It's a bug. 😅
Sharing the discussion about the intended behavior since it happened in a channel that is not shared:
38 remaining items
johncschuster commentedon Jun 26, 2023
@sobitneupane Can you complete the BZ Checklist when you get a moment?
johncschuster commentedon Jun 26, 2023
@aman-atg / @sobitneupane can you apply to the Upwork job above? Thanks!
johncschuster commentedon Jun 28, 2023
NVM – I've invited you both!
aman-atg commentedon Jun 29, 2023
@johncschuster I have accepted the offer, thank you!
sobitneupane commentedon Jul 3, 2023
#18806
#18806 (comment)
I think this is resulted by change in design rather than a bug. So, it couldn't have caught earlier.
sobitneupane commentedon Jul 3, 2023
Regression Test Proposal
Do we agree 👍 or 👎
johncschuster commentedon Jul 5, 2023
Regression test issue created^
johncschuster commentedon Jul 5, 2023
Payment has been issued!