Skip to content

Conversation

@kevinkim-ogp
Copy link
Contributor

@kevinkim-ogp kevinkim-ogp commented Dec 9, 2025

TL;DR

This PR adds a new feature that provides real-time feedback and suggestions for form inputs.

What changed

  • Adds a new refineFormInput mutation to provide AI-powered suggestions for form inputs
  • Create a new hook useRefineFormInput to handle form input refinement logic
  • Implement debounced API calls to avoid excessive requests
  • Add UI components to display loading state, suggestions, and success messages
  • Update form validation to require minimum 30 characters for prompts
  • Reposition idea buttons and suggestions for better UX

Tests

Type some inputs into the form

  • Should see suggestions after 2s and suggestions should guide to improve the workflow description
  • Should not trigger the loading state if simply using the suggestions

Copy link
Contributor Author

kevinkim-ogp commented Dec 9, 2025

@kevinkim-ogp kevinkim-ogp changed the base branch from ai-builder/refactor-ai-form to graphite-base/1364 December 9, 2025 14:24
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/form-input-suggestion branch from 381e631 to 4ff237b Compare December 9, 2025 14:24
@kevinkim-ogp kevinkim-ogp changed the base branch from graphite-base/1364 to ai-builder/refactor-ai-form December 9, 2025 14:24
@kevinkim-ogp kevinkim-ogp changed the title feat: refine form input with ai [AI-BUILDER-14] feat: adds AI suggestions for form inputs Dec 9, 2025
@kevinkim-ogp kevinkim-ogp marked this pull request as ready for review December 9, 2025 14:36
@kevinkim-ogp kevinkim-ogp requested a review from a team as a code owner December 9, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants