autosolutions-os 0.3.2 → 0.3.3

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 CHANGED
@@ -1,5 +1,55 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.3 - 2026-10-18
4
+
5
+ The owner's three calls of 18 October. Every app takes them with a lockfile
6
+ bump: no code changes.
7
+
8
+ ### Marketing has an Overview
9
+
10
+ - `OS_MENU.marketing` starts with an Overview row (`marketing-home`), exactly
11
+ like Finance, Commercial and Operations: the same label, glyph and group
12
+ with no title. Cliff's map draws none for Marketing; the owner asked for it
13
+ ("be sure it's added everywhere in all apps, exactly the same").
14
+ - Its page in the Hub is `/os/marketing` (`osHubPath("marketing")`), the
15
+ Hub's Marketing hub sample, so the row is marked " (*)" in every app.
16
+
17
+ ### Operations' Overview opens Ops Hub
18
+
19
+ - `OS_TOOL_LINKS["operations-home"]` is Ops Hub's home dashboard
20
+ (`{ app: "ops_hub", url: "https://ops-hub.autosolutions.app", path: "/" }`),
21
+ in every app, instead of the Hub's Operations hub sample page. Someone who
22
+ holds Ops Hub goes there, with the company as `?tenant=`; for someone who
23
+ does not, the row is locked with the admin hint, like every Ops Hub row; a
24
+ frame off the core links it from `staticLinks()`. The row loses its " (*)"
25
+ where it opens Ops Hub.
26
+ - In the Hub, the page of a locked row (Operations' Overview, an Ops Hub
27
+ tool's page) now files under its function with no row picked: someone who
28
+ does not hold Ops Hub and opens `/os/operations` sees the Operations menu
29
+ with its Overview locked, not the Hub's landing with the menu closed.
30
+ Before, such a page filed under the function's Overview.
31
+
32
+ ### Asset Manager's address
33
+
34
+ - Asset Manager's fixed address is `https://asset-portal.autosolutions.app`
35
+ (was `https://self-asset-manager.lovable.app`), the address the Hub's
36
+ catalogue gives Asset Portal: on autosolutions.app it shares the Hub's
37
+ sign-in.
38
+
39
+ ### Counts
40
+
41
+ - The map has 60 rows (56 tools, four Overviews). With every live app's
42
+ address in the catalogue, 18 open an app (Operations' Overview among them)
43
+ and 42 are samples, the same in the Hub and in every app. The menu search
44
+ finds five rows named Overview: the Hub's, Finance's, Marketing's,
45
+ Commercial's and Operations'.
46
+
47
+ ### What each app does after taking 0.3.3
48
+
49
+ - Every app: bump `autosolutions-os` to `^0.3.3`.
50
+ - The Hub: draw a page for `/os/marketing` (its Marketing hub sample), as it
51
+ does for the other Overviews.
52
+
3
53
  ## 0.3.2 - 2026-10-18
4
54
 
5
55
  One app, as the owner asked on 18 October: the top bar, the rail, the menus
package/README.md CHANGED
@@ -94,8 +94,8 @@ person signs out in the app.
94
94
 
95
95
  `OsWorkspaceFrame` is the frame every app on the core renders around its pages:
96
96
  the top bar with the company's mark and switcher, the rail, the OS menu (Cliff's
97
- menu map, 0.3.0: 56 tools and an Overview first in Finance, Commercial and
98
- Operations, our Shelf simulator, Key accounts, PM Copilot and Candidate hub
97
+ menu map, 0.3.0: 56 tools and an Overview first in every function, Marketing's
98
+ since 0.3.3, our Shelf simulator, Key accounts, PM Copilot and Candidate hub
99
99
  among them), the Hub panel, the footer with Admin for people who manage
100
100
  something, and the browser-tab icon. It needs `autosolutions-design-system`
101
101
  6.5.0 or later (an optional peer: only this entry point uses it). Take this
@@ -234,10 +234,15 @@ why).
234
234
  for it. `initialOpen={false}` starts the menu closed on the first location,
235
235
  which a phone no longer needs it for; after that the frame's own rule
236
236
  applies. `data-*` and `aria-*` props land on the frame's root.
