-
Notifications
You must be signed in to change notification settings - Fork 4k
[Payment due @marufsharifi] [Commuter Mileage Exclusion] [R1] Display and enforce fixed distance exclusions #93848
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
Merged
Merged
Changes from all commits
Commits
Show all changes
154 commits
Select commit
Hold shift + click to select a range
135caf9
Add commuter exclusion types, constants, and strings
fedirjh 8324df2
Render commuter exclusion breakdown on confirmation, view, and edit
fedirjh 4456e9a
Gate manual/odometer entry on commuter exclusion policies
fedirjh cdafc1b
Route COMMUTER_EXCLUSION system action through ActionContentRouter
fedirjh 44f5bd1
Optimistic commuter exclusion on createDistanceRequest
fedirjh 932c326
Block manual and odometer entry on commuter-exclusion workspaces
fedirjh 6bdf910
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 8974878
Merge branch 'alberto-createExclusion' into commuter-exclusions-app
fedirjh ee0cba7
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 290daee
Consolidate commuter exclusion constants under CONST.POLICY
fedirjh 2f9b65a
Add commuter exclusion breakdown and unit label utilities
fedirjh bbe4aa3
Display commuter exclusion breakdown in the distance field
fedirjh c41d074
Apply reimbursable amount and seed optimistic commuter exclusion data
fedirjh 103dcd5
Render commuter exclusion system message as HTML with settings link
fedirjh a366047
Remove buildOptimisticCommuterExclusionReportAction function and its …
fedirjh 2833278
fix: always use computed distanceRequestAmount for distance requests
fedirjh 7bc17b8
fix: pass commuterExclusionBreakdown from hook to confirmation UI
fedirjh fbee94b
fix: show reimbursable distance in merchant text with commuter exclusion
fedirjh ad78962
fix: compute commuter exclusion from policy in MoneyRequestView
fedirjh a01fa2e
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh e45fffd
Use Onyx selector for commuter exclusion tab check, exclude personal …
fedirjh 9d80222
Centralize commuter exclusion distance display in getDistanceForDisplay
fedirjh 8b64f38
Align DistanceField commuter exclusion display with MoneyRequestView …
fedirjh 76504c7
Use shared CommuterExclusionData type in DistanceRequestController an…
fedirjh 1d2c6f6
Add getFormattedDistanceInUnits util for localized commuter exclusion…
fedirjh e831728
Reuse getFormattedDistanceInUnits for commuter distance labels
fedirjh 61e6047
Refactor commuter exclusion handling in MoneyRequestConfirmationList
fedirjh 057386e
Rename getCommuterExclusionBreakdown to getCommuterExclusionData
fedirjh e2b751b
Pass commuterExclusionData to getDistanceMerchant
fedirjh 1dabe25
Break MoneyRequestUtils/DistanceRequestUtils dependency cycle
fedirjh d13d5c6
Show map/GPS-required confirm modal for manual and odometer distance
fedirjh b3c370c
Refactor commuter exclusion distance formatting in multiple languages
fedirjh 27bc11b
Format commuter exclusion change-log messages via getFormattedDistanc…
fedirjh e6aa09d
Add mapOrGpsDistanceRequired translations for all locales
fedirjh c225c32
Add commuter exclusion translations for multiple languages
fedirjh caa7327
Add mock implementations for distance request utilities in tests
fedirjh c80f6da
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 814c91b
Scope distance amount recalculation to commuter exclusions via should…
fedirjh b13da76
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh dd83c0f
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 1a4b275
Add 'commuter' translations for multiple languages
fedirjh 0b8f004
Fix commuter exclusion distance display
fedirjh 332ffb6
Use shared distance merchant formatting
fedirjh eddff4c
Add commuter fields to debug validation
fedirjh 2a633bf
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 67e2da5
Refactor fixed distance unit style
fedirjh 39a7adb
Extract distance display formatting
fedirjh 956288a
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 5d25316
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 832893e
Cover commuter distance merchant updates
fedirjh 7468b01
Fix ESLint type-assertion errors in commuter exclusion messages
fedirjh f678ffc
Add HouseWithMap illustration SVG and update imports
fedirjh 9d42637
Update IOU request steps to use HouseWithMap illustration and add new…
fedirjh 1d7bc19
Refactor HouseWithMap SVG illustration by removing unnecessary metada…
fedirjh 44583be
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 7a565b0
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 6c4c521
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 241934e
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 4a93ae8
refactor: reorganize imports across multiple files for consistency an…
fedirjh 1423373
refactor: remove DistanceWithCommuterExclusion component and update r…
fedirjh 4588797
refactor: extract getDistanceDisplayDetailsWithCommuter to DRY commut…
fedirjh 8d8f67a
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh fc675a8
refactor: extract useCommuterExclusionGuard hook to deduplicate commu…
fedirjh da3aa04
chore: add justification for eslint-disable on deprecated Localize.tr…
fedirjh 8e19689
refactor: move commuter exclusion stored check inside getCommuterExcl…
fedirjh e671fd4
refactor: update import paths in useCommuterExclusionGuard hook
fedirjh 5474b61
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh cf90db5
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 0b3f398
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 73ac23f
Refactor ConfirmContent component to reposition dismiss icon rendering
fedirjh 16a95ab
Guard commuter exclusions during workspace changes
fedirjh 9f368a0
Block workspace changes for commuter exclusions
fedirjh c67fb8b
Store commuter exclusions on distance requests
fedirjh c56d0d0
Cover commuter exclusion distance updates
fedirjh ea20193
Clean up commuter exclusion distance display
fedirjh 7a0eddc
Tighten commuter exclusion validation
fedirjh a0a28d8
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 1ea13ba
Update distance display tests
fedirjh c6b1ef5
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh b43208b
Merge branch 'main' into commuter-exclusions-app
fedirjh ba9b360
e75c44f
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 4517c98
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 09c12ee
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 393ac24
Exclude inactive workspaces from commuter exclusion checks
fedirjh c2ec657
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 6d07f8e
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 6fb0277
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 4651d1f
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh e2de8d5
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh b309577
Check default workspace for commuter exclusions
fedirjh 47f6dd3
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 9ba8011
Apply commuter exclusions to distance request amounts
fedirjh 3d708fd
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 74cb1fc
Block forced-commuter workspace switches in money request confirmatio…
fedirjh 55083b7
Add unit tests for useCommuterExclusionGuard
fedirjh c39fcb0
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 53a45ff
Address review: stabilize commuter guard, fix split amount, clarify n…
fedirjh 6947c47
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh a78cd4a
Localize commuter exclusion original-distance label
fedirjh 1dc4f5c
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh ad31018
Merge pull request #96258 from nkdengineer/fix/93934
fedirjh ede50e3
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 3e6ec06
Merge branch 'main' into commuter-exclusions-app
fedirjh ef5b772
Merge branch 'main' into commuter-exclusions-app
fedirjh 5efe0db
fix: tax commuter exclusion distance
fedirjh 5b7007c
test: avoid unsafe tax amount assertions
fedirjh 038d044
test: add required tax amount fixture fields
fedirjh 177d8e8
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh e723354
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh b61a809
fix: clarify commuter exclusion distance copy
fedirjh b8f4546
fix: gate commuter exclusion by distance rates
fedirjh 59a4e41
fix: avoid empty commuter settings links
fedirjh 90fab73
fix: rely on commuter exclusion config
fedirjh c7fef15
fix: preserve IOU action amount signs
fedirjh cdf1977
fix: avoid premature commuter exclusion blocks
fedirjh 2e115ad
test: update commuter exclusion guard expectation
fedirjh a750771
fix: pluralize commuter exclusion units
fedirjh 99f8ffa
refactor: remove redundant distance rate prop
fedirjh 7eb8a80
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh b2cda6b
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh c117b7f
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh e403e5c
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 1c61590
Merge remote-tracking branch 'refs/remotes/origin/commuter-exclusions…
fedirjh 2e8b758
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 0a6d870
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh b36121a
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh cb12e2c
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh a56f4b0
Merge branch 'commuter-exclusions-app' of github.com:fedirjh/ExpensiA…
fedirjh c2c4aa3
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 037e9f3
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh af3bbc0
chore: remove duplicate import
fedirjh 00b14d2
chore: add missing parameters
fedirjh fd733d4
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 6820885
chore: add transaltions paths for commuter
fedirjh 3a40cae
chore: Add missing translations
fedirjh 4089870
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh 8d3d6fd
Keep the commuter exclusion applied in the optimistic distance rate c…
fedirjh d2d560a
fix(distance): scope commuter exclusion guard
fedirjh 1f37a46
test(distance): cover personal commuter flows
fedirjh 9dc26f6
fix(distance): hide invalid sole-target tabs
fedirjh f3325bb
fix(distance): keep self-DM distance tabs
fedirjh 780d757
fix(distance): scope modified fields
fedirjh fad1e6e
fix(distance): recalculate exclusion on change
fedirjh 165c35d
test(distance): widen IOU type helper
fedirjh 319655d
refactor(report): pass transactions to guard
fedirjh 87e7c56
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 5f00f53
fix(distance): show excluded split distance
fedirjh cad83c4
fix(distance): unwrap default participants
fedirjh 55e579e
test(distance): cover rate unit conversion
fedirjh c0be995
fix(distance): normalize split commuter data
fedirjh 8a12e59
fix(distance): prevent stale split exclusions
fedirjh 5267d1c
Merge remote-tracking branch 'upstream' into commuter-exclusions-app
fedirjh 05f51a7
Merge branch 'Expensify:main' into commuter-exclusions-app
fedirjh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
assets/images/simple-illustrations/simple-illustration__housewithmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.