autosolutions-os 0.4.14 → 0.4.16
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/CHANGELOG.md +34 -0
- package/README.md +8 -2
- package/dist/coreView.d.ts +2 -0
- package/dist/coreView.js +5 -4
- package/dist/frame.js +4 -2
- package/dist/nav.d.ts +53 -6
- package/dist/nav.js +64 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.16 - 2026-11-16
|
|
4
|
+
|
|
5
|
+
The Signature Generator is open in every company (Didac, 16 November 2026: "this one should now
|
|
6
|
+
open for everyone, as default").
|
|
7
|
+
|
|
8
|
+
- `OS_HUB_ROW_COMPANY` is empty: a locked Signature Generator row says "Ask an AutoSolutions OS
|
|
9
|
+
admin..." in every company, not "Only available for Frank Body". The export and
|
|
10
|
+
`hubPanelLocks(items, tenantSlug)` stay, so apps change nothing but the version.
|
|
11
|
+
- The core opens the item `hub-signature` in every company and gives it to every active member
|
|
12
|
+
(migration `hub_permissions_signature_everyone`); new members get it as before, now in any company.
|
|
13
|
+
- The Hub's Signature Generator offers two Gmail signatures: frank body + al.ive body, and UMG
|
|
14
|
+
(Hub PR #125).
|
|
15
|
+
|
|
16
|
+
## 0.4.15 - 2026-11-13
|
|
17
|
+
|
|
18
|
+
One menu in every app (Didac, 13 November 2026: the same rows and states in e-Sales and every
|
|
19
|
+
other app as in the Hub, for each person).
|
|
20
|
+
|
|
21
|
+
- al.ive > Commercial > Reporting > Sales by channel is open in every app, not only in the Hub,
|
|
22
|
+
for someone acting in al.ive who holds Finance > Gross margin by channel there. It opens the
|
|
23
|
+
Hub's temporary al.ive sales view (`/os/commercial/sales`). Until now the Hub alone did this
|
|
24
|
+
(Hub PR #112, its own `tools`), so e-Sales and the other apps showed the row greyed (Ops Hub's
|
|
25
|
+
row; al.ive has no Ops Hub). New: `OS_COMPANY_HUB_ROWS` (TEMP-ALIVE-SALES), `companyHubRows()`,
|
|
26
|
+
osFrame's `hubRows`; OsWorkspaceFrame and useCoreFrame pass them, so apps change nothing but
|
|
27
|
+
the version.
|
|
28
|
+
- The Hub panel has no Configuration row, and Overview no "/comms" match (Didac, 13 November
|
|
29
|
+
2026: "it's enough having it only on the left side"). The Hub dropped both on its own in Hub
|
|
30
|
+
PR #119; now every app shows the same seven Smart Comms rows. The rail's Settings opens
|
|
31
|
+
`/comms/settings` in every app, as before.
|
|
32
|
+
- `hubPanelLocks(items, tenantSlug)`: outside Frank Body a locked Signature Generator says "Only
|
|
33
|
+
available for Frank Body", as the Hub says (`OS_HUB_ROW_COMPANY`). Without a slug, as before.
|
|
34
|
+
- Apps on 0.4.12 also get 0.4.13 and 0.4.14: Month-end close and Financial Analyst read
|
|
35
|
+
"(Incomplete)" instead of "(*)", as in the Hub.
|
|
36
|
+
|
|
3
37
|
## 0.4.14 - 2026-11-11
|
|
4
38
|
|
|
5
39
|
Finance release 7: open purchase orders and customer emails from NetSuite (Didac, 10 November
|
package/README.md
CHANGED
|
@@ -277,11 +277,17 @@ why).
|
|
|
277
277
|
Commercial > Customers and Operations > Customer OTIF its Customers and
|
|
278
278
|
Order OTIF pages (0.3.12), and Operations > Forecast accuracy its Forecast
|
|
279
279
|
accuracy page (0.3.14).
|
|
280
|
+
- A company can open a row in the Hub whatever its app says (0.4.15,
|
|
281
|
+
`OS_COMPANY_HUB_ROWS`, `companyHubRows()`, osFrame's `hubRows`): in al.ive,
|
|
282
|
+
Commercial > Sales by channel opens the Hub's temporary al.ive sales view
|
|
283
|
+
for someone who holds Finance > Gross margin by channel there
|
|
284
|
+
(TEMP-ALIVE-SALES). OsWorkspaceFrame and useCoreFrame pass it, so the row
|
|
285
|
+
is the same in every app.
|
|
280
286
|
- Admin appears when `my_admin_scope()` says the person manages something; pass
|
|
281
287
|
`admin` to decide it yourself.
|
|
282
288
|
- Every app shows the Hub panel (0.3.0, `OS_HUB_MENU`, the design's): Smart
|
|
283
|
-
Comms Hub (Overview, Inbox, Calendar, Tasks, Slack, Monday, Accounts
|
|
284
|
-
Configuration) and Tools (Unmarked Agent, Signature Generator; the group was
|
|
289
|
+
Comms Hub (Overview, Inbox, Calendar, Tasks, Slack, Monday, Accounts; no
|
|
290
|
+
Configuration row since 0.4.15, the rail's Settings opens it) and Tools (Unmarked Agent, Signature Generator; the group was
|
|
285
291
|
Assistants before 0.3.9, and Brand Voice Capture left it in 0.4.10). The rail's Hub opens it, as any function does, and
|
|
286
292
|
each row is a link into the Hub with `?tenant=`; Admin goes to the Hub. Pass
|
|
287
293
|
`hubItems` to draw other rows (the Hub passes its own, to lock what it
|
package/dist/coreView.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ export type CoreFrameOptionsForOsFrame = {
|
|
|
76
76
|
locked: Record<string, string>;
|
|
77
77
|
/** The default Hub panel's rows the person may not open (0.3.13). */
|
|
78
78
|
hubLocked: Record<string, string>;
|
|
79
|
+
/** The rows the acting company opens in the Hub (companyHubRows, 0.4.15). */
|
|
80
|
+
hubRows: string[];
|
|
79
81
|
admin: boolean;
|
|
80
82
|
tenantSlug: string | null;
|
|
81
83
|
};
|
package/dist/coreView.js
CHANGED
|
@@ -34,7 +34,7 @@ import { followOsPerson } from "./contextCache.js";
|
|
|
34
34
|
import { createCoreViewClient, hubSession } from "./coreReader.js";
|
|
35
35
|
import { OsFeedbackButton } from "./feedback.js";
|
|
36
36
|
import { myAdminScope } from "./identity.js";
|
|
37
|
-
import { catalogueLinks, hubPanelLocks, staticLinks, withItemLocks } from "./nav.js";
|
|
37
|
+
import { catalogueLinks, companyHubRows, hubPanelLocks, staticLinks, withItemLocks } from "./nav.js";
|
|
38
38
|
import { useOsPlate } from "./plate.js";
|
|
39
39
|
export { CORE_VIEW_FUNCTIONS, createCoreViewClient, hubSession, } from "./coreReader.js";
|
|
40
40
|
/** How often a page that stays open looks at the shared cookie again, besides focus and coming back into view. */
|
|
@@ -128,15 +128,16 @@ export function useCoreFrame({ appKey, email, fallback, companySwitch = "os", fe
|
|
|
128
128
|
const slug = current?.slug ?? null;
|
|
129
129
|
const frameOptions = useMemo(() => {
|
|
130
130
|
if (source === "static") {
|
|
131
|
-
return { links: staticLinks(fallback.tenantSlug), locked: {}, hubLocked: {}, admin: false, tenantSlug: fallback.tenantSlug };
|
|
131
|
+
return { links: staticLinks(fallback.tenantSlug), locked: {}, hubLocked: {}, hubRows: [], admin: false, tenantSlug: fallback.tenantSlug };
|
|
132
132
|
}
|
|
133
133
|
/* "checking": apps is null, so nothing is linked and other apps' rows read as being checked.
|
|
134
134
|
The core's items then lock every row the person may not open (0.3.13). */
|
|
135
135
|
const items = source === "core" ? context?.items : undefined;
|
|
136
136
|
const { links, locked } = withItemLocks(catalogueLinks(source === "core" ? apps ?? null : null, source === "core" ? slug : null), items);
|
|
137
|
+
const tenantSlug = source === "core" ? slug : null;
|
|
137
138
|
return {
|
|
138
|
-
links, locked, hubLocked: hubPanelLocks(items),
|
|
139
|
-
admin: source === "core" && manages, tenantSlug
|
|
139
|
+
links, locked, hubLocked: hubPanelLocks(items, tenantSlug), hubRows: companyHubRows(tenantSlug, items),
|
|
140
|
+
admin: source === "core" && manages, tenantSlug,
|
|
140
141
|
};
|
|
141
142
|
}, [source, apps, context?.items, slug, manages, fallback.tenantSlug]);
|
|
142
143
|
const staticPlate = useMemo(() => ({
|
package/dist/frame.js
CHANGED
|
@@ -32,7 +32,7 @@ import { osAccessToken } from "./client.js";
|
|
|
32
32
|
import { retryOsContext, watchOsAuth } from "./context.js";
|
|
33
33
|
import { OsFeedbackButton } from "./feedback.js";
|
|
34
34
|
import { myAdminScope } from "./identity.js";
|
|
35
|
-
import { catalogueLinks, hubPanelLocks, osFrame, withItemLocks } from "./nav.js";
|
|
35
|
+
import { catalogueLinks, companyHubRows, hubPanelLocks, osFrame, withItemLocks } from "./nav.js";
|
|
36
36
|
import { useOsPlate } from "./plate.js";
|
|
37
37
|
import { useMenuSearch } from "./search.js";
|
|
38
38
|
/* This app's own rows and tabs as links to their paths. Rows for other apps
|
|
@@ -107,8 +107,10 @@ export function OsWorkspaceFrame({ os, auth, appKey, tools, hubItems, location,
|
|
|
107
107
|
const { links, locked } = withItemLocks(catalogueLinks(apps ?? null, slug), items);
|
|
108
108
|
return osFrame({
|
|
109
109
|
appKey, links, locked, admin: admin ?? manages, tenantSlug: slug,
|
|
110
|
+
/* The rows the acting company opens in the Hub (0.4.15), the same in every app. */
|
|
111
|
+
hubRows: companyHubRows(slug, items),
|
|
110
112
|
...(tools ? { tools } : {}),
|
|
111
|
-
...(hubItems ? { hubItems } : { hubLocked: hubPanelLocks(items) }),
|
|
113
|
+
...(hubItems ? { hubItems } : { hubLocked: hubPanelLocks(items, slug) }),
|
|
112
114
|
...(homePath ? { homePath } : {}),
|
|
113
115
|
});
|
|
114
116
|
}, [appKey, apps, items, admin, manages, slug, tools, hubItems, homePath]);
|
package/dist/nav.d.ts
CHANGED
|
@@ -391,19 +391,53 @@ export declare function withItemLocks(base: {
|
|
|
391
391
|
links: Record<string, string>;
|
|
392
392
|
locked: Record<string, string>;
|
|
393
393
|
};
|
|
394
|
+
/**
|
|
395
|
+
* Rows that one company opens in the Hub, whatever their app says (0.4.15),
|
|
396
|
+
* and the item a person needs there for it: company slug, then row id, then
|
|
397
|
+
* item. Every frame applies them alike (OsWorkspaceFrame and useCoreFrame
|
|
398
|
+
* pass `hubRows`), so a row is open or locked the same way in every app.
|
|
399
|
+
*
|
|
400
|
+
* TEMP-ALIVE-SALES (Didac, 12 November 2026): al.ive has no Ops Hub and no
|
|
401
|
+
* NetSuite yet, so Commercial > Reporting > Sales by channel (Ops Hub's row)
|
|
402
|
+
* opens the Hub's temporary al.ive sales view (/os/commercial/sales) for
|
|
403
|
+
* someone acting in al.ive who holds Finance > Gross margin by channel there.
|
|
404
|
+
* The core checks the same item before it answers (alive_temp_read). Until
|
|
405
|
+
* 0.4.15 only the Hub did this (Hub PR #112, its own `tools`), so in every
|
|
406
|
+
* other app the row stayed greyed. Remove the entry with the rest of
|
|
407
|
+
* TEMP-ALIVE-SALES (core RUNBOOK, "al.ive sales by channel, temporary").
|
|
408
|
+
*/
|
|
409
|
+
export declare const OS_COMPANY_HUB_ROWS: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
410
|
+
/**
|
|
411
|
+
* The rows that open their page in the Hub for this person in this company
|
|
412
|
+
* (OS_COMPANY_HUB_ROWS), for osFrame's `hubRows`. None until the core has
|
|
413
|
+
* answered with the person's items, and none for an item they do not hold.
|
|
414
|
+
*/
|
|
415
|
+
export declare function companyHubRows(tenantSlug: string | null | undefined, items: Readonly<Record<string, string>> | null | undefined): string[];
|
|
394
416
|
/**
|
|
395
417
|
* The Hub panel's rows and the item each needs (0.3.13): the seven Smart Comms
|
|
396
|
-
* views share Smart Comms Hub
|
|
397
|
-
* (everyone's settings) needs none.
|
|
418
|
+
* views share Smart Comms Hub and each tool has its own.
|
|
398
419
|
*/
|
|
399
420
|
export declare const OS_HUB_ROW_ITEMS: Readonly<Record<string, string>>;
|
|
421
|
+
/**
|
|
422
|
+
* Hub panel rows that serve one company only, and what a locked row says
|
|
423
|
+
* elsewhere. None since 0.4.16: the Signature Generator (Frank Body only in
|
|
424
|
+
* 0.4.15) is open in every company (Didac, 16 Nov 2026: "this one should now
|
|
425
|
+
* open for everyone, as default"), so a locked row says "Ask an AutoSolutions
|
|
426
|
+
* OS admin..." everywhere, as in the Hub.
|
|
427
|
+
*/
|
|
428
|
+
export declare const OS_HUB_ROW_COMPANY: Readonly<Record<string, {
|
|
429
|
+
company: string;
|
|
430
|
+
hint: string;
|
|
431
|
+
}>>;
|
|
400
432
|
/**
|
|
401
433
|
* The rows of the default Hub panel (OS_HUB_MENU) a person may not open, by
|
|
402
434
|
* row id (0.3.13), for osFrame's `hubLocked`. As itemLocks: nothing while
|
|
403
|
-
* the core has not answered or has no items.
|
|
404
|
-
* (
|
|
435
|
+
* the core has not answered or has no items. Given the acting company's slug
|
|
436
|
+
* (0.4.15), a one-company row (OS_HUB_ROW_COMPANY) outside that company says
|
|
437
|
+
* so. The Hub passes its own panel (`hubItems`) and decides these itself, by
|
|
438
|
+
* the same rule.
|
|
405
439
|
*/
|
|
406
|
-
export declare function hubPanelLocks(items: Readonly<Record<string, string>> | null | undefined): Record<string, string>;
|
|
440
|
+
export declare function hubPanelLocks(items: Readonly<Record<string, string>> | null | undefined, tenantSlug?: string | null): Record<string, string>;
|
|
407
441
|
/** A route inside this app. `path` may carry a query, e.g. "/launcher?section=signature". */
|
|
408
442
|
export type OsRoute = {
|
|
409
443
|
/** Where a click goes. */
|
|
@@ -453,11 +487,18 @@ export type OsHubSection = {
|
|
|
453
487
|
items: OsHubItem[];
|
|
454
488
|
};
|
|
455
489
|
/**
|
|
456
|
-
* The Hub's panel (0.3.0), the design's: Smart Comms Hub, its
|
|
490
|
+
* The Hub's panel (0.3.0), the design's: Smart Comms Hub, its seven views,
|
|
457
491
|
* then Tools (the owner's name since 0.3.9; Assistants before). Every app
|
|
458
492
|
* shows it when the rail's Hub is selected, each row a link to its page in
|
|
459
493
|
* the Hub (in the Hub, its own route). The Hub may pass rows of its own
|
|
460
494
|
* instead (`hubItems`), to lock the tools it gates.
|
|
495
|
+
*
|
|
496
|
+
* Since 0.4.15 (Didac, 13 November 2026: "it's enough having it only on the
|
|
497
|
+
* left side") there is no Configuration row: the rail's Settings opens
|
|
498
|
+
* /comms/settings in every app. Overview has no "/comms" match either, so in
|
|
499
|
+
* the Hub the Settings page sits on the Hub with the menu closed, like Admin.
|
|
500
|
+
* The Hub had dropped both on its own (Hub PR #119); now every app shows the
|
|
501
|
+
* same panel.
|
|
461
502
|
*/
|
|
462
503
|
export declare const OS_HUB_MENU: OsHubSection[];
|
|
463
504
|
/** A menu row as osFrame hands it to WorkspaceFrame. */
|
|
@@ -523,6 +564,12 @@ export type OsFrameOptions = {
|
|
|
523
564
|
links?: Record<string, string>;
|
|
524
565
|
/** Tool id to the reason its row is off (catalogueLinks): wins over the tool's page in the Hub. */
|
|
525
566
|
locked?: Record<string, string>;
|
|
567
|
+
/**
|
|
568
|
+
* Tool ids whose row opens its page in the Hub whatever `links` and
|
|
569
|
+
* `locked` say (companyHubRows, 0.4.15): in the Hub its own route, elsewhere
|
|
570
|
+
* a link to the Hub. This app's own tools still come first.
|
|
571
|
+
*/
|
|
572
|
+
hubRows?: readonly string[];
|
|
526
573
|
/** Show Admin in the footer. */
|
|
527
574
|
admin?: boolean;
|
|
528
575
|
/**
|
package/dist/nav.js
CHANGED
|
@@ -617,10 +617,40 @@ export function withItemLocks(base, items) {
|
|
|
617
617
|
}
|
|
618
618
|
return { links, locked };
|
|
619
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* Rows that one company opens in the Hub, whatever their app says (0.4.15),
|
|
622
|
+
* and the item a person needs there for it: company slug, then row id, then
|
|
623
|
+
* item. Every frame applies them alike (OsWorkspaceFrame and useCoreFrame
|
|
624
|
+
* pass `hubRows`), so a row is open or locked the same way in every app.
|
|
625
|
+
*
|
|
626
|
+
* TEMP-ALIVE-SALES (Didac, 12 November 2026): al.ive has no Ops Hub and no
|
|
627
|
+
* NetSuite yet, so Commercial > Reporting > Sales by channel (Ops Hub's row)
|
|
628
|
+
* opens the Hub's temporary al.ive sales view (/os/commercial/sales) for
|
|
629
|
+
* someone acting in al.ive who holds Finance > Gross margin by channel there.
|
|
630
|
+
* The core checks the same item before it answers (alive_temp_read). Until
|
|
631
|
+
* 0.4.15 only the Hub did this (Hub PR #112, its own `tools`), so in every
|
|
632
|
+
* other app the row stayed greyed. Remove the entry with the rest of
|
|
633
|
+
* TEMP-ALIVE-SALES (core RUNBOOK, "al.ive sales by channel, temporary").
|
|
634
|
+
*/
|
|
635
|
+
export const OS_COMPANY_HUB_ROWS = {
|
|
636
|
+
alive: { sales: "margin-by-channel" }, // TEMP-ALIVE-SALES
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* The rows that open their page in the Hub for this person in this company
|
|
640
|
+
* (OS_COMPANY_HUB_ROWS), for osFrame's `hubRows`. None until the core has
|
|
641
|
+
* answered with the person's items, and none for an item they do not hold.
|
|
642
|
+
*/
|
|
643
|
+
export function companyHubRows(tenantSlug, items) {
|
|
644
|
+
if (!tenantSlug || !items)
|
|
645
|
+
return [];
|
|
646
|
+
const rows = Object.prototype.hasOwnProperty.call(OS_COMPANY_HUB_ROWS, tenantSlug) ? OS_COMPANY_HUB_ROWS[tenantSlug] : {};
|
|
647
|
+
return Object.entries(rows)
|
|
648
|
+
.filter(([, item]) => Object.prototype.hasOwnProperty.call(items, item))
|
|
649
|
+
.map(([row]) => row);
|
|
650
|
+
}
|
|
620
651
|
/**
|
|
621
652
|
* The Hub panel's rows and the item each needs (0.3.13): the seven Smart Comms
|
|
622
|
-
* views share Smart Comms Hub
|
|
623
|
-
* (everyone's settings) needs none.
|
|
653
|
+
* views share Smart Comms Hub and each tool has its own.
|
|
624
654
|
*/
|
|
625
655
|
export const OS_HUB_ROW_ITEMS = {
|
|
626
656
|
overview: "hub-comms",
|
|
@@ -633,39 +663,57 @@ export const OS_HUB_ROW_ITEMS = {
|
|
|
633
663
|
agent: "hub-agent",
|
|
634
664
|
signature: "hub-signature",
|
|
635
665
|
};
|
|
666
|
+
/**
|
|
667
|
+
* Hub panel rows that serve one company only, and what a locked row says
|
|
668
|
+
* elsewhere. None since 0.4.16: the Signature Generator (Frank Body only in
|
|
669
|
+
* 0.4.15) is open in every company (Didac, 16 Nov 2026: "this one should now
|
|
670
|
+
* open for everyone, as default"), so a locked row says "Ask an AutoSolutions
|
|
671
|
+
* OS admin..." everywhere, as in the Hub.
|
|
672
|
+
*/
|
|
673
|
+
export const OS_HUB_ROW_COMPANY = {};
|
|
636
674
|
/**
|
|
637
675
|
* The rows of the default Hub panel (OS_HUB_MENU) a person may not open, by
|
|
638
676
|
* row id (0.3.13), for osFrame's `hubLocked`. As itemLocks: nothing while
|
|
639
|
-
* the core has not answered or has no items.
|
|
640
|
-
* (
|
|
677
|
+
* the core has not answered or has no items. Given the acting company's slug
|
|
678
|
+
* (0.4.15), a one-company row (OS_HUB_ROW_COMPANY) outside that company says
|
|
679
|
+
* so. The Hub passes its own panel (`hubItems`) and decides these itself, by
|
|
680
|
+
* the same rule.
|
|
641
681
|
*/
|
|
642
|
-
export function hubPanelLocks(items) {
|
|
682
|
+
export function hubPanelLocks(items, tenantSlug) {
|
|
643
683
|
const out = {};
|
|
644
684
|
if (!items)
|
|
645
685
|
return out;
|
|
646
686
|
for (const [row, item] of Object.entries(OS_HUB_ROW_ITEMS)) {
|
|
647
|
-
if (
|
|
648
|
-
|
|
687
|
+
if (Object.prototype.hasOwnProperty.call(items, item))
|
|
688
|
+
continue;
|
|
689
|
+
const only = Object.prototype.hasOwnProperty.call(OS_HUB_ROW_COMPANY, row) ? OS_HUB_ROW_COMPANY[row] : undefined;
|
|
690
|
+
out[row] = only && tenantSlug && tenantSlug !== only.company ? only.hint : HINTS.locked;
|
|
649
691
|
}
|
|
650
692
|
return out;
|
|
651
693
|
}
|
|
652
694
|
/**
|
|
653
|
-
* The Hub's panel (0.3.0), the design's: Smart Comms Hub, its
|
|
695
|
+
* The Hub's panel (0.3.0), the design's: Smart Comms Hub, its seven views,
|
|
654
696
|
* then Tools (the owner's name since 0.3.9; Assistants before). Every app
|
|
655
697
|
* shows it when the rail's Hub is selected, each row a link to its page in
|
|
656
698
|
* the Hub (in the Hub, its own route). The Hub may pass rows of its own
|
|
657
699
|
* instead (`hubItems`), to lock the tools it gates.
|
|
700
|
+
*
|
|
701
|
+
* Since 0.4.15 (Didac, 13 November 2026: "it's enough having it only on the
|
|
702
|
+
* left side") there is no Configuration row: the rail's Settings opens
|
|
703
|
+
* /comms/settings in every app. Overview has no "/comms" match either, so in
|
|
704
|
+
* the Hub the Settings page sits on the Hub with the menu closed, like Admin.
|
|
705
|
+
* The Hub had dropped both on its own (Hub PR #119); now every app shows the
|
|
706
|
+
* same panel.
|
|
658
707
|
*/
|
|
659
708
|
export const OS_HUB_MENU = [
|
|
660
709
|
{ title: "Smart Comms Hub", items: [
|
|
661
|
-
{ id: "overview", label: "Overview", icon: "hub-overview", path: "/comms/overview"
|
|
710
|
+
{ id: "overview", label: "Overview", icon: "hub-overview", path: "/comms/overview" },
|
|
662
711
|
{ id: "inbox", label: "Inbox", icon: "hub-inbox", path: "/comms/inbox" },
|
|
663
712
|
{ id: "calendar", label: "Calendar", icon: "hub-calendar", path: "/comms/calendar" },
|
|
664
713
|
{ id: "tasks", label: "Tasks", icon: "hub-tasks", path: "/comms/tasks" },
|
|
665
714
|
{ id: "slack", label: "Slack", icon: "hub-slack", path: "/comms/slack" },
|
|
666
715
|
{ id: "monday", label: "Monday", icon: "hub-monday", path: "/comms/monday" },
|
|
667
716
|
{ id: "accounts", label: "Accounts", icon: "hub-accounts", path: "/comms/accounts" },
|
|
668
|
-
{ id: "configuration", label: "Configuration", icon: "hub-configuration", path: "/comms/settings" },
|
|
669
717
|
] },
|
|
670
718
|
{ title: "Tools", items: [
|
|
671
719
|
{ id: "agent", label: "Unmarked Agent", icon: "agent", path: "/comms/agent" },
|
|
@@ -746,6 +794,7 @@ function best(routes, location, exact = false) {
|
|
|
746
794
|
*/
|
|
747
795
|
export function osFrame(options) {
|
|
748
796
|
const { appKey, tools = [], hubItems, hubLocked = {}, admin = false, hubUrl = HUB_URL, tenantSlug = null, } = options;
|
|
797
|
+
const hubRows = new Set((options.hubRows ?? []).map(osToolId));
|
|
749
798
|
const links = underMenuIds(options.links ?? {});
|
|
750
799
|
const locked = underMenuIds(options.locked ?? {});
|
|
751
800
|
const isHub = appKey === "hub";
|
|
@@ -787,6 +836,11 @@ export function osFrame(options) {
|
|
|
787
836
|
/* Its page in the Hub, which in the Hub also places a location there
|
|
788
837
|
on this row when the row itself opens an app. */
|
|
789
838
|
const page = osHubPath(fn, entry.overview ? null : entry.id);
|
|
839
|
+
/* A row the acting company opens in the Hub (0.4.15, companyHubRows):
|
|
840
|
+
its page there, before links and locks, with the mark of a page
|
|
841
|
+
that serves the tool (the Hub's own page for it, not a sample). */
|
|
842
|
+
if (hubRows.has(entry.id))
|
|
843
|
+
return marked(inHub(base, page), entry.id, osDataStatus(entry.id, "app"));
|
|
790
844
|
/* A link or a reason from the catalogue comes first: the catalogue
|
|
791
845
|
knows what this person holds. */
|
|
792
846
|
const href = links[entry.id];
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
|
|
2
|
-
export declare const OS_VERSION = "0.4.
|
|
2
|
+
export declare const OS_VERSION = "0.4.16";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
|
|
2
|
-
export const OS_VERSION = "0.4.
|
|
2
|
+
export const OS_VERSION = "0.4.16";
|
package/package.json
CHANGED