Skip to content
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

Undo & Redo Actions #2278

Closed
cceyda opened this issue Feb 2, 2023 · 2 comments
Closed

Undo & Redo Actions #2278

cceyda opened this issue Feb 2, 2023 · 2 comments
Assignees
Labels
type: enhancement Indicates new feature requests
Milestone

Comments

@cceyda
Copy link
Contributor

cceyda commented Feb 2, 2023

Is your feature request related to a problem? Please describe.
My use case is specifically for token classification where there are a lot of annotations per record but should be just as useful for other types too.
If the user accidentally clicks (x) on an annotation (or clicks "Clear annotations") or makes other types of mistake they have to manually tag it again. This is especially annoying if it is character level annotation & you are doing edits.
Additionally it would be nice to have a way to undo all actions done on a record in that session(? the actions that took place after first edit during Pending until Validation)
So the per record buttons would be "Save, Undo All, Clear Annotations"(these could be just emoji buttons too). So if a user edits a record it would go from
Validated->Pending-> annotate,annotate,annotate->clicks undo all->Validated (reverts all edits)
This would also remove some confusion from the word 'discard'. Currently when being unfamiliar with the UI it is easy to confuse it as discarding actions. Is this the same as the Clear action mentioned at #2266 ?

Describe the solution you'd like
allow undo and redoing actions using keyboard shortcuts &| add buttons near Validate and Discard buttons. This can be done by keeping a limited buffer of actions (at least until the user clicks save) as also described here

Describe alternatives you've considered
😭 and do it all again

@cceyda cceyda added the type: enhancement Indicates new feature requests label Feb 2, 2023
@Amelie-V
Copy link
Member

Amelie-V commented Feb 2, 2023

thanks, @cceyda! That is a very insightful description.

@frascuchon frascuchon added this to the v1.4.0 milestone Feb 9, 2023
leiyre added a commit that referenced this issue Feb 16, 2023
# Description

This PR includes reset button at record level and as global action to to
allow resetting the record to previous status and annotation

Closes #2278
See #2264

**Type of change**

- [x] New feature (non-breaking change which adds functionality)

**How Has This Been Tested**

- [x] Update recordActionButtons test

**Checklist**

- [x] I have merged the original branch into my forked branch
- [x] follows the style guidelines of this project
- [x] I did a self-review of my code
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works

---------

Co-authored-by: keithCuniah <[email protected]>
@frascuchon
Copy link
Member

Fixed in #2273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

5 participants