autosolutions-os 0.4.4 → 0.4.6
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 +29 -0
- package/README.md +3 -3
- package/dist/chrome.js +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.js +4 -4
- package/dist/nav.d.ts +11 -4
- package/dist/nav.js +14 -5
- 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,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.6 - 2026-11-09
|
|
4
|
+
|
|
5
|
+
Commercial > Trade marketing calendar now opens the Marketing Calendar's Trade
|
|
6
|
+
page (Didac, 9 November 2026: "trade marketing calendar, its basically the
|
|
7
|
+
marketing calendar, but only shows retail launches and promos, nothing else").
|
|
8
|
+
|
|
9
|
+
- `OS_TOOL_LINKS` has `trade-marketing-calendar`: the app `content_calendar`,
|
|
10
|
+
path `/trade`. People who hold the Marketing Calendar get the row, as a link
|
|
11
|
+
to `<app url>/trade?tenant=<slug>`. Others see it locked, as for the
|
|
12
|
+
Marketing calendar row.
|
|
13
|
+
- It is the same app, so it has no switch of its own. Holding the Marketing
|
|
14
|
+
Calendar holds it, with the same Member and Admin levels. The matching core
|
|
15
|
+
migration (`hub_permissions_trade_marketing_calendar`) makes the row
|
|
16
|
+
`access_via 'app'`.
|
|
17
|
+
- The row's status was "To build" and is now "No status", like the Marketing
|
|
18
|
+
calendar row. It has no mark, as its page is the app's.
|
|
19
|
+
|
|
20
|
+
## 0.4.5 - 2026-11-06
|
|
21
|
+
|
|
22
|
+
There are no company admins any more, only AutoSolutions OS admins (Didac,
|
|
23
|
+
6 November 2026), so the package no longer sends people to one.
|
|
24
|
+
|
|
25
|
+
- The grey hint on a locked menu row now reads "Ask an AutoSolutions OS admin to
|
|
26
|
+
switch this on for you" (`HINTS.locked`). It said "Ask your company admin".
|
|
27
|
+
- `OsAuthGate` and the app list name an AutoSolutions OS admin too, in the words
|
|
28
|
+
the Hub uses since its one-page Admin. The gate's "This company does not have
|
|
29
|
+
this app" now reads "This app is not switched on for you in this company", as
|
|
30
|
+
access is given person by person.
|
|
31
|
+
|
|
3
32
|
## 0.4.4 - 2026-11-06
|
|
4
33
|
|
|
5
34
|
The Feedback button on every page (Didac, 6 November 2026: "I want the new
|
package/README.md
CHANGED
|
@@ -138,8 +138,8 @@ of its own passes it: `search={{ placeholder: "Search", value: query, onChange:
|
|
|
138
138
|
Since 0.3.13 the frame greys every row the person may not open: the core's
|
|
139
139
|
`os_context()` returns `items`, the items of the menu they hold in the acting
|
|
140
140
|
company (the Hub's permissions: View for a dashboard, Member or Admin for a
|
|
141
|
-
tool), and every row it does not name is locked with "Ask
|
|
142
|
-
to switch this on for you", even when its app is held (Ops Hub serves fourteen
|
|
141
|
+
tool), and every row it does not name is locked with "Ask an AutoSolutions OS
|
|
142
|
+
admin to switch this on for you", even when its app is held (Ops Hub serves fourteen
|
|
143
143
|
rows since 0.3.14). Until the core answers, and with a core without `items`,
|
|
144
144
|
nothing new is locked (the pages and the server check again). `itemLocks(items)` and
|
|
145
145
|
`withItemLocks(catalogueLinks(...), items)` (`autosolutions-os/nav`) do the
|
|
@@ -194,7 +194,7 @@ why).
|
|
|
194
194
|
- held, with an address: the tool goes there (plus its `path`) with
|
|
195
195
|
`?tenant=`;
|
|
196
196
|
- held, not deployed yet: its page in the Hub (below);
|
|
197
|
-
- not held: locked ("Ask
|
|
197
|
+
- not held: locked ("Ask an AutoSolutions OS admin to switch this on for you"),
|
|
198
198
|
the one way a row is locked.
|
|
199
199
|
Every tool with no app of its own, and every Overview, opens its page in the
|
|
200
200
|
Hub (0.3.0): `/os/<function>` for an Overview, `/os/<function>/<tool>` for a
|
package/dist/chrome.js
CHANGED
|
@@ -55,7 +55,7 @@ export function OsAppSwitcher({ os, appKey, variant = "menu", onOpen }) {
|
|
|
55
55
|
const tenantSlug = context.tenant?.slug ?? null;
|
|
56
56
|
const columns = groupApps(context.apps);
|
|
57
57
|
if (columns.length === 0) {
|
|
58
|
-
return (_jsx("p", { className: "os-empty", children: "You are not entitled to any apps in this workspace. Ask
|
|
58
|
+
return (_jsx("p", { className: "os-empty", children: "You are not entitled to any apps in this workspace. Ask an AutoSolutions OS admin." }));
|
|
59
59
|
}
|
|
60
60
|
return (_jsxs("div", { className: "os-cols" + (variant === "menu" ? " os-cols--menu" : ""), children: [columns.map((column) => (_jsxs("div", { children: [_jsx("div", { className: "os-grp", children: column.group }), column.sections.map((section, index) => (_jsxs("div", { children: [section.title ? _jsx("div", { className: "os-sec", children: section.title }) : null, section.apps.map((app) => (_jsx(AppPlate, { app: app, tenantSlug: tenantSlug, current: app.key === appKey, onOpen: onOpen }, app.key)))] }, section.title ?? `section-${index}`)))] }, column.group))), _jsxs("div", { children: [_jsx("div", { className: "os-grp", children: "\u00A0" }), _jsx(AppPlate, { app: {
|
|
61
61
|
key: "hub", name: "Hub", iconUrl: null, url: HUB_URL, sortOrder: 0,
|
package/dist/gate.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* It answers four questions in order, and each has one honest screen:
|
|
5
5
|
* is the session still arriving? → nothing, briefly
|
|
6
6
|
* is anyone signed in? → sign in with Google
|
|
7
|
-
* do they belong to a company? → ask
|
|
8
|
-
* does this company hold this app? → ask
|
|
7
|
+
* do they belong to a company? → ask an OS admin
|
|
8
|
+
* does this company hold this app? → ask an OS admin
|
|
9
9
|
*
|
|
10
10
|
* It fails closed. If the core cannot be reached, nobody gets in, because the
|
|
11
11
|
* alternative, showing the app and letting row-level security return empty
|
package/dist/gate.js
CHANGED
|
@@ -5,8 +5,8 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
* It answers four questions in order, and each has one honest screen:
|
|
6
6
|
* is the session still arriving? → nothing, briefly
|
|
7
7
|
* is anyone signed in? → sign in with Google
|
|
8
|
-
* do they belong to a company? → ask
|
|
9
|
-
* does this company hold this app? → ask
|
|
8
|
+
* do they belong to a company? → ask an OS admin
|
|
9
|
+
* does this company hold this app? → ask an OS admin
|
|
10
10
|
*
|
|
11
11
|
* It fails closed. If the core cannot be reached, nobody gets in, because the
|
|
12
12
|
* alternative, showing the app and letting row-level security return empty
|
|
@@ -132,6 +132,6 @@ export function OsAuthGate({ os, auth, appKey, children, extraCheck, renderSigne
|
|
|
132
132
|
if (renderDenied)
|
|
133
133
|
return _jsx(_Fragment, { children: renderDenied(signOut) });
|
|
134
134
|
return (_jsx("div", { className: "os-gate", children: _jsxs("div", { className: "os-gate__card", children: [_jsx("h1", { className: "os-gate__title", children: phase === "no-company" ? "No workspace yet" : "No access yet" }), _jsx("p", { className: "os-gate__body", children: phase === "no-company"
|
|
135
|
-
? "Your account is not part of a company yet. Ask
|
|
136
|
-
: "This
|
|
135
|
+
? "Your account is not part of a company yet. Ask an AutoSolutions OS admin to add you."
|
|
136
|
+
: "This app is not switched on for you in this company. Ask an AutoSolutions OS admin for access." }), _jsx("button", { type: "button", className: "os-gate__link", onClick: signOut, children: "Use a different account" })] }) }));
|
|
137
137
|
}
|
package/dist/nav.d.ts
CHANGED
|
@@ -205,6 +205,13 @@ export type OsToolLink = {
|
|
|
205
205
|
* view the map gives it (Accuracy, By item, Forecast vs actual), so it is not
|
|
206
206
|
* in OS_TOOL_DATA: no mark. Ops Hub's own menu had it already (its
|
|
207
207
|
* ADOPTED_TOOLS).
|
|
208
|
+
*
|
|
209
|
+
* Since 0.4.6 (Didac, 9 November 2026: "trade marketing calendar, its
|
|
210
|
+
* basically the marketing calendar, but only shows retail launches and
|
|
211
|
+
* promos, nothing else"): Commercial > Trade marketing calendar opens the
|
|
212
|
+
* Marketing Calendar's Trade view (/trade), the retail launches and promos
|
|
213
|
+
* only. It is the same app, so holding the Marketing Calendar holds it, with
|
|
214
|
+
* the same Member and Admin levels. There is no separate switch.
|
|
208
215
|
*/
|
|
209
216
|
export declare const OS_TOOL_LINKS: Record<string, OsToolLink>;
|
|
210
217
|
/** The Hub's own pages, for the rail's Hub, Admin and Settings rows in other apps. */
|
|
@@ -221,7 +228,7 @@ export declare const HUB_PATHS: {
|
|
|
221
228
|
* longer drawn by the frame, and stay for code that reads them.
|
|
222
229
|
*/
|
|
223
230
|
export declare const HINTS: {
|
|
224
|
-
readonly locked: "Ask
|
|
231
|
+
readonly locked: "Ask an AutoSolutions OS admin to switch this on for you";
|
|
225
232
|
readonly notBuilt: "Not built yet";
|
|
226
233
|
readonly notLinked: "Live, not linked from the Hub yet";
|
|
227
234
|
readonly checking: "Checking your access…";
|
|
@@ -329,7 +336,7 @@ export declare function staticLinks(tenantSlug?: string | null): Record<string,
|
|
|
329
336
|
* ?tenant=, because the switcher already offers that app;
|
|
330
337
|
* - held, not deployed yet (no address): neither, so the frame opens the
|
|
331
338
|
* tool's page in the Hub, as it does for a tool with no app;
|
|
332
|
-
* - not held: locked ("Ask
|
|
339
|
+
* - not held: locked ("Ask an AutoSolutions OS admin to switch this on for you").
|
|
333
340
|
* A fixed `url` is never consulted here: it is no way round the catalogue.
|
|
334
341
|
* Tools with no app open their page in the Hub (osFrame). Links are final:
|
|
335
342
|
* osFrame adds nothing to them.
|
|
@@ -350,8 +357,8 @@ export declare function catalogueLinks(apps: ReadonlyArray<{
|
|
|
350
357
|
* permissions (migration hub_permissions, 4 Nov 2026) os_context().items
|
|
351
358
|
* names every item of the map the person holds in the acting company, a
|
|
352
359
|
* dashboard or a tool, whatever serves it; every row it does not name is
|
|
353
|
-
* locked, sample pages and Finance included, with "Ask
|
|
354
|
-
* switch this on for you". Until the core has answered (`null`, or a read
|
|
360
|
+
* locked, sample pages and Finance included, with "Ask an AutoSolutions OS
|
|
361
|
+
* admin to switch this on for you". Until the core has answered (`null`, or a read
|
|
355
362
|
* that failed and is being asked again), and from a core older than the
|
|
356
363
|
* permissions (`undefined`), nothing is locked here: the rows stay as they
|
|
357
364
|
* were before 0.3.13, the catalogue's own "Checking your access…" rows
|
package/dist/nav.js
CHANGED
|
@@ -146,7 +146,7 @@ export const OS_MENU = {
|
|
|
146
146
|
tool("crm", "CRM", "com-crm", "Live"),
|
|
147
147
|
tool("customer-scorecard", "Customer scorecard", "com-customer-scorecard", "No status"),
|
|
148
148
|
tool("margin-calculator", "Margin calculator", "com-margin-calculator", "In progress"),
|
|
149
|
-
tool("trade-marketing-calendar", "Trade marketing calendar", "com-trade-marketing-calendar", "
|
|
149
|
+
tool("trade-marketing-calendar", "Trade marketing calendar", "com-trade-marketing-calendar", "No status"),
|
|
150
150
|
// The owner's sheet's Line form populator is our Key Accounts app (0.4.1, owner's yes of
|
|
151
151
|
// 4 Nov 2026): one row, under the app's id key-accounts, so its link and permissions stay.
|
|
152
152
|
tool("key-accounts", "Line form populator", "com-line-form-populator", "Live"),
|
|
@@ -275,11 +275,20 @@ const opsHub = (path) => ({ app: "ops_hub", url: OPS_HUB, path });
|
|
|
275
275
|
* view the map gives it (Accuracy, By item, Forecast vs actual), so it is not
|
|
276
276
|
* in OS_TOOL_DATA: no mark. Ops Hub's own menu had it already (its
|
|
277
277
|
* ADOPTED_TOOLS).
|
|
278
|
+
*
|
|
279
|
+
* Since 0.4.6 (Didac, 9 November 2026: "trade marketing calendar, its
|
|
280
|
+
* basically the marketing calendar, but only shows retail launches and
|
|
281
|
+
* promos, nothing else"): Commercial > Trade marketing calendar opens the
|
|
282
|
+
* Marketing Calendar's Trade view (/trade), the retail launches and promos
|
|
283
|
+
* only. It is the same app, so holding the Marketing Calendar holds it, with
|
|
284
|
+
* the same Member and Admin levels. There is no separate switch.
|
|
278
285
|
*/
|
|
279
286
|
export const OS_TOOL_LINKS = {
|
|
280
287
|
"live-ecomm-sales": { app: "alive_reporting", url: "https://e-sales.autosolutions.app" },
|
|
281
288
|
"paid-media": { app: "ad_management" },
|
|
282
289
|
"marketing-calendar": { app: "content_calendar" },
|
|
290
|
+
/* The Marketing Calendar's Trade view (0.4.6): retail launches and promos only. */
|
|
291
|
+
"trade-marketing-calendar": { app: "content_calendar", path: "/trade" },
|
|
283
292
|
"franks-kitchen": { app: "frank_kitchen" },
|
|
284
293
|
"npd-validator": { app: "product_idea_validator" },
|
|
285
294
|
"pricing-researcher": {},
|
|
@@ -325,7 +334,7 @@ export const HUB_PATHS = {
|
|
|
325
334
|
* longer drawn by the frame, and stay for code that reads them.
|
|
326
335
|
*/
|
|
327
336
|
export const HINTS = {
|
|
328
|
-
locked: "Ask
|
|
337
|
+
locked: "Ask an AutoSolutions OS admin to switch this on for you",
|
|
329
338
|
notBuilt: "Not built yet",
|
|
330
339
|
notLinked: "Live, not linked from the Hub yet",
|
|
331
340
|
checking: "Checking your access…",
|
|
@@ -472,7 +481,7 @@ export function staticLinks(tenantSlug = null) {
|
|
|
472
481
|
* ?tenant=, because the switcher already offers that app;
|
|
473
482
|
* - held, not deployed yet (no address): neither, so the frame opens the
|
|
474
483
|
* tool's page in the Hub, as it does for a tool with no app;
|
|
475
|
-
* - not held: locked ("Ask
|
|
484
|
+
* - not held: locked ("Ask an AutoSolutions OS admin to switch this on for you").
|
|
476
485
|
* A fixed `url` is never consulted here: it is no way round the catalogue.
|
|
477
486
|
* Tools with no app open their page in the Hub (osFrame). Links are final:
|
|
478
487
|
* osFrame adds nothing to them.
|
|
@@ -504,8 +513,8 @@ export function catalogueLinks(apps, tenantSlug = null) {
|
|
|
504
513
|
* permissions (migration hub_permissions, 4 Nov 2026) os_context().items
|
|
505
514
|
* names every item of the map the person holds in the acting company, a
|
|
506
515
|
* dashboard or a tool, whatever serves it; every row it does not name is
|
|
507
|
-
* locked, sample pages and Finance included, with "Ask
|
|
508
|
-
* switch this on for you". Until the core has answered (`null`, or a read
|
|
516
|
+
* locked, sample pages and Finance included, with "Ask an AutoSolutions OS
|
|
517
|
+
* admin to switch this on for you". Until the core has answered (`null`, or a read
|
|
509
518
|
* that failed and is being asked again), and from a core older than the
|
|
510
519
|
* permissions (`undefined`), nothing is locked here: the rows stay as they
|
|
511
520
|
* were before 0.3.13, the catalogue's own "Checking your access…" rows
|
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.6";
|
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.6";
|
package/package.json
CHANGED