@open-mercato/ui 0.6.5-develop.4772.1.d517a085d1 → 0.6.5-develop.4782.1.29bd722d3d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -391,7 +391,7 @@ Notes:
391
391
 
392
392
  - For list/detail data loading, use `LoadingMessage` and `ErrorMessage` from `@open-mercato/ui/backend/detail`.
393
393
  - For record-backed backend detail/edit pages, treat `notFound` as a dedicated page state, separate from generic `error`.
394
- - When a record is missing, return early with a page-level `ErrorMessage` and a clear recovery action ("Back to list"); do not render `CrudForm`, detail sections, tabs, or record actions.
394
+ - When a record is missing, return early with `RecordNotFoundState` from `@open-mercato/ui/backend/detail` (a neutral, centered empty state with a recovery action) and pass `backHref`/`backLabel`; do not render `CrudForm`, detail sections, tabs, or record actions. A missing record is NOT an error — never render not-found through the destructive `ErrorMessage`. Reserve `ErrorMessage` for genuine load/validation failures.
395
395
  - Don't use ad hoc centered `<div>` error markup when shared backend detail primitives can express the state.
396
396
  - Use `TabEmptyState` when a section is empty but otherwise healthy.
397
397
  - Keep loading flags local to the section; reset errors before each load.
@@ -3273,6 +3273,7 @@ const ListboxMultiSelect = React.memo(function ListboxMultiSelect2({
3273
3273
  return /* @__PURE__ */ jsx(
3274
3274
  Button,
3275
3275
  {
3276
+ type: "button",
3276
3277
  variant: "ghost",
3277
3278
  size: "sm",
3278
3279
  onClick: () => toggle(opt.value),