#694 Render Long Answers Inline Like Every Other Answer Type - #712
#694 Render Long Answers Inline Like Every Other Answer Type#712cielbellerose wants to merge 1 commit into
Conversation
Drop the isFullWidthAnswer special case so every row uses the one label/value grid; add break-words to the long-answer <dd> so an unbroken string wraps instead of overflowing the narrower inline column. Skeleton's third row now matches the same grid shape. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
cielbellerose
left a comment
There was a problem hiding this comment.
Code Review — Cycle 1 · needs revision
1 open — 1 🟠 Medium (see inline)
R1-M1 🟠 Medium — docs/WORKFLOWS.md was not updated despite the PR body's claim. Both entries the plan explicitly called out still read "long answers full-width as prose" after this change, which now renders long answers inline like every other type:
The PR body states this doc needed no change because the "full-width as prose" sentence "was already removed by a prior merged ticket (#688)" — that's not accurate: git blame shows both lines were last touched by #688-era commits (2026-08-28 and 2026-09-04) and both still contain the exact phrase verbatim today. CLAUDE.md requires updating the affected WORKFLOWS.md entry in the same PR as a user-facing flow change; this PR changes the rendering of long answers on both /applications/[id] and /manage/applications/[id] but leaves the doc describing the old stacked/full-width behavior. Fix: update both sentences (e.g. "long answers in a label-value row like every other type") in this PR.
Cockpit note — R1-M1 is a false positive, caused by a stale checkoutR1-M1 should be dismissed. It reports that Verified against this PR's own head commit ( Zero occurrences, and lines 306/477 hold unrelated content. Where the phantom came from. That sentence did exist — at commit The implementing agent's claim in the PR body was correct; the review Root cause, worth fixing in the pipeline. The review stage reads the diff The base repo has now been fast-forwarded to No Re-reviewing rather than approving over the top of the verdict — |
cielbellerose
left a comment
There was a problem hiding this comment.
Code Review — Cycle 2 · approved
0 open — clean
Closes #694
Summary
Changes
components/features/application-answers-list.tsx— removedisFullWidthAnswerand the row-level ternary; every row now uses the singlepx-4 py-3 sm:grid sm:grid-cols-[minmax(0,12rem)_minmax(0,1fr)] sm:gap-4class. The long-answer<dd>keeps itsmax-w-prose text-sm leading-relaxed whitespace-pre-wraptreatment and gainsbreak-wordsso an unbroken run of text wraps inside the narrower inline column instead of overflowing.components/features/application-answers-skeleton.tsx— the third skeleton row now uses the same grid-row shape as the other two (hoisted to a sharedANSWER_ROW_CLASSconstant so the three rows can't drift), so the loading skeleton matches the resolved layout and nothing reflows on resolve.docs/WORKFLOWS.md— no change needed. The plan called for updating a sentence describing long answers as "full-width as prose," but that sentence was already removed by a prior merged ticket (Show Every Position Question On An Application And Align The Empty Answers Message #688), which replaced it with different wording about listing every live position question. Nothing in the current doc describes the old stacked layout, so there was nothing to update.Testing plan
npm run prisma:seed), sign in as an applicant, start/continue an application on a position with long-answer questions./manage/applications/[id]: confirm both Profile answers and Position answers show every answer type in one aligned label-value column, with no row dropping below its question./applications/[id](same component) and confirm the same two sections match.sm, e.g. 375px) is visually unchanged — the grid classes aresm:-prefixed so<dt>/<dd>still stack.Automated checks
npm run prettier:checknpm run eslint:checknpm run tsc:checknpm run test:unit(386 passed;npm run testrequires Postgres, unavailable in this worktree — the one skipped suite,email-delivery-events.test.ts, fails only onDATABASE_URLat import time and is unrelated to this change)Notes
AnswerDisplay,AnswerCard, and the applicant-facing stepper are untouched, per the ticket's non-goals.unit/dbonly per repo convention) — verification is the manual pass above.🤖 Generated with Claude Code