@7365admin1/layer-common 4.9.1-staging.310 → 4.9.1-staging.311
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/components/SwitchContext.vue +16 -4
- package/package.json +1 -1
|
@@ -181,10 +181,22 @@ const emit = defineEmits(["search", "select", "manage", "add"]);
|
|
|
181
181
|
* are its problem to reject. It also means a duplicate arriving from any other
|
|
182
182
|
* caller is handled without waiting for that caller to notice.
|
|
183
183
|
*
|
|
184
|
-
* FIRST OCCURRENCE WINS,
|
|
185
|
-
*
|
|
186
|
-
* the
|
|
187
|
-
*
|
|
184
|
+
* FIRST OCCURRENCE WINS. This is a SAFETY NET, not the place the name is
|
|
185
|
+
* decided — and the original reasoning here was wrong, so it is worth stating
|
|
186
|
+
* plainly. I assumed the newer engagement row carried the current name; the
|
|
187
|
+
* owner corrected it. Site `6923d666…` is named "Seventh Condominium", and it is
|
|
188
|
+
* the NEWER row that still says "NCC" from an earlier name. RECENCY IS NO GUIDE
|
|
189
|
+
* to which snapshot is current.
|
|
190
|
+
*
|
|
191
|
+
* The name is now resolved SERVER-SIDE from the site record itself
|
|
192
|
+
* (`core customer-site.repo.ts getAll` looks the site up and projects its live
|
|
193
|
+
* name over the snapshot), and the same query returns one row per site. So by
|
|
194
|
+
* the time a list reaches this component the duplicate should already be gone
|
|
195
|
+
* and the label should already be right.
|
|
196
|
+
*
|
|
197
|
+
* This filter stays because a switcher must never offer the same destination
|
|
198
|
+
* twice whatever a caller hands it — a stale cache, an older API, or a caller
|
|
199
|
+
* that builds its list some other way.
|
|
188
200
|
*
|
|
189
201
|
* An item with no `value` is left alone: it cannot collide, and silently
|
|
190
202
|
* dropping it would hide a malformed row instead of showing it.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.9.1-staging.
|
|
5
|
+
"version": "4.9.1-staging.311",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|