Repository navigation
fix(schedules): let a long schedule prompt wrap and show on hover - #7920
Conversation
…over A long scheduled-task prompt was cut to one line with an ellipsis and no way to read the rest. The card now shows up to three lines and the full name and prompt on hover.
|
Verdict: Request changes Long schedule prompts now wrap to three lines on the card instead of being cut to one, and hovering the name or prompt shows the full text. The change itself is right. It will, though, turn the Arabic screenshot check in CI red, because that check fails on any English hover text in the schedules dialog.
Real-world evidenceN/A: no evidence bundle was produced for this run. The PR embeds before and after screenshots of the card in English, which covers the wrapping. The hover tooltip and the Arabic layout are still unchecked, both in the PR and here. This verdict comes from reading the code. I did not run the Playwright suite. The "Test Agent UI Components" CI job was still pending when I wrote this. 🔍 Technical details🟡 Arabic check in
Before you rely on that selector, confirm that no translated chrome element carries both Strengths
|
|
Verdict: Request changes A schedule card now wraps a long prompt to three lines instead of cutting it to one, and hovering the name or prompt shows the full text. The code change is small and correct, and the before/after screenshots show it working in English. The one thing missing is the check that would catch this bug coming back. The project rule for UI fixes is that a bug a person found becomes a rule in the visual suite in the same change. Right now none of the visual suite's sample schedules has a long prompt, so the three-line clamp is never rendered or screenshotted in either language. The open test-plan item (Arabic prompt, prompt longer than three lines) would be covered by the same addition.
Real-world evidenceN/A: no evidence bundle was produced for this run. The PR description embeds before/after browser-preview screenshots of the English card. Hover tooltips and the Arabic/right-to-left layout haven't been exercised; the author left that test-plan item unchecked. The verdict rests on those screenshots plus static review. 🔍 Technical detailsIssues 🟡 No visual rule for the long-prompt state ( {
...SCHEDULE_ROW, id: 's4', name: 'weekly-research-digest-for-the-product-and-design-teams', last_error: null, error_count: 0, session_id: null,
prompt: 'ابحث في الويب عن أخبار منافسينا الثلاثة الرئيسيين ولخص أي تغيير في الأسعار أو الميزات أو التوظيف، ثم قارنه بملخص الأسبوع الماضي. '.repeat(2),
},Then add an assertion that the clamp holds, e.g. that
Checked, no issue
Strengths
|
|
Verdict: Request changes 🟡 The earlier finding is still open: the visual suite never shows a schedule card with a long prompt. The three-line wrap this PR adds is never screenshotted in English or Arabic, so if the one-line cut comes back, or text spills out of the card, CI stays green. This push only merged
🔍 Technical details
|
|
Verdict: Approve A long prompt on a scheduled-task card now shows up to three lines instead of one cut line, and hovering the name or the prompt shows the full text. The change only touches how the card looks. Tests cover the tooltip, and the visual suite gains an Arabic long-prompt card that checks the prompt stops at three lines and stays inside its card. I found nothing that needs fixing before merge. Real-world evidenceN/A here: no evidence bundle ran for this PR. The description embeds before and after screenshots from the browser preview showing one cut line before and three lines after. The one unchecked test-plan item is hovering a card to see the tooltip and trying an Arabic prompt in the real app. The new Arabic visual test covers the Arabic layout, but nobody has looked at the hover tooltip yet. Apart from those screenshots, this verdict rests on reading the code. 🔍 Technical detailsIssues found: none blocking. Checked and fine
Strengths
|
A scheduled-task card cut a long prompt to one line with "..." and gave no way to read the rest short of editing it. The card now wraps the prompt to up to three lines, and hovering the name or prompt shows the full text. Only the card changes, so it should not conflict with the Edit view in #7527.
Closes #7921
Test plan
npm test -- src/components/__tests__/ScheduleManager(newScheduleManager.longText.test.tsx)npm run build🔍 Technical details
.schedule-card-promptinScheduleManager.cssusedwhite-space: nowrapwith an ellipsis; it now uses a three-line clamp withoverflow-wrap: anywhere.titleto the name and prompt onScheduleManager.tsx.