467 Commits

Author SHA1 Message Date
James Murdza
a41cdff55f fix: close the SSH channel when a Dokku command is finished 2024-12-31 18:22:31 -08:00
James Murdza
182d527416
chore: add dokku-daemon instructions to README 2024-12-31 13:13:59 -08:00
James Murdza
f3f91ea16f feat: hide the deploy button when the Dokku server is not connected 2024-12-31 10:40:45 -08:00
Akhileshrangani4
e8590703f8 fix: apply button file save 2024-12-31 08:16:46 -05:00
James Murdza
093a4e9758 fix: correctly generate remoteFileId for paths without a leading slash 2024-12-09 13:59:47 -08:00
Akhilesh Rangani
6a60f4d286
Update README.md 2024-12-06 14:32:17 -05:00
Akhileshrangani4
260110724e chore: update .env.example 2024-12-06 14:24:59 -05:00
James Murdza
ee51ae7a33 feat: correctly show whether a project has been deployed 2024-12-01 20:07:01 -08:00
Akhileshrangani4
0d0eed34b2 fix: apply code- discard button 2024-12-01 22:15:16 -05:00
Akhileshrangani4
4e1c5cac27 feat: Add clickable file paths in AI chat responses
- Detect file paths with dots in directory names (e.g. next/styles/SignIn.module.css)
- Create new files when path ends with "(new file)"
- Use existing socket connection and file management system
2024-12-01 18:52:28 -05:00
Akhileshrangani4
0ae89341d2 feat: file path above each code snippet 2024-12-01 14:29:23 -05:00
James Murdza
1630a5a9cd docs: add OpenAI API key to README 2024-11-30 18:53:24 -08:00
James Murdza
ffdcdef56c docs: remove AI worker row from README 2024-11-30 18:53:24 -08: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
e384607d24 chore: context tab updates
- Context tab updates with the latest file changes and will not be removed from context when a message is sent
2024-11-30 02:26:48 -05:00
Akhileshrangani4
e7d9989931 feat: sticky copy-reply button on chat code-snippets 2024-11-30 01:34:07 -05:00
Akhileshrangani4
42305d67b9 fix: terminal paste functionality 2024-11-30 00:04:04 -05:00
Akhileshrangani4
06dadf3a0b fix: image handling in context 2024-11-29 21:50:08 -05:00
Akhileshrangani4
ba7a1dcc2c chore: formatting the code of recent changes 2024-11-29 13:05:35 -05:00
James Murdza
fbc56dc7fd
docs: remove AI worker in the setup process 2024-11-26 22:30:24 -05:00
omar rashed
61b012b9fd fix: use correct port for the PHP template 2024-11-26 14:39:12 -05:00
Akhileshrangani4
199318e706 chore: update generations count in profile page 2024-11-25 20:06:42 -05:00
Akhilesh Rangani
39993af4a3
Merge pull request #13 from Code-Victor/feat/profile-page
Feat/profile page
2024-11-25 19:25:29 -05:00
Hamzat Victor Oluwabori
c653d34bc1
Merge branch 'main' into feat/profile-page 2024-11-25 23:10:21 +01:00
Akhileshrangani4
749739f221 chore: resolve merge conflicts with PHP template 2024-11-25 16:37:33 -05:00
Akhileshrangani4
13a1816ed9 chore: update db worker script 2024-11-25 16:09:29 -05:00
Hamzat Victor
46e3a3d871 feat: add active styles to buttons 2024-11-25 21:55:08 +01:00
Hamzat Victor
b0b34f29a9 feat: add tailwind intellisense to cva styles 2024-11-25 21:54:43 +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
978c103cf4 fix: scroll-up while ai is generating content
- added a scroll-to-bottom button
- users can now scroll-up while generating content
2024-11-25 15:48:32 -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
omar rashed
4db378b5f1 feat: add PHP template 2024-11-24 22:30:22 -05:00
omar rashed
a293d98a21 chore: upgrade server dependencies 2024-11-24 22:30:19 -05:00
James Murdza
1b06f6cd51
docs: add PHP template to the README 2024-11-24 21:55:32 -05:00
Akhileshrangani4
91a4a54f24 Chore: Change about to help, and add link to Discord 2024-11-17 22:08:55 -05:00
Akhileshrangani4
b796f46dc2 fix: comment out live collaboration features 2024-11-17 22:08:26 -05:00
James Murdza
9c3787b99d docs: add section about Prettier to the README 2024-11-17 20:00:41 -05:00
James Murdza
5d4a34e7ad chore: format the README 2024-11-17 19:49:56 -05:00
James Murdza
f93af371dc chore: add Prettier as a recommended extension 2024-11-17 19:47:39 -05:00
James Murdza
534b285ff4 fix: load all project files before deploying to Dokku 2024-11-17 17:20:50 -05:00
James Murdza
ed8c970e16 fix: use relative paths when adding files to git 2024-11-17 16:56:07 -05:00
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
James Murdza
5216a9d897 chore: configure Prettier to use spaces for indentation 2024-11-17 12:33:36 -05:00
James Murdza
6b4fbe6a13 chore: upgrade E2B to latest version 2024-11-17 10:07:18 -05:00
omar rashed
10104c31b9 fix: prepare zip file on the backend when exporting a project 2024-11-16 22:00:19 -05:00
omar rashed
ee531d7139 fix: fix saving files that aren't in the cache 2024-11-16 21:46:38 -05:00
James Murdza
7ecbd02fef chore: format backend server code 2024-11-16 21:35:06 -05:00