Commit Graph
126 Commits
Author SHA1 Message Date
Luis LlanesandSahaj Jain cde4b7ac2c Fix Hydration Errors and Improve Preview Panel Defaults (#181)
* fix: Small chart overflow in starts card

* feat: add color scheme light dark

* refactor: use shadcn TabsContent instead of the Radix primitive

* refactor: preview panel tabs content and components

* fix: Solve hydration errors from nested buttons

---------

Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>
2025-07-22 23:27:40 +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 1b85d62cf9 update sparkle icon for control panel 2025-07-22 02:40:46 +05:30
Sahaj Jain 7d6e4ce5c2 remove Sponsor button 2025-07-22 00:23:51 +05:30
Sahaj Jain 4440cb27a8 add more touchpoints for pricing page 2025-07-21 21:49:29 +05:30
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
Sahaj Jain 4d2ec4d43c fix: pricing page metadata and add temp launch50 badge 2025-07-19 23:39:57 +05:30
Sahaj Jain 5336cfa555 update metadata and sitemap for indexable pages 2025-07-19 23:24:30 +05:30
Luis Llanes 7bb0ff213c Fix SVG issue when processed by the API and minor styles fixes (#171)
* fix: border radius and overflow in ImagePreview component

* fix: Proper support for SVGs and UI feedback when errors occur

* SVG files are treated and displayed as Images in the UI
* SVG files are processed as Markup Text to send to the API
* Remove support for GIFs

* chore: improve system prompt to handle SVGs properly

* styles: Add border radius to uploaded image preview when loading
2025-07-18 19:43:43 +05:30
Luis Llanes 058923a6dd Small Improvements to ThemePresetSelect (#168)
* chore: improve ThemePresetSelect

* Remove double border and shadow
* Add "Default" themes at the top and make it searchable
* Change text size and padding for consistency

* chore: add Manage text back for Managing Saved themes
2025-07-18 00:18:57 +05:30
Luis Llanes 9f505c50c2 Draft Issue and Message UI styles (#166)
* fix: draft sync issue

* fix: small styles changes in message UI
2025-07-17 01:57:35 +05:30
Sahaj JainandLuis Llanes 4c41596712 AI theme generation just got 10x better (#165)
* feat: Add polar for tweakcn-plus checkout

* migrate to polar nextjs for more control

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add checkout link support

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* refactor: follow naming convention

* chore: refactor components and layout/pages for consistency

* fix: enforce auth checks or redirect in /settings routes

* chore: update Go Pro dialog

* refactor: create reusable theme toggle component

* feat: add Get Pro dialog to header

* chore: rename GoPro dialog to GetPro and update imports

* feat: add AI generation section to Home page and adjust Get Pro dialog

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* refactor: follow naming convention

* chore: refactor components and layout/pages for consistency

* fix: enforce auth checks or redirect in /settings routes

* chore: update Go Pro dialog

* refactor: create reusable theme toggle component

* feat: add Get Pro dialog to header

* chore: rename GoPro dialog to GetPro and update imports

* feat: add AI generation section to Home page and adjust Get Pro dialog

* feat: Add customer portal

* feat: add chat input draft persistence (not images)

* styles: improve styles for ai generation and alert banner defaults

* feat: Send whole chat context to AI

* fix: silly typo lol

* feat: support images persistence and sync

* feat: edit message (text, mentions and images)

* fix: add eslint-disable for exhaustive-deps warnings

* chore: fix build error & improve text and styles in suggested prompts

* refactor: handle session and subscription checks and handle post login actions

* migrate to turbopack

* refactor: use reducer builder pattern to sync ai-draft-store with image-uploader

* fix: ai-usage computation: account for abort

* feat: Theme limit handling for pro tier

* refactor: remove duplicate code from ai-chat-form and chat-input

* feat: Add faq to pricing page

* fix: /dashboard navigations -> /settings

* feat: update ui for success page

* feat: Migrate ai chat and draft message store to idb-keyval

* feat: move subscription details in-house

* generate migration

* fix: build err

* styles: improve Message UI

* fix: allow scroll in GoPro dialog chat preview

* feat: improve AI usage feedback when theme generation when success or failure

* feat: Message UI enhancement when assistant message is error feedback

* feat: add latest features in /ai page and refactor Core Theme Generation logic hooks

* styles: improve styles and layout for consistency

* styles: improve styles in settings pages for consistency

* cancelled theme doesn't cost requests

* update next to latest (for turbopack compat)

* fail build if polar webhook secret is not set

* update polar sdk and nextjs plugin

* feat: Create customer before creating checkout for them

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* refactor: follow naming convention

* chore: refactor components and layout/pages for consistency

* fix: enforce auth checks or redirect in /settings routes

* chore: update Go Pro dialog

* refactor: create reusable theme toggle component

* feat: add Get Pro dialog to header

* chore: rename GoPro dialog to GetPro and update imports

* feat: add AI generation section to Home page and adjust Get Pro dialog

* feat: Add customer portal

* feat: add chat input draft persistence (not images)

* styles: improve styles for ai generation and alert banner defaults

* feat: Send whole chat context to AI

* fix: silly typo lol

* feat: support images persistence and sync

* feat: edit message (text, mentions and images)

* fix: add eslint-disable for exhaustive-deps warnings

* chore: fix build error & improve text and styles in suggested prompts

* refactor: handle session and subscription checks and handle post login actions

* migrate to turbopack

* refactor: use reducer builder pattern to sync ai-draft-store with image-uploader

* fix: ai-usage computation: account for abort

* feat: Theme limit handling for pro tier

* refactor: remove duplicate code from ai-chat-form and chat-input

* feat: Add faq to pricing page

* fix: /dashboard navigations -> /settings

* feat: update ui for success page

* feat: Migrate ai chat and draft message store to idb-keyval

* feat: move subscription details in-house

* generate migration

* fix: build err

* styles: improve Message UI

* fix: allow scroll in GoPro dialog chat preview

* feat: improve AI usage feedback when theme generation when success or failure

* feat: Message UI enhancement when assistant message is error feedback

* feat: add latest features in /ai page and refactor Core Theme Generation logic hooks

* styles: improve styles and layout for consistency

* styles: improve styles in settings pages for consistency

* cancelled theme doesn't cost requests

* update next to latest (for turbopack compat)

* fail build if polar webhook secret is not set

* update polar sdk and nextjs plugin

* feat: Create customer before creating checkout for them

---------

Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-07-17 00:00:07 +05:30
Abhinav Kumar Choudhary 3ede03913e style(create-account button): Improve bg gradient and interactivity 2025-07-15 19:40:45 +05:30
Samuel Söderberg 0f4b9b45e9 fix(slider-with-input): update value handling and input change logic for better user experience 2025-07-14 12:56:34 +05:30
Trainer 4e06824406 fix: use buttons instead of Links to prevent unexpected scrolling on click 2025-07-09 23:52:39 +05:30
Trainer a8e677c48b Add useEffect dependencies 2025-07-09 23:52:13 +05:30
Trainer ba29cfc9f3 fix: pause preset button carousel on hover 2025-07-09 23:52:13 +05:30
Sahaj Jain 32aaea5be3 feat: Add fancy button in create-account example card 2025-07-07 23:18:39 +05:30
Henry X 377192416d fix(header): correct mobile theme toggle icon logic (#147)
Show Moon icon in dark mode and Sun icon in light mode for mobile
theme toggle, matching desktop behavior.
2025-07-05 17:15:20 +05:30
Luis Llanes 9bcf9fcfdd Small tweaks in multiple components for consistency (#140)
* fix: typos and clases in color selector popover

* chore: consistent styles across action buttons

* chore: change from Tooltip to HoverCard
2025-07-01 22:24:57 +05:30
Sahaj Jain 1dc6b15ff8 feat: Add Save button to code panel for registry command 2025-07-01 20:57:55 +05:30
Sahaj Jain 0e57292f63 fix: Color picker input not editable 2025-07-01 20:49:32 +05:30
Sahaj Jain 945a057abb remove tooltip wrapper from color-swatch 2025-07-01 13:59:15 +05:30
Sahaj Jain cad23ae6d1 store color selector tab preference 2025-07-01 13:50:38 +05:30
Sahaj Jain 19bdf25f06 update UI for color select popover 2025-07-01 13:45:39 +05:30
Sahaj Jain ae82476b97 Merge branches 'main' and 'feature/tw-color-support' of github-jnsahaj:jnsahaj/tweakcn into feature/tw-color-support 2025-07-01 13:10:44 +05:30
Luis Llanes 5891b0756e feat: improve TailwindV4 palette color selector (#138) 2025-07-01 12:50:22 +05:30
Luis Llanes 33e4b44806 fix: spacing default styles were overridden with 'undefined' when AI theme was generated (#135) 2025-07-01 03:25:48 +05:30
Arjun SinghandSahaj Jain 6f27d98612 feat: Support Tailwind CSS Color Palette in UI Color Pickers (#113)
* feat: Support Tailwind CSS Color Palette in UI Color Pickers

* adding a hex function

* fixes position of color picker

* improve code and adding tailwindcss classes on typing

* refactor: simplify ColorPicker and adding Color Popover component

* remove state and ref

---------

Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>
2025-06-29 23:34:20 +05:30
Luis Llanes 5a251cd912 Improve AI features and project structure (#131)
* refactor: Rename and break components into smaller components

* refactor: move ai utils to own folder and update imports

* feat: improve the AI context for theme generation

* fix: line breaks on CustomTextArea when shift + enter and when pasting a multiline prompt

* feat: improve 'create' example prompts for more consistent results
2025-06-29 23:26:42 +05:30
Sahaj Jain 01765d85c0 Feature/inspector (#130)
* fix: ensure compound foreground tokens are matched correctly in inspector

- Sort theme tokens by length descending to prioritize longer matches
- Fixes issue where text-muted-foreground showed as text-muted
- Ensures compound tokens like card-foreground, primary-foreground are captured fully

* refactor: optimize theme inspector for performance

- Move regex creation to module level to prevent recreation on each render
- Memoize event handlers with useCallback to prevent child re-renders
- Extract state update logic into separate memoized functions
- Create separate component for class items to enable granular memoization
- Add custom prop comparison for better React.memo optimization
- Extract classNames computation to dedicated hook

Reduces re-renders significantly in inspector components

* refactor: optimize theme inspector scroll performance

- Add ref-based overlay state tracking to prevent unnecessary re-renders
- Cache scrollable viewport element to avoid repeated DOM queries
- Implement efficient scroll event handling with early exit conditions
- Add comprehensive performance documentation and inline comments
- Separate viewport discovery from scroll event management for better organization

* refactor inspector hooks and fix minor functionality

* remove toggleInspector on edit

* feat: Add segment styles and add inspector overlay bounds

* update color-picker animated styles and fix timer

* fix: Unwanted elements for overlay and add specific classes for missing els

* refactor: Improve layout and styling in inspector components

- Adjusted spacing in InspectorClassItem for better alignment
- Enhanced InspectorOverlay with a title and separator for clarity
- Updated ThemePreviewPanel to refine button size and inspector toggle visibility

* fix: focus color now works from any tab

* improve inspector overlay styles
2025-06-29 00:47:13 +05:30
Sahaj Jain e068ea9db7 update dashboard layout 2025-06-26 00:35:44 +05:30
Sahaj Jain 69662dc282 refactor: Themes API layer + error handling 2025-06-26 00:35:35 +05:30
Sahaj Jain 0e6ac7e21b chore: pnpm lock 2025-06-24 03:15:41 +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 b8144ee58a fix: Removed Unwanted Horizontal Scrollbar in Dashboard (#115) 2025-06-16 12:16:48 +05:30
Luis Llanes d661f7d6d7 refactor: Routable components follow Next.js file conventions (#110)
* feat: add AuthDialogWrapper to main layout to work in every route

* refactor: move footer to global components

* refactor: separate route components into layouts, pages, and loading components

* chore: remove AuthDialogWrapper from AI page after it was moved to root layout
2025-06-04 23:38:56 +05:30
Luis Llanes 57cb04aeb0 fix: broken preview panel styles and loading fallback 2025-06-01 03:30:27 +05:30
2548f49de1 ai chat (#107)
* Enhanced Editor (#100)

* refactor: editor page to improve responsiveness

* feat: add editor tab persistance to url

* chore: clean up classNames

* feat: enhance theme color-preview to make it responsive

* feat: add ai chat tab working with local state

* successful responses return a theme color-preview
* error responses return a generic message

* fix: invalid tabs fallback to default tab "colors"

* fix: remove messages scroll animation on tabs change and remove duplicate preview

* fix: minor fixes in classNames

* feat: Chat starts with a default message

* refactor: Enhance editor controls and toolbar buttons to disable when generating theme

- Updated button components to be extendible.
- Refactored buttons to utilize TooltipWrapper for consistent tooltip behavior.

* fix: sync controls tabs by 'value' instead of 'defaultValue'

* fix: load messages from local storage, otherwise set a default initial message

* fix: editor mention list positions correctly and add a tab handler for selecting mention

* fix: build errors due to unused imports

* chore: improve defaults and styles for ai chat interface and editor

* refactor: move AIChat state management to a zustand store

* feat: preserve control tab between edit mode and traditional editor mode

* feat: reset ai chat on editor reset button click

* feat: load chat messages dynamically to avoid layout shifts due to local storage

* fix: Use const id for default ai message to avoid re-render

* fix: Use searchParams for callback url as well after auth

* refactor: Remove unused getEditorConfig code

* feat: Only have 1 handler per postlogin action type

This was causing issues in AI Chat form. AI_GENERATE_FROM_CHAT action
was being scheduled twice because of re-render (caused by lazy-loaded
component)

* fix: Add user message for post login action

* refactor: Only use JSONContent in application state (derive textContent from it)

* feat: Auto-attach current theme to prompt after 1st user message

* feat: clean up AI interface and add community themes section

* feat: AI entrypoint redirect to main Editor and trigger theme generation

* chore: improve styles on ai page

* refactor: clean up AI components components from AI page and Editor page

* refactor: share repeated theme generation logic

* fix: chat messages inconsistent padding and pill buttons disabled state

* fix: build error

* feat: remove AI Generation Dialog and related logic

* feat: show agent response about the theme

* refactor: simplify theme generation logic and improve error handling

* refactor: transition from JSONContent to AIPromptData for theme generation

* feat: add retry functionality for user messages in AI chat interface

* refactor: remove unused loading fallback component and integrate loading indicator in chat messages

* change position of retry button

* feat: Improve system prompt

* refactor: replace createCurrentThemePrompt with attachCurrentThemeMention for improved prompt handling

* feat: add a placeholder for new chat and fix chat area styles

* chore: hide Community themes from AI page

* fix: build errors

* fix: ai theme generation only happens when there is content to be sent as the prompt

* feat: show AI tab in production

* fix: Early return after showing error message in ai chat

* feat: Attach last generated message instead of current theme for chat

* Use @ mentions in example prompts

* Enhance mention rendering in AI prompts and update mention styles in CSS

* skip posthog on dev

* Enhanced Editor (#100)

* refactor: editor page to improve responsiveness

* feat: add editor tab persistance to url

* chore: clean up classNames

* feat: enhance theme color-preview to make it responsive

* feat: add ai chat tab working with local state

* successful responses return a theme color-preview
* error responses return a generic message

* fix: invalid tabs fallback to default tab "colors"

* fix: remove messages scroll animation on tabs change and remove duplicate preview

* fix: minor fixes in classNames

* feat: Chat starts with a default message

* refactor: Enhance editor controls and toolbar buttons to disable when generating theme

- Updated button components to be extendible.
- Refactored buttons to utilize TooltipWrapper for consistent tooltip behavior.

* fix: sync controls tabs by 'value' instead of 'defaultValue'

* fix: load messages from local storage, otherwise set a default initial message

* fix: editor mention list positions correctly and add a tab handler for selecting mention

* fix: build errors due to unused imports

* chore: improve defaults and styles for ai chat interface and editor

* refactor: move AIChat state management to a zustand store

* feat: preserve control tab between edit mode and traditional editor mode

* feat: reset ai chat on editor reset button click

* feat: load chat messages dynamically to avoid layout shifts due to local storage

* fix: Use const id for default ai message to avoid re-render

* fix: Use searchParams for callback url as well after auth

* refactor: Remove unused getEditorConfig code

* feat: Only have 1 handler per postlogin action type

This was causing issues in AI Chat form. AI_GENERATE_FROM_CHAT action
was being scheduled twice because of re-render (caused by lazy-loaded
component)

* fix: Add user message for post login action

* refactor: Only use JSONContent in application state (derive textContent from it)

* feat: Auto-attach current theme to prompt after 1st user message

* feat: clean up AI interface and add community themes section

* feat: AI entrypoint redirect to main Editor and trigger theme generation

* chore: improve styles on ai page

* refactor: clean up AI components components from AI page and Editor page

* refactor: share repeated theme generation logic

* fix: chat messages inconsistent padding and pill buttons disabled state

* fix: build error

* feat: remove AI Generation Dialog and related logic

* feat: show agent response about the theme

* refactor: simplify theme generation logic and improve error handling

* refactor: transition from JSONContent to AIPromptData for theme generation

* feat: add retry functionality for user messages in AI chat interface

* refactor: remove unused loading fallback component and integrate loading indicator in chat messages

* change position of retry button

* feat: Improve system prompt

* refactor: replace createCurrentThemePrompt with attachCurrentThemeMention for improved prompt handling

* feat: add a placeholder for new chat and fix chat area styles

* chore: hide Community themes from AI page

* fix: build errors

* fix: ai theme generation only happens when there is content to be sent as the prompt

* feat: show AI tab in production

* fix: Early return after showing error message in ai chat

* feat: Attach last generated message instead of current theme for chat

* Use @ mentions in example prompts

* Enhance mention rendering in AI prompts and update mention styles in CSS

* fix: missing fade effect on chat messages scroll area and overflow in placeholder buttons

* feat: add user name from session to the chat placeholder component

* feat: Improve system prompt context

* chore: remove unnecessary context from example prompts

* feat: Enhance mention list with auto-scroll functionality and update prompt structures in no-messages placeholder

* feat: Add character limit for AI prompt input and integrate character count extension

* fix: Simplify prompt data handling in AI chat component and adjust textarea behavior during AI generation

* fix: Update theme state handling to include current mode in editor store

* chore: improve styles for consistency

* feat: add fun prompts to chat placeholder

* feat: add typography demo to preview panel

* feat: add responsive cards demo based on shadcn showcase

* fix: typography demo scroll area

* fix: build errors due to components refactor

* fix: wrap typography demo in ExamplesPreviewContainer

* feat: change default theme to match shadcn/ui default

* chore: move some theme previews into a dropdown to keep ui clean

---------

Co-authored-by: Luis Llanes <137589205+llanesluis@users.noreply.github.com>
Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-05-31 20:08:53 +05:30
Sahaj Jain 686b38eee1 feat: Add manage button to redirect to dashboard in theme preset select 2025-05-28 16:44:47 +05:30
Abbasa5251 a5d2dcb850 feat: Integrate tabs for code panel layout 2025-05-28 14:21:33 +05:30
Sahaj Jain 57d6e4d619 feat: Add pricing demo 2025-05-24 03:26:03 +05:30
Sahaj Jain fb50de58d4 feat: Update hero section heading 2025-05-23 19:55:33 +05:30
Abbasa5251 3397c8ab36 refactor: replace hardcoded color formats with dynamic retrieval from preferences 2025-05-22 17:52:04 +05:30
Abbasa5251 2f7df584a5 refactor: conditionally render 'oklch' color format based on Tailwind version 2025-05-22 17:52:04 +05:30
Luis Llanes 817e4f7c3b refactor: components and chat interface layout
* chat interface is based on resizable panels
* toolbar refactored and moved to the top
2025-05-20 13:38:53 +05:30
Luis Llanes b429f9ebb7 fix: build errors and key missing in .map 2025-05-20 13:38:11 +05:30
Luis Llanes e30d1cce76 chore: achieve a cleaner look, set a max-height and a scrollbar and adjust loading skeletons 2025-05-20 13:37:47 +05:30
Sahaj Jain 8e209ae9c0 fix: Don't remove current preset after AI generation 2025-05-19 20:47:55 +05:30