Commit Graph
93 Commits
Author SHA1 Message Date
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
KrisLee1 09e73b2de0 Update index.tsx
Add charts with preview support for 5 chart colors.
2025-05-19 15:41:15 +05:30
KrisLee1 748379f22c Add chart examples.
Add charts with preview support for 5 chart colors.
2025-05-19 15:41:15 +05:30
Ad1tya-007 f704a65096 fixed mail calendar ui 2025-05-18 14:47:01 +05:30
Ad1tya-007 9a01a5ff9f fixed mail list ui 2025-05-17 01:21:18 +05:30
Luis Llanes 162f2a0338 refactor: use undo/redo directly from Editor Store instead of depending on a unrelated hook 2025-05-16 22:18:09 +05:30
Luis Llanes 12b3447bc3 refactor: Change theme-preset-select to make it reusable and extendible 2025-05-16 19:01:46 +05:30
m7he4rt c1828312a2 feat: add CalendarProps type for improved type safety 2025-05-16 17:08:48 +05:30
m7he4rt f2ae2ff1a4 refactor: improve calendar component styling and structure 2025-05-16 17:08:48 +05:30
Sahaj Jain 9bd8148e5b fix: Responsiveness for action-bar 2025-05-15 11:21:32 +05:30
Sahaj Jain c60880ea7e feat: Add undo/redo functionality 2025-05-15 11:21:32 +05:30
Luis Llanes 53abfa18b4 feat: Toolbar buttons and dialogs work
* Add global state logic to handle ThemePreviewPanel state
* Extend hook useAIThemeGeneration by creating a Store and adding State
* Provide loading and disabled states as feedback to user
* Adjust /editor/ components to work with the new Hooks
2025-05-15 11:21:32 +05:30
Luis Llanes 8c97f16f81 feat: Enhance AI editor layout and functionality with new components and toolbar (#64) 2025-05-15 11:21:32 +05:30
Sahaj Jain e9a54a1908 feat: Add support for payload for post-login action, also added new action 2025-05-15 11:21:32 +05:30
Luis Llanes 695c4d7621 fix: Layout shift due to SignIn/SignUp buttons 2025-05-13 14:09:18 +05:30
Luis Llanes d21eae98de refactor: Move Header component to new path and update imports 2025-05-13 14:09:18 +05:30
Luis Llanes f46cd6028f fix: Loading skeleton for theme preview panel 2025-05-11 02:31:45 +05:30
Sahaj Jain a2c7f26d6c fix: Shadow control render 2025-05-09 18:37:18 +05:30
Sahaj Jain a5e1094a9a feat: HSL Presets 2025-05-09 18:17:40 +05:30
Sahaj Jain 0acdb63855 fix: padding for control sections 2025-05-09 01:56:03 +05:30
Sahaj Jain d1960a967a fix: Hsl slider changing mode 2025-05-08 23:48:22 +05:30
Sahaj Jain f82f2e55fc Feature/hsl (#62)
* working hsl adjuster

* refactor

* format to hex
2025-05-08 23:44:32 +05:30
Sahaj Jain bac42658af Update roadmap 2025-05-07 01:35:43 +05:30
Sahaj Jain 051fc9b939 fix: Click on save button and error handling for save 2025-05-05 04:22:31 +05:30
Sahaj Jain e1b6327e48 change text - Support -> Sponsor 2025-05-05 01:14:14 +05:30
Sahaj Jain eabfb82e6c fix: max w for ai dialog 2025-05-05 01:04:48 +05:30
Sahaj Jain 3bce673117 fix: Clickable mention-list 2025-05-04 23:58:25 +05:30
Sahaj Jain faf92a12df fix: Computing unsaved changes. now based on matching current preset with styles 2025-05-04 17:48:40 +05:30
Sahaj Jain 32a9901010 fix: build error due to apos 2025-05-04 16:53:52 +05:30
Luis Llanes 04b74a967b fix: consistency across action buttons dialogs (#58)
* fix: consistency across action buttons dialogs

* chore: improve MCP dialog and add analytics

* fix: dialog height and scroll area
2025-05-04 14:53:46 +05:30
Sahaj Jain d70e842212 add server-side auth for ai theme and fix save action 2025-05-04 05:07:20 +05:30
Sahaj Jain b064e17add feat: Add share button with post login actions 2025-05-03 19:20:12 +05:30
Sahaj Jain e08ce982c8 Unsaved changes alert for registry command 2025-05-03 18:35:58 +05:30
Sahaj Jain 5ec5f74ada feat: Registry theme support for saved themes 2025-05-03 18:26:42 +05:30