feat: toggle ai features#9232
Conversation
87a36f6 to
0c9c6aa
Compare
There was a problem hiding this comment.
I have some thoughts about terminology.
Mock servers are currently an entity under workspace, which has within it a number of mock routes. This work appears to be introducing a new definition of mock servers and an idea that a mock server can be enabled and fully enabled. For the future, lets come up with some more specific names. Happy to join a call and spit ball some ideas. Might help me give a better review too.
I understand that this work has some time pressure an I don't mean to hold it up over a nuance, but this kind of nuance is less painful to add now than later.
I don't think that's the case - these toggles are turning the AI generation for creating a mock server on/off. It's not actually enabling a mock server itself. I can work on renaming to make this more clear |
5ded18e to
add0cf0
Compare
add0cf0 to
d69e2f6
Compare
* feat: integrate AI plugin and configure LLMs in preferences (#9192) * poc: LLM configuration * fix formatting + tidy script * fix openpath type send method * exempt node_modules from vitest * reset package-lock for inso build * switch from send/on to invoke/handle * switch to pluginData * remove unnecessary animation * remove extraneous external defs in frontend bundle config * rebase fix * feat: mock server gen (#9201) * add ipc handler methods in front of llm config service (#9202) * feat: gemini first class config support (#9209) * feat: add gemini as a backend * fix: save api key the first time * chore: call plugin from utility process (#9210) * feat: additional mock server event tracking (#9215) * feat(Git Commit): Automatically generate commits (#9164) * feat: add AI-generated commit message functionality in staging modal * feat: enhance AI commit message generation with error handling and improved UI * fix: update button icon and text for commit generation state in staging modal * feat: add diff functionality to Git service and integrate with AI commit message generation * feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS * feat: implement multiple commit functionality for Git VCS and integrate with staging modal * feat: add validation for staged changes before generating commit messages * feat: implement generateCommitsFromDiff functionality for AI commit message generation * Cleanup staging modal and use tree data for reordering and submitting multiple commits * Revert "feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS" This reverts commit b731372. * feat: update type definitions for diff changes in Git VCS * refactor: remove console logs and commented code from staging modal and AI commit generation * feat: implement git commit generation process using a separate utility process for improved error handling and performance * fix: improve error handling messages in AI commit generation * chore: update optional dependency for AI plugin to alpha version 1.0.3 * fix: ensure data dir exists prior to reading (#9220) * fix: ensure data dir exists prior to reading * rename handler * feat: mock server gen ux improvements (#9221) * fix: include mockgen script in build (#9222) * feat: add git commit generation process to build script (#9226) * fix: set min height for git folder selector (#9242) * chore: ai plugin 1.0.4 (#9243) * feat: toggle ai features (#9232) * feat: track commit generation and saving events for analytics (#9293) * feat: add analytics tracking for commit message generation events * fix: update segment event names to camelCase for consistency * Update package-lock with the plugin modules * fix(build): add x64ArchFiles option back (#9297) * fix: autoselect self hosted mock when cloud mock disabled (#9299) * fix: hide ai settings from scratch pad user (#9300) --------- Co-authored-by: Shelby Moore <13246465+shelby-moore@users.noreply.github.com> Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Adds the ability for a user to toggle AI features on off. There are currently two AI features - one for mock server generation, and another for commit message generation. Both can be toggled on/off individually.
This PR also disables the functionality for using the AI features depending on whether or not they're toggled on/off. If the features have been toggled off at the organization level, the user cannot toggle them on/off, the toggles are simply disabled along with the features.