feat: AI Integration#176
Merged
Merged
Conversation
…nd to prefer using it more often
- LLM adding blue/green themed buttons, default to gray - use espresso tokens wherever possible - avoid setting unnecessary styles on components (eg: height on buttons)
- similar to Frappe Builder Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
…ng to vue, eliminate requestAnimationFrame
- since token selection here is also for colors and LLMs return only the color
… of component mount/unmount
- similar to Builder - add AI Session doctype for persistence - convert single prompt to chat panel - build context string for the whole session and pass to the llm Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
- backtrack and partial valid yaml
- instruct to use Style Panel properties and pass everything else to raw styles - instruct to build responsive layouts (setting tablet styles and mobile styles)
- browser crashes if the page is too big
- LLM was mixing variants of Badges in the same view, adding more than 1 primary button and creating ugly UI at times
- LLMs understand JSON better. Models were returning invalid and also giving inferior output quality
- Models occasionally emit slightly-invalid JSON (unescaped quotes inside text, missing commas, truncation, trailing data), Repair as fallback
|
@ruchamahabal Forget this ... some socketio issue on my side! Thanks 😉 |
Member
Author
|
@git-avc is it working now? |
|
After some fighting .. i found it 😸 |
Member
Author
|
You are right. I was running studio in dev mode (with a vite dev server) hence it was working for me. Fixed here. Thanks for letting me know 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Goal: ability to generate complete app iteratively - with layouts, data sources, variables, scripts, etc. This is the first part: layout generation:
Page Generation
Claude Sonnet 4.6
claude-item-dashboard-compressed.mp4
Better at using space, but some ugly output: badges spanning full-width, can’t do responsive layouts
Qwen 3.7 Max (Open Source)
qwen-emp-appraisal-feedback-view.mp4
Doesn’t understand how to use the space better, but makes responsive layouts
Modifying a block
Select a block and give the prompt. It’s pretty slow at the moment.
qwen-block-modify.mp4
Base architecture referencing builder: frappe/builder#544, ai-session branch