@endora-commerce/admin-shell 0.100.0 → 0.100.2

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.
@@ -4,8 +4,12 @@ import { type ReactNode } from 'react';
4
4
  * AuthProvider re-fetches `/admin/me` after a successful POST and the
5
5
  * AppShell takes over.
6
6
  *
7
- * Bootstrap the first administrator from the repository root with:
8
- * pnpm --filter backend run admin:create -- --email=… --password=… --first-name=… --last-name=…
7
+ * The first administrator is created from the command line, and the command
8
+ * depends on where the platform runs — `pnpm --filter backend run admin:create`
9
+ * in this repository, `pnpm run admin:create` in a scaffolded instance,
10
+ * `node dist/cli.js admin_users create` in a production image. The hint below
11
+ * the form therefore names none of them and links to the guide that names all
12
+ * three.
9
13
  */
10
14
  export declare function LoginPage(): ReactNode;
11
15
  //# sourceMappingURL=LoginPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../src/components/LoginPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWjE;;;;;;;GAOG;AACH,wBAAgB,SAAS,IAAI,SAAS,CAgJrC"}
1
+ {"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../src/components/LoginPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWjE;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,IAAI,SAAS,CAkJrC"}
@@ -7,15 +7,19 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './ui/
7
7
  import { Input } from './ui/input.js';
8
8
  import { Label } from './ui/label.js';
9
9
  import { useAuth } from '../lib/auth.js';
10
- import { loginCopy } from '../i18n/preauth-login-copy.js';
10
+ import { ADMIN_ACCOUNT_HELP_URL, loginCopy } from '../i18n/preauth-login-copy.js';
11
11
  import { FederatedSignIn } from './FederatedSignIn.js';
12
12
  /**
13
13
  * Admin login screen. Rendered by App when no session is active; the
14
14
  * AuthProvider re-fetches `/admin/me` after a successful POST and the
15
15
  * AppShell takes over.
16
16
  *
17
- * Bootstrap the first administrator from the repository root with:
18
- * pnpm --filter backend run admin:create -- --email=… --password=… --first-name=… --last-name=…
17
+ * The first administrator is created from the command line, and the command
18
+ * depends on where the platform runs — `pnpm --filter backend run admin:create`
19
+ * in this repository, `pnpm run admin:create` in a scaffolded instance,
20
+ * `node dist/cli.js admin_users create` in a production image. The hint below
21
+ * the form therefore names none of them and links to the guide that names all
22
+ * three.
19
23
  */
