Commit Graph

385 Commits

Author SHA1 Message Date
d5e30c92b0 feat: agregar página de ventas por catálogo
- Agregar CatalogSalesManagement.vue con tabla de ventas
- Filtros por texto (ID/cliente) y rango de fechas
- Filas expandibles con detalle de productos y datos de envío
- Agregar ruta protegida /admin/catalog-sales
- Agregar endpoint getCatalogSales() en servicios API
- Agregar menú 'Ver Ventas por Catálogo' en NavBar
2026-05-29 01:06:44 -05:00
6aecbd37d2 feat: agregar página de gestión de productos activos/inactivos
- Agregar ProductsManagement.vue con tabla de productos
- Filtros: Activos, Inactivos, Todos
- Búsqueda por nombre en tiempo real
- Acciones por lote: activar/desactivar múltiples productos
- Botones condicionales según filtro activo
- Agregar ruta protegida /admin/products
- Actualizar API con métodos getProducts(active) y updateProduct()
- Agregar método patchRequest en django-api
- Agregar menú 'Gestión de Productos' en NavBar
2026-05-29 00:53:38 -05:00
cb79ad6d45 chore: Sintaxis 2026-05-28 23:29:36 -05:00
38c1d8c17c feat: optimize product images to e-commerce standard (600x600 → 300px display)
INDUSTRY STANDARD IMPLEMENTATION:
- Change placeholder images from 300x200 (3:2) to 600x600 (1:1 square)
- Set max-height to 300px with aspect-ratio 1:1 for consistent display
- Follow e-commerce best practices (Amazon, Shopify, Mercado Libre)

TEMPLATE CHANGES:
- catalog.vue: Update placeholder URL to 600x600 square images
- Card.vue: Add aspect-ratio="1" for perfect square display
- Card.vue: Increase max-height from 140px to 300px
- Restore padding: pa-2 → pa-3 (8px → 12px)
- Restore title size: text-subtitle-2 → text-subtitle-1
- Restore margins: mb-1 → mb-2
- Restore chip size: x-small → small
- Restore footer padding: pa-2 → pa-2 pb-3

CSS CHANGES:
- Remove fixed height from .product-image-container (use 100% for flexibility)
- Product name: 0.85rem → 0.95rem, min-height 2rem → 2.5rem
- Price label: 0.6rem → 0.65rem
- Price value: 0.9rem → 1.1rem
- Price chip: height 22px → 26px, font 0.75rem → 0.9rem
- Quantity input: 55px → 65px, font 0.85rem → 0.95rem
- Section gaps: 2px → 4px, row gaps: 1px → 2px

RESPONSIVE STRATEGY (optimized for 300px max):
- Mobile XS (<375px): Natural scaling, compact layout
- Mobile (375-559px): Natural scaling, readable text
- Tablet (560-959px): Enhanced padding and fonts
- Desktop (≥960px): Full 300px display with optimal spacing
- Desktop L/XL: Maintain 300px with enhanced typography

RESULT:
- Square images (1:1) matching industry standard
- 600x600 source allows retina displays and zoom
- 300px display on desktop (sweet spot for catalogs)
- Responsive scaling maintains aspect ratio
- Professional e-commerce appearance
2026-05-28 23:25:17 -05:00
398a4cf79d refactor: reduce product card size by 25-30% (aggressive optimization)
TEMPLATE CHANGES:
- Reduce image max-height: 180px → 140px
- Reduce padding: pa-3 → pa-2 (12px → 8px)
- Reduce title size: text-subtitle-1 → text-subtitle-2
- Reduce margins: mb-2 → mb-1 throughout
- Reduce chip size: small → x-small
- Simplify footer padding: pa-2 pb-3 → pa-2

CSS BASE CHANGES:
- Image container height: 180px → 140px (-22%)
- Product name font: 0.95rem → 0.85rem, min-height: 2.5rem → 2rem
- Price label font: 0.65rem → 0.6rem
- Price value font: 1.1rem → 0.9rem (-18%)
- Price chip: height 26px → 22px, padding 12px → 10px, font 0.9rem → 0.75rem
- Quantity input: 65px → 55px, font 0.95rem → 0.85rem, min-height 32px → 28px
- Section gaps: 4px → 2px, row gaps: 2px → 1px

RESPONSIVE BREAKPOINTS (all reduced ~25-30%):
- Mobile XS (<375px): 160px → 130px
- Mobile (375-559px): 170px → 140px
- Tablet (560-959px): 190px → 150px
- Desktop (960-1279px): 200px → 160px
- Desktop L (1280-1919px): 220px → 170px
- Desktop XL (≥1920px): 240px → 180px

RESULT: Cards are now 25-30% smaller maintaining proportions across all devices
2026-05-28 23:10:27 -05:00
6970867f7b feat: transform catalog to modern grid layout with compact product cards
- Transform Card.vue from horizontal to vertical compact design
- Reduce card height with fixed image max-height (160-240px responsive)
- Center all text content (product name, prices, actions)
- Style product name with semibold font-weight, 2-line ellipsis
- Redesign price labels: subtle gray uppercase for labels, bold primary for values
- Style quantity controls: tonal icon buttons with smooth animations
- Redesign input field: solo-filled variant, compact density, subtle shadow
- Transform catalog.vue list layout to responsive grid (v-row/v-col)
- Implement responsive columns: 1 col mobile, 2 cols tablet, 3 cols desktop
- Clean up obsolete .catalog-item styles, use native Vuetify grid spacing
- Add hover effects: translateY(-6px), scale(1.08) on image, border highlight
- Add footer background (#fafafa) for visual separation
- Optimize breakpoints: 6 responsive sizes (374px, 559px, 959px, 1280px, 1920px)
- Result: Professional, compact, balanced e-commerce catalog design
2026-05-28 23:05:57 -05:00
196a5e2068 fix: resolve mobile layout issues and redesign catalog header
- Add 'app' prop to NavBar for proper Vuetify layout integration
- Fix mobile z-index: page-header now compensates for NavBar height (64px)
- Fix cart visibility: position cart above footer instead of hidden underneath
- Redesign header: white background with subtle shadow instead of blue gradient
- Expand catalog layout: increase catalog width (md=10 lg=9) for better content space
- Optimize mobile search: expand search field to full width, hide title on mobile
- Adjust mobile padding: increase to 100px to account for footer + collapsed cart
2026-05-28 22:57:21 -05:00
619590adcc fix: optimize catalog mobile cart behavior and z-index hierarchy
- Fix cart overlay blocking header in mobile (z-index: header 900 < cart 1000)
- Add cart-is-collapsed class with translateY(calc(100% - 60px)) for bottom sheet behavior
- Ensure cart header remains visible and clickable when collapsed in mobile
- Add deep Vuetify styles for search field integration (:deep(.v-field))
- Preserve desktop sticky sidebar behavior (position: sticky, overflow-y: auto)
- Make entire cart header clickable in mobile (@click on v-card-title)
- Add visual feedback with chevron icons (mdi-chevron-up/down)
- Clean CSS organization with section comments
2026-05-28 22:44:13 -05:00
da45c4c1f7 feat: add search bar and restyle catalog header matching Nueva Compra
- Replace plain title with gradient page-header (icon, title, subtitle)
- Add search field with mdi-magnify icon and real-time name filtering
- Integrate search into the header as a single sticky unit
- Add filteredItems computed for client-side product search
- Reset to page 1 on search query change
- Show distinct message when search yields no results
- Adapt pagination to work with filtered results
2026-05-28 22:19:10 -05:00
690c8ff288 feat: redesign hero banner with glassmorphism and animated glow bubbles
- Replace gradient background with light pastel bubbles on #f8fafc
- Add 4 animated glow bubbles (blue, green, yellow, red) with radial gradients
- Implement glassmorphism card for hero content with backdrop-filter
- Add floating corner animations and center pulse animation
- Update logo to colorful variant
- Remove white text classes, use dark slate for readability
2026-05-28 21:40:29 -05:00
df291df451 fix: correct catalog purchase field name and swap api method mappings
- Rename saleline_set to catalogsaleline_set in catalog purchase payload
- Fix swapped createPurchase/createCatalogPurchase method calls in Api class
- Format http.js (indentation, quotes, trailing commas)
2026-05-28 18:57:51 -05:00
9ea01eed39 fix: resolve white screen crashes and restructure layout hierarchy
- Move NavBar from App.vue to layouts/default.vue to fix nested v-app/v-main
- Replace VSkeletonLoader with v-progress-circular to avoid genStructure crash
- Initialize payment_methods as [] and add fallback in v-select
- Remove duplicate fetchClients call from mounted()
- Add authStore.user check in admin route guard
- Replace window.location.href with router.push for SPA navigation
- Add !important to page-header gradient styles
2026-05-28 18:14:37 -05:00
e2604a1837 feat: redesign purchase page with improved UI/UX and responsive layout 2026-05-28 17:31:26 -05:00
d86919e930 feat: improve home page with hero banner, logo, and catalog CTA 2026-05-28 17:24:45 -05:00
7ecf1eb142 feat: add 'Ver Catálogo' option to main navigation menu 2026-05-28 17:18:18 -05:00
e816ae3e7d feat: add inline catalog checkout with modals
Replace redirect to /comprar with a 2-step modal flow (cart confirmation
+ personal data) on the catalog page. Add createCatalogPurchase API
endpoint for catalog sales.
2026-05-28 17:13:22 -05:00
2b52c63133 feat: add tooltip with full product name on hover 2026-05-15 13:34:21 -05:00
15f1f0f826 fix: prevent product name from expanding column and pushing controls out of row 2026-05-15 13:32:00 -05:00
a6d3a86e33 fix: remove name truncation, allow full product name to grow downward 2026-05-15 13:28:44 -05:00
9fd6f8306d fix: constrain product name length to prevent layout breakage 2026-05-15 13:25:18 -05:00
f958735bd2 fix: vertically center card content with image on desktop 2026-05-15 13:22:06 -05:00
f3f55fe81e style: fix lint formatting in django-api.js (quotes, indentation) 2026-05-15 13:12:00 -05:00
99d3881d61 feat: improve catalog responsive design, cart layout and card component
- Redesign Cart component with improved alignments, gaps, and responsive padding
- Refactor Card component with mobile-first layout and consistent spacing
- Update catalog layout to 60/40 split for products/cart on desktop (lg)
- Add PaginationControls component (previously untracked)
- Clean up obsolete CSS styles from catalog page
2026-05-15 13:10:54 -05:00
87f12f76ea Merge pull request 'Agregando proteccion a rutas' (#38) from add-auth-protection-routes into main
Reviewed-on: #38
2026-03-15 23:54:32 -05:00
mono
faa5cf1a46 refactor: remove redundant admin checks from pages (now handled by router) 2026-03-15 23:54:34 -05:00
mono
c1fccc4d53 feat: add admin route protection via router beforeEach 2026-03-15 23:46:08 -05:00
mono
eb4811ab8b feat: add auth protection to routes using meta fields 2026-03-15 23:32:36 -05:00
cd0f1b65dd Merge pull request 'docker-deploy-config' (#37) from docker-deploy-config into main
Reviewed-on: #37
2026-03-15 23:01:56 -05:00
mono
6e3d9b8a49 chore: remove env files from repository tracking 2026-03-15 22:59:33 -05:00
mono
bd977d8609 chore: add deploy env files to gitignore 2026-03-15 22:56:45 -05:00
mono
fa0bf07ad2 fix: add ARG and ENV to Dockerfile for build args, fix typo in .env.staging 2026-03-15 22:53:42 -05:00
mono
95a9a5cb1f feat: add docker deploy configuration for staging and production 2026-03-15 21:08:05 -05:00
65f8b545c6 Merge pull request 'Adicionar método de pago a instrucciones de planilla de una compra #35' (#36) from add_payment_method_summary_purchase_#35 into main
Reviewed-on: #36
2026-03-14 23:55:10 -05:00
mono
3e84642583 #35 feat: add payment method to purchase summary template 2026-03-14 23:54:26 -05:00
4d77b50987 Merge pull request 'Arreglando vistas de importación de clientes, productos y envio de ventas a tryton #24' (#33) from fix_tryton_products_custom_views_#24 into main
Reviewed-on: #33
2026-03-14 23:25:32 -05:00
mono
4cbe18708e #29 feat: improve customers sync UI with loading state and results 2026-03-14 23:22:32 -05:00
mono
794e885b9d #29 feat: improve sales sync UI with loading state and results 2026-03-14 23:19:14 -05:00
mono
59122c04d3 #29 feat: improve products sync UI with loading state and results 2026-03-14 23:16:22 -05:00
d3620d1c33 Merge pull request 'Ajustando menú por rol de usuario #29' (#32) from adjust_menu_by_rol_#29 into main
Reviewed-on: #32
2026-03-14 23:02:00 -05:00
mono
786d0551bb #29 refactor: replace admin code with role-based auth using Pinia 2026-03-14 22:55:24 -05:00
mono
2c9ea4b871 #29 feat: hide admin menu for non-admin users 2026-03-14 22:41:00 -05:00
mono
974c84fdb2 #29 fix: fetch user data on route change after login 2026-03-14 22:36:57 -05:00
mono
373ebb0ae4 docs: emphasize commit authorization requirement in AGENTS.md 2026-03-14 22:33:21 -05:00
mono
63bcfa67fe #29 fix: use role field for user badge 2026-03-14 22:30:50 -05:00
mono
c9d019c918 #29 fix: correct user endpoint to /api/users/me/ 2026-03-14 22:30:10 -05:00
mono
0c31d21212 #29 feat: add user profile menu in navbar 2026-03-14 22:24:38 -05:00
mono
71294af7fa #29 docs: add project analysis to AGENTS.md 2026-03-14 22:24:34 -05:00
18507bc337 fix: Add missing import for useCartStore in catalog 2026-03-14 17:04:54 -05:00
78923ddb6e feat: Add cart store for catalog quantity sync
- Create Pinia cart store to manage cart state globally
- Sync quantity changes between catalog cards and cart sidebar
- Improve product card design with borders and hover effects
- Fix cart sync when updating quantity via minus button or input field
2026-03-14 16:59:45 -05:00
1d37ce42dc feat: Improve product card design and sync cart quantity
- Add borders, hover effects, and box shadows to product cards
- Improve typography and layout styling
- Fix cart sync when updating quantity via minus button or input field
- Add updateQuantity prop to handle manual quantity changes
2026-03-14 16:28:10 -05:00