@apptimate/ui 3.6.0 → 3.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptimate/ui",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "main": "src/index.tsx",
5
5
  "types": "src/index.tsx",
6
6
  "dependencies": {
@@ -75,7 +75,8 @@ export function WarehousePicker({
75
75
  const filtered = warehouses.filter(
76
76
  (w) =>
77
77
  (w.name || "").toLowerCase().includes(searchLower) ||
78
- (w.code || "").toLowerCase().includes(searchLower)
78
+ (w.code || "").toLowerCase().includes(searchLower) ||
79
+ (w.organization?.name || "").toLowerCase().includes(searchLower)
79
80
  );
80
81
 
81
82
  return (
@@ -116,7 +117,12 @@ export function WarehousePicker({
116
117
  <PickerItem
117
118
  key={wh.id}
118
119
  label={wh.name}
119
- sublabel={wh.code ? `Code: ${wh.code}` : undefined}
120
+ sublabel={
121
+ [
122
+ wh.code ? `Code: ${wh.code}` : null,
123
+ wh.organization?.name ? `Org: ${wh.organization.name}` : null
124
+ ].filter(Boolean).join(" | ") || undefined
125
+ }
120
126
  isSelected={String(value) === String(wh.id)}
121
127
  onClick={() => handleSelect(wh)}
122
128
  />