Skip to content

Conversation

@Aryan171
Copy link
Contributor

@Aryan171 Aryan171 commented Nov 9, 2025

Purpose / Description

Previously, the timebox limit was checked whenever the updateCurrentCard function was called, which lead to unnecessary timebox reached popup, this logic has been moved to the answerCardInner function. This makes it so that the popup is only shown when a card has been answered.

Fixes

How Has This Been Tested?

Tested on an android 15 phone

Checklist

Please, go through these checks before submitting the PR.

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

- Previously, the timebox limit was checked whenever the updateCurrentCard function was called, which lead to unnecessary timebox reached popup, this logic has been moved to the answerCardInner function. This makes it so that the popup is only shown when a card has been answered.
Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers! Sorry this sat. Notification queue got really backlogged

}

// showing the timebox reached dialog if the timebox is reached
val timebox = withCol { timeboxReached() }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable: the same call is made in currentQueueState

@david-allison david-allison added the Needs Second Approval Has one approval, one more approval to merge label Nov 29, 2025
@david-allison david-allison added this to the 2.23 release milestone Nov 29, 2025
Copy link
Member

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great stuff, thank you!

@mikehardy mikehardy merged commit 01f0783 into ankidroid:main Nov 30, 2025
18 checks passed
@github-actions github-actions bot removed the Needs Second Approval Has one approval, one more approval to merge label Nov 30, 2025
@mikehardy
Copy link
Member

note, from a "conventional commits" standpoint, which is frequently used in combination with "semantic release" so that a release flow can be fully automated and select the correct semantic version type between major, minor, or patch release - I would clearly classify this as a "fix" and it should generate a patch release. But you tagged the commit as "feat" which would be a new feature and generate a minor version. That is not something this project enforces, but since you put it in there I thought I'd note the correction. I squashed this PR when merging so I had a chance to edit the commit message, and I switched it from feat to fix. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editing notes triggers the timebox popup

3 participants