Skip to content

Conversation

akshatbatra
Copy link
Contributor

@akshatbatra akshatbatra commented Aug 23, 2025

Closes #375

Features to apply AI suggested code and fix errors in that code with the help of AI.

Changes

  • Apply code button now appears on the code blocks in chat panel that can be applied to the editors.
  • CodeDiffPopup shows an interface to the user to select what code to accept/reject, click or drag on lines to toggle their addition/removal state.
  • Whenever an error shows up, "AI Fix" button shows up which sends the error message in the chat window for AI to come up with a solution.

Flags

  • The quality of the code depends on the model that you are using, it is recommended to use models like Qwen3 Coder, Claude Sonnet 4 and GPT-5 etc.
  • This work was done with the old Playground UI as the base, it was later rebased onto restructuring/redesign branch to allow for reviewing with new design. When the redesign branch was merged, this branch was rebased onto main.

Screenshots or Video

ai-apply-fix-code-demo.webm

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

@akshatbatra akshatbatra requested a review from a team as a code owner August 23, 2025 16:57
Copy link

netlify bot commented Aug 23, 2025

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit 3c11356
🔍 Latest deploy log https://app.netlify.com/projects/ap-template-playground/deploys/68b18a63e427f000080facec
😎 Deploy Preview https://deploy-preview-400--ap-template-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Akshat Batra <[email protected]>
Signed-off-by: Akshat Batra <[email protected]>
Signed-off-by: Akshat Batra <[email protected]>
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.

Integrating AI Assistant chat panel suggested code blocks into the editors
3 participants