autosolutions-os 0.4.4 → 0.4.5

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.5 - 2026-11-06
4
+
5
+ There are no company admins any more, only AutoSolutions OS admins (Didac,
6
+ 6 November 2026), so the package no longer sends people to one.
7
+
8
+ - The grey hint on a locked menu row now reads "Ask an AutoSolutions OS admin to
9
+ switch this on for you" (`HINTS.locked`). It said "Ask your company admin".
10
+ - `OsAuthGate` and the app list name an AutoSolutions OS admin too, in the words
11
+ the Hub uses since its one-page Admin. The gate's "This company does not have
12
+ this app" now reads "This app is not switched on for you in this company", as
13
+ access is given person by person.
14
+
3
15
  ## 0.4.4 - 2026-11-06
4
16
 
5
17
  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 your company admin
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 your company admin to switch this on for you"),
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 your AutoSolutions administrator." }));
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 your administrator
8
- * does this company hold this app? → ask your administrator
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 your administrator
9
- * does this company hold this app? → ask your administrator
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 your AutoSolutions administrator to add you."
136
- : "This company does not have this app. Ask your AutoSolutions administrator for access." }), _jsx("button", { type: "button", className: "os-gate__link", onClick: signOut, children: "Use a different account" })] }) }));
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
@@ -221,7 +221,7 @@ export declare const HUB_PATHS: {
221
221
  * longer drawn by the frame, and stay for code that reads them.
222
222
  */
223
223
  export declare const HINTS: {
224
- readonly locked: "Ask your company admin to switch this on for you";
224
+ readonly locked: "Ask an AutoSolutions OS admin to switch this on for you";
225
225
  readonly notBuilt: "Not built yet";
226
226
  readonly notLinked: "Live, not linked from the Hub yet";
227
227
  readonly checking: "Checking your access…";
@@ -329,7 +329,7 @@ export declare function staticLinks(tenantSlug?: string | null): Record<string,
329
329
  * ?tenant=, because the switcher already offers that app;
330
330
  * - held, not deployed yet (no address): neither, so the frame opens the
331
331
  * tool's page in the Hub, as it does for a tool with no app;
332
- * - not held: locked ("Ask your company admin to switch this on for you").
332
+ * - not held: locked ("Ask an AutoSolutions OS admin to switch this on for you").
333
333
  * A fixed `url` is never consulted here: it is no way round the catalogue.
334
334
  * Tools with no app open their page in the Hub (osFrame). Links are final:
335
335
  * osFrame adds nothing to them.
@@ -350,8 +350,8 @@ export declare function catalogueLinks(apps: ReadonlyArray<{
350
350
  * permissions (migration hub_permissions, 4 Nov 2026) os_context().items
351
351
  * names every item of the map the person holds in the acting company, a
352
352
  * dashboard or a tool, whatever serves it; every row it does not name is
353
- * locked, sample pages and Finance included, with "Ask your company admin to
354
- * switch this on for you". Until the core has answered (`null`, or a read
353
+ * locked, sample pages and Finance included, with "Ask an AutoSolutions OS
354
+ * admin to switch this on for you". Until the core has answered (`null`, or a read
355
355
  * that failed and is being asked again), and from a core older than the
356
356
  * permissions (`undefined`), nothing is locked here: the rows stay as they
357
357
  * were before 0.3.13, the catalogue's own "Checking your access…" rows
package/dist/nav.js CHANGED
@@ -325,7 +325,7 @@ export const HUB_PATHS = {
325
325
  * longer drawn by the frame, and stay for code that reads them.
326
326
  */
327
327
  export const HINTS = {
328
- locked: "Ask your company admin to switch this on for you",
328
+ locked: "Ask an AutoSolutions OS admin to switch this on for you",
329
329
  notBuilt: "Not built yet",
330
330
  notLinked: "Live, not linked from the Hub yet",
331
331
  checking: "Checking your access…",
@@ -472,7 +472,7 @@ export function staticLinks(tenantSlug = null) {
472
472
  * ?tenant=, because the switcher already offers that app;
473
473
  * - held, not deployed yet (no address): neither, so the frame opens the
474
474
  * tool's page in the Hub, as it does for a tool with no app;
475
- * - not held: locked ("Ask your company admin to switch this on for you").
475
+ * - not held: locked ("Ask an AutoSolutions OS admin to switch this on for you").
476
476
  * A fixed `url` is never consulted here: it is no way round the catalogue.
477
477
  * Tools with no app open their page in the Hub (osFrame). Links are final:
478
478
  * osFrame adds nothing to them.
@@ -504,8 +504,8 @@ export function catalogueLinks(apps, tenantSlug = null) {
504
504
  * permissions (migration hub_permissions, 4 Nov 2026) os_context().items
505
505
  * names every item of the map the person holds in the acting company, a
506
506
  * dashboard or a tool, whatever serves it; every row it does not name is
507
- * locked, sample pages and Finance included, with "Ask your company admin to
508
- * switch this on for you". Until the core has answered (`null`, or a read
507
+ * locked, sample pages and Finance included, with "Ask an AutoSolutions OS
508
+ * admin to switch this on for you". Until the core has answered (`null`, or a read
509
509
  * that failed and is being asked again), and from a core older than the
510
510
  * permissions (`undefined`), nothing is locked here: the rows stay as they
511
511
  * 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.4";
2
+ export declare const OS_VERSION = "0.4.5";
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.4";
2
+ export const OS_VERSION = "0.4.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosolutions-os",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
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",