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: editor: improves speed sections form #6646

Merged
merged 1 commit into from
Feb 22, 2024
Merged

front: editor: improves speed sections form #6646

merged 1 commit into from
Feb 22, 2024

Conversation

jacomyal
Copy link
Contributor

Fixes #6442.

Details:

  • "Add new limit" button is no more disabled
  • Save button is disabled instead when speed limits are not valid
  • Speed limits by tags in the form are now handled as an array, separated from the collection in entity.properties.speed_limit_by_tag
  • Uses "required" and "pattern" attributes to get a red border when tag or speed inputs are not valid

@jacomyal jacomyal requested a review from a team as a code owner February 15, 2024 08:48
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

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

Comparison is base (fe945c3) 27.79% compared to head (0383f64) 27.77%.

Files Patch % Lines
...eEdition/speedSection/SpeedSectionMetadataForm.tsx 0.00% 92 Missing and 1 partial ⚠️
...rc/applications/editor/tools/rangeEdition/tools.ts 0.00% 1 Missing ⚠️
...rc/applications/editor/tools/rangeEdition/types.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6646      +/-   ##
============================================
- Coverage     27.79%   27.77%   -0.02%     
  Complexity     2172     2172              
============================================
  Files          1043     1043              
  Lines        128738   128751      +13     
  Branches       2570     2570              
============================================
- Hits          35779    35766      -13     
- Misses        91473    91499      +26     
  Partials       1486     1486              
Flag Coverage Δ
core 79.36% <ø> (ø)
editoast 75.27% <ø> (-0.06%) ⬇️
front 8.33% <0.00%> (-0.01%) ⬇️
gateway 2.50% <ø> (-43.14%) ⬇️
railjson_generator 87.26% <ø> (ø)
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.

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 this fix, it works great ! Left a few suggestions

Fixes #6442.

Details:
- "Add new limit" button is no more disabled
- Save button is disabled instead when speed limits are not valid
- Speed limits by tags in the form are now handled as an array,
  separated from the collection in entity.properties.speed_limit_by_tag
- Uses "required" and "pattern" attributes to get a red border when tag
  or speed inputs are not valid
@SharglutDev SharglutDev added this pull request to the merge queue Feb 22, 2024
Merged via the queue into dev with commit 840a7a0 Feb 22, 2024
22 checks passed
@SharglutDev SharglutDev deleted the ajy/6442 branch February 22, 2024 07:53
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.

can't add a speed limit by tag starting with same text as existing one
2 participants