feat(ui): migrate stock-operations screens (14 components) to Zard UI#152
Conversation
14 components: physical-stock-entry (+view/details), store-stock-adjustment (+drafts and 4 view/detail screens), store-stock-transfer (+views/details), store-self-consumption (+views/details). - FormArray item grids -> z-table rows with z-input/z-select cells; every formArrayName/index binding, directive (appItemSearch/appBatchAdjustment/ appBatchSearch) and validation kept verbatim - mat-datepicker -> z-date-picker (CVA; min/max -> minDate/maxDate) - adjustmentType binds formControlName directly (strings); transferTo holds an OBJECT so it uses the index-bind + patchValue pattern - Mat-opened detail dialogs keep MatDialogRef; neutral shadcn dialog headers - pagination via template-only z-paginator over the existing MatTableDataSource.data - zero TS changes - transfer-in/out markers -> border-l-primary/warning tokens (was hex) Zero Material / zero Bootstrap in all 14 templates; component CSS deleted.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|


Stacked on #151 (reports). Migrates the four stock-operations flows (14 components) to Zard UI + Tailwind v4 — zero Material, zero Bootstrap in every template; all FormArray/validation/dialog logic verbatim.
Screens
Key decisions (flagged)
z-paginatorover the existingMatTableDataSource.data— zero TS changes (@ViewChild(MatPaginator)stays null-safe)transferToselect holds an object → index-bind +patchValuepattern (same as facility-selection);adjustmentType(strings) bindsformControlNamedirectlyz-date-pickerCVA:formControlName/ngModel verbatim;preventTypinghandler dropped (trigger is a button — typing impossible; keeping it would block keyboard activation)border-l-primary/border-l-warningtokensbuild-dev✅ · eslint/prettier ✅ · component CSS deleted