-
Notifications
You must be signed in to change notification settings - Fork 699
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
EQM: Side panel back / close icon UX improvements #12311
EQM: Side panel back / close icon UX improvements #12311
Conversation
<KIconButton | ||
v-if="closeButtonIconType" | ||
:icon="closeButtonIconType" | ||
class="close-button" | ||
:style="closeButtonStyle" | ||
:ariaLabel="closeButtonMessage" | ||
:tooltip="closeButtonMessage" | ||
@click="closePanel" | ||
/> |
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.
Moved this into here so that the rest of the stuff in .header-content
is in the same container for spacing for the icon buttons.
@@ -20,27 +20,25 @@ | |||
|
|||
<!-- Fixed header --> | |||
<div | |||
v-show="$slots.header" |
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.
Not needed now since the icon button always lives here
@@ -5,10 +5,18 @@ | |||
ref="resourcePanel" | |||
alignment="right" | |||
sidePanelWidth="700px" | |||
:closeButtonIconType="closeBackIcon" | |||
closeButtonIconType="close" |
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.
We're injecting the "back" icon where/when we want it now into the #header
slot, so we hard-code "close" here so that the X is always there.
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.
One thing we should change.
} | ||
router.push({ | ||
name: PageNames.EXAM_CREATION_ROOT, | ||
params: { ...route.value.params }, |
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.
Should be specific here, see e.g.
kolibri/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/ReplaceQuestions.vue
Line 241 in 8d285cf
classId: this.$route.params.classId, |
(although I noticed in searching for this, there are still lots of places just doing a general spread).
Because of the way Vue router works, items that are not in the URL still end up in the params state, which can cause unexpected bugs down the line.
Issue addressed, waiting for manual QA for approval.
Hi @nucleogenesis - could you please have a look why some checks haven't completed yet here so that I can test the latest build? |
e66ebac
to
b68a309
Compare
@pcenov I fixed the merge conflict and seems to have gotten things flowing again on the checks |
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.
LGTM - Implemented as specified by Jacob, no issues observed while regression testing the side panel.
Summary
onClickOutside
, reworks logic around "canGoBack"References
Closes #12308
Reviewer guidance
Please check for regressions wherever else the side panel is used in the Learn library area.
Also, see that the UX changes defined in the linked issue are applied and that the UX is improved overall while using the side panel throughout quiz creation.