trgkanki / remaining_time

GNU Affero General Public License v3.0
17 stars 3 forks source link

Gap in the timeline! #20

Closed TheDemystifier closed 3 years ago

TheDemystifier commented 3 years ago

Bug report

Describe the bug

If I press the edit button while reviewing, this shows up as a huge red bar on the timeline/bar. Even if the editing only took seconds. Somehow, the addon registers it as a lapsed card that took a lot of time.

Reproduction step

Steps to reproduce the behavior:

  1. Go to 'Reviews'
  2. Click on 'edit while you're reviewing'
  3. Scroll down to 'the bar after you close the edit panel'
  4. See the red bar on the bar

Expected behavior

Editing a card shouldn't affect the bar's progress behavior!

Actual behavior

Editing a card messes up the timeline.

Anki/OS versions

TheDemystifier commented 3 years ago

On a second thought, I think that's actually because the addon also counts the time spent not-reviewing, right? If you leave the deck and come back 30 minutes later, that 30 minute gap will show up like that, correct?

Is this a bug or a feature? Is it possible to only count time when you're reviewing.

phu54321 commented 3 years ago
I think that's actually because the addon also counts the time spent not-reviewing, right?

Correct. This is a feature.

Is it possible to only count time when you're reviewing.

May I ask you why? I think addon should visualize the time you've left. While I agree that filling up the entire progress bar space with pale giant block of 4hr segment, addon should say that you've left the review for a considerable amount of time.

This is some alternative visualization I'm thinking of

TheDemystifier commented 3 years ago

Ah, Ok! I was under the impression that every deck would have its own version of the progress bar, in which case, each deck should only count the time spent reviewing the particular deck, not elsewhere.

phu54321 commented 3 years ago

Oh okay I havent thought of multi deck reviewing scenario. That would be a use case that could be considered.

phu54321 commented 3 years ago

Implementing multi-deck scenario requires a considerable amount of works. Meanwhile, an indicator for super-long off-work time has been added, like this

image

phu54321 commented 3 years ago

Implementing multi-deck scenario requires a considerable amount of works.

This would require a different meta-isssue. Closing this issue with https://github.com/trgkanki/remaining_time/commit/b52fa4ac2a6130f644271c62c1c2fb8e473b782a.