-
Notifications
You must be signed in to change notification settings - Fork 46
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: new output table #9352
Comments
Many notes:
It would also be nice to have an example of Waypoint use in this table |
Three others comments:
|
As @Castavo said, "marge théorique" unit is both As mentioned in the Propositions section of the specifications issue, the input table would let the user select the margin type (as it is done in the RS editor) => imo, we then need the unit to be in the cell directly |
Right now the first line and columns are sticky, is this a behavior we want to keep? I didn't see it mentioned in the specs. Also the behaviors seem to be pretty inline with the specs already, so just to be sure this issue is mostly just styling, correct? |
Yes this is mostly a restyling work. |
• CI is the term used in Last Minute Request for this field. |
Is there a way to adapt the column title of "marge théorique" depending on the unit used in order to display the unit actually used and not both? |
For "important rows", the text of certain columns (index, ch) is not bold. Is this intentional? Are these the only two columns where text should not be bold?
As long as all rows always use the same type of margin, this should be possible. Is this guaranteed? |
Both units may be used independently in a circulation... |
It seems to me that for every op point "marge théorique (s)" is always filled from the simulation result even if "marge théorique (weird units)" is not. So "marge réelle" and "diff marge" columns should already only be filled when there is a "marge théorique (s)" value, as they are are computed at the same time, but sometimes this will be the case without "marge théorique (weird units)" being filled in the first place. Is the behavior we want? |
Also, I understand that we would have different column names (at least for |
I'm pretty sure that we don't want "marge théorique (s)" to be filled if no "marge théorique (weird units)" is filled. The fact that it is always filled is probably due to the data structure ? It doesn't make sense from a business perspective otherwise. It is either all margins, either none. Am I wrong ? |
The specifications do not correspond to the mockup for the background color of important points.
I went with the mockup for now (not changing the background color for these lines, only making the text bold) |
The specifications need to be updated, since it has been written with the older version (not yet restyled). For styling, you can refer to the mockup in priority (= ignore the grey background color) |
I understand that each column's width is supposed to be fixed width, but I can't find a way to access the width of each column in the mockup. Also the time columns' widths seem insufficient to incorporate "J+1" text that I believe may be present? |
My comment about this wasn't clear I'm afraid, sorry.
You should not specify width for the columns, only margins around the column titles and force them to be displayed on two lines. The column width will depend on the label itself. All columns but index and CI are right aligned. |
So do you want the columns to only resize to adapt the header titles and not their content? Or should I let the columns adapt to the size of its content, only giving padding to the titles? Looking at the mock up I suppose the second option is correct? |
Also the CH column has a different text color and in the mockup, and is not bolded for "important points". Is it intentional? |
To be clear, are you are talking about the entire columns or just the headers? Because the columns in the mockup seem to be left aligned |
How do we transpose this to different languages? Do we hardcode each line of the label for each language? |
So React-Datasheet-Grid, the lib we are using for the table right now, really except its columns to be sized in a flex way based on min-width, max-width, basis, grow and shrink. Most of the columns before this issue used to use a fixed width. I may have overlooked something, but I don't see a simple way to have the columns dynamically size themselves only based on the header length using that library without providing any hardcoded pixel base-width. How important is this aspect? I'm also not convinced I understand why we would want such a behavior in the first place. |
Ok so for now I have reverted the split of the translations and most columns have fixed sizes It would be nice though to better handle columns resizing with content size, but this might require changing our table library. |
Why do we give the same width to all columns ? Some columns content is known and never change: CH, time columns, checkbox columns don’t need to be dynamic |
Thanks. The size of the content does not change indeed, but the size of the header do (depending on the language), meaning we can't perfectly control on how many lines our header will be displayed. I personally don't think it's a huge deal though, but it's a departure from the mockup. |
@Synar @thibautsailly I feel we should try to focus on making columns as narrow as possible. |
@anisometropie I think the goal of this issue is just styling for coherence, the improvement in usability will come later |
From what I see columns width was an integral part of the discussion. Actually I think the requirement given by @thibautsailly would work, we just need to trim some of them
|
This issue is kinda linked to this one: #9526 It should be done after this one, before dropping the "fiche train" component |
Description and goal
Relates to https://github.com/osrd-project/osrd-confidential/issues/668
The current output table of the scenario page does not match the design system.
We should create a new one (see the mock-up below):
The scope of this ticket is only to create the new output table (and not the buttons below). The table can not be modified (for the moment).
There are still 2 things to clarify with @thibautsailly: what should we display in the column "Reception sur signal fermé" and which title do we want for the new column that @RomainValls is going to add in his PR (#9275) (will it change the global display ?) ?
Acceptance criteria
The new output table is in the scenario page
The text was updated successfully, but these errors were encountered: