James Murdza
07d3802baa
fix: reload the entire file list after adding or deleting files
2024-11-17 13:25:16 -05:00
Akhilesh Rangani
062e8d9226
chore: format frontend code
2024-11-17 12:43:13 -05:00
Akhileshrangani4
cd643c217e
chore: remove unnecessary logs
2024-11-10 22:24:41 -05:00
Akhileshrangani4
9c6067dcd9
feat: enhance AI Chat with context management, file integration, image support, and improved code handling
...
- Added context tabs system for managing multiple types of context (files, code snippets, images)
- Added preview functionality for context items
- Added ability to expand/collapse context previews
- Added file selection popup/dropdown
- Added file search functionality
- Added image upload button
- Added image paste support
- Added image preview in context tabs
- Added automatic code detection on paste
- Added line number tracking for code snippets
- Added source file name preservation
- Added line range display for code contexts
- Added model selection dropdown (Claude 3.5 Sonnet/Claude 3)
- Added Ctrl+Enter for sending with full context
- Added Backspace to remove last context tab when input is empty
- Added smart code detection on paste
2024-11-04 17:24:22 -05:00
James Murdza
474102aa14
fix: use new project directory path to find tsconfig files
2024-11-02 13:28:48 -06:00
Akhileshrangani4
198b59aa55
feat: add AI chat button to open it
2024-10-27 17:27:36 -04:00
Akhileshrangani4
684ee20a03
chore: removing unnecessary code
2024-10-27 17:26:43 -04:00
Hamzat Victor
8b890fdffe
fix: remove editor red squiggly lines
...
by dynamically loading project's tsconfig file and adding nice defaults
# Conflicts:
# frontend/components/editor/index.tsx
# frontend/lib/utils.ts
2024-10-26 18:41:10 -06:00
James Murdza
1de980cdd6
refactor: pass event handler arguments as a single object
2024-10-26 18:35:29 -06:00
Hamzat Victor
9546d4ad7b
Merge branch 'main' of https://github.com/Code-Victor/sandbox into feat/light-theme
2024-10-23 11:00:24 +01:00
Hamzat Victor
eb4e34cf10
feat: add light theme WIP
2024-10-23 10:51:50 +01:00
James Murdza
4f7a4a5312
Merge branch 'refs/heads/main' into feature/ai-chat
...
# Conflicts:
# frontend/components/dashboard/newProject.tsx
# frontend/components/editor/AIChat/ChatMessage.tsx
# frontend/components/editor/AIChat/ContextDisplay.tsx
# frontend/components/editor/AIChat/index.tsx
# frontend/components/editor/index.tsx
# frontend/components/editor/sidebar/index.tsx
# frontend/components/editor/terminals/terminal.tsx
2024-10-21 18:16:26 -06:00
Akhilesh Rangani
6fb1364d6f
chore: format frontend code
2024-10-21 13:57:45 -06:00
Akhilesh Rangani
3f8e27d969
chore: format frontend code
2024-10-21 13:57:17 -06:00
Akhileshrangani4
7951221310
fix: global buttons and indicators
...
- cmd/ctrl + L works globally now
- added the copilot and ai chat button indicators
- when aichat is open, the preview/terminal column becomes horizontal
2024-10-20 23:23:04 -04:00
James Murdza
428d2366ff
Merge branch 'refs/heads/feature/ai-chat'
...
# Conflicts:
# frontend/components/editor/index.tsx
2024-10-20 17:22:16 -06:00
Akhileshrangani4
751d9a3005
feat: ai chat now has context of the active tab
2024-10-14 23:01:25 -04:00
Akhileshrangani4
bfc687a3e6
fix: aichat and preview/terminal layout
2024-10-14 13:51:17 -04:00
Hamzat Victor
fa5d1e9a57
feat: add skeleton loader to file explorer
2024-10-14 12:06:54 +01:00
Akhileshrangani4
62e282da63
feat: added AI chat
...
backend implementation remaining
2024-10-13 01:41:48 -04:00
Akhileshrangani4
f192d9f3ab
chore: default terminal column size
2024-10-12 22:33:09 -04:00
Akhileshrangani4
b6569550fc
feature: add terminal/preview layout button
2024-10-12 19:46:32 -04:00
Akhileshrangani4
f863f2f763
feat: add preview panel button
2024-10-12 17:55:49 -04:00
Akhileshrangani4
cf6888e3d3
chore: remove unnecessary code
2024-10-03 06:30:28 -07:00
Akhileshrangani4
229b489c1e
fix: filecontent update while switching tabs, empty file crash
...
# Conflicts:
# backend/server/src/index.ts
2024-10-03 06:29:57 -07:00
James Murdza
01fb3ab921
feat: keep containers alive for 60s of inactivity instead of killing them on disconnect
2024-09-30 04:15:26 -07:00
Hamzat Victor
c2a23fcbcb
fix: remove editor red squiggly lines
...
by dynamically loading project's tsconfig file and adding nice defaults
2024-09-24 13:00:49 +01:00
James Murdza
06118e98e9
feat: remove the ai toggle switch
2024-09-06 18:14:54 -07:00
Hamzat Victor
62311faf51
feat: add AI edit code selection
2024-09-06 20:41:45 +01:00
James Murdza
7149925539
fix: remove useCallback, fixing null socket issue when reading files
2024-09-01 21:55:29 -07:00
Akhileshrangani4
0679f99bb7
fix: socket connection
2024-09-01 19:31:25 -07:00
Akhileshrangani4
1502047bf2
fix: files not loading when creating a new project
2024-09-01 18:25:25 -07:00
Akhilesh Rangani
2da60ff4e4
fix: only one socket connection via socketcontext
2024-08-23 20:09:54 -04:00
James Murdza
d4c65ad1a3
Reload the live preview when the app is restarted.
2024-08-09 16:44:41 -07:00
James Murdza
e8a3944b9e
Merge branch 'refs/heads/feat/dokku' into production
...
# Conflicts:
# frontend/app/layout.tsx
2024-07-31 18:18:38 -07:00
James Murdza
2e68b0b537
Merge branch 'refs/heads/feat/run-deploy-buttons' into feat/dokku
...
# Conflicts:
# backend/server/package-lock.json
# backend/server/src/index.ts
# frontend/components/editor/index.tsx
# frontend/components/editor/navbar/deploy.tsx
# frontend/components/editor/navbar/index.tsx
2024-07-27 08:24:40 -04:00
Akhilesh Rangani
deb32352fb
feat: add run button
2024-07-23 17:30:35 -04:00
James Murdza
dead84ac4d
fix: make server url an environment variable
2024-07-17 13:29:43 -04:00
James Murdza
62a3d6d8f7
Merge branch 'refs/heads/fix-editor' into production
2024-07-17 11:02:35 -04:00
James Murdza
08d562ee54
chore: remove unused variable reactDefinitionFile
2024-07-17 10:49:58 -04:00
Akhilesh Rangani
db1410f587
fix: remove editorRef from useEffect
2024-07-17 10:46:34 -04:00
Akhilesh Rangani
7a80734c25
fix: remove extra state variables from useEffect
2024-07-17 10:46:29 -04:00
Akhilesh Rangani
0a21cb2637
fix: store rooms in map
2024-07-17 10:46:21 -04:00
Akhilesh Rangani
7dd67f72d8
fix: remove editorRef from useEffect
2024-07-15 16:12:08 -04:00
Akhilesh Rangani
5bf264b807
fix: remove extra state variables from useEffect
2024-07-15 15:32:40 -04:00
Akhilesh Rangani
6f6926a621
fix: store rooms in map
2024-07-15 14:56:37 -04:00
James Murdza
c5247a2aaa
fix: make server url an environment variable
2024-07-04 21:04:07 -04:00
James Murdza
94df975842
chore: remove unused variable reactDefinitionFile
2024-07-04 20:18:36 -04:00
James Murdza
9f0b6a8fdc
Implement secure cloud sandboxes with E2B ( #35 )
...
* chore: rename utils.ts to fileoperations.ts
* feat: replace node-pty with E2B sandboxes
* added debounced function in the editor
* fix: move socket connection to useRef
* fix: wait until terminals are killed to close the container
* fix: ensure container remains open until all owner connections are closed
* fix: sync files to container instead of local file system
* fix: set project file permissions so that they belong to the terminal user
* fix: use the container URL for the preview panel
* fix: count only the current user's sandboxes towards the limit
* fix: remove hardcoded reference to localhost
* fix: add error handling to the backend
* docs: add information about E2B
---------
Co-authored-by: Akhilesh Rangani <akhileshrangani4@gmail.com>
2024-06-27 23:39:03 -07:00
James Murdza
c262fb2a31
fix: add error handling to the backend
2024-06-19 21:57:40 -04:00