Commit Graph

25 Commits

Author SHA1 Message Date
Sahaj Jain 5882f60c32 Enhance ai chat (#218)
* update package locks to avoid conflict

* Refactor AI Generation with AI SDK v5 (#210)

* refactor(wip): Whole Chat implementation

* fix: Deps

* chore: Update types and create tool to handle theme generation

* chore: Add hook and component to handle feedback text

* chore: Check for themeStyles in asssiatant metadata

* feat: Improve messages styles and feedback

* chore: Update react-hook-form deps

* chore: Improve Messages display

* chore: Show a banner when theme is generating

* chore: Optimize the Messages syncing

* feat: Add debug button to MessageActions in dev mode

* chore: messages

* chore: Improve System prompt + tools + utils

* fix: correctly display User messages with only images

* feat: Handle errors in UI and adapt to AI sdk

* feat: Use tool output instead of custom data parts

* chore: System prompt and schema context

* chore: Gemini 2.5 pro as the default model

* refactor: Change name to Chat Context and apply generated theme automatically

* chore: Update ai packages to latest version

* feat: Stop ongoing request before starting a new chat

* feat: Refactor logic for Scroll start/end sentinels

* feat: Improve UI streaming with AI Elements and Stream Text utils

* chore: Generate theme types and logic

* feat: Allow customize the speed of streaming text

* refactor: Theme generation utils

* fix: Avoid duplicated Mention references

* styles: Improve Chat error banner

* feat: Enhance Prompt core implementation

* feat: Implement enhance prompt in components

* chore: Add TODOS comments

* chore: Remove Openai provider

* chore: Update AI adk packages

* fix: Free request constant

---------

Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>

* update lockfile

* fix import

* fix types

* chore: Trigger theme generation before transitioning to editor page

* refactor: Move AI sdk specific code into Lib and update imports

* chore: Provide model ID to record usage util

* refactor: Multi model provider convention

* fix types

* refactor: Use Zustand persist middleware versioning

* feat: Improve prompts and context

* feat: Optimize streaming JSONContent into text area

* chore: Improve Theme Generation prompt

* feat: Improve prompt

* feat: Add subscription checks for enhancing prompt and Posthog tracking

---------

Co-authored-by: Luis Llanes <137589205+llanesluis@users.noreply.github.com>
Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-10-01 16:31:10 +05:30
Abdur Rahman Talha 2c2db2ea2d fix: code copy button not copying tailwind.config.ts in theme editor (#217)
* fix: code copy button not copying tailwind.config.ts in theme editor

* fix: reset active tab on version change on code panel
2025-09-15 22:40:08 +05:30
Sahaj Jain cbd0ac431b Revert "Console+hydration errors (#178)"
This reverts commit 88261b5c86.
2025-07-22 10:52:11 +05:30
Abhinav Kumar Choudhary 88261b5c86 Console+hydration errors (#178)
* bug(layout): fix all erros in next.js devtools

* fix react hook warning in testimonials component

* refactor coderabbit suggestions
2025-07-22 04:30:54 +05:30
Sahaj Jain c1c65dba27 Feature/testimonials (#176)
* Beautiful twitter testimonials on Home page #126 added (#128)

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

---------

Co-authored-by: sanwalsulehri <sanwalsulehri077@gmail.com>
Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>

* feat: Add real testimonial tweets

* add testimonials to pricing page

* use avatar

---------

Co-authored-by: Sanwal Sulehrii <elondev39@gmail.com>
Co-authored-by: sanwalsulehri <sanwalsulehri077@gmail.com>
2025-07-21 03:40:59 +05:30
Abhinav Kumar Choudhary 3ede03913e style(create-account button): Improve bg gradient and interactivity 2025-07-15 19:40:45 +05:30
Sahaj Jain d51c6c8620 feat: implement color control focus feature with context and highlight animation
- Added SectionContext to manage expanded state for ControlSection components.
- Enhanced ColorPicker to support programmatic focus and highlight animations.
- Introduced useColorControlFocus hook for managing color control references.
- Updated ColorPreview to utilize new focus functionality for color items.
- Added name prop to ColorPicker for identifying color controls in the focus store.
2025-06-24 02:06:49 +05:30
Ronit Raj 90a999819d feat: added husky (#120) 2025-06-23 22:17:21 +05:30
Sahaj Jain d8e3de96f0 feat: Prerendering 2025-04-05 04:48:29 +05:30
Sahaj Jain 0db2986010 feat: Migrate to rr v7 framework mode 2025-04-05 03:46:37 +05:30
Sahaj Jain e189fe0626 feat: Upgrade to rr v7 2025-04-05 03:19:48 +05:30
Sahaj Jain 329e3c6911 feat: Add Tasks example from shadcnui 2025-04-03 00:16:23 +05:30
Sahaj Jain 104d159e84 feat: shadcn registry build script 2025-04-01 00:21:50 +05:30
onyx47 9c9ff10124 feat(theme): default to system preference on load 2025-03-29 04:23:22 +05:30
Sahaj Jain 99dcdc455b feat: Integrate react-helmet-async for SEO 2025-03-29 00:13:49 +05:30
Niklas Bognar 895849180e How do I route to pages? 2025-03-22 00:36:26 +00:00
Sahaj Jain 2a376b0705 run upgrade tool 2025-03-22 00:57:32 +05:30
bognar-dev d3aefae953 Added export for tailwind v4 2025-03-19 11:54:59 +00:00
Sahaj Jain b164c86db5 fix: Use culori for oklch native support
fixes #1
2025-03-18 03:32:41 +05:30
Sahaj Jain 59ea1159fd chore: add container-queries plugin and update devDependencies 2025-03-17 04:56:42 +05:30
Sahaj Jain c088d94095 feat: Add global dark mode, scroll area and ui fixes 2025-03-16 04:38:33 +05:30
Sahaj Jain 799946b40e feat: Use CSS variables to scope tailwind classes for theme preview
- Introduced a new utility function to convert color formats to HSL for consistent theme styling.
- Updated theme styles to use HSL values for better color management across light and dark modes.
- Added a new dependency for color manipulation to facilitate color conversions.
- Enhanced the theme preview panel to reflect updated color styles dynamically.
2025-03-16 02:07:33 +05:30
Sahaj Jain 4d70e2d26c Add Zustand for state management in editor components
This commit introduces Zustand for managing the state of the editor components, specifically for button and theme states. It refactors the Editor component to utilize the new store, enhancing state management and improving code organization. Additionally, it updates the package dependencies to include Zustand.
2025-03-15 17:29:01 +05:30
Sahaj Jain f9b9c44cd9 Enhance button component and editor functionality
This commit updates the button component styles, improves the CodePanel and ControlPanel for better layout and functionality, and ensures the button preview updates correctly when parameters change. Additionally, it refines the button style generation logic to include text transformation options.
2025-03-15 17:29:01 +05:30
Sahaj Jain 4b9b5b02cc Use tech stack vite_react_shadcn_ts
[skip gpt_engineer]
2025-03-15 17:29:01 +05:30