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

Speed sections edition #3890

Merged
merged 8 commits into from
Apr 13, 2023
Merged

Speed sections edition #3890

merged 8 commits into from
Apr 13, 2023

Conversation

jacomyal
Copy link
Contributor

@jacomyal jacomyal commented Apr 13, 2023

This PR adds speed sections edition to the infrastructure editor.

Missing features:

  • Speed limits edition
  • LPV edition
  • Range directions edition
  • Save button

@jacomyal jacomyal requested a review from a team as a code owner April 13, 2023 09:41
@sim51 sim51 enabled auto-merge (rebase) April 13, 2023 09:56
Details:
- Adds functions to get SpeedLimits layer props outside of the existing
component
- Adds SpeedSections types
- Adds SpeedSections layer
- Drafts SpeedSectionsTool
Details:
- Fixes layers order
- Properly loads track sections and generate speed section geometry
- Addresses lengths computation issue between back and front (still
buggy but not crashy at least...)
Details:
- Clicking an unlinked track section links it
- Clicking a linked track range unlinks it
- Clicking an extremity starts editing
- Pressing Escape stops editing it
@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #3890 (f5bfccd) into dev (1114673) will decrease coverage by 0.01%.
The diff coverage is 61.11%.

@@             Coverage Diff              @@
##                dev    #3890      +/-   ##
============================================
- Coverage     69.64%   69.63%   -0.01%     
  Complexity     2026     2026              
============================================
  Files           439      439              
  Lines         22186    22202      +16     
  Branches       1672     1672              
============================================
+ Hits          15451    15460       +9     
- Misses         5930     5937       +7     
  Partials        805      805              
Flag Coverage Δ
front 59.26% <61.11%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
front/src/applications/editor/data/api.ts 30.12% <36.36%> (+0.47%) ⬆️
front/src/applications/editor/tools/types.ts 99.42% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sim51 sim51 merged commit d6437c5 into dev Apr 13, 2023
@sim51 sim51 deleted the ajy/editor-speed-sections branch April 13, 2023 11:50
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.

None yet

2 participants