@coffre/ui 0.1.7 → 0.1.9

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.
Files changed (53) hide show
  1. package/dist/client/_coffre/assets/{audit-CdCJ1U8E.js → audit-BtI9em7Q.js} +2 -2
  2. package/dist/client/_coffre/assets/audit-jURfT8Km.js +1 -0
  3. package/dist/client/_coffre/assets/globals-Bh2x1gBM.css +1 -0
  4. package/dist/client/_coffre/assets/index-CD7bvUCb.js +12 -0
  5. package/dist/server/.vite/manifest.json +141 -141
  6. package/dist/server/_coffre/assets/{_tanstack-start-manifest_v-C_KVq49j.js → _tanstack-start-manifest_v-CrnrBINO.js} +4 -4
  7. package/dist/server/_coffre/assets/{account-B4AxbLWp.js → account-CZgVVZTf.js} +5 -5
  8. package/dist/server/_coffre/assets/{account-vQbb11Qj.js → account-D7-ZAE2T.js} +4 -4
  9. package/dist/server/_coffre/assets/{audit-uo_1ygWb.js → audit-BEbhtsEp.js} +5 -112
  10. package/dist/server/_coffre/assets/{audit-RkfdvuKd.js → audit-wjpo1BWg.js} +2 -2
  11. package/dist/server/_coffre/assets/{auth.device-BDgKzHtn.js → auth.device-CMR3csAI.js} +2 -2
  12. package/dist/server/_coffre/assets/{auth.device-CY178-GG.js → auth.device-w9N3FlNk.js} +3 -3
  13. package/dist/server/_coffre/assets/{directory-B8Z293k_.js → directory-Dr5X9TB5.js} +2 -2
  14. package/dist/server/_coffre/assets/globals-Bh2x1gBM.css +1 -0
  15. package/dist/server/_coffre/assets/{grants-CB8v0U0d.js → grants-C6UmWE8b.js} +2 -2
  16. package/dist/server/_coffre/assets/{login-SfzjEmZT.js → login-B2njIq_o.js} +2 -2
  17. package/dist/server/_coffre/assets/{login-CQw_o6Gr.js → login-DUtCQju5.js} +3 -3
  18. package/dist/server/_coffre/assets/{offboarding-B9ZEdbgB.js → offboarding-DY5MarpG.js} +3 -3
  19. package/dist/server/_coffre/assets/{page-DiOsIrE3.js → page-BdnhpwvH.js} +1 -1
  20. package/dist/server/_coffre/assets/{principal-page-CDreH-XI.js → principal-page-SdG8_zcu.js} +5 -5
  21. package/dist/server/_coffre/assets/{projects._project._environment-D2obmZqQ.js → projects._project._environment-BQIrmE3r.js} +2 -2
  22. package/dist/server/_coffre/assets/{projects._project._environment-BU0lXcEi.js → projects._project._environment-CUS0VFUe.js} +3 -3
  23. package/dist/server/_coffre/assets/{projects._project.index-CgBWUTBs.js → projects._project.index-BjNdR4KC.js} +3 -3
  24. package/dist/server/_coffre/assets/{projects._project.index-x8-nfXJo.js → projects._project.index-D1NxvBtZ.js} +5 -5
  25. package/dist/server/_coffre/assets/{projects.index-PUXey5rS.js → projects.index-BQDuuh6t.js} +3 -3
  26. package/dist/server/_coffre/assets/{projects.index-BeOdeTHY.js → projects.index-ha7jO4nC.js} +2 -2
  27. package/dist/server/_coffre/assets/{router-BJogcQmd.js → router-BUwZOXEH.js} +31 -84
  28. package/dist/server/_coffre/assets/{settings-H2NMrmSr.js → settings-Cy__khNA.js} +4 -4
  29. package/dist/server/_coffre/assets/{settings-D-bipHFt.js → settings-HOErM3pd.js} +4 -4
  30. package/dist/server/_coffre/assets/{tokens._token-BjYF5LXN.js → tokens._token-BZUArbzi.js} +4 -4
  31. package/dist/server/_coffre/assets/{tokens._token-CddPVnD9.js → tokens._token-CmpmtfB_.js} +3 -3
  32. package/dist/server/_coffre/assets/{tokens.index-qwV784jr.js → tokens.index-B5-4dD4C.js} +3 -3
  33. package/dist/server/_coffre/assets/{tokens.index-8g-SuweR.js → tokens.index-BReCgoV9.js} +4 -4
  34. package/dist/server/_coffre/assets/{ui-LHVjaG5-.js → ui-D_slKpSF.js} +1 -1
  35. package/dist/server/_coffre/assets/{unregistered-DRza-1nD.js → unregistered-Z17da4Rc.js} +1 -1
  36. package/dist/server/_coffre/assets/{users._user-C37OCYBV.js → users._user-BKdSQhIg.js} +3 -3
  37. package/dist/server/_coffre/assets/{users._user-mcrhbPC1.js → users._user-DHTNhQ9o.js} +2 -2
  38. package/dist/server/_coffre/assets/{users.index-qfQmqRyv.js → users.index-Cfo3ODpX.js} +4 -4
  39. package/dist/server/_coffre/assets/{users.index-CbkUgp_t.js → users.index-dMn0tlmc.js} +3 -3
  40. package/dist/server/index.js +2 -2
  41. package/package.json +3 -3
  42. package/src/components/command-palette.tsx +1 -1
  43. package/src/components/icons.tsx +1 -1
  44. package/src/components/shell.tsx +8 -56
  45. package/src/lib/audit-sentences.ts +0 -31
  46. package/src/routes/account.tsx +1 -1
  47. package/src/routes/audit.tsx +2 -23
  48. package/src/routes/settings.tsx +1 -1
  49. package/src/styles/globals.css +30 -36
  50. package/dist/client/_coffre/assets/audit-EWPPhR7U.js +0 -1
  51. package/dist/client/_coffre/assets/globals-BvlyrLi8.css +0 -1
  52. package/dist/client/_coffre/assets/index-C4woDgwj.js +0 -12
  53. package/dist/server/_coffre/assets/globals-BvlyrLi8.css +0 -1
@@ -1,24 +1,24 @@
1
1
  import { C as require_react, E as __toESM, f as deepEqual, i as useRouter, m as escapeHtml, o as require_jsx_runtime, t as useStore } from "./useStore-DWGPqzXR.js";
2
2
  import { o as redirect, r as useHydrated } from "./react-dom-qCTiwGGR.js";
3
3
  import { C as createNonReactiveReadonlyStore, S as createNonReactiveMutableStore, d as appendUniqueUserTags, h as getScriptPreloadAttrs, i as Outlet, m as getAssetCrossOrigin, o as ScriptOnce, t as getStartContext, v as resolveManifestCssLink, y as RouterCore } from "./async-local-storage-C0cwgkEr.js";
4
- import { C as lazyRouteComponent, D as useNavigate, E as Link, S as composeRefs, T as createRootRouteWithContext, _ as DialogContent, b as useId, f as TooltipProvider, g as Dialog, h as dropdown_menu_exports, m as dialog_exports, u as Tip, v as DialogOverlay, w as createFileRoute, x as Primitive, y as DialogPortal } from "./ui-LHVjaG5-.js";
5
- import { $ as X$1, A as Monitor, B as Search, C as Key, G as Sun, L as Plus, N as PanelLeft, O as Mark, Q as Users, T as Ledger, U as SignOut, V as Settings, W as SlashCircle, Z as UserCog, a as Tile, c as AlertTriangle, et as markSvg, j as Moon, k as Menu, n as ClosedDoor, p as ChevronsUpDown, rt as useStructuralSharing, u as Check, v as Folder, w as Layers, y as GitHub } from "./page-DiOsIrE3.js";
4
+ import { C as lazyRouteComponent, D as useNavigate, E as Link, S as composeRefs, T as createRootRouteWithContext, _ as DialogContent, b as useId, f as TooltipProvider, g as Dialog, h as dropdown_menu_exports, m as dialog_exports, u as Tip, v as DialogOverlay, w as createFileRoute, x as Primitive, y as DialogPortal } from "./ui-D_slKpSF.js";
5
+ import { $ as X$1, A as Monitor, B as Search, C as Key, G as Sun, N as PanelLeft, O as Mark, Q as Users, T as Ledger, U as SignOut, V as Settings, W as SlashCircle, Z as UserCog, a as Tile, c as AlertTriangle, et as markSvg, j as Moon, k as Menu, n as ClosedDoor, p as ChevronsUpDown, rt as useStructuralSharing, u as Check, v as Folder, w as Layers, y as GitHub } from "./page-BdnhpwvH.js";
6
6
  import { c as CoffreError, u as createClient } from "./coffre-DMs96kfX.js";
7
- import { n as Toaster, r as toast } from "./use-action-DQUmeH-5.js";
7
+ import { n as Toaster } from "./use-action-DQUmeH-5.js";
8
8
  import { a as hasAdministrationItems, s as deriveUiCapabilities, t as AdministrationItems } from "./affordances-BNaXjMOb.js";
9
9
  import { n as isActiveAccessibleEnvironment } from "./project-environments-lEzFHUt4.js";
10
- import { a as setTheme, i as ThemeToggle, o as themeBootScript, r as ThemeMenuItems, t as Route$4 } from "./account-vQbb11Qj.js";
11
- import { t as Route$5 } from "./audit-RkfdvuKd.js";
12
- import { t as Route$6 } from "./login-SfzjEmZT.js";
13
- import { t as Route$7 } from "./settings-H2NMrmSr.js";
14
- import { t as Route$8 } from "./auth.device-BDgKzHtn.js";
15
- import { t as Route$9 } from "./projects.index-BeOdeTHY.js";
16
- import { t as Route$10 } from "./tokens.index-qwV784jr.js";
17
- import { t as Route$11 } from "./tokens._token-CddPVnD9.js";
18
- import { t as Route$12 } from "./users.index-CbkUgp_t.js";
19
- import { t as Route$13 } from "./users._user-C37OCYBV.js";
20
- import { t as Route$14 } from "./projects._project.index-CgBWUTBs.js";
21
- import { t as Route$15 } from "./projects._project._environment-D2obmZqQ.js";
10
+ import { a as setTheme, i as ThemeToggle, o as themeBootScript, r as ThemeMenuItems, t as Route$4 } from "./account-D7-ZAE2T.js";
11
+ import { t as Route$5 } from "./audit-wjpo1BWg.js";
12
+ import { t as Route$6 } from "./login-B2njIq_o.js";
13
+ import { t as Route$7 } from "./settings-Cy__khNA.js";
14
+ import { t as Route$8 } from "./auth.device-CMR3csAI.js";
15
+ import { t as Route$9 } from "./projects.index-ha7jO4nC.js";
16
+ import { t as Route$10 } from "./tokens.index-B5-4dD4C.js";
17
+ import { t as Route$11 } from "./tokens._token-CmpmtfB_.js";
18
+ import { t as Route$12 } from "./users.index-dMn0tlmc.js";
19
+ import { t as Route$13 } from "./users._user-BKdSQhIg.js";
20
+ import { t as Route$14 } from "./projects._project.index-BjNdR4KC.js";
21
+ import { t as Route$15 } from "./projects._project._environment-BQIrmE3r.js";
22
22
  //#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-router/dist/esm/routerStores.js
