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

editoast, front: host fonts for the map in editoast #10788

Merged
merged 3 commits into from
Feb 17, 2025
Merged

Conversation

Tristramg
Copy link
Contributor

The glyphs are generated during the build step

Closes #10627

How to test: open the map, filter network requests by roboto and make sure that everything is 200 and is now on localhost.

(Should probably be merged after #10680 and #10628)

@Tristramg Tristramg requested review from a team as code owners February 12, 2025 17:35
@github-actions github-actions bot added area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service labels Feb 12, 2025
@Tristramg Tristramg self-assigned this Feb 12, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.93%. Comparing base (f1b10fb) to head (7cadb58).
Report is 4 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #10788   +/-   ##
=======================================
  Coverage   81.93%   81.93%           
=======================================
  Files        1084     1085    +1     
  Lines      107199   107232   +33     
  Branches      737      737           
=======================================
+ Hits        87832    87863   +31     
- Misses      19326    19328    +2     
  Partials       41       41           
Flag Coverage Δ
editoast 74.39% <100.00%> (+0.01%) ⬆️
front 89.49% <100.00%> (+<0.01%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.58% <ø> (ø)
tests 87.91% <ø> (ø)

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.

@Tristramg Tristramg requested a review from flomonster February 13, 2025 08:49
@Tristramg Tristramg force-pushed the fonts_in_editoast branch 2 times, most recently from c5a9319 to 35865d0 Compare February 13, 2025 09:09
@Tristramg Tristramg force-pushed the fonts_in_editoast branch 6 times, most recently from 0af99d4 to ab89c1a Compare February 13, 2025 15:45
@Tristramg Tristramg force-pushed the all_sprites branch 3 times, most recently from c0f4b22 to 8caf39b Compare February 13, 2025 17:35
Base automatically changed from all_sprites to dev February 14, 2025 14:06
@woshilapin woshilapin changed the title editoast: front: host fonts for the map in editoast editoast, front: host fonts for the map in editoast Feb 14, 2025
Copy link
Contributor

@woshilapin woshilapin left a comment

Choose a reason for hiding this comment

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

Nice follow up of the sprite PR. Thank you.

Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

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

LGTM

@Tristramg Tristramg force-pushed the fonts_in_editoast branch 2 times, most recently from 03e78cd to f9f8bdd Compare February 17, 2025 11:17
@Tristramg Tristramg requested a review from emersion February 17, 2025 11:34
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM for the frontend

(I'm not sure the per-commit split makes sense: the script and translation file changes belong to the first commit IMHO.)

The glyphs are generated during the build step

Closes #10627

Signed-off-by: Tristram Gräbener <[email protected]>
@Tristramg
Copy link
Contributor Author

I re-arranged the commits

@Tristramg Tristramg added this pull request to the merge queue Feb 17, 2025
Merged via the queue into dev with commit 8a2d4ee Feb 17, 2025
27 checks passed
@Tristramg Tristramg deleted the fonts_in_editoast branch February 17, 2025 15:15
Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

there is a small typo, otherwise lgtm

@@ -61,6 +61,9 @@
"electrical_profiles": {
"NotFound": "Profil électrique '{{electrical_profile_set_id}}' non trouvé"
},
"fonts": {
"FileNotFound": "Fichier pour la police de charactère demandée non trouvé"
Copy link
Contributor

Choose a reason for hiding this comment

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

there is a typo : caractère instead of charactère

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:editoast Work on Editoast Service area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map: rationalize fonts and sprites
6 participants