237
- - A row whose page is one of the Hub's sample pages (the three Overviews and
238
- every tool with no app to open) has " (*)" after its name, in every app
239
- (0.3.2, `OS_SAMPLE_MARK`): the owner's mark for work in progress. A row
240
- that opens an app has none, so a tool loses it the day it gets one.
237
+ - A row whose page is one of the Hub's sample pages (Finance's, Marketing's
238
+ and Commercial's Overviews and every tool with no app to open) has " (*)"
239
+ after its name, in every app (0.3.2, `OS_SAMPLE_MARK`): the owner's mark
240
+ for work in progress. A row that opens an app has none, so a tool loses it
241
+ the day it gets one.
242
+ - Operations' Overview is Ops Hub's home dashboard (0.3.3): it opens Ops Hub
243
+ for someone who holds it, and is locked for someone who does not, like
244
+ Ops Hub's tools. In the Hub a locked row's page files under its function,
245
+ with no row picked.
241
246
  - Admin appears when `my_admin_scope()` says the person manages something; pass
242
247
  `admin` to decide it yourself.
243
248
  - Every app shows the Hub panel (0.3.0, `OS_HUB_MENU`, the design's): Smart
@@ -288,7 +293,9 @@ project (Ops Hub: see "Linked, not federated" in `docs/CONTRACT.md`) pairs it
288
293
  with the design system's `WorkspaceFrame`, a static plate and no switcher.
289
294
  `staticLinks(slug)` are the fixed addresses, the ones the Hub's catalogue
290
295
  gives (0.3.2: every app with a live address, Ops Hub's tools on
291
- ops-hub.autosolutions.app, PM Copilot's console at `/ops`), each with the
296
+ ops-hub.autosolutions.app, PM Copilot's console at `/ops`; 0.3.3: Operations'
297
+ Overview on Ops Hub's home, Asset Manager on asset-portal.autosolutions.app),
298
+ each with the
292
299
  company's slug as `?tenant=`, exactly as the catalogue's links carry it; pass
293
300
  the same slug as `tenantSlug` for the rows into the Hub. With no catalogue to
294
301
  ask, they are all live, and each app's own sign-in decides. Every other row
package/dist/nav.d.ts CHANGED
@@ -8,9 +8,9 @@
8
8
  * 1 the rail Hub, Finance, Marketing, Commercial, Operations
9
9
  * 2 the menu that function's tools, grouped Reporting / Planning
10
10
  * (Performance / Planning / Creative in Marketing),
11
- * an Overview first in Finance, Commercial and
12
- * Operations; the Hub's is Smart Comms Hub and
13
- * Assistants
11
+ * an Overview first in every function (Marketing's
12
+ * since 0.3.3, the owner's call); the Hub's is
13
+ * Smart Comms Hub and Assistants
14
14
  * 3 the tool's panel an app's own tool, open: its icon and name, then its
15
15
  * views as tabs (design system 6.5.0; no Back to hub)
16
16
  *
@@ -66,7 +66,8 @@ export declare const OS_FUNCTIONS: OsNavItem[];
66
66
  /**
67
67
  * Cliff's menu map (the design's ui_kits/functions dashboards/nav.js and
68
68
  * data.js, 16 October 2026): its ids, labels, groups, order, status and
69
- * views, an Overview at the top of Finance, Commercial and Operations, and
69
+ * views, an Overview at the top of every function (Cliff draws one for
70
+ * Finance, Commercial and Operations; Marketing's is the owner's, 0.3.3), and
70
71
  * the two rows the design keeps from before its merge (Customer scorecard,
71
72
  * Clearance list). Then our four Live apps the map does not have, at the end
72
73
  * of their groups, so they stay reachable: Shelf simulator (Marketing >
@@ -125,9 +126,16 @@ export type OsToolLink = {
125
126
  * Studio, Sales Reporting, Asset Portal and Candidate Hub had none), so a
126
127
  * frame off the core sends each row where the Hub's catalogue does once the
127
128
  * catalogue has that address (`launch_url`), not to the tool's page in the
128
- * Hub; and PM Copilot opens its console (`/ops`), from the catalogue too. The five apps whose address the catalogue does not give
129
- * yet (Paid media, Marketing calendar, Influencer Manager, NPD validator,
130
- * Shelf simulator) have none: off the core they open their page in the Hub.
129
+ * Hub; and PM Copilot opens its console (`/ops`), from the catalogue too.
130
+ * The five apps whose address the catalogue does not give yet (Paid media,
131
+ * Marketing calendar, Influencer Manager, NPD validator, Shelf simulator)
132
+ * have none: off the core they open their page in the Hub.
133
+ *
134
+ * Since 0.3.3 (the owner's calls of 18 October): Operations' Overview is Ops
135
+ * Hub's home dashboard, so it opens Ops Hub for someone who holds it and is
136
+ * locked for someone who does not, like Ops Hub's tools; and Asset Manager's
137
+ * fixed address is asset-portal.autosolutions.app, which shares the Hub's
138
+ * sign-in (self-asset-manager.lovable.app cannot read it).
131
139
  */
132
140
  export declare const OS_TOOL_LINKS: Record<string, OsToolLink>;
133
141
  /** The Hub's own pages, for the rail's Hub, Admin and Settings rows in other apps. */
@@ -153,7 +161,9 @@ export declare const HINTS: {
153
161
  * The mark after the name of a row whose page is a sample (0.3.2, the
154
162
  * owner's "(*)" for work in progress): a row that opens its page in the Hub
155
163
  * (`osHubPath`, the design's sample dashboards, mock data) because its tool
156
- * has no app to open, the three Overviews among them. osFrame decides it
164
+ * has no app to open, Finance's, Marketing's and Commercial's Overviews
165
+ * among them (Operations' opens Ops Hub since 0.3.3, and is a sample only
166
+ * where Ops Hub is held with no address yet). osFrame decides it
157
167
  * where it decides the link, so a tool loses the mark the day it links to
158
168
  * an app. A row that opens an app, this app's own tools, a locked row and
159
169
  * the Hub panel (the Hub's real pages) have none. The Hub's sample pages put
@@ -377,7 +387,7 @@ export type OsMenuEntry = {
377
387
  /** Unique among the entries: the function, the row, and the tab when it is one. */
378
388
  key: string;
379
389
  label: string;
380
- /** Where it sits, for telling the four Overviews apart: "Finance", "Hub · Smart Comms Hub", "Key accounts". */
390
+ /** Where it sits, for telling the five Overviews apart: "Finance", "Hub · Smart Comms Hub", "Key accounts". */
381
391
  context: string;
382
392
  icon?: string;
383
393
  state: OsFrameState;
package/dist/nav.js CHANGED
@@ -8,9 +8,9 @@
8
8
  * 1 the rail Hub, Finance, Marketing, Commercial, Operations
9
9
  * 2 the menu that function's tools, grouped Reporting / Planning
10
10
  * (Performance / Planning / Creative in Marketing),
11
- * an Overview first in Finance, Commercial and
12
- * Operations; the Hub's is Smart Comms Hub and
13
- * Assistants
11
+ * an Overview first in every function (Marketing's
12
+ * since 0.3.3, the owner's call); the Hub's is
13
+ * Smart Comms Hub and Assistants
14
14
  * 3 the tool's panel an app's own tool, open: its icon and name, then its
15
15
  * views as tabs (design system 6.5.0; no Back to hub)
16
16
  *
@@ -42,7 +42,8 @@ const overview = (fn) => ({
42
42
  /**
43
43
  * Cliff's menu map (the design's ui_kits/functions dashboards/nav.js and
44
44
  * data.js, 16 October 2026): its ids, labels, groups, order, status and
45
- * views, an Overview at the top of Finance, Commercial and Operations, and
45
+ * views, an Overview at the top of every function (Cliff draws one for
46
+ * Finance, Commercial and Operations; Marketing's is the owner's, 0.3.3), and
46
47
  * the two rows the design keeps from before its merge (Customer scorecard,
47
48
  * Clearance list). Then our four Live apps the map does not have, at the end
48
49
  * of their groups, so they stay reachable: Shelf simulator (Marketing >
@@ -76,6 +77,7 @@ export const OS_MENU = {
76
77
  ] },
77
78
  ],
78
79
  marketing: [
80
+ overview("marketing"),
79
81
  { title: "Performance", items: [
80
82
  tool("live-ecomm-sales", "Live eComm sales by store", "mkt-live-ecomm-sales-by-store", "Live"),
81
83
  tool("paid-media", "Paid media", "mkt-paid-media", "No status"),
@@ -195,9 +197,16 @@ const opsHub = (path) => ({ app: "ops_hub", url: OPS_HUB, path });
195
197
  * Studio, Sales Reporting, Asset Portal and Candidate Hub had none), so a
196
198
  * frame off the core sends each row where the Hub's catalogue does once the
197
199
  * catalogue has that address (`launch_url`), not to the tool's page in the
198
- * Hub; and PM Copilot opens its console (`/ops`), from the catalogue too. The five apps whose address the catalogue does not give
199
- * yet (Paid media, Marketing calendar, Influencer Manager, NPD validator,
200
- * Shelf simulator) have none: off the core they open their page in the Hub.
200
+ * Hub; and PM Copilot opens its console (`/ops`), from the catalogue too.
201
+ * The five apps whose address the catalogue does not give yet (Paid media,
202
+ * Marketing calendar, Influencer Manager, NPD validator, Shelf simulator)
203
+ * have none: off the core they open their page in the Hub.
204
+ *
205
+ * Since 0.3.3 (the owner's calls of 18 October): Operations' Overview is Ops
206
+ * Hub's home dashboard, so it opens Ops Hub for someone who holds it and is
207
+ * locked for someone who does not, like Ops Hub's tools; and Asset Manager's
208
+ * fixed address is asset-portal.autosolutions.app, which shares the Hub's
209
+ * sign-in (self-asset-manager.lovable.app cannot read it).
201
210
  */
202
211
  export const OS_TOOL_LINKS = {
203
212
  "live-ecomm-sales": { app: "alive_reporting", url: "https://e-sales.autosolutions.app" },
@@ -208,12 +217,14 @@ export const OS_TOOL_LINKS = {
208
217
  "pricing-researcher": {},
209
218
  "shelf-simulator": { app: "shelf_simulator" },
210
219
  "image-generator": { app: "frank_create", url: "https://design-studio.autosolutions.app" },
211
- "retail-image-library": { app: "asset_portal", url: "https://self-asset-manager.lovable.app" },
220
+ "retail-image-library": { app: "asset_portal", url: "https://asset-portal.autosolutions.app" },
212
221
  "brand-voice-copywriter": {},
213
222
  "sales": opsHub("/sales-dashboard"),
214
223
  "open-orders": opsHub("/customer-orders"),
215
224
  "crm": { app: "enxgy_crm", url: "https://e-crm.autosolutions.app" },
216
225
  "key-accounts": { app: "key_accounts", url: "https://key-accounts.lovable.app" },
226
+ /* Operations' Overview is Ops Hub's home dashboard (owner, 0.3.3). */
227
+ "operations-home": opsHub("/"),
217
228
  "inventory-health": opsHub("/inventory-health"),
218
229
  "out-of-stocks": opsHub("/inventory-health?view=oos"),
219
230
  "open-purchase-orders": opsHub("/po-pipeline"),
@@ -248,7 +259,9 @@ export const HINTS = {
248
259
  * The mark after the name of a row whose page is a sample (0.3.2, the
249
260
  * owner's "(*)" for work in progress): a row that opens its page in the Hub
250
261
  * (`osHubPath`, the design's sample dashboards, mock data) because its tool
251
- * has no app to open, the three Overviews among them. osFrame decides it
262
+ * has no app to open, Finance's, Marketing's and Commercial's Overviews
263
+ * among them (Operations' opens Ops Hub since 0.3.3, and is a sample only
264
+ * where Ops Hub is held with no address yet). osFrame decides it
252
265
  * where it decides the link, so a tool loses the mark the day it links to
253
266
  * an app. A row that opens an app, this app's own tools, a locked row and
254
267
  * the Hub panel (the Hub's real pages) have none. The Hub's sample pages put
@@ -443,6 +456,8 @@ export function osFrame(options) {
443
456
  ? { ...base, path, ...(match ? { match } : {}) }
444
457
  : { ...base, href: withTenantHint(`${hubUrl}${path}`, tenantSlug) });
445
458
  const sections = {};
459
+ /* In the Hub, the pages of locked rows (0.3.3): see the claims below. */
460
+ const lockedPages = [];
446
461
  const hubMenu = hubItems ?? OS_HUB_MENU;
447
462
  if (hubMenu.length) {
448
463
  sections["hub"] = hubItems
@@ -469,8 +484,11 @@ export function osFrame(options) {
469
484
  if (href)
470
485
  return { ...base, ...(isHub ? { match: [page] } : {}), href };
471
486
  const reason = locked[entry.id];
472
- if (reason)
487
+ if (reason) {
488
+ if (isHub)
489
+ lockedPages.push({ fn, page });
473
490
  return { ...base, disabled: true, title: reason };
491
+ }
474
492
  /* No app of its own (or one this frame cannot reach: off the core
475
493
  with no fixed address, or held and not deployed yet): its page in
476
494
  the Hub, a sample, marked so (0.3.2). */
@@ -513,6 +531,13 @@ export function osFrame(options) {
513
531
  }
514
532
  }
515
533
  }
534
+ /* A locked row's page in the Hub files under its function, with no row
535
+ picked (0.3.3): someone who does not hold Ops Hub and opens
536
+ /os/operations (Operations' Overview, Ops Hub's since 0.3.3) sees the
537
+ Operations menu with that row locked, not the Hub's landing. After every
538
+ row's own claim, so a row that claims the same path wins. */
539
+ for (const { fn, page } of lockedPages)
540
+ claims.push({ routes: [page], spot: { fn, item: null, tab: null } });
516
541
  const landingFn = tools.map((mine) => fnOf(sections, osToolId(mine.id))).find((fn) => fn !== undefined);
517
542
  const locate = (location) => {
518
543
  let url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosolutions-os",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "One sign-in, one company switcher, one app grid. What every AutoSolutions app imports instead of copying.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",