-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add cancel button for when user entry is being edited #38952
Add cancel button for when user entry is being edited #38952
Conversation
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.
Thank you so far! Left an inline comment.
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.
Watch out as the component has been heavily modified recently, so your change might need to be adapted.
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.
Super nice! :) Only one tiny thing to nitpick: All the icons in a column should be center-aligned ideally. So the buttons should be moved slightly to the right, so that the close icon is nicely aligned with all the edit icons above it :)
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.
This now looks ok to me however,
- There's a review about alignment which you should address
- Update the screenshot in the description to reflect the new changes
And we would be good to go! Thank you for your contribution :)
This needs to be rebased as the @artonge said it was heavily modified. |
Rebase add cancel button Signed-off-by: JeaNugroho <jeanugroho@yahoo.com>
Omit checkmark button since it has the same functionality as the cancel button - Editing User Entry Co-authored-by: F. E Noel Nfebe <fenn25.fn@gmail.com> Signed-off-by: Jean Benedict Nugroho <35510082+JeaNugroho@users.noreply.github.com>
Signed-off-by: JeaNugroho <jeanugroho@yahoo.com>
2e36db2
to
d2b2fc3
Compare
Have just rebased! I'll try to fix the alignment and update the original commit with the new screenshot of the layout. And then when any of the required CI checks fail, I hope someone can provide guidance for that 😊 |
@fenn-cs @artonge @susnux |
@JeaNugroho you should lint and then build ideally! However there are some merge conflicts in your PR, check the files tab closely. I would leave some inline comments to help you see them. |
<div class="icon-checkmark" /> | ||
{{ feedbackMessage }} | ||
</div> | ||
>>>>>>> 7a2938b01f3 (Add cancel button for when user entry is being edited) |
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.
>>>>>>> 7a2938b01f3 (Add cancel button for when user entry is being edited) |
Merge conflict, and deleting this line is not the solution though you want to work with perhaps your code editor to help you resolve the conflicts.
@@ -221,10 +221,36 @@ | |||
</div> | |||
|
|||
<div class="userActions"> | |||
<<<<<<< HEAD |
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.
<<<<<<< HEAD |
Another conflict marker
<UserRowActions v-if="!loading.all" | ||
:actions="userActions" | ||
:edit="true" | ||
@update:edit="toggleEdit" /> | ||
======= |
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.
======= |
Conflict.
Signed-off-by: JeaNugroho <jeanugroho@yahoo.com>
Thanks @JeaNugroho! We have some more modifications incoming, would it be fine with you if we revisit this after merging #39050 to prevent conflicts? |
#39050 has been merged, @JeaNugroho. So feel free to proceed. :) |
Summary
Add a cancel button between checkmark button and three-dot button for when user entry is being edited.
Before
After
Potential next steps
This comment may be the next fix to make user experience more intuitive and straightforward. I personally would think that the user editing process would be like this if I were a new user to the app. I can certainly implement a way to make this happen, either in the same PR or in the next PR after this one's completed.
Checklist