Improve editor buttons UX #361

Merged
konrad merged 3 commits from profi248/frontend:edit-button into master 2020-12-30 21:52:44 +00:00
Contributor

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.
image

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. ![image](/attachments/efb579d4-0ea6-45d9-8f50-5bd45fd17f79)
Author
Contributor

Oh it broke the test, I need to fix that

Oh it broke the test, I need to fix that
profi248 force-pushed edit-button from 0818977c56 to de295d8683 2020-12-30 19:27:09 +00:00 Compare
Owner

So it changes back to preview when clicking "done"?

So it changes back to preview when clicking "done"?
Author
Contributor

Yeah, exactly that. I think the user doesn't see it as a preview, but as a saved edit.

Yeah, exactly that. I think the user doesn't see it as a preview, but as a saved edit.
konrad requested changes 2020-12-30 19:55:55 +00:00
@ -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.

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().

Please use `this.bubble()`.
konrad reviewed 2020-12-30 19:59:10 +00:00
@ -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"

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"
Author
Contributor

Changes pushed - is that what you had in mind?

Changes pushed - is that what you had in mind?
profi248 force-pushed edit-button from a0de14aa1b to ca45c28a5a 2020-12-30 20:49:05 +00:00 Compare
profi248 force-pushed edit-button from ca45c28a5a to c16c454f36 2020-12-30 20:49:50 +00:00 Compare
konrad approved these changes 2020-12-30 21:01:30 +00:00
konrad left a comment
Owner

Exactly, thanks!

Exactly, thanks!
Author
Contributor

CI is being pretty moody it seems

CI is being pretty moody it seems
Owner

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.

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.
konrad added 1 commit 2020-12-30 21:24:07 +00:00
continuous-integration/drone/pr Build is passing Details
0b25397ce5
Merge branch 'master' into edit-button
Author
Contributor

Okay I won't, I just mostly just wanted to rebase the branch (and sometimes fix some bad commits)

Okay I won't, I just mostly just wanted to rebase the branch (and sometimes fix some bad commits)
konrad merged commit bb2800ec40 into master 2020-12-30 21:52:44 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.