-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Create report simplified actions follow ups #61760
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
Create report simplified actions follow ups #61760
Conversation
src/ROUTES.ts
Outdated
route: ':action/:iouType/start/:transactionID/:reportID/distance/:backToReport?', | ||
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string, backToReport?: string) => | ||
`create/${iouType as string}/start/${transactionID}/${reportID}/${backToReport}/distance` as const, |
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.
arent these the other way around? /${backToReport}/distance
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
LGTM
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.
Tested with the backend fix and its looking good, left couple NAB comments but would be good to address them since conflicts need to be resolved
https://github.com/user-attachments/assets/7e443f19-db1a-4e2f-9505-f6f0ed7594b5
route: ':action/:iouType/amount/:transactionID/:reportID/:pageIndex?/:backToReport?', | ||
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string | undefined, reportID: string | undefined, pageIndex: string, backToReport?: string, backTo = '') => { |
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.
No need to add it to the getUrlWithBackToParam
?
const [personalDetails] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {canBeMissing: false}); | ||
const [draftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}`, {canBeMissing: true}); | ||
const [splitDraftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID}`, {canBeMissing: true}); | ||
const [skipConfirmation] = useOnyx(`${ONYXKEYS.COLLECTION.SKIP_CONFIRMATION}${transactionID}`, {canBeMissing: true}); |
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.
can this be missing?
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.
- Personal details list: probably not, I think we are sending it on app startup and that's why I added
false
, - draftTransaction: I believe this is only local onyx value, we don't have a full confidence it will be always there,
- splitDraftTransaction: can be missing in case we are creating a normal expense,
- skipConfirmation: this is some custom setting and if the user doesn't set it explicitly, then it's missing,
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.
draftTransaction: I believe this is only local onyx value, we don't have a full confidence it will be always there,
I mainly meant this one so I thought since its local we should probably be able to control its set
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.
It makes sense, I'll change it to false. From what I've checked it's always there.
BUG: Not Found Page display when creating expense via the quick action button Screen.Recording.2025-05-13.at.19.05.00.mov |
Cannot reproduce it on my end, can you give more tests steps/custom config of your workspace, etc.? |
So weird, can't reproduce anymore |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-13.at.19.51.51.movAndroid: mWeb ChromeScreen.Recording.2025-05-13.at.19.43.17.moviOS: HybridAppScreen.Recording.2025-05-13.at.19.49.04.moviOS: mWeb SafariScreen.Recording.2025-05-13.at.19.42.41.movMacOS: Chrome / SafariScreen.Recording.2025-05-13.at.19.40.21.movMacOS: DesktopScreen.Recording.2025-05-13.at.19.46.08.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.
LGTM and tests well. @mountiny all yours
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: 9.1.45-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.45-0 🚀
|
@SzymczakJ This PR is failing because of issue #61953 Bug6830140_1747165724773.20250514_034343.mp4 |
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.45-21 🚀
|
Explanation of Change
This PR adds:
Screen.Recording.2025-05-12.at.10.30.02.mov
FloatingActionButtonAndPopover
putting functions connected to quick actions to a seperate utils file and changes the Create report FAB action so that, if there's only one paid gropu workspace and it's past grace period it automatically redirects "pay for workspace" pageFixed Issues
$ #57656
$ #61087
$ #61513
$ #60887 (comment)
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
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