Skip to content

feat: revert total-Learning WIP cap due to issues with new-word intak…#24

Merged
MaheeGamage merged 1 commit into
mainfrom
feature/implement-v2
Jul 16, 2026
Merged

feat: revert total-Learning WIP cap due to issues with new-word intak…#24
MaheeGamage merged 1 commit into
mainfrom
feature/implement-v2

Conversation

@MaheeGamage

Copy link
Copy Markdown
Owner

…e management

Copilot AI review requested due to automatic review settings July 16, 2026 20:08
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
finnish-learner Ready Ready Preview, Comment Jul 16, 2026 8:10pm

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the “total-Learning WIP cap” behavior in the vocab test session selector after it caused “empty sessions” on large, pre-existing decks, restoring the earlier due-Learning-only throttling (learningCapForNew). It also documents the revert in the project task log and overview.

Changes:

  • Removed learningWipCap from PriorityConfig and eliminated wipPressure/newCeiling logic, reverting to a single due-Learning-based pressure.
  • Updated task-014 to status: reverted with an explanation and reproduction details.
  • Updated the project overview to reflect the reverted status and rationale.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/modules/vocab-test/selectors/PrioritySessionSelector.ts Removes total-Learning WIP throttle and restores due-Learning-only intake scaling.
.project/tasks/task-014_cap-new-word-intake.md Marks task as reverted and documents the reason/repro.
.project/overview.md Updates goal/task status to “reverted” with a short note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 84 to 88
const used = new Set(picked.map((c) => c.item.rowNumber));
let newsPicked = picked.filter((c) => isNew(c.item)).length;
for (const c of candidates) {
if (picked.length >= size) break;
if (used.has(c.item.rowNumber)) continue;
if (isNew(c.item)) {
if (newsPicked >= newCeiling) continue;
newsPicked++;
}
picked.push(c);
if (!used.has(c.item.rowNumber)) picked.push(c);
}
@MaheeGamage
MaheeGamage merged commit 658f9c4 into main Jul 16, 2026
3 checks passed
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.

2 participants