@proveanything/smartlinks-utils-ui 0.9.11 → 0.9.13
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.
|
@@ -2125,6 +2125,9 @@ var useShellDeepLink = (args) => {
|
|
|
2125
2125
|
useEffect(() => {
|
|
2126
2126
|
if (!deepLinkState.enabled) return;
|
|
2127
2127
|
if (selectedItemId) return;
|
|
2128
|
+
if (lastAppliedDLRef.current === "" && (deepLinkState.urlState.recordId ?? null) !== null) {
|
|
2129
|
+
return;
|
|
2130
|
+
}
|
|
2128
2131
|
const echoView = deepLinkState.urlState.view ?? "";
|
|
2129
2132
|
const currentDeepLinkedRecordId = pendingDeepLinkRecordId ?? deepLinkState.urlState.recordId ?? null;
|
|
2130
2133
|
const preservingPendingRecordId = preserveInitialRecordIdRef.current && !!currentDeepLinkedRecordId;
|
|
@@ -2135,9 +2138,17 @@ var useShellDeepLink = (args) => {
|
|
|
2135
2138
|
lastAppliedDLRef.current = `${preservingPendingRecordId ? currentDeepLinkedRecordId ?? "" : ""}|${editingScope?.raw ?? ""}|${echoView}`;
|
|
2136
2139
|
}, [deepLinkState.enabled, deepLinkState.urlState.recordId, editingScope?.raw, selectedItemId, itemView, pendingDeepLinkRecordId]);
|
|
2137
2140
|
useEffect(() => {
|
|
2138
|
-
if (!deepLinkState.enabled) return;
|
|
2139
2141
|
const { recordId, scope, view } = deepLinkState.urlState;
|
|
2140
2142
|
const sig = `${recordId ?? ""}|${scope ?? ""}|${view ?? ""}`;
|
|
2143
|
+
console.info("[RecordsAdminShell] restore effect tick", {
|
|
2144
|
+
enabled: deepLinkState.enabled,
|
|
2145
|
+
recordId,
|
|
2146
|
+
scope,
|
|
2147
|
+
view,
|
|
2148
|
+
sig,
|
|
2149
|
+
lastApplied: lastAppliedDLRef.current
|
|
2150
|
+
});
|
|
2151
|
+
if (!deepLinkState.enabled) return;
|
|
2141
2152
|
if (sig === lastAppliedDLRef.current) return;
|
|
2142
2153
|
lastAppliedDLRef.current = sig;
|
|
2143
2154
|
if (view && itemViews.includes(view) && view !== itemView) {
|
|
@@ -2180,6 +2191,14 @@ var useShellDeepLink = (args) => {
|
|
|
2180
2191
|
}, [deepLinkState.enabled, deepLinkState.urlState]);
|
|
2181
2192
|
useEffect(() => {
|
|
2182
2193
|
const pending = pendingDeepLinkRecordId;
|
|
2194
|
+
console.info("[RecordsAdminShell] resolver tick", {
|
|
2195
|
+
pending,
|
|
2196
|
+
isCollection,
|
|
2197
|
+
collectionItemsCount: collectionItems.items.length,
|
|
2198
|
+
collectionItemsLoading: collectionItems.isLoading,
|
|
2199
|
+
recordListCount: recordListItems.length,
|
|
2200
|
+
recordListLoading
|
|
2201
|
+
});
|
|
2183
2202
|
if (!pending) return;
|
|
2184
2203
|
if (isCollection) {
|
|
2185
2204
|
const hit2 = collectionItems.items.find((it) => it.id === pending || it.itemId === pending);
|
|
@@ -8398,16 +8417,6 @@ function RecordsAdminShellInner(props) {
|
|
|
8398
8417
|
}
|
|
8399
8418
|
)
|
|
8400
8419
|
] }),
|
|
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
8420
|
isProductTab && !productPinned && (() => {
|
|
8412
8421
|
const cfg = scopeCounts.productIds;
|
|
8413
8422
|
let configured = 0;
|