text-area-scrollable#839
Conversation
…vior Co-authored-by: Cursor <cursoragent@cursor.com>
… scrolling Co-authored-by: Cursor <cursoragent@cursor.com>
…on for long text entry Co-authored-by: Cursor <cursoragent@cursor.com>
|
BLOCKING review summary Findings
Acceptance criteria
Story behavioral-assertion check
Verification evidence
|
Make the documented submit-work Storybook verification command build static output and wait on index.json only, and restore gocoveragecheck baseline test isolation so required Go tests pass again. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed the blocking review items on
|
{
"project": "Styled Scrollable Text Areas",
"branchName": "text-area-scrollable",
"description": "Provide a reusable, accessible textarea experience whose overflowing content uses the dashboard's designed scrollbar treatment, then apply it to the submit-work text content field so long submitted text remains editable, scrollable, visually consistent, and payload-safe.",
"context": {
"customerAsk": "The submit-work text content submitter works, but when there is too much scroll content the textarea uses the default browser scroller instead of the designed scroller. The customer wants a new generic textarea component or equivalent shared solution and wants it used in submit-work text content so scrolling is styled.",
"problem": "Long submit-work text content is functionally editable, but the overflow experience is visually inconsistent and annoying because the scrollbar falls back to the browser-default appearance. A one-off submit-work fix would leave the same problem likely to recur on future textarea surfaces, and the change must preserve native editing, accessibility, validation, disabled, and submission behavior.",
"solution": "Introduce or extend a shared textarea primitive or variant that constrains overflowing content and applies the dashboard's styled scrollbar treatment while preserving native textarea behavior. Use that shared behavior in the submit-work inline text content field, then verify long-content scrolling, payload preservation, accessibility, and responsive layout through focused tests and browser inspection."
},
"acceptanceCriteria": [
"Long text entered or pasted into the submit-work text content field remains editable, scrollable, and visually constrained instead of expanding the form indefinitely.",
"The visible scrollbar for overflowing submit-work text content uses the dashboard's designed scrollbar treatment rather than the unstyled browser-default appearance in supported browsers.",
"The textarea preserves native authoring behavior, including typing, paste, text selection, focus, keyboard scrolling, disabled/submitting state, and accessible labeling.",
"The scrollbar styling is available through a reusable textarea primitive or variant so future textarea surfaces can adopt the same behavior without duplicating page-specific CSS.",
"The submit-work form remains usable at small, medium, and large viewport widths, with no horizontal page scroll or overlap caused by long textarea content.",
"Automated tests cover the changed textarea behavior and the submit-work long-content regression at the most direct useful layer.",
"Quality gate: typecheck, lint, focused frontend tests, and any applicable broader verification all pass."
],
"userStories": [
{
"id": "text-area-scrollable-001",
"title": "Reusable styled-scroll textarea behavior",
"description": "As a dashboard user, I want textarea fields with long content to scroll with the designed scrollbar treatment so form controls look and behave consistently.",
"acceptanceCriteria": [
"A shared textarea primitive or variant renders as a native textarea with constrained vertical overflow when its content exceeds the visible area.",
"Overflowing textarea content uses the dashboard's styled scrollbar treatment in supported browsers while remaining scrollable in browsers with limited scrollbar styling support.",
"The textarea keeps accessible label relationships, visible focus treatment, keyboard focusability, text selection, typing, paste, and disabled behavior.",
"Existing textarea usages that require plain or borderless presentation can opt out or keep their current appearance without receiving unintended field styling.",
"Focused component tests cover the styled-scroll variant, opt-out/plain behavior, and native authoring behavior.",
"Typecheck passes",
"Tests pass",
"Verify in browser using dev-browser skill"
],
"priority": 1,
"passes": true,
"notes": ""
},
{
"id": "text-area-scrollable-002",
"title": "Submit-work text content uses styled scrolling",
"description": "As a user submitting text work, I want long text content to stay inside a usable scrollable field so I can review and edit the request without the form becoming awkward.",
"acceptanceCriteria": [
"The submit-work text content field uses the shared styled-scroll textarea behavior for inline text work items.",
"With long content, the submit-work text field has a stable maximum visible height and scrolls internally instead of expanding the submit-work form indefinitely.",
"The field's label, required/error state, helper text relationship, typed change handling, paste handling, and disabled/submitting treatment remain unchanged from the user's perspective.",
"Submitting a valid request with long text content sends the same text payload as before, without truncation or added formatting.",
"Focused submit-work tests cover long-content scrolling constraints and unchanged authoring/submission behavior.",
"Typecheck passes",
"Tests pass",
"Verify in browser using dev-browser skill"
],
"priority": 2,
"passes": true,
"notes": ""
},
{
"id": "text-area-scrollable-003",
"title": "Responsive and regression verification for long text entry",
"description": "As a dashboard user on different screen sizes, I want the submit-work text field to remain usable with long content so I can submit work from narrow and wide layouts.",
"acceptanceCriteria": [
"Browser verification covers the submit-work text content field with long pasted content at small, medium, and large viewport widths.",
"At each verified viewport, the textarea remains readable, the scrollbar is visible when needed, form controls remain reachable, and no horizontal page scrolling or incoherent overlap appears.",
"Keyboard-only verification confirms the user can tab to the textarea, move within the text, scroll the overflowing content, and continue to the submit action.",
"The implementation records the focused verification command or test path used so reviewers can repeat the regression check.",
"Typecheck passes",
"Tests pass",
"Verify in browser using dev-browser skill"
],
"priority": 3,
"passes": true,
"notes": ""
}
]
}
Made with Cursor