23
23
  var getStoreFactory = (opts) => {
24
24
  return {
@@ -382,7 +382,7 @@ var getGlobalStartContext = () => {
382
382
  };
383
383
  //#endregion
384
384
  //#region src/styles/globals.css?url
385
- var globals_default = "/_coffre/assets/globals-BvlyrLi8.css";
385
+ var globals_default = "/_coffre/assets/globals-Bh2x1gBM.css";
386
386
  //#endregion
387
387
  //#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react@19.2.17_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
388
388
  var U = 1;
@@ -1044,7 +1044,7 @@ function CommandPalette({ projects, capabilities }) {
1044
1044
  })] })
1045
1045
  }),
1046
1046
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(_e.Item, {
1047
- value: "settings workspace instance sign-in",
1047
+ value: "settings instance sign-in",
1048
1048
  onSelect: () => {
1049
1049
  setOpen(false);
1050
1050
  navigate({ to: "/settings" });
@@ -1110,11 +1110,6 @@ function CommandPalette({ projects, capabilities }) {
1110
1110
  //#endregion
1111
1111
  //#region src/components/shell.tsx
1112
1112
  var REPOSITORY = "https://github.com/erwinkn/coffre";
1113
- /**
1114
- * The workspace this deployment serves. The server has no such notion yet --
1115
- * one deployment is one workspace -- so the name lives here until it does.
1116
- */
1117
- var WORKSPACE = "Acme";
1118
1113
  var SIDEBAR_KEY = "coffre-sidebar";
1119
1114
  /** Wide enough for the sidebar to sit beside the page; narrower, it is a drawer. */
1120
1115
  var WIDE = "(width > 60rem)";
@@ -1165,7 +1160,7 @@ function Brand() {
1165
1160
  });
1166
1161
  }
1167
1162
  /**
1168
- * The application frame: a sidebar of sections, headed by the workspace and
1163
+ * The application frame: a sidebar of sections, headed by coffre's mark and
1169
1164
  * footed by your account, and a bar across the content with search on the
1170
1165
  * right. The sidebar folds down to its icons (⌘B, or the button at the left
1171
1166
  * of the bar) and stays folded across visits.
@@ -1285,7 +1280,18 @@ function Sidebar({ principal, instanceRole, capabilities, collapsed = false, clo
1285
1280
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1286
1281
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1287
1282
  className: "sidebar-head",
1288
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(WorkspaceMenu, { collapsed }), close]
1283
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollapsedTip, {
1284
+ collapsed,
1285
+ label: "coffre",
1286
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
1287
+ className: "brand sidebar-brand",
1288
+ to: "/projects",
1289
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Mark, { size: 24 }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1290
+ className: "brand-name",
1291
+ children: "coffre"
1292
+ })]
1293
+ })
1294
+ }), close]
1289
1295
  }),
1290
1296
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
1291
1297
  className: "sidebar-nav",
@@ -1369,65 +1375,6 @@ function NavLink({ to, label, icon, collapsed }) {
1369
1375
  });
1370
1376
  }
1371
1377
  /**
1372
- * The workspace you are in, and where the others would be.
1373
- *
1374
- * For now this lists the one there is, and creating another says why it
1375
- * cannot yet rather than opening a form that goes nowhere.
1376
- */
1377
- function WorkspaceMenu({ collapsed }) {
1378
- const navigate = useNavigate();
1379
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(dropdown_menu_exports.Root, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollapsedTip, {
1380
- collapsed,
1381
- label: WORKSPACE,
1382
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(dropdown_menu_exports.Trigger, {
1383
- asChild: true,
1384
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
1385
- type: "button",
1386
- className: "workspace",
1387
- children: [
1388
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tile, { name: WORKSPACE }),
1389
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1390
- className: "workspace-name",
1391
- children: WORKSPACE
1392
- }),
1393
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronsUpDown, {
1394
- size: 14,
1395
- className: "workspace-chevron"
1396
- })
1397
- ]
1398
- })
1399
- })
1400
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(dropdown_menu_exports.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(dropdown_menu_exports.Content, {
1401
- className: "menu menu-workspace",
1402
- align: "start",
1403
- sideOffset: 6,
1404
- children: [
1405
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(dropdown_menu_exports.Label, {
1406
- className: "menu-label",
1407
- children: "Workspaces"
1408
- }),
1409
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(dropdown_menu_exports.Item, {
1410
- className: "menu-item",
1411
- onSelect: () => navigate({ to: "/projects" }),
1412
- children: [
1413
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tile, { name: WORKSPACE }),
1414
- WORKSPACE,
1415
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, {
1416
- size: 14,
1417
- className: "menu-check"
1418
- })
1419
- ]
1420
- }),
1421
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(dropdown_menu_exports.Separator, { className: "menu-sep" }),
1422
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(dropdown_menu_exports.Item, {
1423
- className: "menu-item",
1424
- onSelect: () => toast("One workspace per deployment, for now", { description: `Creating another needs server support coffre does not have yet. This deployment is ${WORKSPACE}.` }),
1425
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Plus, { size: 14 }), "Create workspace"]
1426
- })
1427
- ]
1428
- }) })] });
1429
- }
1430
- /**
1431
1378
  * Sign out with a real form post, built on the spot: the menu item unmounts
1432
1379
  * as the menu closes, so it cannot hold the form itself, and the response is
1433
1380
  * a redirect the browser should follow (to Access's logout, in Cloudflare
@@ -1839,7 +1786,7 @@ var Route$1 = createFileRoute("/access")({ beforeLoad: () => {
1839
1786
  } });
1840
1787
  //#endregion
1841
1788
  //#region src/routes/unregistered.tsx
1842
- var $$splitComponentImporter = () => import("./unregistered-DRza-1nD.js");
1789
+ var $$splitComponentImporter = () => import("./unregistered-Z17da4Rc.js");
1843
1790
  var Route = createFileRoute("/unregistered")({ component: lazyRouteComponent($$splitComponentImporter, "component") });
1844
1791
  /**
1845
1792
  * Cloudflare Access has authenticated this person, but Coffre has not
@@ -1,8 +1,8 @@
1
- import { C as lazyRouteComponent, w as createFileRoute } from "./ui-LHVjaG5-.js";
2
- import { o as loadDirectory } from "./directory-B8Z293k_.js";
1
+ import { C as lazyRouteComponent, w as createFileRoute } from "./ui-D_slKpSF.js";
2
+ import { o as loadDirectory } from "./directory-Dr5X9TB5.js";
3
3
  //#region src/routes/settings.tsx
4
- var $$splitComponentImporter = () => import("./settings-D-bipHFt.js");
5
- /** The workspace's settings. Your own are under Account, at the sidebar's foot. */
4
+ var $$splitComponentImporter = () => import("./settings-HOErM3pd.js");
5
+ /** The instance's settings. Your own are under Account, at the sidebar's foot. */
6
6
  var Route = createFileRoute("/settings")({
7
7
  loader: async ({ context: { client }, parentMatchPromise }) => {
8
8
  const root = (await parentMatchPromise).loaderData;
@@ -1,9 +1,9 @@
1
1
  import { o as require_jsx_runtime } from "./useStore-DWGPqzXR.js";
2
- import { E as Link } from "./ui-LHVjaG5-.js";
3
- import { i as PageHeader, r as Fact, t as Card } from "./page-DiOsIrE3.js";
4
- import { t as Route } from "./settings-H2NMrmSr.js";
2
+ import { E as Link } from "./ui-D_slKpSF.js";
3
+ import { i as PageHeader, r as Fact, t as Card } from "./page-BdnhpwvH.js";
4
+ import { t as Route } from "./settings-Cy__khNA.js";
5
5
  //#region src/routes/settings.tsx?tsr-split=component
6
- /** The workspace's settings. Your own are under Account, at the sidebar's foot. */
6
+ /** The instance's settings. Your own are under Account, at the sidebar's foot. */
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  var listFormat = new Intl.ListFormat("en", { type: "disjunction" });
9
9
  function SettingsPage() {
@@ -1,10 +1,10 @@
1
1
  import { C as require_react, E as __toESM, o as require_jsx_runtime } from "./useStore-DWGPqzXR.js";
2
- import { a as ErrorLine, c as Spinner, i as EmptyState, l as Timestamp, o as Modal, r as CopyButton, s as Notice, t as ConfirmButton } from "./ui-LHVjaG5-.js";
3
- import { $ as X, C as Key, L as Plus, t as Card } from "./page-DiOsIrE3.js";
2
+ import { a as ErrorLine, c as Spinner, i as EmptyState, l as Timestamp, o as Modal, r as CopyButton, s as Notice, t as ConfirmButton } from "./ui-D_slKpSF.js";
3
+ import { $ as X, C as Key, L as Plus, t as Card } from "./page-BdnhpwvH.js";
4
4
  import { r as memberRef, s as useCoffre } from "./coffre-DMs96kfX.js";
5
5
  import { r as toast, t as useAction } from "./use-action-DQUmeH-5.js";
6
- import { t as PrincipalPage } from "./principal-page-CDreH-XI.js";
7
- import { t as Route } from "./tokens._token-CddPVnD9.js";
6
+ import { t as PrincipalPage } from "./principal-page-SdG8_zcu.js";
7
+ import { t as Route } from "./tokens._token-CmpmtfB_.js";
8
8
  //#region src/components/service-tokens.tsx
9
9
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
10
10
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,8 +1,8 @@
1
- import { C as lazyRouteComponent, w as createFileRoute } from "./ui-LHVjaG5-.js";
1
+ import { C as lazyRouteComponent, w as createFileRoute } from "./ui-D_slKpSF.js";
2
2
  import { o as uiResult, r as memberRef } from "./coffre-DMs96kfX.js";
3
- import { n as loadPrincipalPage } from "./principal-page-CDreH-XI.js";
3
+ import { n as loadPrincipalPage } from "./principal-page-SdG8_zcu.js";
4
4
  //#region src/routes/tokens.$token.tsx
5
- var $$splitComponentImporter = () => import("./tokens._token-BjYF5LXN.js");
5
+ var $$splitComponentImporter = () => import("./tokens._token-BZUArbzi.js");
6
6
  var Route = createFileRoute("/tokens/$token")({
7
7
  loader: async ({ context: { client }, params, parentMatchPromise }) => {
8
8
  const root = (await parentMatchPromise).loaderData;
@@ -1,7 +1,7 @@
1
- import { C as lazyRouteComponent, w as createFileRoute } from "./ui-LHVjaG5-.js";
2
- import { o as loadDirectory } from "./directory-B8Z293k_.js";
1
+ import { C as lazyRouteComponent, w as createFileRoute } from "./ui-D_slKpSF.js";
2
+ import { o as loadDirectory } from "./directory-Dr5X9TB5.js";
3
3
  //#region src/routes/tokens.index.tsx
4
- var $$splitComponentImporter = () => import("./tokens.index-8g-SuweR.js");
4
+ var $$splitComponentImporter = () => import("./tokens.index-BReCgoV9.js");
5
5
  var Route = createFileRoute("/tokens/")({
6
6
  loader: async ({ context: { client }, parentMatchPromise }) => loadDirectory(client, (await parentMatchPromise).loaderData?.capabilities.canManageGrants ?? false),
7
7
  component: lazyRouteComponent($$splitComponentImporter, "component")
@@ -1,8 +1,8 @@
1
1
  import { o as require_jsx_runtime } from "./useStore-DWGPqzXR.js";
2
- import { C as Key, i as PageHeader, n as ClosedDoor } from "./page-DiOsIrE3.js";
3
- import { n as DirectoryTable, t as AddPrincipal } from "./directory-B8Z293k_.js";
4
- import { t as Route } from "./tokens.index-qwV784jr.js";
5
- import { n as RemovedList } from "./offboarding-B9ZEdbgB.js";
2
+ import { C as Key, i as PageHeader, n as ClosedDoor } from "./page-BdnhpwvH.js";
3
+ import { n as DirectoryTable, t as AddPrincipal } from "./directory-Dr5X9TB5.js";
4
+ import { t as Route } from "./tokens.index-B5-4dD4C.js";
5
+ import { n as RemovedList } from "./offboarding-DY5MarpG.js";
6
6
  //#region src/routes/tokens.index.tsx?tsr-split=component
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  function TokensPage() {
@@ -1,6 +1,6 @@
1
1
  import { C as require_react, E as __toESM, T as __exportAll, _ as isDangerousProtocol, f as deepEqual$1, g as hasKeys, h as functionalUpdate, i as useRouter, o as require_jsx_runtime, s as invariant, t as useStore, v as isModuleNotFoundError } from "./useStore-DWGPqzXR.js";
2
2
  import { D as useIntersectionObserver, E as useForwardedRef, T as reactUse, _ as trimPathRight, f as joinPaths, g as trimPathLeft, o as redirect, p as removeTrailingSlash, r as useHydrated, s as rootRouteId, t as require_react_dom, u as exactPathTest } from "./react-dom-qCTiwGGR.js";
3
- import { $ as X, E as Loader, S as Info, c as AlertTriangle, h as Copy, nt as useMatch, s as AlertCircle, tt as useLoaderData, u as Check } from "./page-DiOsIrE3.js";
3
+ import { $ as X, E as Loader, S as Info, c as AlertTriangle, h as Copy, nt as useMatch, s as AlertCircle, tt as useLoaderData, u as Check } from "./page-BdnhpwvH.js";
4
4
  //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.15/node_modules/@tanstack/router-core/dist/esm/link.js
5
5
  var preloadWarning = "Error preloading route! ☝️";
6
6
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { o as require_jsx_runtime } from "./useStore-DWGPqzXR.js";
2
- import { X as User, n as ClosedDoor, tt as useLoaderData } from "./page-DiOsIrE3.js";
2
+ import { X as User, n as ClosedDoor, tt as useLoaderData } from "./page-BdnhpwvH.js";
3
3
  //#region src/routes/unregistered.tsx?tsr-split=component
4
4
  var import_jsx_runtime = require_jsx_runtime();
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { C as lazyRouteComponent, w as createFileRoute } from "./ui-LHVjaG5-.js";
2
- import { n as loadPrincipalPage } from "./principal-page-CDreH-XI.js";
1
+ import { C as lazyRouteComponent, w as createFileRoute } from "./ui-D_slKpSF.js";
2
+ import { n as loadPrincipalPage } from "./principal-page-SdG8_zcu.js";
3
3
  //#region src/routes/users.$user.tsx
4
- var $$splitComponentImporter = () => import("./users._user-mcrhbPC1.js");
4
+ var $$splitComponentImporter = () => import("./users._user-DHTNhQ9o.js");
5
5
  var Route = createFileRoute("/users/$user")({
6
6
  loader: async ({ context: { client }, params, parentMatchPromise }) => loadPrincipalPage(client, "user", params.user, (await parentMatchPromise).loaderData),
7
7
  component: lazyRouteComponent($$splitComponentImporter, "component")
@@ -1,6 +1,6 @@
1
1
  import { o as require_jsx_runtime } from "./useStore-DWGPqzXR.js";
2
- import { t as PrincipalPage } from "./principal-page-CDreH-XI.js";
3
- import { t as Route } from "./users._user-C37OCYBV.js";
2
+ import { t as PrincipalPage } from "./principal-page-SdG8_zcu.js";
3
+ import { t as Route } from "./users._user-BKdSQhIg.js";
4
4
  //#region src/routes/users.$user.tsx?tsr-split=component
5
5
  var import_jsx_runtime = require_jsx_runtime();
6
6
  function UserPage() {
@@ -1,8 +1,8 @@
1
1
  import { o as require_jsx_runtime } from "./useStore-DWGPqzXR.js";
2
- import { Q as Users, i as PageHeader, n as ClosedDoor } from "./page-DiOsIrE3.js";
3
- import { n as DirectoryTable, t as AddPrincipal } from "./directory-B8Z293k_.js";
4
- import { n as RemovedList } from "./offboarding-B9ZEdbgB.js";
5
- import { t as Route } from "./users.index-CbkUgp_t.js";
2
+ import { Q as Users, i as PageHeader, n as ClosedDoor } from "./page-BdnhpwvH.js";
3
+ import { n as DirectoryTable, t as AddPrincipal } from "./directory-Dr5X9TB5.js";
4
+ import { n as RemovedList } from "./offboarding-DY5MarpG.js";
5
+ import { t as Route } from "./users.index-dMn0tlmc.js";
6
6
  //#region src/routes/users.index.tsx?tsr-split=component
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  function UsersPage() {
@@ -1,7 +1,7 @@
1
- import { C as lazyRouteComponent, w as createFileRoute } from "./ui-LHVjaG5-.js";
2
- import { o as loadDirectory } from "./directory-B8Z293k_.js";
1
+ import { C as lazyRouteComponent, w as createFileRoute } from "./ui-D_slKpSF.js";
2
+ import { o as loadDirectory } from "./directory-Dr5X9TB5.js";
3
3
  //#region src/routes/users.index.tsx
4
- var $$splitComponentImporter = () => import("./users.index-qfQmqRyv.js");
4
+ var $$splitComponentImporter = () => import("./users.index-Cfo3ODpX.js");
5
5
  var Route = createFileRoute("/users/")({
6
6
  loader: async ({ context: { client }, parentMatchPromise }) => loadDirectory(client, (await parentMatchPromise).loaderData?.capabilities.canManageGrants ?? false),
7
7
  component: lazyRouteComponent($$splitComponentImporter, "component")
@@ -12380,7 +12380,7 @@ var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
12380
12380
  * the dev styles URL for route-scoped CSS collection.
12381
12381
  */
12382
12382
  async function getStartManifest(matchedRoutes) {
12383
- const { tsrStartManifest } = await import("./_coffre/assets/_tanstack-start-manifest_v-C_KVq49j.js");
12383
+ const { tsrStartManifest } = await import("./_coffre/assets/_tanstack-start-manifest_v-CrnrBINO.js");
12384
12384
  const startManifest = tsrStartManifest();
12385
12385
  let routes = startManifest.routes;
12386
12386
  routes[rootRouteId];
@@ -13507,7 +13507,7 @@ var getBaseManifest = getProdBaseManifest;
13507
13507
  var createEarlyHintsForRequest = createEarlyHintsCollector;
13508
13508
  async function loadEntries() {
13509
13509
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
13510
- import("./_coffre/assets/router-BJogcQmd.js"),
13510
+ import("./_coffre/assets/router-BUwZOXEH.js"),
13511
13511
  import("./_coffre/assets/start-DR3rN0St.js"),
13512
13512
  import("./_coffre/assets/empty-plugin-adapters-Cq4--YW-.js")
13513
13513
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffre/ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "coffre's pages: a prebuilt TanStack Start handler and its static files.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "dependencies": {
31
- "@coffre/client": "0.1.7"
31
+ "@coffre/client": "0.1.9"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@cloudflare/vite-plugin": "1.50.0",
@@ -51,7 +51,7 @@
51
51
  "typescript": "5.9.3",
52
52
  "vite": "8.1.5",
53
53
  "wrangler": "4.118.0",
54
- "@coffre/core": "0.1.7"
54
+ "@coffre/core": "0.1.9"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "vite build && rm dist/server/wrangler.json && tsdown && node ../../scripts/check-client-bundle.mjs",
@@ -198,7 +198,7 @@ export function CommandPalette({
198
198
  />
199
199
  )}
200
200
  <Command.Item
201
- value="settings workspace instance sign-in"
201
+ value="settings instance sign-in"
202
202
  onSelect={() => {
203
203
  setOpen(false);
204
204
  navigate({ to: '/settings' });
@@ -146,7 +146,7 @@ export const Folder = lucide(FolderGlyph);
146
146
  export const Layers = lucide(LayersGlyph);
147
147
  export const Users = lucide(UsersGlyph);
148
148
  export const User = lucide(UserGlyph);
149
- /** Your own settings, so they never share the workspace's gear. */
149
+ /** Your own settings, so they never share the instance's gear. */
150
150
  export const UserCog = lucide(UserRoundCog);
151
151
  export const Key = lucide(KeyRound);
152
152
  export const Ledger = lucide(ScrollText);
@@ -1,7 +1,6 @@
1
1
  import { useCallback, useEffect, useState, type ReactNode } from 'react';
2
2
  import { Link, useLoaderData, useNavigate, useRouterState } from '@tanstack/react-router';
3
3
  import { Dialog, DropdownMenu } from 'radix-ui';
4
- import { toast } from 'sonner';
5
4
  import type { ProjectSummary } from '../shared/models';
6
5
  import type { UiCapabilities } from '../lib/capabilities';
7
6
  import { isActiveAccessibleEnvironment } from '../lib/project-environments';
@@ -20,7 +19,6 @@ import {
20
19
  Mark,
21
20
  Menu,
22
21
  PanelLeft,
23
- Plus,
24
22
  Settings,
25
23
  SignOut,
26
24
  UserCog,
@@ -41,12 +39,6 @@ type ShellProps = {
41
39
 
42
40
  const REPOSITORY = 'https://github.com/erwinkn/coffre';
43
41
 
44
- /**
45
- * The workspace this deployment serves. The server has no such notion yet --
46
- * one deployment is one workspace -- so the name lives here until it does.
47
- */
48
- const WORKSPACE = 'Acme';
49
-
50
42
  const SIDEBAR_KEY = 'coffre-sidebar';
51
43
 
52
44
  /** Wide enough for the sidebar to sit beside the page; narrower, it is a drawer. */
@@ -111,7 +103,7 @@ export function Brand() {
111
103
  }
112
104
 
113
105
  /**
114
- * The application frame: a sidebar of sections, headed by the workspace and
106
+ * The application frame: a sidebar of sections, headed by coffre's mark and
115
107
  * footed by your account, and a bar across the content with search on the
116
108
  * right. The sidebar folds down to its icons (⌘B, or the button at the left
117
109
  * of the bar) and stays folded across visits.
@@ -256,7 +248,12 @@ function Sidebar({
256
248
  return (
257
249
  <>
258
250
  <div className="sidebar-head">
259
- <WorkspaceMenu collapsed={collapsed} />
251
+ <CollapsedTip collapsed={collapsed} label="coffre">
252
+ <Link className="brand sidebar-brand" to="/projects">
253
+ <Mark size={24} />
254
+ <span className="brand-name">coffre</span>
255
+ </Link>
256
+ </CollapsedTip>
260
257
  {close}
261
258
  </div>
262
259
 
@@ -287,7 +284,7 @@ function Sidebar({
287
284
  />
288
285
  </nav>
289
286
 
290
- {/* Settings above is the workspace's; yours are here, with you. */}
287
+ {/* Settings above is the instance's; yours are here, with you. */}
291
288
  {principal !== null && (
292
289
  <div className="sidebar-foot">
293
290
  <AccountMenu principal={principal} instanceRole={instanceRole} collapsed={collapsed} />
@@ -349,51 +346,6 @@ function NavLink({
349
346
  );
350
347
  }
351
348
 
352
- /**
353
- * The workspace you are in, and where the others would be.
354
- *
355
- * For now this lists the one there is, and creating another says why it
356
- * cannot yet rather than opening a form that goes nowhere.
357
- */
358
- function WorkspaceMenu({ collapsed }: { collapsed: boolean }) {
359
- const navigate = useNavigate();
360
- return (
361
- <DropdownMenu.Root>
362
- <CollapsedTip collapsed={collapsed} label={WORKSPACE}>
363
- <DropdownMenu.Trigger asChild>
364
- <button type="button" className="workspace">
365
- <Tile name={WORKSPACE} />
366
- <span className="workspace-name">{WORKSPACE}</span>
367
- <ChevronsUpDown size={14} className="workspace-chevron" />
368
- </button>
369
- </DropdownMenu.Trigger>
370
- </CollapsedTip>
371
- <DropdownMenu.Portal>
372
- <DropdownMenu.Content className="menu menu-workspace" align="start" sideOffset={6}>
373
- <DropdownMenu.Label className="menu-label">Workspaces</DropdownMenu.Label>
374
- <DropdownMenu.Item className="menu-item" onSelect={() => navigate({ to: '/projects' })}>
375
- <Tile name={WORKSPACE} />
376
- {WORKSPACE}
377
- <Check size={14} className="menu-check" />
378
- </DropdownMenu.Item>
379
- <DropdownMenu.Separator className="menu-sep" />
380
- <DropdownMenu.Item
381
- className="menu-item"
382
- onSelect={() =>
383
- toast('One workspace per deployment, for now', {
384
- description: `Creating another needs server support coffre does not have yet. This deployment is ${WORKSPACE}.`,
385
- })
386
- }
387
- >
388
- <Plus size={14} />
389
- Create workspace
390
- </DropdownMenu.Item>
391
- </DropdownMenu.Content>
392
- </DropdownMenu.Portal>
393
- </DropdownMenu.Root>
394
- );
395
- }
396
-
397
349
  /**
398
350
  * Sign out with a real form post, built on the spot: the menu item unmounts
399
351
  * as the menu closes, so it cannot hold the form itself, and the response is
@@ -428,37 +428,6 @@ export function lines<T extends AuditEntry>(entries: T[]): T[][] {
428
428
  return shown;
429
429
  }
430
430
 
431
- /** What a kind of hidden entry is called, by action or its prefix. */
432
- const HIDDEN_KINDS: [prefix: string, one: string, many: string][] = [
433
- ['key.', 'key operation', 'key operations'],
434
- ['sign_in', 'sign-in', 'sign-ins'],
435
- ['sign_out', 'sign-out', 'sign-outs'],
436
- ['token.', 'token change', 'token changes'],
437
- ['device.', 'CLI sign-in approval', 'CLI sign-in approvals'],
438
- ['account.', 'account link', 'account links'],
439
- ['sync.run', 'sync run', 'sync runs'],
440
- ['audit.heartbeat', 'heartbeat', 'heartbeats'],
441
- ['audit.checkpoint', 'checkpoint', 'checkpoints'],
442
- ];
443
-
444
- /**
445
- * "2 key operations, 3 sign-ins and 12 heartbeats": the detail the server
446
- * left out of the page, as it counts it, by action.
447
- */
448
- export function hiddenInWords(hidden: { action: string; count: number }[]): string | null {
449
- const counts = new Map<string, { one: string; many: string; count: number }>();
450
- for (const { action, count } of hidden) {
451
- if (count === 0) continue;
452
- const [, one, many] = HIDDEN_KINDS.find(([prefix]) => action.startsWith(prefix)) ?? [action, action, action];
453
- const kind = counts.get(one) ?? { one, many, count: 0 };
454
- kind.count += count;
455
- counts.set(one, kind);
456
- }
457
- const phrases = [...counts.values()].map(({ one, many, count }) => `${count} ${count === 1 ? one : many}`);
458
- if (phrases.length === 0) return null;
459
- return phrases.length === 1 ? phrases[0]! : `${phrases.slice(0, -1).join(', ')} and ${phrases.at(-1)}`;
460
- }
461
-
462
431
  /** A sentence as text. */
463
432
  export function plain(parts: Part[]): string {
464
433
  return parts
@@ -15,7 +15,7 @@ type Search = { linked?: string; error?: string };
15
15
  /**
16
16
  * Your own settings: how coffre looks here, who it takes you for and, when
17
17
  * coffre runs its own sign-in, which accounts you sign in with and where you
18
- * are signed in. The sidebar's Settings is the workspace's; this page is
18
+ * are signed in. The sidebar's Settings is the instance's; this page is
19
19
  * reached from your account at the sidebar's foot.
20
20
  */
21
21
  export const Route = createFileRoute('/account')({
@@ -5,7 +5,6 @@ import { statusOf, uiResult } from '../lib/coffre';
5
5
  import {
6
6
  decidedBy,
7
7
  describe,
8
- hiddenInWords,
9
8
  lines,
10
9
  who,
11
10
  type Part,
@@ -111,7 +110,6 @@ function AuditPage() {
111
110
  const broken = chain.integrity === 'broken' ? chain : null;
112
111
  const breakAt = broken?.failedAtSeq ?? null;
113
112
  const shown = lines(result.entries);
114
- const hiddenText = detail ? null : hiddenInWords(result.hidden ?? []);
115
113
  const filters = { decision, actorId };
116
114
 
117
115
  return (
@@ -137,13 +135,7 @@ function AuditPage() {
137
135
  ; <code>coffre audit</code> lists them all.
138
136
  </>
139
137
  ) : (
140
- <>
141
- : it may be detail,{' '}
142
- <Link to="/audit" search={{ ...filters, detail: '1' }}>
143
- shown on request
144
- </Link>
145
- .
146
- </>
138
+ ': it may be detail, which Show detail lists.'
147
139
  )}
148
140
  </>
149
141
  )}
@@ -151,11 +143,6 @@ function AuditPage() {
151
143
  </div>
152
144
  )}
153
145
 
154
- <p className="section-desc">
155
- Everything done in coffre, one line per action, refusals included, and who decided it: the
156
- app, or the vault, which holds the keys and the access.
157
- </p>
158
-
159
146
  <div className="toolbar">
160
147
  <nav className="segmented" aria-label="Filter by decision">
161
148
  {/* `exact` compares the whole search, not a subset of it: otherwise
@@ -244,14 +231,6 @@ function AuditPage() {
244
231
  )}
245
232
  </section>
246
233
 
247
- {hiddenText !== null && (
248
- <p className="hint section-foot">
249
- Hidden: {hiddenText}.{' '}
250
- <Link to="/audit" search={{ ...filters, detail: '1' }}>
251
- Show detail
252
- </Link>
253
- </p>
254
- )}
255
234
  </>
256
235
  );
257
236
  }
@@ -537,7 +516,7 @@ function ChainStatus({ chain }: { chain: ChainResult }) {
537
516
  >
538
517
  <button type="button" className="chain-seal">
539
518
  <ShieldCheck size={14} />
540
- {chain.through === null ? 'Verified' : `Verified through ${chain.through}`}
519
+ Verified
541
520
  </button>
542
521
  </Toggletip>
543
522
  </div>
@@ -2,7 +2,7 @@ import { createFileRoute, Link } from '@tanstack/react-router';
2
2
  import { loadDirectory } from '../components/directory';
3
3
  import { Card, Fact, PageHeader } from '../components/page';
4
4
 
5
- /** The workspace's settings. Your own are under Account, at the sidebar's foot. */
5
+ /** The instance's settings. Your own are under Account, at the sidebar's foot. */
6
6
  export const Route = createFileRoute('/settings')({
7
7
  // Instance facts come from the directory, which only owners may list.
8
8
  // Asking on everyone's behalf would write a refusal to the audit log for