fix: Add the "Add expense" button to two areas of the product.#71267
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
d677484 to
2a39dbe
Compare
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@JS00001 should we allow adding expenses from reports page when the app if offline? I experienced a weird behaviour while testing (starts from 1:52): desktop_app.1.mp4 |
|
I would think we could add expenses offline, what is the issue when offline? I'm not sure I follow |
|
Yeah I agree with that. You can currently add expenses while offline, no? |
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@Krishna2323 to fix the "Validate Github Actions and WorkflowsExpected — Waiting for workflow to run" action, you need to push a commit (this is a known issue) 😢 Could you add a comment or something haha |
|
Will this comment run the workflow??? If not I will push a commit. |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
A bunch of eslint errors now 😢 |
|
@JS00001 I think the ESLint errors are not related to this PR. |
|
@Krishna2323 Can you see this thread? https://expensify.slack.com/archives/C01GTK53T8Q/p1761047705937759?thread_ts=1761040802.004759&cid=C01GTK53T8Q If so, could you follow those steps and suppress the warnings for now? |
|
Ah, merging main should fix it, they reverted the PR: https://expensify.slack.com/archives/C01GTK53T8Q/p1761070690954209?thread_ts=1761040802.004759&cid=C01GTK53T8Q |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@JS00001 ESLint issues are fixed. |
|
✋ 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/JS00001 in version: 9.2.37-1 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.37-8 🚀
|
| const session = useSession(); | ||
| const isReportArchived = useReportIsArchived(report?.reportID); | ||
| const shouldShowAddExpenseButton = canAddTransaction(report, isReportArchived) && isCurrentUserSubmitter(report); | ||
| const addExpenseDropdownOptions = useMemo(() => getAddExpenseDropdownOptions(report?.reportID, policy), [report?.reportID, policy]); |
There was a problem hiding this comment.
Coming from #75479, we should lastDistanceExpenseType to getAddExpenseDropdownOptions
Explanation of Change
Fixed Issues
$ #68772
PROPOSAL: #68772 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.1.mp4
MacOS: Desktop
desktop_app.1.mp4