Files
apparel-designer/client
Khalid A 3d412600d5 Complete Phase 5 and Phase 6 features
Phase 5 - Photo Pre-Editor:
- Add Filerobot integration for image editing (crop, filters, adjustments)
- Add BG removal prompt modal after Filerobot edit completes
- Add 'Edit Photo' button in PropertiesPanel for re-editing images
- Support re-edit flow with editingElementId state tracking

Phase 6 - Template System:
- Add confirmation dialog when switching templates with existing work
- Add layers.background and layers.overlay to all 8 templates
- Implement auto-crop for slotted images using object-fit: cover logic
- Add Transformer boundBoxFunc to respect slot boundaries during resize
- Pass elements prop to TemplatesTab for detecting existing canvas work

Files modified:
- App.jsx: BG removal prompt, photo edit handlers
- ImageElement.jsx: crop property, slot-aware Transformer constraints
- PropertiesPanel.jsx: Edit Photo button
- TemplatesTab.jsx: confirmation dialog for template switch
- templates.js: layers.background/overlay for all templates
- Sidebar.jsx: pass elements prop to TemplatesTab
- DesignCanvas.jsx: pass slot prop to ImageElement

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 05:21:10 -05:00
..
2026-04-22 05:21:10 -05:00

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.