Skip to content
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

Conversation

suyashpatil78
Copy link
Contributor

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

@suyashpatil78 suyashpatil78 requested a review from Julias0 March 1, 2024 12:50
@github-actions github-actions bot added the size/M Medium PR label Mar 1, 2024
@@ -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'>;
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@suyashpatil78 suyashpatil78 requested a review from Dimple16 March 1, 2024 15:38
* 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
@github-actions github-actions bot added size/L Large PR and removed size/M Medium PR labels Mar 6, 2024
@suyashpatil78 suyashpatil78 merged commit 819f2e0 into fy-select-commute-details-modal Mar 6, 2024
4 of 5 checks passed
suyashpatil78 added a commit that referenced this pull request Mar 6, 2024
* 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
suyashpatil78 added a commit that referenced this pull request Mar 19, 2024
)

* 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
suyashpatil78 added a commit that referenced this pull request Mar 19, 2024
)

* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Large PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants