@7365admin1/layer-common 4.97.1-staging.710 → 4.97.1-staging.711

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
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.97.1-staging.710",
5
+ "version": "4.97.1-staging.711",
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.",
@@ -107,6 +107,8 @@ export const VENDOR_ORDER_MODULE = "marketplace-vendor-order";
107
107
  */
108
108
  export const SP_INVITATION_SCREEN = "/service-provider-invitation";
109
109
  export const INVITATIONS_ROUTE = "org-organization-client-invitations";
110
+ /** The organisation app's Sites page (its Access requests panel reads ?requests=incoming|outgoing). */
111
+ export const SITES_ROUTE = "org-organization-sites";
110
112
 
111
113
  /**
112
114
  * What a row is about. `params.kind` when the sender set it; for older rows the
@@ -233,6 +235,8 @@ SITE_PAGES.myVisitors = SITE_PAGES.visitors;
233
235
  export const WEB_TARGET_KINDS = [
234
236
  ...Object.keys(SITE_PAGES),
235
237
  "serviceProviderInvite",
238
+ "siteJoinRequest",
239
+ "siteJoinAnswer",
236
240
  VENDOR_ORDER_MODULE,
237
241
  "robot",
238
242
  "client",
@@ -313,6 +317,21 @@ export function notificationTarget(
313
317
  };
314
318
  }
315
319
 
320
+ // A company asked for access to one of our sites (approve it) or we hear the
321
+ // answer to ours (owner 2026-11-17: the click went nowhere). Both live on the
322
+ // organisation app's Sites page, Access requests panel, on the right tab.
323
+ if (kind === "siteJoinRequest" || kind === "siteJoinAnswer") {
324
+ const org = String(item?.params?.org ?? "").trim() || organization;
325
+ if (!org) return null;
326
+ return {
327
+ name: SITES_ROUTE,
328
+ params: { organization: org },
329
+ query: { requests: kind === "siteJoinRequest" ? "incoming" : "outgoing" },
330
+ app: "org",
331
+ path: `/org/${encodeURIComponent(org)}/sites`,
332
+ };
333
+ }
334
+
316
335
  if (!item) return null;
317
336
  const staff = staffTarget(kind, item);
318
337
  if (staff) return staff;