Skip to content

ref(forms): Migrate RequestIntegrationModal to TanStack form system#115990

Merged
priscilawebdev merged 7 commits into
masterfrom
priscilawebdev/ref/de-1246-migrate-request-integration-modal-form-2
May 28, 2026
Merged

ref(forms): Migrate RequestIntegrationModal to TanStack form system#115990
priscilawebdev merged 7 commits into
masterfrom
priscilawebdev/ref/de-1246-migrate-request-integration-modal-form-2

Conversation

@priscilawebdev
Copy link
Copy Markdown
Member

@priscilawebdev priscilawebdev commented May 21, 2026

Replace the legacy Form/TextareaField + local useState with useScrapsForm
and field.TextArea, so the modal participates in the new form pipeline
(validation, submitting state, SubmitButton busy/disabled handling).

The mutation now receives the message via the form value instead of via
closure on local state, and the submit button is driven by the form
rather than a standalone Button click.

Refs DE-1246
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

DE-1246

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.58%

Use Flex gap for uniform spacing between Body children, replace
TextBlock with Text, and drop the unused Message label on the textarea
to match the pre-migration UX.
Replace legacy api.requestPromise with fetchMutation (the standard
mutationFn for TanStack mutations) and remove density="comfortable"
from the body Text paragraphs in favor of the default line-height.
The textarea placeholder already says "Optional message…", so the
prefix on the surrounding paragraph is duplicative.
Use Stack instead of Flex with explicit column direction, inline the
endpoint string at the call site, and destructure props in the function
signature.
@priscilawebdev
Copy link
Copy Markdown
Member Author

bugbot run

Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 5f43f95. Configure here.

@priscilawebdev priscilawebdev marked this pull request as ready for review May 28, 2026 05:51
@priscilawebdev priscilawebdev requested a review from a team as a code owner May 28, 2026 05:51
@priscilawebdev priscilawebdev merged commit 2f00af4 into master May 28, 2026
75 checks passed
@priscilawebdev priscilawebdev deleted the priscilawebdev/ref/de-1246-migrate-request-integration-modal-form-2 branch May 28, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants