Commit da07ad2
authored
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: 73dce4d
> <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 -->1 parent 6ca79d1 commit da07ad2
16 files changed
Lines changed: 380 additions & 133 deletions
File tree
- app/client/src
- ce
- actions
- components/editorComponents
- GPT
- GlobalAISidePanel
- constants
- selectors
- components/editorComponents
- CodeEditor
- form/fields
- ee
- actions
- components/editorComponents
- GPT
- GlobalAISidePanel
- selectors
- pages/AppIDE/layouts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1321 | 1330 | | |
1322 | 1331 | | |
1323 | 1332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
| |||
0 commit comments