@proveanything/smartlinks-utils-ui 0.9.11 → 0.9.12
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.
|
@@ -2135,9 +2135,17 @@ var useShellDeepLink = (args) => {
|
|
|
2135
2135
|
lastAppliedDLRef.current = `${preservingPendingRecordId ? currentDeepLinkedRecordId ?? "" : ""}|${editingScope?.raw ?? ""}|${echoView}`;
|
|
2136
2136
|
}, [deepLinkState.enabled, deepLinkState.urlState.recordId, editingScope?.raw, selectedItemId, itemView, pendingDeepLinkRecordId]);
|
|
2137
2137
|
useEffect(() => {
|
|
2138
|
-
if (!deepLinkState.enabled) return;
|
|
2139
2138
|
const { recordId, scope, view } = deepLinkState.urlState;
|
|
2140
2139
|
const sig = `${recordId ?? ""}|${scope ?? ""}|${view ?? ""}`;
|
|
2140
|
+
console.info("[RecordsAdminShell] restore effect tick", {
|
|
2141
|
+
enabled: deepLinkState.enabled,
|
|
2142
|
+
recordId,
|
|
2143
|
+
scope,
|
|
2144
|
+
view,
|
|
2145
|
+
sig,
|
|
2146
|
+
lastApplied: lastAppliedDLRef.current
|
|
2147
|
+
});
|
|
2148
|
+
if (!deepLinkState.enabled) return;
|
|
2141
2149
|
if (sig === lastAppliedDLRef.current) return;
|
|
2142
2150
|
lastAppliedDLRef.current = sig;
|
|
2143
2151
|
if (view && itemViews.includes(view) && view !== itemView) {
|
|
@@ -2180,6 +2188,14 @@ var useShellDeepLink = (args) => {
|
|
|
2180
2188
|
}, [deepLinkState.enabled, deepLinkState.urlState]);
|
|
2181
2189
|
useEffect(() => {
|
|
2182
2190
|
const pending = pendingDeepLinkRecordId;
|
|
2191
|
+
console.info("[RecordsAdminShell] resolver tick", {
|
|
2192
|
+
pending,
|
|
2193
|
+
isCollection,
|
|
2194
|
+
collectionItemsCount: collectionItems.items.length,
|
|
2195
|
+
collectionItemsLoading: collectionItems.isLoading,
|
|
2196
|
+
recordListCount: recordListItems.length,
|
|
2197
|
+
recordListLoading
|
|
2198
|
+
});
|
|
2183
2199
|
if (!pending) return;
|
|
2184
2200
|
if (isCollection) {
|
|
2185
2201
|
const hit2 = collectionItems.items.find((it) => it.id === pending || it.itemId === pending);
|
|
@@ -8398,16 +8414,6 @@ function RecordsAdminShellInner(props) {
|
|
|
8398
8414
|
}
|
|
8399
8415
|
)
|
|
8400
8416
|
] }),
|
|
8401
|
-
!isProductTab && !isRuleTab && !isGlobalTab && /* @__PURE__ */ jsx(
|
|
8402
|
-
StatusFilterPills,
|
|
8403
|
-
{
|
|
8404
|
-
value: filter,
|
|
8405
|
-
onChange: setFilter,
|
|
8406
|
-
counts: facetBrowse.counts,
|
|
8407
|
-
hideZero: ["partial"],
|
|
8408
|
-
i18n
|
|
8409
|
-
}
|
|
8410
|
-
),
|
|
8411
8417
|
isProductTab && !productPinned && (() => {
|
|
8412
8418
|
const cfg = scopeCounts.productIds;
|
|
8413
8419
|
let configured = 0;
|