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

Update DOM when saving/saved state is interrupted by document modification #10195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Darshan-upadhyay1110
Copy link
Contributor

  • Perform DOM operations to handle cases where the document is modified during a saving or saved state.
  • If modifications occur, the save icon is reverted to the "modified" state to reflect the updated document status.

Change-Id: I498128b3a3eee70ef638b472a8fda774d7f6ab92

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

…ation

- Perform DOM operations to handle cases where the document is modified during a saving or saved state.
- If modifications occur, the save icon is reverted back to the "modified" state to reflect the updated document status.

Signed-off-by: Darshan-upadhyay1110 <[email protected]>
Change-Id: I498128b3a3eee70ef638b472a8fda774d7f6ab92
@Darshan-upadhyay1110
Copy link
Contributor Author

Darshan-upadhyay1110 commented Oct 8, 2024

Steps to test patch

  • Modify content and save it by keyboard shortcut
  • while "Saving" please change the document content
  • in this stage we need to revert back to "modified" state instead of make the process continue.

Normal case:

Screencast.from.2024-10-08.21-58-29.webm

When we do modify in between state change:

Screencast.from.2024-10-08.21-59-42.webm

CC: @pedropintosilva @eszkadev

browser/.beforeprettier Outdated Show resolved Hide resolved
@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/handle-savemodified-case-in-between-save-states branch from 6ed761b to 77a6d12 Compare October 9, 2024 14:40
@Minion3665 Minion3665 dismissed their stale review October 9, 2024 14:43

All good now, thanks very much!

…aveState.ts

- Moved icon-related methods (rotation, state changes) to a new file `Control.SaveState.ts`.
- Replaced repetitive code in `Control.SaveState.ts` with calls to the new icon control methods.
- Cleaned up and streamlined logic for managing save state and icon animations.

Signed-off-by: Darshan-upadhyay1110 <[email protected]>
Change-Id: I5b1d271789ad7f7a900f88ebc1d945948f9fb34c
@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/handle-savemodified-case-in-between-save-states branch from 77a6d12 to 416fdde Compare October 9, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants