Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

fix: LEAP-368: Don't add hidden and locked to undo history #1641

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Dec 13, 2023

Very simple fix. But there is a new UX problem them: if you undo/redo actions done to hidden regions you see no changes on the screen, previously region became visible at some point and only then undo went through actual actions.

PR fulfills these requirements

  • Tests for the changes have been added/updated
  • Docs have been added/updated
  • Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.)
  • Self-reviewed and ran all changes on a local instance

What feature flags were used to cover this change?

none — maybe we need this to cover UX change

What alternative approaches were there?

This change affects (describe how if yes)

  • Performance
  • Security
  • UX — undo/redo over hidden regions now is not visible, that's confusing

Does this PR introduce a breaking change?

  • Yes, and covered entirely by feature flag(s)
  • Yes, and covered partially by feature flag(s)
  • No
  • Not sure (briefly explain the situation below)

What level of testing was included in the change?

  • e2e (codecept)
  • integration (cypress)
  • unit (jest)

Very simple fix. But there is a new UX problem them:
if you undo/redo actions done to hidden regions you see no changes
on the screen, previously region became visible at some point
and them undo to actual actions.
@hlomzik
Copy link
Collaborator Author

hlomzik commented Dec 20, 2023

/git merge master

Workflow run
Successfully pushed new changes:
Merge remote-tracking branch 'origin/master' into fb-leap-368/undo-hidden (6b53857)

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3c7243d) 68.28% compared to head (2cd8070) 64.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1641      +/-   ##
==========================================
- Coverage   68.28%   64.54%   -3.75%     
==========================================
  Files         443      443              
  Lines       28690    28690              
  Branches     7630     7519     -111     
==========================================
- Hits        19591    18517    -1074     
- Misses       7847    10173    +2326     
+ Partials     1252        0    -1252     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hlomzik hlomzik changed the title fix: LEAP-368: Don't add visibility to undo history fix: LEAP-368: Don't add hidden and locked to undo history Dec 21, 2023
@hlomzik hlomzik enabled auto-merge (squash) December 21, 2023 16:18
@hlomzik hlomzik merged commit 88ba15c into master Dec 21, 2023
14 of 15 checks passed
@hlomzik hlomzik deleted the fb-leap-368/undo-hidden branch December 21, 2023 16:27
MasherJames pushed a commit to HelloPareto/label-studio-frontend that referenced this pull request Feb 29, 2024
…Signal#1641)

* fix: LEAP-368: Don't add visibility to undo history

Very simple fix. But there is a new UX problem them:
if you undo/redo actions done to hidden regions you see no changes
on the screen, previously region became visible at some point
and them undo to actual actions.

* Also do the same with `locked` property

---------

Co-authored-by: hlomzik <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants