-
Notifications
You must be signed in to change notification settings - Fork 13
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
Redesign header area #514
Redesign header area #514
Conversation
Your demo site is ready! 🚀 Visit it here: https://ramp4-pcar4.github.io/storylines-editor/new-header-bar-alter |
af9b5df
to
2b19894
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.
Nice work, new header looks like a solid enhancement. When you get the chance, please squash the multiple commits into one.
Some general issues:
- while on the Canada.ca template, the lower header does not seem sticky (only the top header is) when scrolling page
- loading in any product to the main editor page on the Canada.ca template, there is no table of contents - this is also an issue on the main branch so needs to be addressed as an urgent priority issue (will log this one)
- unsure on having tooltips on every header button, it makes sense for the icon only buttons and buttons with any truncated text but showing a tooltip for fully visible text may not be required
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @gordlin)
src/components/editor.vue
line 7 at r1 (raw file):
<div id="overlay" class="overlay" @click="closeSidebar"></div> <!-- Header bar --> <div class="editor-header-upper sticky top-0 bg-white z-20 border-b border-gray-200 max-h-full">
Hard to notice this border, suggest switching to border-black would provide more clarity
src/components/editor.vue
line 247 at r1 (raw file):
<div class="dropdown editor-button"> <!-- The "Preview" button - hover over it to show the options --> <button
The dropdown menu from the preview button should be aligned:
2b19894
to
ae00481
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.
while on the Canada.ca template, the lower header does not seem sticky (only the top header is) when scrolling page
This was the behaviour I originally intended. The upper header is meant for the "most important" utilities (like saving), so it was meant to be the only bar that was sticky to reduce wasted vertical space. But it doesn't seem like it takes that much space either way.
I've changed it so that both parts of the header are sticky (Donethanks). If anyone has any strong opinion about this, let me know and I can change it back.
loading in any product to the main editor page on the Canada.ca template, there is no table of contents - this is also an issue on the main branch so needs to be addressed as an urgent priority issue (will log this one)
Donethanks! A lot of tailwind breakpoints mysteriously fail on the Canada.ca template but work on the standalone version. No idea why. As a remedy, I've replaced the ones that were failing with a CSS media query approach.
unsure on having tooltips on every header button, it makes sense for the icon only buttons and buttons with any truncated text but showing a tooltip for fully visible text may not be required
Forgot to do this, I'll implement this on the next pass.
Reviewable status: 1 of 5 files reviewed, 2 unresolved discussions (waiting on @yileifeng)
src/components/editor.vue
line 7 at r1 (raw file):
Previously, yileifeng (Yi Lei Feng) wrote…
Hard to notice this border, suggest switching to border-black would provide more clarity
Donethanks!
src/components/editor.vue
line 247 at r1 (raw file):
Previously, yileifeng (Yi Lei Feng) wrote…
The dropdown menu from the preview button should be aligned:
Donethanks! Made them take the width of the parent button.
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.
When you get the chance, please squash the multiple commits into one.
One of the commits is from #510, so it'll disappear once it gets merged to main. I'll combine the others once I fix up the tooltips.
Reviewable status: 1 of 5 files reviewed, 2 unresolved discussions (waiting on @yileifeng)
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.
Looks very nice! 🏆
Reviewed 1 of 4 files at r1.
Reviewable status: 1 of 5 files reviewed, 4 unresolved discussions (waiting on @gordlin and @yileifeng)
src/app.vue
line 89 at r2 (raw file):
// Making the margins align with the canada.ca template .canada-ca-site {
Unless anyone opposes, I'd say we just have the editor take up the full screen width.
I'm always tempted to line things up with the Canada.ca header as well when working with the WET template, but for most of our apps (Storylines included) we typically use the full screen width.
src/components/editor.vue
line 245 at r2 (raw file):
touch: ['hold', 500] }" >UUID: {{ uuid }}</span
UUID
is probably the same in English and French, but maybe swap this to $t('editor.uuid')
just incase we change it in the future
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.
Reviewable status: 1 of 5 files reviewed, 5 unresolved discussions (waiting on @gordlin, @RyanCoulsonCA, and @yileifeng)
a discussion (no related file):
Noticed that in the canada.ca template, some components (ex. buttons, images within panels) will overlap the header upon scrolling the page (not the editor). Perhaps setting the z-index could help. Besides that, changes look great, and make the editor much easier to use.
Refactor editor layout to use grid
352bf7a
to
369fbf9
Compare
369fbf9
to
1ed7241
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.
Forgot to do this, I'll implement this on the next pass.
Donethanks!
When you get the chance, please squash the multiple commits into one.
Donethanks!
Reviewable status: 1 of 5 files reviewed, 5 unresolved discussions (waiting on @IshavSohal, @RyanCoulsonCA, and @yileifeng)
a discussion (no related file):
Previously, IshavSohal (Ishav Sohal) wrote…
Noticed that in the canada.ca template, some components (ex. buttons, images within panels) will overlap the header upon scrolling the page (not the editor). Perhaps setting the z-index could help. Besides that, changes look great, and make the editor much easier to use.
Donethanks, I think! Let me know if I missed anything.
src/app.vue
line 89 at r2 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
Unless anyone opposes, I'd say we just have the editor take up the full screen width.
I'm always tempted to line things up with the Canada.ca header as well when working with the WET template, but for most of our apps (Storylines included) we typically use the full screen width.
Donethanks!
src/components/editor.vue
line 245 at r2 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
UUID
is probably the same in English and French, but maybe swap this to$t('editor.uuid')
just incase we change it in the future
Donethanks!
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.
Reviewable status: 1 of 5 files reviewed, 5 unresolved discussions (waiting on @gordlin, @IshavSohal, and @yileifeng)
a discussion (no related file):
If you click on the hamburger menu on mobile to open the sidebar, an empty modal seems to pop up which doesn't allow you to do anything until you click somewhere:
src/app.vue
line 17 at r3 (raw file):
export default class App extends Vue { currentPath = window.location.href;
I may be missing something, is this used anywhere? If not we can remove it.
Going to re-create this PR. Somehow managed to completely screw up the local branch, git's seeing every line in |
DEPENDS ON #510 (this branch is based on that branch). Pull that first!
Related Item(s)
Issues:
#504
#518
Changes
Leave editor
button and all the save-related UI elements (unsaved changes warning, reset changes button, save button); and the "lower header", containing the product title/UUID and all other buttons (preview, download, etc.)Share feedback
button moved to lower header.Preview
dropdown buttons wider, equal to the width of thePreview
parent button.Notes
Header, desktop, no unsaved changes:
Header, desktop, with unsaved changes:
Header, mobile, with unsaved changes and long truncated title:
Testing
Steps:
This change is