20
24
  export function LoginPage() {
21
25
  const { login, verifyMfa, cancelMfa, lastLoginError, status, mfaChallengeId } = useAuth();
@@ -39,6 +43,6 @@ export function LoginPage() {
39
43
  e.preventDefault();
40
44
  setSubmitting(true);
41
45
  void login(email, password).finally(() => setSubmitting(false));
42
- }, children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "login-email", children: loginCopy.email }), _jsx(Input, { id: "login-email", type: "email", autoComplete: "email", required: true, value: email, onChange: (e) => setEmail(e.target.value) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "login-password", children: loginCopy.password }), _jsx(Input, { id: "login-password", type: "password", autoComplete: "current-password", required: true, value: password, onChange: (e) => setPassword(e.target.value) })] }), _jsx(Button, { type: "submit", className: "w-full min-h-11", disabled: submitting || status === 'loading', children: submitting ? loginCopy.submitting : loginCopy.submit })] }), _jsx(FederatedSignIn, {}), _jsxs("p", { className: "text-xs text-muted-foreground", children: [loginCopy.footerPrefix, ' ', _jsx("code", { className: "rounded bg-muted px-1 py-0.5 text-[0.7rem]", children: "pnpm --filter backend run admin:create" }), ' ', loginCopy.footerSuffix] })] })] }) }));
46
+ }, children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "login-email", children: loginCopy.email }), _jsx(Input, { id: "login-email", type: "email", autoComplete: "email", required: true, value: email, onChange: (e) => setEmail(e.target.value) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "login-password", children: loginCopy.password }), _jsx(Input, { id: "login-password", type: "password", autoComplete: "current-password", required: true, value: password, onChange: (e) => setPassword(e.target.value) })] }), _jsx(Button, { type: "submit", className: "w-full min-h-11", disabled: submitting || status === 'loading', children: submitting ? loginCopy.submitting : loginCopy.submit })] }), _jsx(FederatedSignIn, {}), _jsxs("p", { className: "text-xs text-muted-foreground", children: [loginCopy.noAccount, ' ', _jsx("a", { href: ADMIN_ACCOUNT_HELP_URL, className: "rounded-sm font-medium text-foreground underline underline-offset-2 hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: loginCopy.noAccountLink })] })] })] }) }));
43
47
  }
44
48
  //# sourceMappingURL=LoginPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginPage.js","sourceRoot":"","sources":["../../src/components/LoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAkC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS;IACvB,MAAM,EAAE,KAAK,EAAE,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AC,CAAC,MAAM,CAAC,KAAK,CAAC,GAClD,IACE,EACN,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,iBAAiB,EAAC,QAAQ,EAAE,UAAU,IAAI,MAAM,KAAK,SAAS,YAC3F,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,GAC9C,IACJ,EAMP,KAAC,eAAe,KAAG,EACnB,aAAG,SAAS,EAAC,+BAA+B,aACzC,SAAS,CAAC,SAAS,EAAE,GAAG,EACzB,YACE,IAAI,EAAE,sBAAsB,EAC5B,SAAS,EAAC,gKAAgK,YAEzK,SAAS,CAAC,aAAa,GACtB,IACF,IACQ,IACT,GACH,CACP,CAAC;AACJ,CAAC"}
@@ -17,8 +17,17 @@ export declare const loginCopy: {
17
17
  readonly password: "Password";
18
18
  readonly submitting: "Signing in…";
19
19
  readonly submit: "Sign in";
20
- readonly footerPrefix: "No account yet? Run";
21
- readonly footerSuffix: "from the repository root.";
20
+ /**
21
+ * The hint below the form. It used to name `pnpm --filter backend run
22
+ * admin:create`, which exists only in this repository's checkout: a
23
+ * scaffolded instance spells it `pnpm run admin:create`, a production image
24
+ * `node dist/cli.js admin_users create`, and the person reading a sign-in
25
+ * screen is usually not the one with a shell at all. So it names the two
26
+ * routes that are true everywhere and links to the page that spells the
27
+ * command for each setting.
28
+ */
29
+ readonly noAccount: "No account yet? Ask your platform administrator, or create one from the command line:";
30
+ readonly noAccountLink: "see the Getting started guide";
22
31
  /**
23
32
  * Issue #193 — federated sign-in. `divider` is deliberately just "or": the
24
33
  * button carries the whole intent ("Continue with Google"), so a longer rule
@@ -30,6 +39,12 @@ export declare const loginCopy: {
30
39
  readonly federatedGoogle: "Continue with Google";
31
40
  readonly federatedMicrosoft: "Continue with Microsoft";
32
41
  };
42
+ /**
43
+ * Where `noAccountLink` points: the published guide's section on creating an
44
+ * administrator. The public site rather than an instance's own, because an
45
+ * instance may build no documentation site at all (`--without docs`).
46
+ */
47
+ export declare const ADMIN_ACCOUNT_HELP_URL = "https://docs.commerce.endora.software/getting-started#creating-an-administrator";
33
48
  export declare const appBootstrapCopy: {
34
49
  readonly loading: "Loading...";
35
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"preauth-login-copy.d.ts","sourceRoot":"","sources":["../../src/i18n/preauth-login-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;IAWpB;;;;;OAKG;;;;;CAKK,CAAC;AAEX,eAAO,MAAM,gBAAgB;;CAEnB,CAAC"}
1
+ {"version":3,"file":"preauth-login-copy.d.ts","sourceRoot":"","sources":["../../src/i18n/preauth-login-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;;;;;;IASpB;;;;;;;;OAQG;;;IAGH;;;;;OAKG;;;;;CAKK,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,oFACgD,CAAC;AAEpF,eAAO,MAAM,gBAAgB;;CAEnB,CAAC"}
@@ -17,8 +17,17 @@ export const loginCopy = {
17
17
  password: 'Password',
18
18
  submitting: 'Signing in…',
19
19
  submit: 'Sign in',
20
- footerPrefix: 'No account yet? Run',
21
- footerSuffix: 'from the repository root.',
20
+ /**
21
+ * The hint below the form. It used to name `pnpm --filter backend run
22
+ * admin:create`, which exists only in this repository's checkout: a
23
+ * scaffolded instance spells it `pnpm run admin:create`, a production image
24
+ * `node dist/cli.js admin_users create`, and the person reading a sign-in
25
+ * screen is usually not the one with a shell at all. So it names the two
26
+ * routes that are true everywhere and links to the page that spells the
27
+ * command for each setting.
28
+ */
29
+ noAccount: 'No account yet? Ask your platform administrator, or create one from the command line:',
30
+ noAccountLink: 'see the Getting started guide',
22
31
  /**
23
32
  * Issue #193 — federated sign-in. `divider` is deliberately just "or": the
24
33
  * button carries the whole intent ("Continue with Google"), so a longer rule
@@ -30,6 +39,12 @@ export const loginCopy = {
30
39
  federatedGoogle: 'Continue with Google',
31
40
  federatedMicrosoft: 'Continue with Microsoft',
32
41
  };
42
+ /**
43
+ * Where `noAccountLink` points: the published guide's section on creating an
44
+ * administrator. The public site rather than an instance's own, because an
45
+ * instance may build no documentation site at all (`--without docs`).
46
+ */
47
+ export const ADMIN_ACCOUNT_HELP_URL = 'https://docs.commerce.endora.software/getting-started#creating-an-administrator';
33
48
  export const appBootstrapCopy = {
34
49
  loading: 'Loading...',
35
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"preauth-login-copy.js","sourceRoot":"","sources":["../../src/i18n/preauth-login-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,qBAAqB;IAC5B,UAAU,EAAE,mEAAmE;IAC/E,cAAc,EAAE,iBAAiB;IACjC,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,SAAS;IACjB,YAAY,EAAE,qBAAqB;IACnC,YAAY,EAAE,2BAA2B;IACzC;;;;;OAKG;IACH,mBAAmB,EAAE,uBAAuB;IAC5C,gBAAgB,EAAE,IAAI;IACtB,eAAe,EAAE,sBAAsB;IACvC,kBAAkB,EAAE,yBAAyB;CACrC,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,YAAY;CACb,CAAC"}
1
+ {"version":3,"file":"preauth-login-copy.js","sourceRoot":"","sources":["../../src/i18n/preauth-login-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,qBAAqB;IAC5B,UAAU,EAAE,mEAAmE;IAC/E,cAAc,EAAE,iBAAiB;IACjC,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,SAAS;IACjB;;;;;;;;OAQG;IACH,SAAS,EAAE,uFAAuF;IAClG,aAAa,EAAE,+BAA+B;IAC9C;;;;;OAKG;IACH,mBAAmB,EAAE,uBAAuB;IAC5C,gBAAgB,EAAE,IAAI;IACtB,eAAe,EAAE,sBAAsB;IACvC,kBAAkB,EAAE,yBAAyB;CACrC,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GACjC,iFAAiF,CAAC;AAEpF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,YAAY;CACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@endora-commerce/admin-shell",
3
- "version": "0.100.0",
3
+ "version": "0.100.2",
4
4
  "type": "module",
5
5
  "description": "The admin application itself (feature 110, FR-016) — the router, the sidebar and palette shell, the sign-in screen and the host's own screens. An instance depends on it and holds only index.html, main.tsx, the configuration, the brand assets, the theme overrides and the generated contribution registry.",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "react-router-dom": "^7.18.2",
38
38
  "tailwindcss": "^4.2.4",
39
39
  "vite": "^7.3.2",
40
- "@endora-commerce/admin-kit": "0.100.0",
41
- "@endora-commerce/contracts": "0.100.0"
40
+ "@endora-commerce/admin-kit": "0.100.2",
41
+ "@endora-commerce/contracts": "0.100.2"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "@tailwindcss/vite": {
@@ -66,8 +66,8 @@
66
66
  "react-router-dom": "^7.18.2",
67
67
  "typescript": "^5.9.3",
68
68
  "vite": "^7.3.2",
69
- "@endora-commerce/admin-kit": "0.100.0",
70
- "@endora-commerce/contracts": "0.100.0"
69
+ "@endora-commerce/contracts": "0.100.2",
70
+ "@endora-commerce/admin-kit": "0.100.2"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "tsc -p tsconfig.build.json",