Improve editor buttons UX #361
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "profi248/frontend:edit-button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I first saw the editor, I had no idea how to actually save your edit of description/comment. I don't think we need a preview button, as the editor is wysiwyg. I removed the preview button and made it so that the edit button changes into "done" button that closes the editor. Also changed order of buttons in comments to be more friendly.
Oh it broke the test, I need to fix that
0818977c56
tode295d8683
So it changes back to preview when clicking "done"?
Yeah, exactly that. I think the user doesn't see it as a preview, but as a saved edit.
@ -33,2 +25,3 @@
<li :class="{'is-active': isEditActive}">
<a @click="() => {isPreviewActive = false; isEditActive = true}">Edit</a>
<a v-if="!isEditActive" @click="toggleEdit">Edit</a>
<a v-else @click="toggleEdit">Save</a>
I think this should say "Done" as well to be consistent with the rest.
@ -401,0 +395,4 @@
this.isPreviewActive = true;
this.isEditActive = false;
this.renderPreview();
this.$emit('change');
Please use
this.bubble()
.@ -5,4 +5,1 @@
<li :class="{'is-active': isPreviewActive}" v-if="isEditActive">
<a @click="showPreview">Preview</a>
</li>
<li :class="{'is-active': isEditActive}">
I think we can also remove this since there's only ever one item now - that way all of them have the same "visual hierachy"
Changes pushed - is that what you had in mind?
a0de14aa1b
toca45c28a5a
ca45c28a5a
toc16c454f36
Exactly, thanks!
CI is being pretty moody it seems
Frontend Tests are somewhat flaky by nature but I've yet to figure out a way to stabilize the runs a bit better.
I think throwing more hardware at it could help but I'd like to avoid that if possible.
Oh also you don't need to force push all the time, I'll squash merge anyway at the end.
Okay I won't, I just mostly just wanted to rebase the branch (and sometimes fix some bad commits)