482 Commits

Author SHA1 Message Date
James Murdza
94ffbaf60f
Merge pull request #15 from techwithani/main
fix: small bugs
2025-01-06 21:21:11 -08:00
Anirudh
e62849ab96 fix: use latest theme provider 2025-01-07 04:22:57 +00:00
Anirudh
250fb45cb9 fix: use resolvedTheme 2025-01-07 04:16:05 +00:00
Anirudh
49d0690081 fix: hover colors of proj card 2025-01-07 04:13:21 +00:00
Anirudh
f38bf79e54 fix: new button light theme 2025-01-07 04:12:03 +00:00
Anirudh
1eb17a0ac5 fix: frontend monaco theme
fix: drizzle migrations folder
2025-01-07 04:01:45 +00:00
Akhileshrangani4
996eb4339e fix: handle undefined socialLinks in ProfileCard component 2025-01-06 06:31:30 -05:00
Akhilesh Rangani
5faafd477b
Merge pull request #14 from Code-Victor/feat/new-profile-ui-n-fixes
Feat/new profile UI n fixes
2025-01-06 05:52:06 -05:00
Hamzat Victor
b88feee86e feat: liked project can now be deleted 2025-01-06 03:16:05 +01:00
Hamzat Victor
ceeb1fbce3 feat: complete new UI for Profiles, fix notfound error on username change 2025-01-06 02:52:32 +01:00
Hamzat Victor
024e30bd99 feat: update backend schema and code for new profile UI 2025-01-06 02:51:24 +01:00
Akhileshrangani4
947f0c6f0d feat: schema change to add github token 2025-01-05 14:17:11 -05:00
James Murdza
f800008487
docs: add section on AWS deployment in the README 2025-01-02 13:43:50 -08:00
Akhileshrangani4
1d21d55437 fix: prevent duplicate tabs when clicking file paths
Modify selectFile function to check for existing tabs before creating new ones.
When clicking file paths in AIChat, it will now switch to the existing tab
instead of creating duplicates.
2025-01-01 08:33:13 -05:00
Akhileshrangani4
274c945fac fix: ctrl/cmd + z with applied code 2025-01-01 08:16:16 -05:00
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