Repository navigation
Conversation
batch-mark-files-as-viewed
|
@fregante did understand the issue correctly? You want that when clicking the progress bar it should mark them all as viewed? |
|
It should toggle them. If you alt-click a checked item, it should uncheck it and uncheck all of them. If you alt-click an unchecked item, all of them should be checked. |
If you alt check ANY item it should uncheck/check the ALL? So nothing to do with the progress bar? |
|
The progress bar is unrelated to the logic. It’s only there because it might take a few seconds. Just refer to how |
|
...attempts to use new feature but its not correct :) the name is |
The PR is "ready for review" but no screenshot 🥺
This PR has 5 files, not a good test PR for a toast. I suggest #4044 Fixed: |
I did not even think you were going to keep the PR open. Will work on this tomorrow. |
| toast.show(); | ||
| await delay(30); // Without this, the Toast doesn't appear in time | ||
| markAsViewed(event); | ||
| await lastCheckboxCompleted; // Without this, done will be called too early |
There was a problem hiding this comment.
How early? I just checked #4044 on Chrome and I don't see a difference
There was a problem hiding this comment.
Without it the 'completed' toast is never shown. (I just tried, can provide gif if needed)
There was a problem hiding this comment.
At first sight it works and I do see the toast, but also I noticed that the 3s timer starts before the completed toast appears.
- markAsViewed() synchronously takes 2.5s
- The timer starts
- 1.5s later the view is actually updated, likely due to long layout operations
- Only 1.5s left in the timer
If the layout takes 3s or more, the timer expires before the page even paints the message.
This should be taken care by the toast component itself, so I moved this logic into its file.
|
Works well (great job @fregante 😄 ) What do you say to my |

LINKED ISSUES:
Closes Add "toggle all with alt-click" to
batch-mark-files-as-viewed#3043TEST URLS:
Meta: Replace
dom-chefwithjsx-dom#4044SCREENSHOT:
