-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: fy-select-commute-details business logic #2799
feat: fy-select-commute-details business logic #2799
Conversation
@@ -4,6 +4,6 @@ export interface CommuteDetails { | |||
id?: number; | |||
distance: number; | |||
distance_unit: string; | |||
home_location: Location; | |||
work_location: Location; | |||
home_location: Omit<Location, 'display'>; |
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.
Backend doesn't allow display
key to be sent in the payload and it is also not present in the response
} | ||
|
||
formatLocation(location: Location): Omit<Location, 'display'> { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
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.
disabled eslint because display
keyword was not used here.
We have to use rest operator to remove display
property otherwise backend will throw 400
* feat: refractoring in my-profile page * minor * feat: tasks added for showing Add Commute Details (#2801) * feat: tasks added for showing Add Commute Details * minor * minor * pr comment
819f2e0
into
fy-select-commute-details-modal
* feat: fy-select-commute-details modal as shared component * minor * minor * feat: fy-select-commute-details business logic (#2799) * feat: fy-select-commute-details business logic * minor * minor * minor * feat: refractoring in my-profile page (#2800) * feat: refractoring in my-profile page * minor * feat: tasks added for showing Add Commute Details (#2801) * feat: tasks added for showing Add Commute Details * minor * minor * pr comment
) * feat: fy-select-commute-details modal as shared component (#2795) * feat: fy-select-commute-details modal as shared component * minor * minor * feat: fy-select-commute-details business logic (#2799) * feat: fy-select-commute-details business logic * minor * minor * minor * feat: refractoring in my-profile page (#2800) * feat: refractoring in my-profile page * minor * feat: tasks added for showing Add Commute Details (#2801) * feat: tasks added for showing Add Commute Details * minor * minor * pr comment * fixing flaky test * feat: add-edit-mileage changes for commute-details (#2807) * feat: fy-select-commute-details modal as shared component * minor * minor * feat: fy-select-commute-details business logic * minor * minor * minor * feat: refractoring in my-profile page * minor * feat: tasks added for showing Add Commute Details * minor * minor * fix: minor * major changes * this commit has switchMap changes * remove consoles * some refractoring and declarations * pr comments part 1 * expenseId as getter * gap removed * feat: popover confirmation once commute is updated from form (#2820) * feat: popover confirmation once commute is updated from form * fix: mandatory as per txnFields (#2823) * fix: mandatory as per txnFields * for round trip disabling * fix: distance can be zero and fix for commute deduction mandatory message (#2826) * fix: distance can be zero and fix for commute deduction mandatory message * minor * minor * feat: commute deduction in view mileage (#2828) * removed false from my-profile to make commute visible * adjusted height for some devices * fix: disable manual entry in fy-select-commute-details and show toast message if error occurs (#2830) * fix: disable manual entry in fy-select-commute-details * fix: scan failed fix * test: test for ionViewWillEnter method in mileage page (#2831) * test: fixing failing tests in mileage page - Part 2 (#2832) * test: test for ionViewWillEnter method in mileage page * test: fixing failing tests in mileage page * removed foucs * test: fixing route-selector component tests - Part 3 (#2833) * test: fixing route-selector component tests * removed foucs * test: added test for newly added methods (#2834) * minor * pr comments * fix: QA fixes for commute deduction (#2835) * fix: header fix for commute details * minor * QA fixes * minor * tests added * minor correction in modal opening logic * feat: added trackers for commute deduction (#2836) * feat: added trackers for commute deduction * minor * removed console log * minor fixes * fixing coverage
) * feat: fy-select-commute-details modal as shared component (#2795) * feat: fy-select-commute-details modal as shared component * minor * minor * feat: fy-select-commute-details business logic (#2799) * feat: fy-select-commute-details business logic * minor * minor * minor * feat: refractoring in my-profile page (#2800) * feat: refractoring in my-profile page * minor * feat: tasks added for showing Add Commute Details (#2801) * feat: tasks added for showing Add Commute Details * minor * minor * pr comment * fixing flaky test * feat: add-edit-mileage changes for commute-details (#2807) * feat: fy-select-commute-details modal as shared component * minor * minor * feat: fy-select-commute-details business logic * minor * minor * minor * feat: refractoring in my-profile page * minor * feat: tasks added for showing Add Commute Details * minor * minor * fix: minor * major changes * this commit has switchMap changes * remove consoles * some refractoring and declarations * pr comments part 1 * expenseId as getter * gap removed * feat: popover confirmation once commute is updated from form (#2820) * feat: popover confirmation once commute is updated from form * fix: mandatory as per txnFields (#2823) * fix: mandatory as per txnFields * for round trip disabling * fix: distance can be zero and fix for commute deduction mandatory message (#2826) * fix: distance can be zero and fix for commute deduction mandatory message * minor * minor * feat: commute deduction in view mileage (#2828) * removed false from my-profile to make commute visible * adjusted height for some devices * fix: disable manual entry in fy-select-commute-details and show toast message if error occurs (#2830) * fix: disable manual entry in fy-select-commute-details * fix: scan failed fix * test: test for ionViewWillEnter method in mileage page (#2831) * test: fixing failing tests in mileage page - Part 2 (#2832) * test: test for ionViewWillEnter method in mileage page * test: fixing failing tests in mileage page * removed foucs * test: fixing route-selector component tests - Part 3 (#2833) * test: fixing route-selector component tests * removed foucs * test: added test for newly added methods (#2834) * minor * pr comments * fix: QA fixes for commute deduction (#2835) * fix: header fix for commute details * minor * QA fixes * minor * tests added * minor correction in modal opening logic * feat: added trackers for commute deduction (#2836) * feat: added trackers for commute deduction * minor * removed console log * minor fixes * fixing coverage
Description
copilot:summary
copilot:poem
Walkthrough
copilot:walkthrough
Clickup
app.clickup.com
Code Coverage
Please add code coverage here
UI Preview
Please add screenshots for UI changes