Refactor Store Settings to Live Preview Editor#42
Conversation
Replaces the form-based Store Settings page with a dual-pane editor featuring a sidebar for configuration and a live preview area. - Created `StoreSettingsEditor.jsx` component. - Updated `AdminDashboard.jsx` to use the new editor. - Refactored `Hero`, `Navbar`, `Footer`, and `ProductCard` components to support `previewSettings` and `disableNavigation` props for safe rendering in the admin context. - Verified changes with Playwright tests. Co-authored-by: AJFrio <20246916+AJFrio@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Replaces the form-based Store Settings page with a dual-pane editor featuring a sidebar for configuration and a live preview area. - Created `StoreSettingsEditor.jsx` component. - Updated `AdminDashboard.jsx` to use the new editor. - Refactored `Hero`, `Navbar`, `Footer`, and `ProductCard` components to support `previewSettings` and `disableNavigation` props for safe rendering in the admin context. - Verified changes with Playwright tests. Co-authored-by: AJFrio <20246916+AJFrio@users.noreply.github.com>
This PR replaces the traditional form-based Store Settings page with a modern, dual-pane editor. Users can now edit store settings (Theme, Identity, Info, Hero, About, Contact) in a sidebar and see the changes reflected immediately in a live preview of the storefront.
Key changes:
src/components/admin/StoreSettingsEditor.jsx: New component implementing the editor logic and UI.src/pages/admin/AdminDashboard.jsx: ReplacedStoreSettingsFormwithStoreSettingsEditor.src/components/storefront/Hero.jsx,Navbar.jsx,Footer.jsx,ProductCard.jsx: Updated to accept props for preview mode (previewSettingsto inject data,disableNavigationto prevent link clicks).src/index.css: Added styles for animations used in the preview.This improves the user experience by providing immediate visual feedback on configuration changes.
PR created automatically by Jules for task 6834279948351490435 started by @AJFrio