17 Commits

Author SHA1 Message Date
Hamzat Victor
b0d444980a fix: make layout more concrete with css grids 2025-01-08 23:03:51 +01:00
Anirudh
f38bf79e54 fix: new button light theme 2025-01-07 04:12:03 +00: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
Hamzat Victor
eb4e34cf10 feat: add light theme WIP 2024-10-23 10:51:50 +01:00
Ishaan Dey
6285a68102 improve copilot + fix minor bugs 2024-05-26 18:04:43 -07:00
Ishaan Dey
30e1c39d6c type fixes 2024-05-23 23:52:30 -07:00
Ishaan Dey
f35e5debff small changes 2024-05-22 19:35:19 -07:00
Ishaan Dey
509669ea30 fix propagation 2024-05-16 21:45:19 -07:00
Ishaan Dey
beab0f7845 add tab scrolling 2024-05-07 00:16:02 -07:00
Ishaan Dey
09ead6073b ui + shared user improvements 2024-05-05 14:33:09 -07:00
Ishaan Dey
17af48fe2c working basic live collab 2024-05-03 14:58:56 -07:00
Ishaan Dey
dc6e5e4cbe improve generate hint 2024-05-02 15:25:24 -07:00
Ishaan Dey
a084ecd6c7 improve share logic 2024-05-01 08:20:08 -04:00
Ishaan Dey
75ac23094b somewhat working project initialization 2024-04-23 17:46:51 -04:00
Ishaan Dey
5dc337e2ff user button ui 2024-04-18 15:07:15 -04:00
Ishaan Dey
11dfc0f637 card ui 2024-04-18 03:06:51 -04:00
Ishaan Dey
a838241ac3 refactor folder 2024-04-16 17:18:51 -04:00