-
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 - Expense - Submit button appears for archived workspace chat if delayed submission is enabled #52183
base: main
Are you sure you want to change the base?
Fix - Expense - Submit button appears for archived workspace chat if delayed submission is enabled #52183
Conversation
@@ -358,7 +362,6 @@ function ReportPreview({ | |||
const shouldShowPendingSubtitle = numberOfPendingRequests === 1 && numberOfRequests === 1; | |||
|
|||
const isPayAtEndExpense = ReportUtils.isPayAtEndExpenseReport(iouReportID, allTransactions); | |||
const isArchivedReport = ReportUtils.isArchivedRoomWithID(iouReportID); | |||
const [archiveReason] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${iouReportID}`, {selector: ReportUtils.getArchiveReason}); | |||
|
|||
const getPendingMessageProps: () => PendingMessageProps = () => { |
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.
Hey @rlinoz, do you know of the top of your head what type
of report will have ARCHIVE_REASON.BOOKING_END_DATE_HAS_PASSED
? As in chat
, expense
or iou
? We're refactoring some of the archived code so might have to make some changes based on this.
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.
Answering your question: expense
reports
Explanation of what we are doing:
Travel reports that are related to a booking that you had to pay in person, in this case we create a placeholder report that gets archived when the end date of the booking has passed
Let me know if that is still confusing
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.
Ok cool, it makes sense, thank you! After these changes, since it is an expense report, it will be able to be commented on. But there will still be no actions like Submit
, Approve
, Pay
on these reports. Does that sound ok? cc @trjExpensify
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.
Ah okay, so even though this is an expense report, do we still want to continue archiving it using the chat pattern? Or do we want to switch to the expense report archive pattern where the composer is visible?
The This booking is archived now that the trip date has passed...
header text will still be visible with either approach that we take.
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.
Using the archive pattern still makes sense to me, because our intention is to communicate it as archived as displayed above. So if it doesn't follow that same pattern as how other archived chats show up in the product, it's confusing.
@FitseTLT what's the ETA for this PR? It's holding up a couple other PRs so just wanted to check. Also, we should try to be a little careful with this since it has a chance to cause regressions. By this, I mean that we should check all occurrences of |
I am working on it. Will provide update tomorrow 👍 |
I have checked all instances of isArchivedRoom and isArchivedRoomWithID and I have listed down some case I want confirmation from U
Now to confirm: You are aiming to set is_privateArchived for expense reports from BE. Correct me if I am wrong |
Details
Fixed Issues
$ #49169
PROPOSAL: #49169 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop