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

front: search op with ci - ch code #6204

Merged
merged 3 commits into from
Jan 25, 2024
Merged

Conversation

SarahBellaha
Copy link
Contributor

@SarahBellaha SarahBellaha commented Dec 22, 2023

  • Front part of this issue
  • Quick refacto of the InputSNCF component.

@SarahBellaha SarahBellaha requested a review from a team as a code owner December 22, 2023 11:44
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Attention: 130 lines in your changes are missing coverage. Please review.

Comparison is base (37aac79) 27.72% compared to head (2cf5ea0) 27.71%.
Report is 2 commits behind head on dev.

Files Patch % Lines
front/src/common/BootstrapSNCF/InputSNCF.tsx 7.01% 53 Missing ⚠️
front/src/common/Map/Search/MapSearchStation.tsx 0.00% 51 Missing and 1 partial ⚠️
front/src/common/Map/utils.ts 0.00% 12 Missing ⚠️
front/src/common/Map/Search/MapSearchLine.tsx 0.00% 8 Missing ⚠️
front/src/common/Map/Search/MapSearchSignal.tsx 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6204      +/-   ##
============================================
- Coverage     27.72%   27.71%   -0.01%     
  Complexity     2165     2165              
============================================
  Files          1003     1003              
  Lines        126611   126622      +11     
  Branches       2580     2580              
============================================
- Hits          35099    35093       -6     
- Misses        90022    90039      +17     
  Partials       1490     1490              
Flag Coverage Δ
core 78.58% <ø> (ø)
editoast 75.44% <ø> (-0.05%) ⬇️
front 8.37% <2.98%> (+<0.01%) ⬆️
gateway 2.50% <ø> (ø)
railjson_generator 87.44% <ø> (ø)
tests 81.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SarahBellaha SarahBellaha force-pushed the sba/front/search-op-by-ci-code branch 2 times, most recently from a5fb156 to 8ec4301 Compare December 22, 2023 13:22
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost good for me, just found 1 bug. If I clear the inputs, then a bad request is launched. It also happens when I open the modal
image

front/src/common/BootstrapSNCF/InputSNCF.tsx Outdated Show resolved Hide resolved
front/src/common/BootstrapSNCF/InputSNCF.tsx Outdated Show resolved Hide resolved
front/src/common/BootstrapSNCF/InputSNCF.tsx Outdated Show resolved Hide resolved
front/src/common/BootstrapSNCF/InputSNCF.tsx Outdated Show resolved Hide resolved
front/src/common/Map/Search/MapSearchStation.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR, left some comments.

Maybe it can be done in a separated refacto for the Input component but I think it's strange to have a clearButton props and an onClear props. As they work together, they should be merged in a single one (or we keep only the onClear one).
Moreover, we have a lot of default values for optional props but they are not needed.

front/src/common/BootstrapSNCF/InputSNCF.tsx Outdated Show resolved Hide resolved
front/src/common/Map/utils.ts Outdated Show resolved Hide resolved
front/src/common/BootstrapSNCF/InputSNCF.tsx Outdated Show resolved Hide resolved
@SarahBellaha SarahBellaha force-pushed the sba/front/search-op-by-ci-code branch from 2ac3a2b to 315572e Compare January 23, 2024 15:37
@SarahBellaha SarahBellaha force-pushed the sba/front/search-op-by-ci-code branch from 315572e to 92f5de2 Compare January 23, 2024 15:56
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR ! Left some comments :)
The bug has been solved ✅

front/src/common/Map/Search/MapSearchStation.tsx Outdated Show resolved Hide resolved
front/src/common/Map/utils.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm and tested, good job, great util function :)

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice PR, LGTM and tested ✅

@SarahBellaha SarahBellaha added this pull request to the merge queue Jan 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 25, 2024
@SarahBellaha SarahBellaha added this pull request to the merge queue Jan 25, 2024
Merged via the queue into dev with commit 6b0bd1c Jan 25, 2024
20 checks passed
@SarahBellaha SarahBellaha deleted the sba/front/search-op-by-ci-code branch January 25, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants