Redesign/purchases flow#88
Open
NanezX wants to merge 63 commits into
Open
Conversation
- Left column (flex-1): Document → Items → Discount → Payment Terms - Right column (w-[22rem] sticky): Pricing Mode → Summary - Mobile: stays fully stacked - Currency toggles more compact with flex-wrap - Removes max-w-2xl constraint on pricing description
Add step navigation for 1280px viewport compatibility: - Step 1: Documento + Pricing mode (supplier, doc, date, rates, currency) - Step 2: Artículos (item rows, search, add) - Step 3: Pago (discount + payment terms) - Step 4: Revisar (summary + items list + create button) - Wizard header with step indicators (clickable completed steps) - Back/Cancel + Next/Create navigation in sticky footer - All state preserved across steps (go back without data loss)
…ayout - Replace custom wizard nav with existing WizardHeader component (sales-consistent) - Reduce container padding p-6→p-4, space-y-6→space-y-3 - Settlement currency starts empty (user must explicitly choose) - Add disabled placeholder option to settlement dropdown - Require settlementCurrency in step 0 validation - Add contextual subtitle in steps 2-4 (supplier, currency, rates) - Move draft badge to edit-mode subtitle
- Remove title prop from WizardHeader (saves ~50px vertical space) - Replace back button with breadcrumb: Compras › Nueva compra - Use tracking-[0.18em] uppercase style consistent with sales
- Add bare prop to PurchaseOrderDocumentPanel (renders without section wrapper) - Merge document panel + pricing mode into one card (space-y-5, hr divider) - Rename from 'Información del documento' to 'Información de la compra' - Remove separate 'Modo de captura' card header - Simplify base prices label: 'Base de precios' with inline toggles
…rning - Drop settlement_rate_to_ves column (migration 0032) - Remove from schema, Zod, draft types, remote, form payload - Settlement currency auto-syncs from source currency (Opción A) - Add warning when manual settlement differs from source currency - Settlement validation removed from step 0 (always has value) - Fix missing getSourceCurrencySymbol import
…back - DocumentPanel bare mode: remove Tasa BCV and Tasa USDT fields - Keep only Proveedor, Tipo, N° factura, Fecha, Observaciones in bare mode - Parent form: add Tasa BCV + Tasa USDT after currency toggle buttons - Flow: Base de precios → [USD][VES]... → Tasa BCV → Tasa USDT → Obligación - Non-bare mode (standalone) unchanged
- Change 'Nota de Entrega' → 'Nota' to prevent line-wrapping in toggle - Add max-w-40 to Tasa BCV and Tasa source inputs (rates are short numbers)
- Change transition-colors to transition-all duration-200 - Add shadow-sm and hover:bg-surface-container-higher on active tab
- Inactive tab now has bg-surface-container-higher/40 (was transparent) - Both tabs now transition between visible backgrounds - Add ease-out easing for smoother feel
- Create SegmentedToggle.svelte (sliding pill pattern from SaleStep2Toolbar) - Replace inline doc-type toggle in PurchaseOrderDocumentPanel with component - Export from UI barrel for reuse across the app
- Replace inline button group with SegmentedToggle sliding indicator - Add pricingModeOptions mapping currencies to options - Reuses existing requestPricingModeChange handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.