-
Notifications
You must be signed in to change notification settings - Fork 806
Updates "Section Settings" Side panel UI #13239
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
base: develop
Are you sure you want to change the base?
Updates "Section Settings" Side panel UI #13239
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 😅)
@@ -311,7 +306,6 @@ | |||
maxQuestionsLabel, | |||
// i18n | |||
displaySectionTitle, | |||
sectionSettings$, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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? ![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -461,7 +455,6 @@ | |||
padding: 1em; | |||
margin-top: 1em; | |||
background-color: #ffffff; | |||
border-top: 1px solid black; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
.../coach/assets/src/views/quizzes/CreateExamPage/sidePanels/SectionSidePanel/SectionEditor.vue
Outdated
Show resolved
Hide resolved
9c2e7b8
to
5877ef6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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).
.../plugins/coach/assets/src/views/quizzes/CreateExamPage/sidePanels/SectionSidePanel/index.vue
Outdated
Show resolved
Hide resolved
.../plugins/coach/assets/src/views/quizzes/CreateExamPage/sidePanels/SectionSidePanel/index.vue
Outdated
Show resolved
Hide resolved
.../plugins/coach/assets/src/views/quizzes/CreateExamPage/sidePanels/SectionSidePanel/index.vue
Outdated
Show resolved
Hide resolved
@@ -130,6 +130,11 @@ | |||
required: false, | |||
default: false, | |||
}, | |||
addBottomBorder: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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?
.../plugins/coach/assets/src/views/quizzes/CreateExamPage/sidePanels/SectionSidePanel/index.vue
Show resolved
Hide resolved
.../coach/assets/src/views/quizzes/CreateExamPage/sidePanels/SectionSidePanel/SectionEditor.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can to sectionOrderLabel$()
instead of sectionOrderLabel$().toLowerCase()
now that we have that dash again.
8f68972
to
d71c39e
Compare
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