@mohasinac/appkit 4.63.1 → 4.63.2

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "stampVersion": 1,
3
- "version": "4.63.1",
4
- "head": "4851d3d585790224397f1dcb19e6dee274fe9d60",
3
+ "version": "4.63.2",
4
+ "head": "dd37d5175bd7a2f614092da8fe0cc71892f942a1",
5
5
  "branch": "main",
6
6
  "dirty": false,
7
- "builtAt": "2026-10-23T08:10:33.829Z"
7
+ "builtAt": "2026-10-23T08:39:40.479Z"
8
8
  }
@@ -10,7 +10,11 @@ import { normalizeError } from "../../../errors/normalize.js";
10
10
  import { DataListingView } from "../../admin/components/DataListingView.js";
11
11
  import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
12
12
  import { DISPUTE_KIND, } from "../../../_internal/shared/features/orders/dispute-reasons.js";
13
- import { DISPUTE_REASON_LABEL_MAX, } from "../schemas/firestore.js";
13
+ import { DISPUTE_REASON_FIELDS, DISPUTE_REASON_LABEL_MAX, } from "../schemas/firestore.js";
14
+ /* šŸ›‘ The DEFINING module, never `@mohasinac/appkit/client` — in a view that is
15
+ * fine, but these are the canonical sort helpers and `audit-sieve-constants-views`
16
+ * is what blocks the raw `"label"` / `"-label"` literals below. */
17
+ import { sortBy } from "../../../constants/sort.js";
14
18
  /**
15
19
  * What each kind MEANS, in one place.
16
20
  *
@@ -104,7 +108,7 @@ export function AdminDisputeReasonsView({ endpoint, onSetActive, onCreate, }) {
104
108
  subtitle: "What buyers can pick when reporting a problem. A reason's kind decides which gate it inherits — the wording is yours.",
105
109
  endpoint: endpoint,
106
110
  queryKey: ["admin", "dispute-reasons"],
107
- defaultSort: "label",
111
+ defaultSort: sortBy(DISPUTE_REASON_FIELDS.LABEL, "ASC"),
108
112
  /*
109
113
  * šŸ›‘ REQUIRED on `ListingViewConfig`, and the default must be one of
110
114
  * these or the dropdown opens with nothing selected (Root Cause #63).
@@ -112,9 +116,9 @@ export function AdminDisputeReasonsView({ endpoint, onSetActive, onCreate, }) {
112
116
  * wording and which kind a reason belongs to.
113
117
  */
114
118
  sortOptions: [
115
- { value: "label", label: "Wording (A–Z)" },
116
- { value: "-label", label: "Wording (Z–A)" },
117
- { value: "kind", label: "Kind" },
119
+ { value: sortBy(DISPUTE_REASON_FIELDS.LABEL, "ASC"), label: "Wording (A–Z)" },
120
+ { value: sortBy(DISPUTE_REASON_FIELDS.LABEL, "DESC"), label: "Wording (Z–A)" },
121
+ { value: sortBy(DISPUTE_REASON_FIELDS.KIND, "ASC"), label: "Kind" },
118
122
  ],
119
123
  filterKeys: ["scope"],
120
124
  filterDefaults: { scope: "active" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohasinac/appkit",
3
- "version": "4.63.1",
3
+ "version": "4.63.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"