feat/publishing-ux-hardening #6
Loading…
Reference in New Issue
No description provided.
Delete Branch "feat/publishing-ux-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR:
feat/publishing-ux-hardening→mainObjective
Stage 2B — Tighten the publishing workflow UX without broadening architecture. Per the master brief, this slice addresses: inline validation messaging for single-field edits, consistent disabled/loading states, and refined failure wording.
Inspection findings
Baseline:
mainat7acff83(Stage 2A complete). 234 tests passing, analyze clean. Inspection identified three gaps against Stage 2B requirements:isUpdating, allowing edits while a write was in flight.errorMessagethe controller already provided.Implementation
All changes confined to the presentation layer — no domain, application, or repository changes.
ProductPreviewPanel— Added_nameError,_priceError,_descriptionError,_categoryErrorstate fields. Submit methods now set error text on empty/invalid input; errors display as red helper text below the text field. Cancel clears errors. Text fields setenabled: falseand save buttons setonPressed: nullwhenisUpdatingis true. AddedonCategoryChangedcallback and consistent tooltips (Save price,Save category,Cancel).showStatusActionSnackBar— Failure message now appendserrorMessagewhen present (e.g., "Failed to publish Floral Bowl Cozy. Network error").Changed files
.../widgets/product_preview_panel.dartisUpdating,onCategoryChanged, consistent tooltips.../widgets/status_action_snack_bar.dart.../test/widgets/product_preview_panel_test.dart.../test/widgets/status_action_snack_bar_test.dartdocs/development/build_execution_tracker.mddocs/development/master_development_brief.mdValidation
dart analyze: No issues found ✅flutter test(feature_wordpress): 247/247 passed ✅ (+13 over 234 baseline)Next slice
Stage 3A —
feat/multi-select-groundwork: Multi-select groundwork (read/state only, no bulk writes).