Updates "Section Settings" Side panel UI #13239
Updates "Section Settings" Side panel UI #13239marcellamaki merged 12 commits intolearningequality:developfrom
Conversation
Build Artifacts
|
nucleogenesis
left a comment
There was a problem hiding this comment.
I note a few differences to the Figma but I think they're likely not binding requirements here - but noting in case @jtamiace thinks otherwise.
- The Figma doesn't show a border-line beneath the side panel title
- The Y-padding for the buttons footer is a bit taller than is currently implemented (FWIW I think the current implementation looks good as-is but also I played part in making it so I may be biased 😅)
| maxQuestionsLabel, | ||
| // i18n | ||
| displaySectionTitle, | ||
| sectionSettings$, |
There was a problem hiding this comment.
I did a quick grep - looks like this string is no longer used anywhere with it being removed from here so we could probably remove it from the quiz strings file.
|
Agreed, there shouldn't be a border beneath the title section, and there also shouldn't be a border on the bottom bar. I think the border under the title section is currently implemented in different side panels across the app and it'd be good to remove that at some point |
akolson
left a comment
There was a problem hiding this comment.
The changes seem to make sense to me. I'll leave the final approval to @nucleogenesis @marcellamaki whenever they are ready. Thanks @AllanOXDi
|
HI @jtamiace does this change looks good to you?
|
marcellamaki
left a comment
There was a problem hiding this comment.
Hi @AllanOXDi - this is definitely a good start, but there are a few other changes in terms of spacing in the Figma that I think would be good to include while we're here. At the minimum, the title should be aligned with the content to the left, as seen in the figma. Currently, it's a bit off.
Also in the figma, the spacing just as a bit more "breathing room". You can see that the spacing is just a little bit larger that what we currently see in the UI. This isn't essential, but it's a perfect opportunity to practice "pixel-perfect" (or close to it) css refinement.
| padding: 1em; | ||
| margin-top: 1em; | ||
| background-color: #ffffff; | ||
| border-top: 1px solid black; |
marcellamaki
left a comment
There was a problem hiding this comment.
HI @AllanOXDi - thanks for making the spacing updates on the side. Visually it looks better in the browser.
One blocking problem is that this change is causing a regression with the other section side panel which edits the section order.
What we need to do is:
- keep a consistent design pattern for the title
- not have multiple headers
- make sure that in the other side panel, the user knows they are editing the order
I think there are several ways to accomplish this - maybe you can suggest an option that seems technically feasible and show Jessica what it looks like for her 👍
One non-blocking request is that you revisit some of the other spacing/layout updates in the figma, such as the space between elements, etc. that I mentioned. If you're not sure exactly what's in scope here after reviewing the Figma, please ask and we can look at it together.
|
As a secondary thought - if you run into challenges with this (updating the CSS styles, the title/header patterns, etc.), this is really useful information for our side panel refactoring work! You can share that as part of our conversations |
9c2e7b8 to
5877ef6
Compare
AlexVelezLl
left a comment
There was a problem hiding this comment.
Thanks @AllanOXDi! I just left some minor observations, mostly just nitpicks, but the i18n one I think its something that we must solve before merging this pr, please feel free to ask any question if needed :).
| v-if="route.name === PageNames.QUIZ_SECTION_ORDER" | ||
| class="sidepanel-title" | ||
| > | ||
| {{ coreString('editAction') }} |
There was a problem hiding this comment.
Just noting that we are changing from "Edit - Section order" to "Edit section order". Is this an intentional change? If we want the "Edit section order" string, I dont think that doing coreString('editAction') + sectionOrderLabel$().toLowerCase() would be the best way to achieve it, since many languages can have different grammar and have, lets say, the verb at the end of the sentence. So my best guess would be to return to the "Edit - Section order" if we dont want to introduce any new strings for this PR (since its targeted for the planned patch 2).
| required: false, | ||
| default: false, | ||
| }, | ||
| addBottomBorder: { |
There was a problem hiding this comment.
@marcellamaki another discrepancy in the side panels 😆. In the 0.18 designs we didn't have a separator line below the header in any of the frames in figma. But in the implementation of this component, we do have this line. I think for consistency we should have or should not have this line for all the side panels of at least the same section. So either option, or we show this line for the SectionSidePanel component, or we also remove this line from the resource selection side panel (or we remove this line within this component for all side panels), what do you think?
AlexVelezLl
left a comment
There was a problem hiding this comment.
Just a final thought 😄, after this, this looks good to me! Will defer the final approve and merge to @nucleogenesis or @marcellamaki.
| class="sidepanel-title" | ||
| > | ||
| {{ editAction$() }} - | ||
| {{ sectionOrderLabel$().toLowerCase() }} |
There was a problem hiding this comment.
I think we can to sectionOrderLabel$() instead of sectionOrderLabel$().toLowerCase() now that we have that dash again.
8f68972 to
d71c39e
Compare
|
The underline should be removed, it's part of the spec (see above). I think we have some further side panel cleanup here to do for consistency, but I don't think that's in scope for @AllanOXDi 's PR here. I will need to think then if we should merge this now for 0.18 patch 2 and have it not match, or if we should merge this into develop and do all of the cleanup in 0.19 |
Alex's feedback addressed



Summary
This PR updates the section title in the edit section UI
Closes #13107
After
Before
References
#13107
Reviewer guidance
See https://www.figma.com/design/lVJt5ukOrxS9qay0rXy7GC/0.18-Coach-updates?node-id=107-20607&p=f&t=VBq8IMW8iRQB1p7u-0
Navigate to Create quiz
Click on the Options button
Select the edit section