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 #64301][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer. #63932
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: V9.1.64-6 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: N/a Email or phone of affected tester (no customers): Slottwo1 das61@gmail.com Issue reported by: Applause Internal Team Device used: Redminote 10s android 13 App Component: User Settings
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
⚠️@thelullabyy Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).
🚨 Edited by proposal-police: This proposal was edited at 2025-06-11 09:44:55 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - In reports page, after tapping submit, preview box is shown as 2 different layer
What is the root cause of that problem?
In this case, when the submit button is clicked, isParentHovered becomes true, causing the hoveredComponentBG style to be applied to TransactionItemRow.
What changes do you think we should make in order to solve the problem?
In ReportListItem, isParentHovered is added to TransactionItemRow in this PR.
In that PR, we introduced the isParentHovered prop when migrating from TransactionListItemRow to TransactionItemRow, following the pattern used in TransactionListItemRow. However, this is redundant because TransactionItemRow already uses useHover, which is the same hook used in BaseListItem. As a result, isParentHovered and the hovered are effectively identical in TransactionItemRow. Therefore, I suggest removing this line.
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
@arosiclair Unfortunately, onHoverIn and onHoverOut are available for PressableWithFeedback only, not View, so we can't use onHoverIn and onHoverOut in here. Furthermore, in the documention
{% call macro.prop('onHoverIn', '?(e: MouseEvent) => void') %}
Called when the pointer starts hovering over the element. Touch interactions have no effect.
{% endcall %}
so onHoverIn won't call for touch interactions (mweb) that's equivalent to using canUseTouchScreen in #64301
changed the title [-][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/-][+][HOLD][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/+]on Jun 18, 2025
changed the title [-][HOLD][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/-][+][HOLD for #64301][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/+]on Jun 23, 2025
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jun 11, 2025
Triggered auto assignment to @CortneyOfstad (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.dmkt9 commentedon Jun 11, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
In report page, after tapping submit , preview box is shown as 2 different layer.
What is the root cause of that problem?
When the parent is hovered,
TransactionItemRowwill also be styled as hovered:App/src/components/TransactionItemRow/index.tsx
Lines 160 to 168 in 1cd33a2
What changes do you think we should make in order to solve the problem?
Only apply hover styling to
TransactionItemRowbased on the parent when used on desktop:App/src/components/TransactionItemRow/index.tsx
Line 164 in 1cd33a2
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
thelullabyy commentedon Jun 11, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-06-11 09:40:24 UTC.
github-actions commentedon Jun 11, 2025
thelullabyy commentedon Jun 11, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-06-11 09:44:55 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - In reports page, after tapping submit, preview box is shown as 2 different layer
What is the root cause of that problem?
In this case, when the submit button is clicked, isParentHovered becomes true, causing the hoveredComponentBG style to be applied to TransactionItemRow.
App/src/components/TransactionItemRow/index.tsx
Line 164 in 1cd33a2
What changes do you think we should make in order to solve the problem?
In ReportListItem, isParentHovered is added to TransactionItemRow in this PR.
In that PR, we introduced the isParentHovered prop when migrating from TransactionListItemRow to TransactionItemRow, following the pattern used in TransactionListItemRow. However, this is redundant because TransactionItemRow already uses useHover, which is the same hook used in BaseListItem. As a result, isParentHovered and the hovered are effectively identical in TransactionItemRow. Therefore, I suggest removing this line.
App/src/components/SelectionList/Search/ReportListItem.tsx
Line 155 in 1cd33a2
For same reason, we also can remove this line
App/src/components/SelectionList/Search/TransactionListItem.tsx
Line 121 in 1cd33a2
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Let's remove
isParentHoveredprop totallyApp/src/components/TransactionItemRow/index.tsx
Line 164 in 1cd33a2
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
nkdengineer commentedon Jun 11, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
In report page, after tapping submit , preview box is shown as 2 different layer.
What is the root cause of that problem?
We're using onMouseEnter and onMouseLeave to detect hover state
App/src/hooks/useHover.ts
Lines 8 to 9 in f1779d1
so when users click on the approve button, onMouseEnter is trigger, that makes isParentHovered is true
App/src/components/SelectionList/Search/ReportListItem.tsx
Line 155 in f1779d1
then
hoveredComponentBGis applied to theTransactionItemRow(child component)App/src/components/TransactionItemRow/index.tsx
Line 165 in f1779d1
For BaseListItem, we detect the hover state by
PressableWithFeedbackbut
onHoverOutandonHoverInare used to detect hover stateApp/src/components/Pressable/PressableWithFeedback.tsx
Lines 77 to 88 in f1779d1
and they're not triggered when users press submit button
=> We can see 2 layers
What changes do you think we should make in order to solve the problem?
We should update
useHoverto useonHoverInandonHoverOutsame as what we did in PressableWithFeedbackWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
CortneyOfstad commentedon Jun 13, 2025
Not able to recreate, so going to see if QA can test this!
CortneyOfstad commentedon Jun 13, 2025
Retest request — https://expensify.enterprise.slack.com/archives/C9YU7BX5M/p1749842192302539
IuliiaHerets commentedon Jun 13, 2025
@CortneyOfstad Issue reproducible on MWeb Android/Chrome App version 9.1.66-3
Dark mode and Light mode
https://github.com/user-attachments/assets/481e458d-a2df-4619-99ee-31af93bac629
https://github.com/user-attachments/assets/77e0ae9e-f361-4db5-97be-f5843bafd2f2
CortneyOfstad commentedon Jun 13, 2025
Thanks @IuliiaHerets!
Getting eyes on this!
14 remaining items
nkdengineer commentedon Jun 18, 2025
@arosiclair Unfortunately,
onHoverInandonHoverOutare available for PressableWithFeedback only, not View, so we can't useonHoverInandonHoverOutin here. Furthermore, in the documentionso onHoverIn won't call for touch interactions (mweb) that's equivalent to using
canUseTouchScreenin #64301In conclusion, the PR: #64301 is enough to fix
arosiclair commentedon Jun 18, 2025
Alright let's hold until the PR is merged and just verify this bug is also fixed.
[-][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/-][+][HOLD][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/+][-][HOLD][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/-][+][HOLD for #64301][$250] Reports - In reports page, after tapping submit, preview box is shown as 2 different layer.[/+]CortneyOfstad commentedon Jun 23, 2025
PR was deployed to staging 3 days ago, so waiting for production 👍
PR link — #64301
melvin-bot commentedon Jun 24, 2025
@allroundexperts Huh... This is 4 days overdue. Who can take care of this?
CortneyOfstad commentedon Jun 25, 2025
Went into production a few hours ago 🎉
#64301 (comment)
melvin-bot commentedon Jun 26, 2025
@allroundexperts Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon Jun 30, 2025
@allroundexperts 10 days overdue. I'm getting more depressed than Marvin.
melvin-bot commentedon Jul 1, 2025
@allroundexperts 12 days overdue. Walking. Toward. The. Light...
CortneyOfstad commentedon Jul 1, 2025
Can close this out as the PR went into production. Thanks team!