fix(compose): wire staged-pipeline indicators to live learning-status #336
Reference in New Issue
Block a user
Delete Branch "worktree-compose-learning-indicators"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
מה ולמה
שני אינדיקטורי-השלבים בדף ה-compose (סרגל "השלמה והעברה" → "הרץ למידת-קול" / "הרץ אימות-הלכות") היו טקסט סטטי קשיח שתורגם ממוקאפ 03 ומעולם לא חובר לנתונים — הם הציגו תמיד "ממתין להעלאת הסופי", גם אחרי שהסופי הועלה ושני התורים הסתיימו. (הסטטוס האמיתי כבר הוצג נכון ע"י
LearningStatusBadgesבדף התיק.)התגלה ב-8137-11-24 (ערר הפדרציה) אחרי הרצת למידת-קול + אימות-הלכות מוצלחים.
השינוי
חיווט ל-
useCaseLearningStatus(/api/cases/{n}/learning-status) — אותו מקור שה-badges בפאנל-הטיוטות משתמשים בו (G2). הטקסט נגזר דינמית: "ממתין להעלאת הסופי" עד שהסופי עולה, ואז המצב החי (✓ הושלם · 12 לקחים הופקו · 12 הוצעו לאישור/✓ הושלם · חולצו 48 · 33 אושרו · 15 נדחו, או רץ/בתור/נכשל).שער-עיצוב
תיקון-נתונים בלבד — markup/classes זהים לחלוטין (פריסת מוקאפ-03 נשמרת), אין שינוי-עיצוב ויזואלי → נכלל בחריג-הבאג של שער-העיצוב. הגישה (חיווט-מינימלי מול שימוש ב-LearningStatusBadges העשיר) אושרה ע"י חיים מראש.
Invariants
useCaseLearningStatus), אין מסלול-סטטוס מקביל.tsc + eslint נקיים.
🤖 Generated with Claude Code
The two stage indicators in the compose page's "השלמה והעברה" rail ("הרץ למידת-קול" / "הרץ אימות-הלכות") were static placeholder text translated from mockup 03 and never wired to data — they always read "ממתין להעלאת הסופי", even after the final was uploaded and both pipelines completed. (The real status was already shown correctly by LearningStatusBadges on the case page.) Wire them to useCaseLearningStatus (/api/cases/{n}/learning-status) — the same source the drafts-panel badges use (G2). The trailing text is now derived: "ממתין להעלאת הסופי" until the final is uploaded, then the live state ("✓ הושלם · 12 לקחים הופקו · 12 הוצעו לאישור" / "✓ הושלם · חולצו 48 · 33 אושרו · 15 נדחו", or running/queued/failed). Data-binding bugfix only — identical markup/classes (mockup-03 layout preserved), so no visual redesign; within the design-gate bugfix exception (chair-approved approach). tsc + eslint clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>