OpenRailAssociation / OpenRailAssociation/osrd

front: non responsive components create visual bugs in 12h time formats (probably the same for date formats)

Open
#17,501 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:front kind:bug module:operational-studies severity:minor
Dominant language
TypeScript
Stars
660
Forks
87
Avg merge
3d 4h
Merged PRs (30d)
269

Description

What happened?

When your browser's (tested on firefox and chrome) language is set to English, if you set the OSRD language to English, the time format changes to a 12h format for the train list in a scenario (see screenshot below), and it gets ugly. I'm guessing there are other occurences, but didn't search for them.

Image
What did you expect to happen?

Behaviour should be identical to when the browser's language is set to French and OSRD language to english: time format should stay in the 24h format OR the times should be a one-liner (here it becomes 2 lines because the 12h format is longer than the 24h format).

How can we reproduce it (as minimally and precisely as possible)?
  1. Set the browser language to english
  2. Set the OSRD language to english
  3. Open a scenario and create a train
  4. Time format of the train in the list of train schedules is in the 12h format instead of the expected 24h format and takes 2 lines: it should be a one-liner just like for the 24h format
On which environments the bug occurs?

Recette (SNCF)

On which browser the bug occurs?

No response

OSRD version (top right corner Account button > Informations)

c38afa2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the scenario train list by setting both the browser and OSRD language to English, then creating a train. Inspect the train schedule display for the 12-hour format and related date formats; it is done when the affected times remain on one line or consistently use the expected 24-hour format.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.