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