feat(vocab): remove daily hard marked count and adjust practice logic

This commit is contained in:
Torsten Schulz (local)
2026-08-17 10:39:58 +02:00
parent 25d659e4e2
commit 62dc104211

View File

@@ -209,7 +209,6 @@ export default {
hardPhaseActive: false,
hardMasteryByKey: {}, // { [hardKey]: consecutiveCorrect }
cycleAskedIds: [],
dailyHardMarkedCount: 0,
};
},
computed: {
@@ -448,12 +447,11 @@ export default {
}
this.saveHardVocabMap();
if (this.srsMode) {
this.dailyHardMarkedCount += 1;
this.maybeStartDailyHardPractice();
}
},
maybeStartDailyHardPractice() {
if (this.dailyHardMarkedCount < MAX_DAILY_HARD_VOCABS) return;
if (this.hardCount < MAX_DAILY_HARD_VOCABS) return;
const callback = this.onDailyHardLimitReached;
this.close();
this.$nextTick(() => {
@@ -636,12 +634,12 @@ export default {
this.hardPhaseActive = false;
this.hardMasteryByKey = {};
this.cycleAskedIds = [];
this.dailyHardMarkedCount = 0;
this.locked = false;
this.resetQuestion();
this.$refs.dialog.open();
this.$nextTick(() => {
document.addEventListener('keydown', this.handleKeyDown);
if (this.srsMode) this.maybeStartDailyHardPractice();
});
this.loadHardVocabMap();
this.reloadPool();