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
Submit button is green on the Reports page, when it should be grey/button color #55076
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
We're showing conflicting colors for the Submit button based on the view. For instance, on the Reports page, you can see that this Submit button is green.
Clicking into the same report, the Submit button is correctly showing as grey/button color, as the report is scheduled to be automatically submitted.
Solution
The Search page should be using the grey/button color, consistent with the report header.
cc @luacmartins since we've messed with this logic recently. I'll still open this up for external unless you decide otherwise.
changed the title [-]`Submit` button is green on the `Reports` page, when it should be grey/button color[/-][+][HOLD App #54732] `Submit` button is green on the `Reports` page, when it should be grey/button color[/+]on Jan 10, 2025
What changes do you think we should make in order to solve the problem?
The ActionCell already has a prop called shouldUseSuccessStyle (it will be removed in #54732 but we can just re-add it) which we can control to either show it as green or gray. The value depends on !policy?.harvesting?.enabled, just like on the report header.
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 Jan 10, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)melvin-bot commentedon Jan 10, 2025
Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new.
NJ-2020 commentedon Jan 10, 2025
I think we need to hold for this #54732
luacmartins commentedon Jan 10, 2025
Agree to put a hold for #54732
[-]`Submit` button is green on the `Reports` page, when it should be grey/button color[/-][+][HOLD App #54732] `Submit` button is green on the `Reports` page, when it should be grey/button color[/+]bernhardoj commentedon Jan 10, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Submit button is green on the Reports page even though it's scheduled to be automatically submitted.
What is the root cause of that problem?
We don't have any logic to turn it to gray when the expense is scheduled to be automatically submitted, compared to the money report header.
App/src/components/MoneyReportHeader.tsx
Lines 293 to 296 in 3541c89
App/src/components/MoneyReportHeader.tsx
Lines 396 to 397 in 3541c89
What changes do you think we should make in order to solve the problem?
The
ActionCellalready has a prop calledshouldUseSuccessStyle(it will be removed in #54732 but we can just re-add it) which we can control to either show it as green or gray. The value depends on!policy?.harvesting?.enabled, just like on the report header.We need to apply it to all these places. The policy will be from the item.policyID
App/src/components/SelectionList/Search/ReportListItem.tsx
Lines 162 to 173 in 3541c89
App/src/components/SelectionList/Search/ReportListItem.tsx
Lines 203 to 205 in 3541c89
App/src/components/SelectionList/Search/TransactionListItemRow.tsx
Line 283 in 3541c89
App/src/components/SelectionList/Search/TransactionListItemRow.tsx
Lines 448 to 450 in 3541c89
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can create a UI test to make sure it's shown as green if harvesting is disabled and gray otherwise.
melvin-bot commentedon Jan 14, 2025
@JmillsExpensify, @luacmartins, @parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
13 remaining items
parasharrajat commentedon Feb 11, 2025
I will start reviewing on above confirmation.
parasharrajat commentedon Feb 12, 2025
@bernhardoj proposal looks good to me.
🎀 👀 🎀 C+ reviewed
melvin-bot commentedon Feb 12, 2025
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
luacmartins commentedon Feb 12, 2025
We're actually revamping the expected behavior for action buttons as part of the #migrate: Simplified Actions Framework for all Reports project. So I think we should just close this issue for now. @JmillsExpensify what do you think?
melvin-bot commentedon Feb 18, 2025
@JmillsExpensify, @luacmartins, @parasharrajat Huh... This is 4 days overdue. Who can take care of this?
parasharrajat commentedon Feb 18, 2025
@JmillsExpensify What do you think?
melvin-bot commentedon Feb 24, 2025
@JmillsExpensify, @luacmartins, @parasharrajat Huh... This is 4 days overdue. Who can take care of this?
JmillsExpensify commentedon Feb 26, 2025
Yes, agreed. Let's just close this one now.