Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
feat: add Ask AI CE stubs and shared file wiring (#41692)
## Summary - Adds minimal CE stub files and EE re-export shims so the Ask AI feature (implemented entirely in the EE repo) can integrate with shared files - Updates existing CE stub signatures (`trigger.tsx`, `GPT/index.tsx`) to match the new API surface expected by shared files - Adds 9 new AI action type constants to `ReduxActionConstants.tsx` - Updates shared files (`CodeEditor`, `DynamicTextField`, IDE layouts) with the imports and conditional rendering hooks for Ask AI ## What this PR does NOT do This PR does **not** add any AI functionality to the community edition. All CE stubs return `null`, `false`, or `[]`. The actual Ask AI implementation lives entirely in the EE repo and will be enabled via the `license_ask_ai_config_enabled` feature flag. ## Changes ### New CE stub files (all return null/false) - `ce/selectors/aiAssistantSelectors.ts` - `ce/actions/aiAssistantActions.ts` - `ce/components/editorComponents/GPT/AISidePanel.tsx` - `ce/components/editorComponents/GlobalAISidePanel/index.tsx` ### New EE re-export shims - `ee/selectors/aiAssistantSelectors.ts` - `ee/actions/aiAssistantActions.ts` - `ee/components/editorComponents/GPT/AISidePanel.tsx` - `ee/components/editorComponents/GlobalAISidePanel/index.tsx` ### Updated existing CE files - `GPT/trigger.tsx` — added `isAISupportedMode()` export and `hasApiKey` parameter to `isAIEnabled()` - `GPT/index.tsx` — re-exports `AISidePanel` - `ReduxActionConstants.tsx` — 9 new AI action type constants ### Updated shared files - `CodeEditor/index.tsx` — AI selector/action imports, AI settings loading in `componentDidMount` - `CodeEditor/generateQuickCommands.tsx` — slash command updates - `DynamicTextField.tsx` — `AIAssisted` auto-detection for editor modes - `StaticLayout.tsx`, `AnimatedLayout.tsx` — render `<GlobalAISidePanel />` ## Test plan - [ ] CE build compiles without errors - [ ] No AI UI appears in CE (all stubs return null/false) - [ ] Existing CodeEditor functionality is unaffected - [ ] Shared files resolve `ee/` imports correctly through the re-export shims <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Global AI assistant side panel added to IDE layouts * AI settings and API key management added * Editors can open the AI panel with contextual editor information * **UI** * "Ask AI" command/button removed from beta state * AI trigger/button now shown only when AI is enabled and opens panel with context when available <!-- end of auto-generated comment: release notes by coderabbit.ai --> ## Automation /ok-to-test tags="@tag.All" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/24498281185> > Commit: 73dce4d8ee415b849656be32016aafbf1ef1edf0 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=24498281185&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Thu, 16 Apr 2026 09:39:26 UTC <!-- end of auto-generated comment: Cypress test results -->
S
subratadeypappu committed
da07ad2c26e7368da183db3fcd45e73ba59ae934
Parent: 6ca79d1
Committed by GitHub <noreply@github.com>
on 4/16/2026, 10:50:32 AM