Fix: Translate task no longer auto-completes from existing langlinks
Picking an essential article (or the Five Pillars policy page) on a wiki that already has a langlinked translation caused the tool to skip past Step 2 and render "Article published!" / "Translation complete!" without the user opening Content Translation or creating anything (T428504).
Root cause: getTranslateCompletionStatus returned status 4 whenever checkIfArticleExistsByLanglink found any existing translation on the target wiki, regardless of authorship or the user's session. With completedStatuses [3, 4] in the registry, status 4 short-circuited the whole wizard to the success screen on every page load.
Changes:
- getTranslateCompletionStatus now relies solely on the user's own CT draft/published state (statuses 0-3). Status 4 and the langlink helper are removed.
- completedStatuses dropped from [3, 4] to [3] for create-essential-article and translate-policy-page.
- useEssentialArticleSource adds a Wikidata-sitelink-aware filter so the picker no longer suggests articles that already exist on the target wiki under their native title (the previous English-title filter missed Mahatma Gandhi -> hi:महात्मा गांधी and similar).
- New DELETE /api/tasks/:taskKey (session-scoped) wipes task_completions, task_checklists, and task_metadata for the caller's (wiki_url, task_key), giving QA a clean reset path on live wikis.
Bug: T428504 Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Closes T428504