76 Commits

Author SHA1 Message Date
Anirudh
f38bf79e54 fix: new button light theme 2025-01-07 04:12:03 +00:00
Akhileshrangani4
0d0eed34b2 fix: apply code- discard button 2024-12-01 22:15:16 -05:00
Akhileshrangani4
0ae89341d2 feat: file path above each code snippet 2024-12-01 14:29:23 -05:00
Akhileshrangani4
6612692d98 feat: introduce apply button functionality (v0.1)
### Summary
- Added a new "Apply" button to code snippets provided by the AI assistant.
- The button is designed to seamlessly merge the AI-generated snippet into the relevant file in the editor.

### Current Issues
1. **Sticky Accept/Decline Buttons:** These activate for every snippet instead of being limited to the relevant snippet.
2. **Discard Button:** Currently non-functional.
3. **Highlight Inconsistencies:** The green-red code highlights for old and new code are inconsistent.

### To Do
- Implement a toast notification when the "Apply" button is pressed on an irrelevant tab to prevent code application errors.

### Workflow Implemented
1. The "Apply" button is added alongside "Copy" and "Reply" for AI-generated code snippets.
2. Upon clicking "Apply," the code snippet and relevant file content (active file) are sent to a secondary model (GPT-4O).
3. The system prompt for GPT-4O instructs it to merge the snippet with the file content:
   - Ensure the original file functionality remains intact.
   - Integrate the code snippet seamlessly.
4. The output from GPT-4O is injected directly into the code editor.
5. Changes are visually highlighted:
   - Green for new code.
   - Red for removed code.
6. Highlights remain until the user explicitly accepts or discards the changes.
2024-11-30 21:52:17 -05:00
Akhileshrangani4
534b148b86 feat: add dynamic file structure context in AI chat
- Improved file structure formatting with tree-like visualization
- Added filtering for ignored files and folders
- Added scripts section to template context
- Fixed folder hierarchy display with proper indentation
- Maintains sorting with folders first, then files alphabetically
- Now uses actual project files instead of template structure

Example output:
├── app/
│   ├── api/
│   └── page.tsx
├── components/
└── package.json
2024-11-30 15:53:30 -05:00
Akhileshrangani4
ba7a1dcc2c chore: formatting the code of recent changes 2024-11-29 13:05:35 -05:00
Hamzat Victor Oluwabori
c653d34bc1
Merge branch 'main' into feat/profile-page 2024-11-25 23:10:21 +01:00
Hamzat Victor
06a5d46e1f feat: complete profile page with profile edit, project likes and UI updates 2024-11-25 21:53:46 +01:00
Akhileshrangani4
426af545bd feat: integrate template awareness into AI assistant
- Add template configurations with file structures and conventions
- Update AI route handler to include template context in system messages
- Pass template type through AIChat component
- Add template-specific run commands
- Enhance AI responses with project structure knowledge
- Move hardcoded run commands from navbar/run.tsx to templates/index.ts

This improves the AI's understanding of different project templates (React, Next.js, Streamlit, Vanilla JS) and enables more contextual assistance based on the project type.
2024-11-25 15:51:28 -05:00
Akhileshrangani4
34994a8c69 refactor(api): remove AI worker, add ai api route, add usage tiers
- Remove separate AI worker service
- Added generation limits:
  FREE: 1000/month (For the beta version)
  PRO: 500/month
  ENTERPRISE: 1000/month
- Integrate AI functionality into main API routes
- Added monthly generations reset and usage tier upgrade API routes
- Upgrade tier page to be added along with profile page section
2024-11-25 15:47:57 -05:00
Akhileshrangani4
b796f46dc2 fix: comment out live collaboration features 2024-11-17 22:08:26 -05:00
Akhilesh Rangani
062e8d9226 chore: format frontend code 2024-11-17 12:43:13 -05:00
Hamzat Victor
105eab9bad feat: complete profile page 2024-11-11 22:02:34 +01:00
Hamzat Victor
00e51205cf chore: rename folder to use username instead of id 2024-11-11 22:01:58 +01:00
Hamzat Victor
aed9742a4d chore: format document 2024-11-11 22:01:31 +01:00
Akhileshrangani4
f2f394d245 fix: type errors, shared page avatars and project icons 2024-11-11 13:05:51 -05:00
Hamzat Victor
9fcc45ea71 Merge branch 'main' of https://github.com/Code-Victor/sandbox 2024-11-11 10:12:06 +01:00
Akhileshrangani4
e9f03d52fd feat: user avatar images
- added user avatars for each user
- it will fetch user images from github or google and if there is no image then it will show initials
2024-11-10 23:40:10 -05:00
Akhileshrangani4
90bfdec58a feat: schema updates
- added additional items to users and sandbox tables
- added a random username generator
2024-11-10 22:25:15 -05:00
Hamzat Victor
2195b27c7e Merge branch 'main' of https://github.com/Code-Victor/sandbox 2024-11-04 21:49:37 +01:00
Hamzat Victor
21e4bfb735 feat: add profile page WIP 2024-11-04 21:49:30 +01: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
Akhilesh Rangani
6fb1364d6f chore: format frontend code 2024-10-21 13:57:45 -06:00
Akhileshrangani4
a353863523 fix: ghost terminals, spam HTTP requests on dashboard 2024-09-16 11:13:36 -04:00
Akhilesh Rangani
2da60ff4e4 fix: only one socket connection via socketcontext 2024-08-23 20:09:54 -04: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
08d562ee54 chore: remove unused variable reactDefinitionFile 2024-07-17 10:49:58 -04:00
James Murdza
1c860bd4d9 Add PostHog. 2024-07-14 06:00:03 -04:00
James Murdza
94df975842 chore: remove unused variable reactDefinitionFile 2024-07-04 20:18:36 -04:00
Ishaan Dey
c8a2e3200a minor changes + package updates 2024-05-26 21:41:20 -07:00
Ishaan Dey
089ab2b1df add private functionality 2024-05-26 19:02:47 -07:00
Ishaan Dey
6376493ae7 dynamic worker routes based on env 2024-05-26 18:37:36 -07:00
Ishaan Dey
6285a68102 improve copilot + fix minor bugs 2024-05-26 18:04:43 -07:00
Ishaan Dey
fbb98ac3b0 revert to local hosting 2024-05-26 17:28:52 -07:00
Ishaan Dey
010a4fec59 improve starting server logic 2024-05-26 12:18:09 -07:00
Ishaan Dey
08a898a82a add date display 2024-05-25 01:24:13 -07:00
Ishaan Dey
30e1c39d6c type fixes 2024-05-23 23:52:30 -07:00
Ishaan Dey
218afd4fe0 services logic 2024-05-23 01:35:08 -07:00
Ishaan Dey
f35e5debff small changes 2024-05-22 19:35:19 -07:00
Ishaan Dey
a3dd0d6598 small changes 2024-05-20 09:49:47 -07:00
Ishaan Dey
509669ea30 fix propagation 2024-05-16 21:45:19 -07:00
Ishaan Dey
aef8105bb0 working orchestrator 2024-05-13 13:22:11 -07:00
Ishaan Dey
18aca540cc re-organize files + setup more orchestration logic 2024-05-12 02:10:31 -07:00
Ishaan Dey
9bb5ed1517 fix loading state 2024-05-11 18:13:01 -07:00
Ishaan Dey
32a8413ca1 add analytics 2024-05-09 00:56:30 -07:00
Ishaan Dey
12e8051673 shared user restrictions + cleanup console logs 2024-05-07 22:40:59 -07:00
Ishaan Dey
9d288f580d start disable modal ui + logic 2024-05-07 21:19:32 -07:00