@coffre/ui 0.6.1 → 0.6.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.
Files changed (100) hide show
  1. package/dist/chunks/{audit-sentence-CUUMshIp.js → audit-sentence-BVv_9_nq.js} +2 -2
  2. package/dist/chunks/{audit-sentence-CUUMshIp.js.map → audit-sentence-BVv_9_nq.js.map} +1 -1
  3. package/dist/chunks/{connected-apps-DTpatjge.js → connected-apps-rBF9XUob.js} +4 -4
  4. package/dist/chunks/{connected-apps-DTpatjge.js.map → connected-apps-rBF9XUob.js.map} +1 -1
  5. package/dist/chunks/{delete-place-SOOYVt6A.js → delete-place-CkGezx5R.js} +4 -4
  6. package/dist/chunks/{delete-place-SOOYVt6A.js.map → delete-place-CkGezx5R.js.map} +1 -1
  7. package/dist/chunks/{directory-DrtdKny2.js → directory-SRN01yP6.js} +21 -19
  8. package/dist/chunks/directory-SRN01yP6.js.map +1 -0
  9. package/dist/chunks/{folders-hR2Lnk0k.js → folders-Dw240WMJ.js} +2 -2
  10. package/dist/chunks/{folders-hR2Lnk0k.js.map → folders-Dw240WMJ.js.map} +1 -1
  11. package/dist/chunks/{grants-DDBui9YD.js → grants-1E1vqkM0.js} +5 -5
  12. package/dist/chunks/{grants-DDBui9YD.js.map → grants-1E1vqkM0.js.map} +1 -1
  13. package/dist/chunks/multi-combobox-CsIXihuc.js +99 -0
  14. package/dist/chunks/multi-combobox-CsIXihuc.js.map +1 -0
  15. package/dist/chunks/{offboarding-C7ECW5o0.js → offboarding-Bt7KSixm.js} +3 -3
  16. package/dist/chunks/{offboarding-C7ECW5o0.js.map → offboarding-Bt7KSixm.js.map} +1 -1
  17. package/dist/chunks/{principal-page-CB6dAABC.js → principal-page-Cbx2l6XL.js} +21 -24
  18. package/dist/chunks/principal-page-Cbx2l6XL.js.map +1 -0
  19. package/dist/chunks/{project-page-BHNUvr2L.js → project-page-DKo2AFYg.js} +2 -2
  20. package/dist/chunks/{project-page-BHNUvr2L.js.map → project-page-DKo2AFYg.js.map} +1 -1
  21. package/dist/chunks/{queries-DgQo3mC-.js → queries-BvSw1xBN.js} +85 -14
  22. package/dist/chunks/queries-BvSw1xBN.js.map +1 -0
  23. package/dist/chunks/{references-BQc35Q9g.js → references-DCoSPtvw.js} +4 -4
  24. package/dist/chunks/{references-BQc35Q9g.js.map → references-DCoSPtvw.js.map} +1 -1
  25. package/dist/chunks/{role-field-BfWRCqzl.js → role-field-D98CvNEg.js} +2 -2
  26. package/dist/chunks/{role-field-BfWRCqzl.js.map → role-field-D98CvNEg.js.map} +1 -1
  27. package/dist/chunks/{row-state-Zf3kZVhd.js → row-state-BsIHspy4.js} +2 -2
  28. package/dist/chunks/{row-state-Zf3kZVhd.js.map → row-state-BsIHspy4.js.map} +1 -1
  29. package/dist/chunks/{theme-B6-V9JvY.js → theme-3b4DnCow.js} +2 -2
  30. package/dist/chunks/{theme-B6-V9JvY.js.map → theme-3b4DnCow.js.map} +1 -1
  31. package/dist/chunks/{ui-Br-dNUTc.js → ui-2kwXXfrX.js} +95 -22
  32. package/dist/chunks/ui-2kwXXfrX.js.map +1 -0
  33. package/dist/chunks/{use-action-DthL5hL8.js → use-action-Bv7yQ0DW.js} +2 -2
  34. package/dist/chunks/{use-action-DthL5hL8.js.map → use-action-Bv7yQ0DW.js.map} +1 -1
  35. package/dist/chunks/{use-change-By4cG8bT.js → use-change-DIQTGXER.js} +58 -17
  36. package/dist/chunks/use-change-DIQTGXER.js.map +1 -0
  37. package/dist/chunks/{use-shell-D6kjSPls.js → use-shell-DhFoHjDS.js} +2 -2
  38. package/dist/chunks/{use-shell-D6kjSPls.js.map → use-shell-DhFoHjDS.js.map} +1 -1
  39. package/dist/index.d.ts +13 -164
  40. package/dist/index.js +141 -128
  41. package/dist/index.js.map +1 -1
  42. package/dist/pages/account.js +8 -8
  43. package/dist/pages/approval.js +1 -1
  44. package/dist/pages/audit.js +46 -60
  45. package/dist/pages/audit.js.map +1 -1
  46. package/dist/pages/device-login.js +1 -1
  47. package/dist/pages/environment.js +444 -235
  48. package/dist/pages/environment.js.map +1 -1
  49. package/dist/pages/login.js +2 -2
  50. package/dist/pages/oauth-authorize.js +1 -1
  51. package/dist/pages/project-access.js +8 -8
  52. package/dist/pages/project-environments.js +19 -58
  53. package/dist/pages/project-environments.js.map +1 -1
  54. package/dist/pages/project-settings.d.ts +1 -1
  55. package/dist/pages/project-settings.js +54 -75
  56. package/dist/pages/project-settings.js.map +1 -1
  57. package/dist/pages/project.js +3 -7
  58. package/dist/pages/project.js.map +1 -1
  59. package/dist/pages/projects.js +50 -77
  60. package/dist/pages/projects.js.map +1 -1
  61. package/dist/pages/service-account.js +11 -136
  62. package/dist/pages/service-account.js.map +1 -1
  63. package/dist/pages/service-accounts.js +4 -4
  64. package/dist/pages/settings.js +5 -5
  65. package/dist/pages/unregistered.js +1 -1
  66. package/dist/pages/user.js +5 -5
  67. package/dist/pages/users.js +4 -4
  68. package/package.json +3 -3
  69. package/src/components/actions-log.tsx +1 -1
  70. package/src/components/command-palette.tsx +4 -5
  71. package/src/components/directory.tsx +6 -14
  72. package/src/components/missing.tsx +63 -67
  73. package/src/components/principal-page.tsx +10 -14
  74. package/src/components/service-tokens.tsx +2 -11
  75. package/src/components/shell.tsx +79 -75
  76. package/src/components/trusted-workloads.tsx +2 -11
  77. package/src/components/ui.tsx +35 -25
  78. package/src/lib/changes.ts +63 -12
  79. package/src/lib/clipboard.ts +40 -0
  80. package/src/lib/copy-attempts.ts +103 -0
  81. package/src/lib/dismissal.ts +24 -0
  82. package/src/lib/optimistic.ts +3 -1
  83. package/src/lib/queries.ts +106 -13
  84. package/src/lib/row-reads.ts +64 -0
  85. package/src/options.ts +38 -50
  86. package/src/pages/audit.tsx +15 -24
  87. package/src/pages/environment.tsx +307 -91
  88. package/src/pages/project-environments.tsx +8 -34
  89. package/src/pages/project-settings.tsx +9 -20
  90. package/src/pages/project.tsx +1 -5
  91. package/src/pages/projects.tsx +13 -28
  92. package/src/parity.ts +3 -3
  93. package/src/styles/globals.css +87 -128
  94. package/dist/chunks/directory-DrtdKny2.js.map +0 -1
  95. package/dist/chunks/principal-page-CB6dAABC.js.map +0 -1
  96. package/dist/chunks/project-environments-lEzFHUt4.js +0 -11
  97. package/dist/chunks/project-environments-lEzFHUt4.js.map +0 -1
  98. package/dist/chunks/queries-DgQo3mC-.js.map +0 -1
  99. package/dist/chunks/ui-Br-dNUTc.js.map +0 -1
  100. package/dist/chunks/use-change-By4cG8bT.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"folders-hR2Lnk0k.js","names":[],"sources":["../../src/components/folders.tsx"],"sourcesContent":["import { useEffect, useId, useState, type ReactNode } from 'react';\nimport { Menu } from '@base-ui/react/menu';\n\nimport { folderProblem } from '../lib/validation';\nimport { Folder, MoreHorizontal, Pencil, X } from './icons';\nimport { ConfirmDialog, MenuPopup, Modal } from './ui';\n\n/**\n * A folder's heading row inside a table: the rows after it, up to the next\n * heading, are filed in it. Folders only arrange a list\n * (docs/design/environments.md).\n */\nexport function FolderRow({ folder, count, columns, actions }: { folder: string; count: number; columns: number; actions?: ReactNode }) {\n return (\n <tr className=\"folder-row\">\n <th colSpan={columns} scope=\"rowgroup\">\n <span className=\"folder-row-head\">\n <span className=\"th\">\n <Folder size={14} />\n {folder}\n <span className=\"count\">{count}</span>\n </span>\n {actions}\n </span>\n </th>\n </tr>\n );\n}\n\n/**\n * A folder heading's menu: rename it, which re-files everything in it, or\n * remove it, which takes everything out. A folder is only a label, so what\n * was in it stays where it is, and a rename onto a folder in use merges the\n * two.\n */\nexport function FolderMenu({\n folder,\n count,\n what,\n folders,\n onRename,\n onRemove,\n}: {\n folder: string;\n count: number;\n /** What it holds, as a sentence counts them: `project`, `key`. */\n what: string;\n /** The other folders in use beside it, offered as you type. */\n folders: readonly string[];\n onRename: (name: string) => void;\n onRemove: () => void;\n}) {\n const [renaming, setRenaming] = useState(false);\n const [removing, setRemoving] = useState(false);\n const [name, setName] = useState(folder);\n const listId = useId();\n useEffect(() => {\n if (renaming) setName(folder);\n }, [renaming, folder]);\n const problem = folderProblem(name);\n const merges = name !== folder && folders.includes(name);\n const items = `${count} ${what}${count === 1 ? '' : 's'}`;\n\n return (\n <>\n <Menu.Root>\n <Menu.Trigger className=\"act act-icon act-quiet folder-row-menu\" aria-label={`Actions for the folder ${folder}`}>\n <MoreHorizontal size={16} />\n </Menu.Trigger>\n <MenuPopup align=\"end\">\n <Menu.Item className=\"menu-item\" onClick={() => setRenaming(true)}>\n <Pencil size={14} />\n Rename folder…\n </Menu.Item>\n <Menu.Item className=\"menu-item menu-item-danger\" onClick={() => setRemoving(true)}>\n <X size={14} />\n Remove folder…\n </Menu.Item>\n </MenuPopup>\n </Menu.Root>\n\n <Modal\n open={renaming}\n onOpenChange={setRenaming}\n title={`Rename ${folder}`}\n description={`Its ${items} move with it. Nothing else changes.`}\n >\n <form\n className=\"form\"\n onSubmit={(event) => {\n event.preventDefault();\n if (problem !== null || name === '' || name === folder) return;\n onRename(name);\n setRenaming(false);\n }}\n >\n <label className=\"field\">\n <span className=\"label\">Name</span>\n <input\n className=\"input\"\n autoFocus\n spellCheck={false}\n autoComplete=\"off\"\n list={listId}\n value={name}\n aria-invalid={problem !== null}\n onChange={(event) => setName(event.target.value)}\n />\n <datalist id={listId}>\n {folders.filter((each) => each !== folder).map((each) => (\n <option key={each} value={each} />\n ))}\n </datalist>\n <span className={`hint${problem !== null ? ' edit-note-error' : ''}`}>\n {problem ?? (merges ? `${name} is in use: the two become one folder.` : 'One level: no slash.')}\n </span>\n </label>\n <div className=\"dialog-actions\">\n <button className=\"btn\" type=\"button\" onClick={() => setRenaming(false)}>\n Cancel\n </button>\n <button className=\"btn btn-primary\" type=\"submit\" disabled={problem !== null || name === '' || name === folder}>\n {merges ? 'Merge' : 'Rename'}\n </button>\n </div>\n </form>\n </Modal>\n\n <ConfirmDialog\n open={removing}\n onOpenChange={setRemoving}\n title={`Remove the folder ${folder}?`}\n body={`Its ${items} stay where they are, in no folder. Nothing else changes.`}\n confirmLabel=\"Remove folder\"\n onConfirm={onRemove}\n />\n </>\n );\n}\n\n/**\n * Where to file something: a folder by name, one already in use or a new\n * one, or none. Asked in a dialog, since it is one field and one decision.\n */\nexport function MoveToFolder({\n open,\n onOpenChange,\n what,\n current,\n folders,\n onMove,\n}: {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n /** What moves, as the title names it: \"STRIPE_KEY\". */\n what: string;\n current: string | null;\n /** The folders in use beside it, offered as you type. */\n folders: readonly string[];\n onMove: (folder: string | null) => void;\n}) {\n const [name, setName] = useState(current ?? '');\n const listId = useId();\n useEffect(() => {\n if (open) setName(current ?? '');\n }, [open, current]);\n const problem = folderProblem(name);\n const folder = name === '' ? null : name;\n\n return (\n <Modal\n open={open}\n onOpenChange={onOpenChange}\n title={`Move ${what} to a folder`}\n description=\"Folders only arrange the list: names, values and access stay as they are.\"\n >\n <form\n className=\"form\"\n onSubmit={(event) => {\n event.preventDefault();\n if (problem !== null) return;\n if (folder !== current) onMove(folder);\n onOpenChange(false);\n }}\n >\n <label className=\"field\">\n <span className=\"label\">Folder</span>\n <input\n className=\"input\"\n autoFocus\n spellCheck={false}\n autoComplete=\"off\"\n list={listId}\n placeholder=\"No folder\"\n value={name}\n aria-invalid={problem !== null}\n onChange={(event) => setName(event.target.value)}\n />\n <datalist id={listId}>\n {folders.map((each) => (\n <option key={each} value={each} />\n ))}\n </datalist>\n <span className={`hint${problem !== null ? ' edit-note-error' : ''}`}>\n {problem ?? 'Pick one in use, or name a new one. Empty for no folder.'}\n </span>\n </label>\n <div className=\"dialog-actions\">\n <button className=\"btn\" type=\"button\" onClick={() => onOpenChange(false)}>\n Cancel\n </button>\n <button className=\"btn btn-primary\" type=\"submit\" disabled={problem !== null || folder === current}>\n {folder === null && current !== null ? 'Take out of its folder' : 'Move'}\n </button>\n </div>\n </form>\n </Modal>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgB,UAAU,EAAE,QAAQ,O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,"file":"folders-Dw240WMJ.js","names":[],"sources":["../../src/components/folders.tsx"],"sourcesContent":["import { useEffect, useId, useState, type ReactNode } from 'react';\nimport { Menu } from '@base-ui/react/menu';\n\nimport { folderProblem } from '../lib/validation';\nimport { Folder, MoreHorizontal, Pencil, X } from './icons';\nimport { ConfirmDialog, MenuPopup, Modal } from './ui';\n\n/**\n * A folder's heading row inside a table: the rows after it, up to the next\n * heading, are filed in it. Folders only arrange a list\n * (docs/design/environments.md).\n */\nexport function FolderRow({ folder, count, columns, actions }: { folder: string; count: number; columns: number; actions?: ReactNode }) {\n return (\n <tr className=\"folder-row\">\n <th colSpan={columns} scope=\"rowgroup\">\n <span className=\"folder-row-head\">\n <span className=\"th\">\n <Folder size={14} />\n {folder}\n <span className=\"count\">{count}</span>\n </span>\n {actions}\n </span>\n </th>\n </tr>\n );\n}\n\n/**\n * A folder heading's menu: rename it, which re-files everything in it, or\n * remove it, which takes everything out. A folder is only a label, so what\n * was in it stays where it is, and a rename onto a folder in use merges the\n * two.\n */\nexport function FolderMenu({\n folder,\n count,\n what,\n folders,\n onRename,\n onRemove,\n}: {\n folder: string;\n count: number;\n /** What it holds, as a sentence counts them: `project`, `key`. */\n what: string;\n /** The other folders in use beside it, offered as you type. */\n folders: readonly string[];\n onRename: (name: string) => void;\n onRemove: () => void;\n}) {\n const [renaming, setRenaming] = useState(false);\n const [removing, setRemoving] = useState(false);\n const [name, setName] = useState(folder);\n const listId = useId();\n useEffect(() => {\n if (renaming) setName(folder);\n }, [renaming, folder]);\n const problem = folderProblem(name);\n const merges = name !== folder && folders.includes(name);\n const items = `${count} ${what}${count === 1 ? '' : 's'}`;\n\n return (\n <>\n <Menu.Root>\n <Menu.Trigger className=\"act act-icon act-quiet folder-row-menu\" aria-label={`Actions for the folder ${folder}`}>\n <MoreHorizontal size={16} />\n </Menu.Trigger>\n <MenuPopup align=\"end\">\n <Menu.Item className=\"menu-item\" onClick={() => setRenaming(true)}>\n <Pencil size={14} />\n Rename folder…\n </Menu.Item>\n <Menu.Item className=\"menu-item menu-item-danger\" onClick={() => setRemoving(true)}>\n <X size={14} />\n Remove folder…\n </Menu.Item>\n </MenuPopup>\n </Menu.Root>\n\n <Modal\n open={renaming}\n onOpenChange={setRenaming}\n title={`Rename ${folder}`}\n description={`Its ${items} move with it. Nothing else changes.`}\n >\n <form\n className=\"form\"\n onSubmit={(event) => {\n event.preventDefault();\n if (problem !== null || name === '' || name === folder) return;\n onRename(name);\n setRenaming(false);\n }}\n >\n <label className=\"field\">\n <span className=\"label\">Name</span>\n <input\n className=\"input\"\n autoFocus\n spellCheck={false}\n autoComplete=\"off\"\n list={listId}\n value={name}\n aria-invalid={problem !== null}\n onChange={(event) => setName(event.target.value)}\n />\n <datalist id={listId}>\n {folders.filter((each) => each !== folder).map((each) => (\n <option key={each} value={each} />\n ))}\n </datalist>\n <span className={`hint${problem !== null ? ' edit-note-error' : ''}`}>\n {problem ?? (merges ? `${name} is in use: the two become one folder.` : 'One level: no slash.')}\n </span>\n </label>\n <div className=\"dialog-actions\">\n <button className=\"btn\" type=\"button\" onClick={() => setRenaming(false)}>\n Cancel\n </button>\n <button className=\"btn btn-primary\" type=\"submit\" disabled={problem !== null || name === '' || name === folder}>\n {merges ? 'Merge' : 'Rename'}\n </button>\n </div>\n </form>\n </Modal>\n\n <ConfirmDialog\n open={removing}\n onOpenChange={setRemoving}\n title={`Remove the folder ${folder}?`}\n body={`Its ${items} stay where they are, in no folder. Nothing else changes.`}\n confirmLabel=\"Remove folder\"\n onConfirm={onRemove}\n />\n </>\n );\n}\n\n/**\n * Where to file something: a folder by name, one already in use or a new\n * one, or none. Asked in a dialog, since it is one field and one decision.\n */\nexport function MoveToFolder({\n open,\n onOpenChange,\n what,\n current,\n folders,\n onMove,\n}: {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n /** What moves, as the title names it: \"STRIPE_KEY\". */\n what: string;\n current: string | null;\n /** The folders in use beside it, offered as you type. */\n folders: readonly string[];\n onMove: (folder: string | null) => void;\n}) {\n const [name, setName] = useState(current ?? '');\n const listId = useId();\n useEffect(() => {\n if (open) setName(current ?? '');\n }, [open, current]);\n const problem = folderProblem(name);\n const folder = name === '' ? null : name;\n\n return (\n <Modal\n open={open}\n onOpenChange={onOpenChange}\n title={`Move ${what} to a folder`}\n description=\"Folders only arrange the list: names, values and access stay as they are.\"\n >\n <form\n className=\"form\"\n onSubmit={(event) => {\n event.preventDefault();\n if (problem !== null) return;\n if (folder !== current) onMove(folder);\n onOpenChange(false);\n }}\n >\n <label className=\"field\">\n <span className=\"label\">Folder</span>\n <input\n className=\"input\"\n autoFocus\n spellCheck={false}\n autoComplete=\"off\"\n list={listId}\n placeholder=\"No folder\"\n value={name}\n aria-invalid={problem !== null}\n onChange={(event) => setName(event.target.value)}\n />\n <datalist id={listId}>\n {folders.map((each) => (\n <option key={each} value={each} />\n ))}\n </datalist>\n <span className={`hint${problem !== null ? ' edit-note-error' : ''}`}>\n {problem ?? 'Pick one in use, or name a new one. Empty for no folder.'}\n </span>\n </label>\n <div className=\"dialog-actions\">\n <button className=\"btn\" type=\"button\" onClick={() => onOpenChange(false)}>\n Cancel\n </button>\n <button className=\"btn btn-primary\" type=\"submit\" disabled={problem !== null || folder === current}>\n {folder === null && current !== null ? 'Take out of its folder' : 'Move'}\n </button>\n </div>\n </form>\n </Modal>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgB,UAAU,EAAE,QAAQ,OAAO,SAAS,WAAoF;CACtI,OACE,oBAAC,MAAD;EAAI,WAAU;YACZ,oBAAC,MAAD;GAAI,SAAS;GAAS,OAAM;aAC1B,qBAAC,QAAD;IAAM,WAAU;cAAhB,CACE,qBAAC,QAAD;KAAM,WAAU;eAAhB;MACE,oBAAC,QAAD,EAAQ,MAAM,GAAK,CAAA;MAClB;MACD,oBAAC,QAAD;OAAM,WAAU;iBAAS;MAAY,CAAA;KACjC;QACL,OACG;;EACJ,CAAA;CACF,CAAA;AAER;;;;;;;AAQA,SAAgB,WAAW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E,WAAU;GACV,WAAW,UAAU;IACnB,MAAM,eAAe;IACrB,IAAI,YAAY,MAAM;IACtB,IAAI,WAAW,SAAS,OAAO,MAAM;IACrC,aAAa,KAAK;GACpB;aAPF,CASE,qBAAC,SAAD;IAAO,WAAU;cAAjB;KACE,oBAAC,QAAD;MAAM,WAAU;gBAAQ;KAAY,CAAA;KACpC,oBAAC,SAAD;MACE,WAAU;MACV,WAAA;MACA,YAAY;MACZ,cAAa;MACb,MAAM;MACN,aAAY;MACZ,OAAO;MACP,gBAAc,YAAY;MAC1B,WAAW,UAAU,QAAQ,MAAM,OAAO,KAAK;KAChD,CAAA;KACD,oBAAC,YAAD;MAAU,IAAI;gBACX,QAAQ,KAAK,SACZ,oBAAC,UAAD,EAAmB,OAAO,KAAO,GAApB,IAAoB,CAClC;KACO,CAAA;KACV,oBAAC,QAAD;MAAM,WAAW,OAAO,YAAY,OAAO,qBAAqB;gBAC7D,WAAW;KACR,CAAA;IACD;OACP,qBAAC,OAAD;IAAK,WAAU;cAAf,CACE,oBAAC,UAAD;KAAQ,WAAU;KAAM,MAAK;KAAS,eAAe,aAAa,KAAK;eAAG;IAElE,CAAA,GACR,oBAAC,UAAD;KAAQ,WAAU;KAAkB,MAAK;KAAS,UAAU,YAAY,QAAQ,WAAW;eACxF,WAAW,QAAQ,YAAY,OAAO,2BAA2B;IAC5D,CAAA,CACL;KACD;;CACD,CAAA;AAEX"}
@@ -1,8 +1,8 @@
1
- import { t as ConfirmButton } from "./ui-Br-dNUTc.js";
1
+ import { i as keys } from "./queries-BvSw1xBN.js";
2
+ import { t as ConfirmButton } from "./ui-2kwXXfrX.js";
2
3
  import { S as Clock, X as ShieldCheck, u as useCoffre } from "./page-JTORvh-N.js";
3
- import { a as rowClass, i as RowPending, r as RowFailure } from "./row-state-Zf3kZVhd.js";
4
- import { i as keys } from "./queries-DgQo3mC-.js";
5
- import { M as projectAccessLabel, h as grantId, n as useChangeStatus, t as useChange, w as revokeGrant } from "./use-change-By4cG8bT.js";
4
+ import { a as rowClass, i as RowPending, r as RowFailure } from "./row-state-BsIHspy4.js";
5
+ import { L as projectAccessLabel, k as revokeGrant, n as useChangeStatus, t as useChange, v as grantId } from "./use-change-DIQTGXER.js";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/grants.tsx
8
8
  /**
@@ -161,4 +161,4 @@ function useRefusedGrants(project, grants, principalType) {
161
161
  //#endregion
162
162
  export { useRefusedGrants as i, GrantsTable as n, RefusedGrants as r, GrantRowView as t };
163
163
 
164
- //# sourceMappingURL=grants-DDBui9YD.js.map
164
+ //# sourceMappingURL=grants-1E1vqkM0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grants-DDBui9YD.js","names":[],"sources":["../../src/components/grants.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { grantId, revokeGrant, type GrantVars } from '../lib/changes';\nimport type { FailedAdd } from '../lib/optimistic';\nimport { useCoffre } from '../lib/coffre';\nimport { projectAccessLabel } from '../lib/project-access';\nimport { keys } from '../lib/queries';\nimport { useChange, useChangeStatus } from '../lib/use-change';\nimport type { GrantRow } from '../shared/models';\nimport { RowFailure, RowPending, rowClass } from './row-state';\nimport { ConfirmButton } from './ui';\nimport { Clock, ShieldCheck } from './icons';\n\n/**\n * Grants as a table: who or where in the first column, then the access, when\n * it lapses, and a revoke.\n *\n * A project's page leads each row with the principal; a user's page leads with\n * the project. Everything after the first column is the same grant either way.\n */\nexport function GrantsTable({ lead, children }: { lead: ReactNode; children: ReactNode }) {\n return (\n <div className=\"dt-wrap\">\n <table className=\"dt grants stacks\">\n <thead>\n <tr>\n <th className=\"n\">#</th>\n <th className=\"col-principal\">{lead}</th>\n <th>\n <span className=\"th\">\n <ShieldCheck size={14} />\n Permissions\n </span>\n </th>\n <th className=\"col-expires\">\n <span className=\"th\">\n <Clock size={14} />\n Expires\n </span>\n </th>\n <th className=\"col-actions\">\n <span className=\"visually-hidden\">Actions</span>\n </th>\n </tr>\n </thead>\n <tbody>{children}</tbody>\n </table>\n </div>\n );\n}\n\nexport function GrantRowView({\n number,\n project,\n grant,\n lead,\n leadLabel,\n}: {\n number: number;\n project: string;\n grant: GrantRow;\n lead: ReactNode;\n leadLabel: string;\n}) {\n const revoke = useChange(revokeGrant(useCoffre(), project));\n const { status, dismiss } = useChangeStatus(keys.grants(project));\n const state = status(grantId(grant));\n // Someone's instance role reaching the project is shown here, and changed on their page in Users.\n const byRole = grant.scope === 'instance-role';\n const label = byRole ? grant.roleName : projectAccessLabel(grant);\n const expired = grant.expiresAt !== null && new Date(grant.expiresAt).getTime() < Date.now();\n\n return (\n <>\n <tr className={rowClass(state)}>\n <td className=\"n\">{number}</td>\n <td className=\"col-lead\" data-label={leadLabel}>\n {lead}\n </td>\n <td className=\"col-access\" data-label=\"Permissions\">\n <span className={`tag${grant.role === 'owner' ? ' tag-violet' : ''}`}>{label}</span>\n {byRole && (\n <span className=\"role-scope\" title=\"Their instance role reaches this project. Change it on their page in Users.\">\n instance role\n </span>\n )}\n </td>\n <td\n className={`col-expires cell-mono cell-muted${grant.expiresAt === null ? ' is-never' : ''}`}\n data-label=\"Expires\"\n >\n {grant.expiresAt === null ? (\n 'Never'\n ) : (\n <>\n <span className=\"narrow-only\">Expires </span>\n {grant.expiresAt.slice(0, 10)}\n {expired && (\n <>\n {' '}\n <span className=\"tag tag-red\">Expired</span>\n </>\n )}\n </>\n )}\n </td>\n <td className=\"col-actions\">\n {state.state === 'pending' ? (\n <RowPending status={state} />\n ) : byRole ? null : (\n <ConfirmButton\n trigger={<button className=\"act act-danger\">Revoke</button>}\n title={\n <>\n Revoke {label} from <span className=\"mono\">{grant.principalId}</span>?\n </>\n }\n body={\n <>\n They lose <strong>{label}</strong> on <span className=\"mono\">{project}</span>{' '}\n immediately, including any process using it right now. Other grants they hold\n still apply.\n </>\n }\n confirmLabel=\"Revoke access\"\n onConfirm={() => revoke(grant)}\n />\n )}\n </td>\n </tr>\n <RowFailure\n status={state}\n columns={5}\n onDismiss={() => state.state === 'failed' && dismiss(state.mutationId)}\n />\n </>\n );\n}\n\n/**\n * Grants the server refused to give: rolled back, so no row of theirs is\n * left, and listed here, after the table's rows, saying why.\n */\nexport function RefusedGrants({ refused }: { refused: RefusedGrant[] }) {\n return refused.map(({ mutationId, vars, status, dismiss }) => (\n <RowFailure key={mutationId} status={status} columns={5} onDismiss={dismiss}>\n {vars.principalId} was not given {vars.roleName.toLowerCase()}.\n </RowFailure>\n ));\n}\n\ntype RefusedGrant = FailedAdd<GrantVars> & { dismiss: () => void };\n\n/** The grants of one kind the server refused to give in a project, still to be said. */\nexport function useRefusedGrants(project: string, grants: GrantRow[], principalType?: GrantRow['principalType']): RefusedGrant[] {\n const { failedAdds, dismiss } = useChangeStatus(keys.grants(project));\n return failedAdds<GrantVars>(grants.map(grantId))\n .filter(({ vars }) => principalType === undefined || vars.principalType === principalType)\n .map((refused) => ({ ...refused, dismiss: () => dismiss(refused.mutationId) }));\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBA,SAAgB,YAAY,EAAE,MAAM,YAAsD;CACxF,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,qBAAC,SAAD;GAAO,WAAU;aAAjB,CACE,oBAAC,SAAD,EAAA,UACE,qBAAC,MAAD,EAAA,UAAA;IACE,oBAAC,MAAD;KAAI,WAAU;eAAI;IAAK,CAAA;IACvB,oBAAC,MAAD;KAAI,WAAU;eAAiB;IAAS,CAAA;IACxC,oBAAC,MAAD,EAAA,UACE,qBAAC,QAAD;KAAM,WAAU;eAAhB,CACE,oBAAC,aAAD,EAAa,MAAM,GAAK,CAAA,GAAC,aAErB;OACJ,CAAA;IACJ,oBAAC,MAAD;KAAI,WAAU;eACZ,qBAAC,QAAD;MAAM,WAAU;gBAAhB,CACE,oBAAC,OAAD,EAAO,MAAM,GAAK,CAAA,GAAC,SAEf;;IACJ,CAAA;IACJ,oBAAC,MAAD;KAAI,WAAU;eACZ,oBAAC,QAAD;MAAM,WAAU;gBAAkB;KAAa,C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,UAAU;CAAE,EAAE;AAClF"}
1
+ {"version":3,"file":"grants-1E1vqkM0.js","names":[],"sources":["../../src/components/grants.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { grantId, revokeGrant, type GrantVars } from '../lib/changes';\nimport type { FailedAdd } from '../lib/optimistic';\nimport { useCoffre } from '../lib/coffre';\nimport { projectAccessLabel } from '../lib/project-access';\nimport { keys } from '../lib/queries';\nimport { useChange, useChangeStatus } from '../lib/use-change';\nimport type { GrantRow } from '../shared/models';\nimport { RowFailure, RowPending, rowClass } from './row-state';\nimport { ConfirmButton } from './ui';\nimport { Clock, ShieldCheck } from './icons';\n\n/**\n * Grants as a table: who or where in the first column, then the access, when\n * it lapses, and a revoke.\n *\n * A project's page leads each row with the principal; a user's page leads with\n * the project. Everything after the first column is the same grant either way.\n */\nexport function GrantsTable({ lead, children }: { lead: ReactNode; children: ReactNode }) {\n return (\n <div className=\"dt-wrap\">\n <table className=\"dt grants stacks\">\n <thead>\n <tr>\n <th className=\"n\">#</th>\n <th className=\"col-principal\">{lead}</th>\n <th>\n <span className=\"th\">\n <ShieldCheck size={14} />\n Permissions\n </span>\n </th>\n <th className=\"col-expires\">\n <span className=\"th\">\n <Clock size={14} />\n Expires\n </span>\n </th>\n <th className=\"col-actions\">\n <span className=\"visually-hidden\">Actions</span>\n </th>\n </tr>\n </thead>\n <tbody>{children}</tbody>\n </table>\n </div>\n );\n}\n\nexport function GrantRowView({\n number,\n project,\n grant,\n lead,\n leadLabel,\n}: {\n number: number;\n project: string;\n grant: GrantRow;\n lead: ReactNode;\n leadLabel: string;\n}) {\n const revoke = useChange(revokeGrant(useCoffre(), project));\n const { status, dismiss } = useChangeStatus(keys.grants(project));\n const state = status(grantId(grant));\n // Someone's instance role reaching the project is shown here, and changed on their page in Users.\n const byRole = grant.scope === 'instance-role';\n const label = byRole ? grant.roleName : projectAccessLabel(grant);\n const expired = grant.expiresAt !== null && new Date(grant.expiresAt).getTime() < Date.now();\n\n return (\n <>\n <tr className={rowClass(state)}>\n <td className=\"n\">{number}</td>\n <td className=\"col-lead\" data-label={leadLabel}>\n {lead}\n </td>\n <td className=\"col-access\" data-label=\"Permissions\">\n <span className={`tag${grant.role === 'owner' ? ' tag-violet' : ''}`}>{label}</span>\n {byRole && (\n <span className=\"role-scope\" title=\"Their instance role reaches this project. Change it on their page in Users.\">\n instance role\n </span>\n )}\n </td>\n <td\n className={`col-expires cell-mono cell-muted${grant.expiresAt === null ? ' is-never' : ''}`}\n data-label=\"Expires\"\n >\n {grant.expiresAt === null ? (\n 'Never'\n ) : (\n <>\n <span className=\"narrow-only\">Expires </span>\n {grant.expiresAt.slice(0, 10)}\n {expired && (\n <>\n {' '}\n <span className=\"tag tag-red\">Expired</span>\n </>\n )}\n </>\n )}\n </td>\n <td className=\"col-actions\">\n {state.state === 'pending' ? (\n <RowPending status={state} />\n ) : byRole ? null : (\n <ConfirmButton\n trigger={<button className=\"act act-danger\">Revoke</button>}\n title={\n <>\n Revoke {label} from <span className=\"mono\">{grant.principalId}</span>?\n </>\n }\n body={\n <>\n They lose <strong>{label}</strong> on <span className=\"mono\">{project}</span>{' '}\n immediately, including any process using it right now. Other grants they hold\n still apply.\n </>\n }\n confirmLabel=\"Revoke access\"\n onConfirm={() => revoke(grant)}\n />\n )}\n </td>\n </tr>\n <RowFailure\n status={state}\n columns={5}\n onDismiss={() => state.state === 'failed' && dismiss(state.mutationId)}\n />\n </>\n );\n}\n\n/**\n * Grants the server refused to give: rolled back, so no row of theirs is\n * left, and listed here, after the table's rows, saying why.\n */\nexport function RefusedGrants({ refused }: { refused: RefusedGrant[] }) {\n return refused.map(({ mutationId, vars, status, dismiss }) => (\n <RowFailure key={mutationId} status={status} columns={5} onDismiss={dismiss}>\n {vars.principalId} was not given {vars.roleName.toLowerCase()}.\n </RowFailure>\n ));\n}\n\ntype RefusedGrant = FailedAdd<GrantVars> & { dismiss: () => void };\n\n/** The grants of one kind the server refused to give in a project, still to be said. */\nexport function useRefusedGrants(project: string, grants: GrantRow[], principalType?: GrantRow['principalType']): RefusedGrant[] {\n const { failedAdds, dismiss } = useChangeStatus(keys.grants(project));\n return failedAdds<GrantVars>(grants.map(grantId))\n .filter(({ vars }) => principalType === undefined || vars.principalType === principalType)\n .map((refused) => ({ ...refused, dismiss: () => dismiss(refused.mutationId) }));\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBA,SAAgB,YAAY,EAAE,MAAM,YAAsD;CACxF,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,qBAAC,SAAD;GAAO,WAAU;aAAjB,CACE,oBAAC,SAAD,EAAA,UACE,qBAAC,MAAD,EAAA,UAAA;IACE,oBAAC,MAAD;KAAI,WAAU;eAAI;IAAK,CAAA;IACvB,oBAAC,MAAD;KAAI,WAAU;eAAiB;IAAS,CAAA;IACxC,oBAAC,MAAD,EAAA,UACE,qBAAC,QAAD;KAAM,WAAU;eAAhB,CACE,oBAAC,aAAD,EAAa,MAAM,GAAK,CAAA,GAAC,aAErB;OACJ,CAAA;IACJ,oBAAC,MAAD;KAAI,WAAU;eACZ,qBAAC,QAAD;MAAM,WAAU;gBAAhB,CACE,oBAAC,OAAD,EAAO,MAAM,GAAK,CAAA,GAAC,SAEf;;IACJ,CAAA;IACJ,oBAAC,MAAD;KAAI,WAAU;eACZ,oBAAC,QAAD;MAAM,WAAU;gBAAkB;KAAa,CAAA;IAC7C,CAAA;GACF,EAAA,CAAA,EACC,CAAA,GACP,oBAAC,SAAD,EAAQ,SAAgB,CAAA,CACnB;;CACJ,CAAA;AAET;AAEA,SAAgB,aAAa,EAC3B,QACA,SACA,OACA,MACA,aAOC;CACD,MAAM,SAAS,UAAU,YAAY,UAAU,GAAG,OAAO,CAAC;CAC1D,MAAM,EAAE,QAAQ,YAAY,gBAAgB,KAAK,OAAO,OAAO,CAAC;CAChE,MAAM,QAAQ,OAAO,QAAQ,KAAK,CAAC;CAEnC,MAAM,SAAS,MAAM,UAAU;CAC/B,MAAM,QAAQ,SAAS,MAAM,WAAW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;MAAE;MACU,oBAAC,UAAD,EAAA,UAAS,MAAc,CAAA;MAAC;MAAI,oBAAC,QAAD;OAAM,WAAU;iBAAQ;MAAc,CAAA;MAAE;MAAI;KAGlF,EAAA,CAAA;KAEJ,cAAa;KACb,iBAAiB,OAAO,KAAK;IAC9B,CAAA;GAED,CAAA;EACF;KACJ,oBAAC,YAAD;EACE,QAAQ;EACR,SAAS;EACT,iBAAiB,MAAM,UAAU,YAAY,QAAQ,MAAM,UAAU;CACtE,CAAA,CACD,EAAA,CAAA;AAEN;;;;;AAMA,SAAgB,cAAc,EAAE,WAAwC;CACtE,OAAO,QAAQ,KAAK,EAAE,YAAY,MAAM,QAAQ,cAC9C,qBAAC,YAAD;EAAqC;EAAQ,SAAS;EAAG,WAAW;YAApE;GACG,KAAK;GAAY;GAAgB,KAAK,SAAS,YAAY;GAAE;EACpD;IAFK,UAEL,CACb;AACH;;AAKA,SAAgB,iBAAiB,SAAiB,QAAoB,eAA2D;CAC/H,MAAM,EAAE,YAAY,YAAY,gBAAgB,KAAK,OAAO,OAAO,CAAC;CACpE,OAAO,WAAsB,OAAO,IAAI,OAAO,CAAC,CAAC,CAC9C,QAAQ,EAAE,WAAW,kBAAkB,KAAA,KAAa,KAAK,kBAAkB,aAAa,CAAC,CACzF,KAAK,aAAa;EAAE,GAAG;EAAS,eAAe,QAAQ,QAAQ,UAAU;CAAE,EAAE;AAClF"}
@@ -0,0 +1,99 @@
1
+ import { x as usePreferences } from "./ui-2kwXXfrX.js";
2
+ import { _ as Check, st as X } from "./page-JTORvh-N.js";
3
+ import { useId } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { Combobox } from "@base-ui/react/combobox";
6
+ //#region src/components/multi-combobox.tsx
7
+ /**
8
+ * Several of a fixed list, chosen by typing: each chosen one a chip in the
9
+ * field, the rest offered below as the text filters them. Base UI's
10
+ * combobox does the keyboard and ARIA: arrows move through the options,
11
+ * Enter takes one, Backspace in an empty field removes the last chip, and
12
+ * Left Arrow from the start of the field walks the chips.
13
+ *
14
+ * The value keeps the options' order, whatever order they were chosen in.
15
+ */
16
+ function MultiCombobox({ label, options, value, onChange, placeholder, hint, note, mono = false }) {
17
+ const { portal } = usePreferences();
18
+ const id = useId();
19
+ const labelId = useId();
20
+ const hintId = useId();
21
+ return /* @__PURE__ */ jsxs(Combobox.Root, {
22
+ items: options,
23
+ multiple: true,
24
+ value,
25
+ onValueChange: (next) => onChange(options.filter((option) => next.includes(option))),
26
+ children: [/* @__PURE__ */ jsxs("div", {
27
+ className: "field",
28
+ children: [
29
+ /* @__PURE__ */ jsx("label", {
30
+ className: "label",
31
+ htmlFor: id,
32
+ id: labelId,
33
+ children: label
34
+ }),
35
+ /* @__PURE__ */ jsx(Combobox.InputGroup, {
36
+ className: `combo${mono ? " combo-mono" : ""}`,
37
+ children: /* @__PURE__ */ jsxs(Combobox.Chips, {
38
+ className: "combo-chips",
39
+ "aria-label": value.length > 0 ? "Chosen" : void 0,
40
+ children: [value.map((option) => /* @__PURE__ */ jsxs(Combobox.Chip, {
41
+ className: "combo-chip",
42
+ "aria-label": option,
43
+ "aria-description": "Press Backspace or Delete to remove",
44
+ children: [option, /* @__PURE__ */ jsx(Combobox.ChipRemove, {
45
+ className: "combo-chip-remove",
46
+ "aria-label": `Remove ${option}`,
47
+ children: /* @__PURE__ */ jsx(X, { size: 12 })
48
+ })]
49
+ }, option)), /* @__PURE__ */ jsx(Combobox.Input, {
50
+ id,
51
+ "aria-labelledby": labelId,
52
+ className: "combo-input",
53
+ placeholder: value.length > 0 ? void 0 : placeholder,
54
+ "aria-describedby": hint === void 0 ? void 0 : hintId,
55
+ "aria-description": value.length > 0 ? `${value.length} chosen. From the start of the field, press Left Arrow to reach them` : void 0
56
+ })]
57
+ })
58
+ }),
59
+ hint !== void 0 && /* @__PURE__ */ jsx("span", {
60
+ className: "hint",
61
+ id: hintId,
62
+ children: hint
63
+ })
64
+ ]
65
+ }), /* @__PURE__ */ jsx(Combobox.Portal, {
66
+ container: portal,
67
+ children: /* @__PURE__ */ jsx(Combobox.Positioner, {
68
+ className: "menu-positioner",
69
+ sideOffset: 4,
70
+ align: "start",
71
+ children: /* @__PURE__ */ jsxs(Combobox.Popup, {
72
+ className: "menu combo-popup",
73
+ children: [/* @__PURE__ */ jsx(Combobox.Empty, {
74
+ className: "combo-empty",
75
+ children: "Nothing matches."
76
+ }), /* @__PURE__ */ jsx(Combobox.List, { children: (option) => /* @__PURE__ */ jsxs(Combobox.Item, {
77
+ value: option,
78
+ className: `menu-item${mono ? " mono" : ""}`,
79
+ children: [
80
+ /* @__PURE__ */ jsx("span", {
81
+ className: "combo-check",
82
+ children: /* @__PURE__ */ jsx(Combobox.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { size: 14 }) })
83
+ }),
84
+ /* @__PURE__ */ jsx("span", {
85
+ className: "combo-option",
86
+ children: option
87
+ }),
88
+ note?.(option)
89
+ ]
90
+ }, option) })]
91
+ })
92
+ })
93
+ })]
94
+ });
95
+ }
96
+ //#endregion
97
+ export { MultiCombobox as t };
98
+
99
+ //# sourceMappingURL=multi-combobox-CsIXihuc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-combobox-CsIXihuc.js","names":[],"sources":["../../src/components/multi-combobox.tsx"],"sourcesContent":["import { Combobox } from '@base-ui/react/combobox';\nimport { useId, type ReactNode } from 'react';\nimport { usePreferences } from '../lib/preferences';\nimport { Check, X } from './icons';\n\n/**\n * Several of a fixed list, chosen by typing: each chosen one a chip in the\n * field, the rest offered below as the text filters them. Base UI's\n * combobox does the keyboard and ARIA: arrows move through the options,\n * Enter takes one, Backspace in an empty field removes the last chip, and\n * Left Arrow from the start of the field walks the chips.\n *\n * The value keeps the options' order, whatever order they were chosen in.\n */\nexport function MultiCombobox({\n label,\n options,\n value,\n onChange,\n placeholder,\n hint,\n note,\n mono = false,\n}: {\n label: ReactNode;\n options: readonly string[];\n value: string[];\n onChange: (value: string[]) => void;\n placeholder?: string;\n hint?: ReactNode;\n /** A word beside an option in the list, such as what choosing it exposes. */\n note?: (option: string) => ReactNode;\n mono?: boolean;\n}) {\n const { portal } = usePreferences();\n const id = useId();\n const labelId = useId();\n const hintId = useId();\n return (\n <Combobox.Root items={options} multiple value={value} onValueChange={(next) => onChange(options.filter((option) => next.includes(option)))}>\n <div className=\"field\">\n <label className=\"label\" htmlFor={id} id={labelId}>\n {label}\n </label>\n <Combobox.InputGroup className={`combo${mono ? ' combo-mono' : ''}`}>\n <Combobox.Chips className=\"combo-chips\" aria-label={value.length > 0 ? 'Chosen' : undefined}>\n {value.map((option) => (\n <Combobox.Chip key={option} className=\"combo-chip\" aria-label={option} aria-description=\"Press Backspace or Delete to remove\">\n {option}\n <Combobox.ChipRemove className=\"combo-chip-remove\" aria-label={`Remove ${option}`}>\n <X size={12} />\n </Combobox.ChipRemove>\n </Combobox.Chip>\n ))}\n <Combobox.Input\n id={id}\n // Named by reference too: while the list is open, Base UI hides what lies outside it, the label included.\n aria-labelledby={labelId}\n className=\"combo-input\"\n placeholder={value.length > 0 ? undefined : placeholder}\n aria-describedby={hint === undefined ? undefined : hintId}\n aria-description={value.length > 0 ? `${value.length} chosen. From the start of the field, press Left Arrow to reach them` : undefined}\n />\n </Combobox.Chips>\n </Combobox.InputGroup>\n {hint !== undefined && (\n <span className=\"hint\" id={hintId}>\n {hint}\n </span>\n )}\n </div>\n <Combobox.Portal container={portal}>\n <Combobox.Positioner className=\"menu-positioner\" sideOffset={4} align=\"start\">\n <Combobox.Popup className=\"menu combo-popup\">\n <Combobox.Empty className=\"combo-empty\">Nothing matches.</Combobox.Empty>\n <Combobox.List>\n {(option: string) => (\n <Combobox.Item key={option} value={option} className={`menu-item${mono ? ' mono' : ''}`}>\n <span className=\"combo-check\">\n <Combobox.ItemIndicator>\n <Check size={14} />\n </Combobox.ItemIndicator>\n </span>\n <span className=\"combo-option\">{option}</span>\n {note?.(option)}\n </Combobox.Item>\n )}\n </Combobox.List>\n </Combobox.Popup>\n </Combobox.Positioner>\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,oBAAC,SAAS,YAAV;IAAqB,WAAU;IAAkB,YAAY;IAAG,OAAM;cACpE,qBAAC,SAAS,OAAV;KAAgB,WAAU;eAA1B,CACE,oBAAC,SAAS,OAAV;MAAgB,WAAU;gBAAc;KAAgC,CAAA,GACxE,oBAAC,SAAS,MAAV,EAAA,WACI,WACA,qBAAC,SAAS,MAAV;MAA4B,OAAO;MAAQ,WAAW,YAAY,OAAO,UAAU;gBAAnF;OACE,oBAAC,QAAD;QAAM,WAAU;kBACd,oBAAC,SAAS,eAAV,EAAA,UACE,oBAAC,OAAD,EAAO,MAAM,GAAK,CAAA,EACI,CAAA;OACpB,CAAA;OACN,oBAAC,QAAD;QAAM,WAAU;kBAAgB;OAAa,CAAA;OAC5C,OAAO,MAAM;MACD;QARK,MAQL,EAEJ,CAAA,CACD;;GACG,CAAA;EACN,CAAA,CACJ;;AAEnB"}
@@ -1,7 +1,7 @@
1
- import { c as Notice, i as EmptyState, u as Timestamp } from "./ui-Br-dNUTc.js";
1
+ import { c as Notice, i as EmptyState, u as Timestamp } from "./ui-2kwXXfrX.js";
2
2
  import { M as Key, b as ChevronRight, it as User, t as Card } from "./page-JTORvh-N.js";
3
3
  import { n as PrincipalLink } from "./principal-DFBswTBr.js";
4
- import { s as referenceProblem } from "./references-BQc35Q9g.js";
4
+ import { s as referenceProblem } from "./references-DCoSPtvw.js";
5
5
  import { Link } from "@tanstack/react-router";
6
6
  import { credentialScopeInWords } from "@coffre/core/access";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -306,4 +306,4 @@ function IssuedTokens({ report }) {
306
306
  //#endregion
307
307
  export { RemovedList as n, RemovedNotice as r, PrincipalReportCards as t };
308
308
 
309
- //# sourceMappingURL=offboarding-C7ECW5o0.js.map
309
+ //# sourceMappingURL=offboarding-Bt7KSixm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"offboarding-C7ECW5o0.js","names":[],"sources":["../../src/components/offboarding.tsx"],"sourcesContent":["import { Link } from '@tanstack/react-router';\nimport { credentialScopeInWords } from '@coffre/core/access';\nimport type { PrincipalReport, RemovedPrincipal } from '../shared/models';\nimport { Card } from './page';\nimport { EmptyState, Notice, Timestamp } from './ui';\nimport { PrincipalLink } from './principal';\nimport { referenceProblem } from './references';\nimport { ChevronRight, Key, User } from './icons';\nimport { serviceName } from '@coffre/client';\n\n/**\n * The part of a user's or token's page that answers \"what do we change now\n * they have left?\". Owners only. Once someone is removed everything that let\n * them in is gone, but what they saw is not, nor tokens they issued.\n */\nexport function PrincipalReportCards({ report }: { report: PrincipalReport }) {\n const person = report.principalType === 'user';\n return (\n <>\n {report.status === 'removed' && <ConsiderRotating report={report} person={person} />}\n {report.issuedTokens.length > 0 && <IssuedTokens report={report} />}\n {report.references.length > 0 && <MadeReferences report={report} />}\n </>\n );\n}\n\nexport function RemovedNotice({ report }: { report: PrincipalReport }) {\n const person = report.principalType === 'user';\n return (\n <div className=\"report-notice\">\n <Notice>\n Removed\n {report.removedBy !== null && (\n <>\n {' '}by <span className=\"mono\">{report.removedBy}</span>\n </>\n )}\n {report.removedAt !== null && (\n <>\n {' '}on <Timestamp iso={report.removedAt} />\n </>\n )}\n .{' '}\n {person\n ? 'Their project access, sessions, CLI logins, linked sign-in accounts and connected apps were revoked, so adding them again starts from nothing.'\n : 'Its project access and every token issued to it were revoked, so adding it again starts from nothing.'}\n </Notice>\n </div>\n );\n}\n\n/**\n * The people or service accounts removed from the directory, under the live ones.\n * Removal ends their access but not the work it leaves, so they stay one click\n * away until every value they saw has been rotated.\n */\nexport function RemovedList({\n principalType,\n removed,\n}: {\n principalType: RemovedPrincipal['principalType'];\n removed: RemovedPrincipal[];\n}) {\n const users = principalType === 'user';\n const rows = removed.filter((principal) => principal.principalType === principalType);\n if (rows.length === 0) return null;\n return (\n <>\n <h2 className=\"section-title\">Removed</h2>\n <section className=\"card\" aria-label={users ? 'Removed users' : 'Removed service accounts'}>\n <div className=\"dt-wrap\">\n <table className=\"dt directory stacks\">\n <thead>\n <tr>\n <th className=\"n\">#</th>\n <th className=\"col-principal\">\n <span className=\"th\">\n {users ? <User size={14} /> : <Key size={14} />}\n {users ? 'Email' : 'Name'}\n </span>\n </th>\n <th className=\"col-role\">Consider rotating</th>\n <th className=\"col-actions\">\n <span className=\"visually-hidden\">Report</span>\n </th>\n </tr>\n </thead>\n <tbody>\n {rows.map((principal, index) => (\n <tr key={principal.principalId} className=\"row-link\">\n <td className=\"n\">{index + 1}</td>\n <td className=\"col-lead\" data-label={users ? 'Email' : 'Name'}>\n <PrincipalLink type={principal.principalType} id={principal.principalId} stretch />\n </td>\n <td className=\"col-role\" data-label=\"Consider rotating\">\n {principal.toRotate === 0 ? (\n <span className=\"cell-muted\">Nothing</span>\n ) : (\n `${principal.toRotate} ${principal.toRotate === 1 ? 'value' : 'values'}`\n )}\n </td>\n {/* The row opens the report; the chevron says it does. */}\n <td className=\"col-actions col-open cell-muted\" aria-hidden=\"true\">\n <ChevronRight size={16} />\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </section>\n </>\n );\n}\n\n/** Values a removed member saw that nobody has changed since. */\nfunction ConsiderRotating({ report, person }: { report: PrincipalReport; person: boolean }) {\n const they = person ? 'they' : 'it';\n return (\n <Card\n labelledBy=\"seen-values\"\n title=\"Consider rotating\"\n description={`Values ${they} read or wrote that nobody has changed since. Rotate each at its source, such as a new API key or database password, then save the new value here.`}\n actions={\n report.rotated > 0 && (\n <span className=\"card-aside\">{report.rotated} already rotated</span>\n )\n }\n >\n {report.exposed.length === 0 ? (\n <EmptyState title=\"Nothing left to rotate\">\n {report.rotated > 0\n ? `Every value ${they} saw has had a new version since.`\n : `${person ? 'They have' : 'It has'} not read or written a value that is still current.`}\n </EmptyState>\n ) : (\n <div className=\"dt-wrap\">\n <table className=\"dt report-values\">\n <thead>\n <tr>\n <th>Secret</th>\n <th className=\"col-shrink\">Version</th>\n <th className=\"col-shrink\">Last seen</th>\n </tr>\n </thead>\n <tbody>\n {report.exposed.map((secret) => (\n <tr key={`${secret.project}/${secret.environment}/${secret.key}`}>\n <td>\n <Link\n className=\"cell-link mono\"\n to=\"/projects/$project/$environment\"\n params={{ project: secret.project, environment: secret.environment }}\n search={{ filter: secret.key }}\n >\n <span className=\"report-path\">\n {secret.project}/{secret.environment}/\n </span>\n {secret.key}\n </Link>\n </td>\n <td className=\"col-shrink cell-mono cell-muted\">v{secret.version}</td>\n <td className=\"col-shrink nowrap\">\n {secret.how === 'wrote' ? 'Wrote' : 'Read'}{' '}\n <Timestamp iso={secret.at} display=\"relative\" />\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n )}\n </Card>\n );\n}\n\n/**\n * References they made, as the log names them: each belongs to the\n * environment that holds it, like a value, not to them (D46), so their\n * leaving ends none. Listed to review.\n */\nfunction MadeReferences({ report }: { report: PrincipalReport }) {\n return (\n <Card\n labelledBy=\"made-references\"\n title=\"References they made\"\n description=\"These stay after they leave, and whoever reads a reference's environment reads its source through it. Review them: the source's access managers, or whoever writes where one is held, can break it.\"\n >\n <div className=\"dt-wrap\">\n <table className=\"dt stacks\">\n <thead>\n <tr>\n <th>Reference</th>\n <th>Reads</th>\n <th className=\"col-shrink\">Made</th>\n </tr>\n </thead>\n <tbody>\n {report.references.map((reference) => (\n <tr key={reference.id}>\n <td className=\"mono\" data-label=\"Reference\">{reference.holder}</td>\n <td data-label=\"Reads\">\n <span className=\"mono\">{reference.source}</span>\n {reference.state !== 'live' && <span className=\"cell-muted\"> · {referenceProblem(reference.state)}</span>}\n </td>\n <td className=\"col-shrink nowrap\" data-label=\"Made\">\n <Timestamp iso={reference.createdAt} display=\"relative\" />\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </Card>\n );\n}\n\nfunction IssuedTokens({ report }: { report: PrincipalReport }) {\n return (\n <Card\n labelledBy=\"issued-tokens\"\n title=\"Bearer tokens they issued\"\n description=\"These still work, and they saw each one when it was issued. Revoke any they may have kept.\"\n >\n <div className=\"dt-wrap\">\n <table className=\"dt report-tokens\">\n <thead>\n <tr>\n <th>Token</th>\n <th className=\"col-shrink\">Expires</th>\n <th className=\"col-shrink col-hide-narrow\">Last used</th>\n </tr>\n </thead>\n <tbody>\n {report.issuedTokens.map((token) => (\n <tr key={token.id}>\n <td>\n <span className=\"cell-stack\">\n <Link className=\"cell-link mono\" to=\"/service-accounts/$account\" params={{ account: serviceName(token.service) }}>\n service:{serviceName(token.service)}\n </Link>\n <small>\n {token.label ?? 'No label'} · <span className=\"mono\">{token.hint}</span> · reaches{' '}\n {token.scope === null ? 'all its account holds' : credentialScopeInWords(token.scope)}\n </small>\n </span>\n </td>\n <td className=\"col-shrink nowrap\">\n <Timestamp iso={token.expiresAt} display=\"relative\" />\n </td>\n <td className=\"col-shrink col-hide-narrow nowrap\">\n {token.lastUsedAt === null ? (\n <span className=\"cell-muted\">Never</span>\n ) : (\n <Timestamp iso={token.lastUsedAt} display=\"relative\" />\n )}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,qBAAqB,EAAE,UAAuC;CAC5E,MAAM,SAAS,OAAO,kBAAkB;CACxC,OACE,qBAAA,UAAA,EAAA,UAAA;EACG,OAAO,WAAW,aAAa,oBAAC,kBAAD;GAA0B;GAAgB;EAAS,CAAA;EAClF,OAAO,aAAa,SAAS,KAAK,oBAAC,cAAD,EAAsB,OAAS,CAAA;EACjE,OAAO,WAAW,SAAS,KAAK,oBAAC,gBAAD,EAAwB,OAAS,CAAA;CAClE,EAAA,CAAA;AAEN;AAEA,SAAgB,cAAc,EAAE,UAAuC;CACrE,MAAM,SAAS,OAAO,kBAAkB;CACxC,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,qBAAC,QAAD,EAAA,UAAA;GAAQ;GAEL,OAAO,cAAc,QACpB,qBAAA,UAAA,EAAA,UAAA;IACG;IAAI;IAAG,oBAAC,QAAD;KAAM,WAAU;eAAQ,OAAO;IAAgB,CAAA;GACvD,EAAA,C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ACZ,oBAAC,WAAD;OAAW,KAAK,MAAM;OAAW,SAAQ;MAAY,CAAA;KACnD,CAAA;KACJ,oBAAC,MAAD;MAAI,WAAU;gBACX,MAAM,eAAe,OACpB,oBAAC,QAAD;OAAM,WAAU;iBAAa;MAAW,CAAA,IAExC,oBAAC,WAAD;OAAW,KAAK,MAAM;OAAY,SAAQ;MAAY,CAAA;KAEtD,CAAA;IACF,EAAA,GAtBK,MAAM,EAsBX,CACL,EACI,CAAA,CACF;;EACJ,CAAA;CACD,CAAA;AAEV"}
1
+ {"version":3,"file":"offboarding-Bt7KSixm.js","names":[],"sources":["../../src/components/offboarding.tsx"],"sourcesContent":["import { Link } from '@tanstack/react-router';\nimport { credentialScopeInWords } from '@coffre/core/access';\nimport type { PrincipalReport, RemovedPrincipal } from '../shared/models';\nimport { Card } from './page';\nimport { EmptyState, Notice, Timestamp } from './ui';\nimport { PrincipalLink } from './principal';\nimport { referenceProblem } from './references';\nimport { ChevronRight, Key, User } from './icons';\nimport { serviceName } from '@coffre/client';\n\n/**\n * The part of a user's or token's page that answers \"what do we change now\n * they have left?\". Owners only. Once someone is removed everything that let\n * them in is gone, but what they saw is not, nor tokens they issued.\n */\nexport function PrincipalReportCards({ report }: { report: PrincipalReport }) {\n const person = report.principalType === 'user';\n return (\n <>\n {report.status === 'removed' && <ConsiderRotating report={report} person={person} />}\n {report.issuedTokens.length > 0 && <IssuedTokens report={report} />}\n {report.references.length > 0 && <MadeReferences report={report} />}\n </>\n );\n}\n\nexport function RemovedNotice({ report }: { report: PrincipalReport }) {\n const person = report.principalType === 'user';\n return (\n <div className=\"report-notice\">\n <Notice>\n Removed\n {report.removedBy !== null && (\n <>\n {' '}by <span className=\"mono\">{report.removedBy}</span>\n </>\n )}\n {report.removedAt !== null && (\n <>\n {' '}on <Timestamp iso={report.removedAt} />\n </>\n )}\n .{' '}\n {person\n ? 'Their project access, sessions, CLI logins, linked sign-in accounts and connected apps were revoked, so adding them again starts from nothing.'\n : 'Its project access and every token issued to it were revoked, so adding it again starts from nothing.'}\n </Notice>\n </div>\n );\n}\n\n/**\n * The people or service accounts removed from the directory, under the live ones.\n * Removal ends their access but not the work it leaves, so they stay one click\n * away until every value they saw has been rotated.\n */\nexport function RemovedList({\n principalType,\n removed,\n}: {\n principalType: RemovedPrincipal['principalType'];\n removed: RemovedPrincipal[];\n}) {\n const users = principalType === 'user';\n const rows = removed.filter((principal) => principal.principalType === principalType);\n if (rows.length === 0) return null;\n return (\n <>\n <h2 className=\"section-title\">Removed</h2>\n <section className=\"card\" aria-label={users ? 'Removed users' : 'Removed service accounts'}>\n <div className=\"dt-wrap\">\n <table className=\"dt directory stacks\">\n <thead>\n <tr>\n <th className=\"n\">#</th>\n <th className=\"col-principal\">\n <span className=\"th\">\n {users ? <User size={14} /> : <Key size={14} />}\n {users ? 'Email' : 'Name'}\n </span>\n </th>\n <th className=\"col-role\">Consider rotating</th>\n <th className=\"col-actions\">\n <span className=\"visually-hidden\">Report</span>\n </th>\n </tr>\n </thead>\n <tbody>\n {rows.map((principal, index) => (\n <tr key={principal.principalId} className=\"row-link\">\n <td className=\"n\">{index + 1}</td>\n <td className=\"col-lead\" data-label={users ? 'Email' : 'Name'}>\n <PrincipalLink type={principal.principalType} id={principal.principalId} stretch />\n </td>\n <td className=\"col-role\" data-label=\"Consider rotating\">\n {principal.toRotate === 0 ? (\n <span className=\"cell-muted\">Nothing</span>\n ) : (\n `${principal.toRotate} ${principal.toRotate === 1 ? 'value' : 'values'}`\n )}\n </td>\n {/* The row opens the report; the chevron says it does. */}\n <td className=\"col-actions col-open cell-muted\" aria-hidden=\"true\">\n <ChevronRight size={16} />\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </section>\n </>\n );\n}\n\n/** Values a removed member saw that nobody has changed since. */\nfunction ConsiderRotating({ report, person }: { report: PrincipalReport; person: boolean }) {\n const they = person ? 'they' : 'it';\n return (\n <Card\n labelledBy=\"seen-values\"\n title=\"Consider rotating\"\n description={`Values ${they} read or wrote that nobody has changed since. Rotate each at its source, such as a new API key or database password, then save the new value here.`}\n actions={\n report.rotated > 0 && (\n <span className=\"card-aside\">{report.rotated} already rotated</span>\n )\n }\n >\n {report.exposed.length === 0 ? (\n <EmptyState title=\"Nothing left to rotate\">\n {report.rotated > 0\n ? `Every value ${they} saw has had a new version since.`\n : `${person ? 'They have' : 'It has'} not read or written a value that is still current.`}\n </EmptyState>\n ) : (\n <div className=\"dt-wrap\">\n <table className=\"dt report-values\">\n <thead>\n <tr>\n <th>Secret</th>\n <th className=\"col-shrink\">Version</th>\n <th className=\"col-shrink\">Last seen</th>\n </tr>\n </thead>\n <tbody>\n {report.exposed.map((secret) => (\n <tr key={`${secret.project}/${secret.environment}/${secret.key}`}>\n <td>\n <Link\n className=\"cell-link mono\"\n to=\"/projects/$project/$environment\"\n params={{ project: secret.project, environment: secret.environment }}\n search={{ filter: secret.key }}\n >\n <span className=\"report-path\">\n {secret.project}/{secret.environment}/\n </span>\n {secret.key}\n </Link>\n </td>\n <td className=\"col-shrink cell-mono cell-muted\">v{secret.version}</td>\n <td className=\"col-shrink nowrap\">\n {secret.how === 'wrote' ? 'Wrote' : 'Read'}{' '}\n <Timestamp iso={secret.at} display=\"relative\" />\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n )}\n </Card>\n );\n}\n\n/**\n * References they made, as the log names them: each belongs to the\n * environment that holds it, like a value, not to them (D46), so their\n * leaving ends none. Listed to review.\n */\nfunction MadeReferences({ report }: { report: PrincipalReport }) {\n return (\n <Card\n labelledBy=\"made-references\"\n title=\"References they made\"\n description=\"These stay after they leave, and whoever reads a reference's environment reads its source through it. Review them: the source's access managers, or whoever writes where one is held, can break it.\"\n >\n <div className=\"dt-wrap\">\n <table className=\"dt stacks\">\n <thead>\n <tr>\n <th>Reference</th>\n <th>Reads</th>\n <th className=\"col-shrink\">Made</th>\n </tr>\n </thead>\n <tbody>\n {report.references.map((reference) => (\n <tr key={reference.id}>\n <td className=\"mono\" data-label=\"Reference\">{reference.holder}</td>\n <td data-label=\"Reads\">\n <span className=\"mono\">{reference.source}</span>\n {reference.state !== 'live' && <span className=\"cell-muted\"> · {referenceProblem(reference.state)}</span>}\n </td>\n <td className=\"col-shrink nowrap\" data-label=\"Made\">\n <Timestamp iso={reference.createdAt} display=\"relative\" />\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </Card>\n );\n}\n\nfunction IssuedTokens({ report }: { report: PrincipalReport }) {\n return (\n <Card\n labelledBy=\"issued-tokens\"\n title=\"Bearer tokens they issued\"\n description=\"These still work, and they saw each one when it was issued. Revoke any they may have kept.\"\n >\n <div className=\"dt-wrap\">\n <table className=\"dt report-tokens\">\n <thead>\n <tr>\n <th>Token</th>\n <th className=\"col-shrink\">Expires</th>\n <th className=\"col-shrink col-hide-narrow\">Last used</th>\n </tr>\n </thead>\n <tbody>\n {report.issuedTokens.map((token) => (\n <tr key={token.id}>\n <td>\n <span className=\"cell-stack\">\n <Link className=\"cell-link mono\" to=\"/service-accounts/$account\" params={{ account: serviceName(token.service) }}>\n service:{serviceName(token.service)}\n </Link>\n <small>\n {token.label ?? 'No label'} · <span className=\"mono\">{token.hint}</span> · reaches{' '}\n {token.scope === null ? 'all its account holds' : credentialScopeInWords(token.scope)}\n </small>\n </span>\n </td>\n <td className=\"col-shrink nowrap\">\n <Timestamp iso={token.expiresAt} display=\"relative\" />\n </td>\n <td className=\"col-shrink col-hide-narrow nowrap\">\n {token.lastUsedAt === null ? (\n <span className=\"cell-muted\">Never</span>\n ) : (\n <Timestamp iso={token.lastUsedAt} display=\"relative\" />\n )}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,qBAAqB,EAAE,UAAuC;CAC5E,MAAM,SAAS,OAAO,kBAAkB;CACxC,OACE,qBAAA,UAAA,EAAA,UAAA;EACG,OAAO,WAAW,aAAa,oBAAC,kBAAD;GAA0B;GAAgB;EAAS,CAAA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,qBAAC,QAAD;MAAM,WAAU;gBAAhB,CACE,qBAAC,MAAD;OAAM,WAAU;OAAiB,IAAG;OAA6B,QAAQ,EAAE,SAAS,YAAY,MAAM,OAAO,EAAE;iBAA/G,CAAkH,YACvG,YAAY,MAAM,OAAO,CAC9B;UACN,qBAAC,SAAD,EAAA,UAAA;OACG,MAAM,SAAS;OAAW;OAAG,oBAAC,QAAD;QAAM,WAAU;kBAAQ,MAAM;OAAW,CAAA;OAAC;OAAW;OAClF,MAAM,UAAU,OAAO,0BAA0B,uBAAuB,MAAM,KAAK;MAC/E,EAAA,CAAA,CACH;QACJ,CAAA;KACJ,oBAAC,MAAD;MAAI,WAAU;gBACZ,oBAAC,WAAD;OAAW,KAAK,MAAM;OAAW,SAAQ;MAAY,CAAA;KACnD,CAAA;KACJ,oBAAC,MAAD;MAAI,WAAU;gBACX,MAAM,eAAe,OACpB,oBAAC,QAAD;OAAM,WAAU;iBAAa;MAAW,CAAA,IAExC,oBAAC,WAAD;OAAW,KAAK,MAAM;OAAY,SAAQ;MAAY,CAAA;KAEtD,CAAA;IACF,EAAA,GAtBK,MAAM,EAsBX,CACL,EACI,CAAA,CACF;;EACJ,CAAA;CACD,CAAA;AAEV"}
@@ -1,17 +1,17 @@
1
+ import { a as listsAccess, g as managedProjects, i as keys, r as hasAppsTab, t as affects, v as queries, x as signInWays } from "./queries-BvSw1xBN.js";
1
2
  import { t as useMounted } from "./mounted-jJmqqV_n.js";
2
- import { a as ErrorLine, c as Notice, i as EmptyState, l as Spinner, s as Modal, u as Timestamp } from "./ui-Br-dNUTc.js";
3
+ import { a as ErrorLine, c as Notice, i as EmptyState, l as Spinner, s as Modal, u as Timestamp } from "./ui-2kwXXfrX.js";
3
4
  import { $ as SlashCircle, E as Folder, F as Link$1, M as Key, S as Clock, W as Pencil, X as ShieldCheck, d as Tile, f as Activity, h as Archive, i as PageHeader, l as uiResult, n as ClosedDoor, ot as Users, s as memberRef, st as X, u as useCoffre } from "./page-JTORvh-N.js";
4
- import { t as ItemFailure } from "./row-state-Zf3kZVhd.js";
5
- import { a as listsAccess, g as queries, i as keys, m as managedProjects, r as hasAppsTab, t as affects, y as signInWays } from "./queries-DgQo3mC-.js";
6
- import { t as useShell } from "./use-shell-D6kjSPls.js";
5
+ import { t as ItemFailure } from "./row-state-BsIHspy4.js";
6
+ import { t as useShell } from "./use-shell-DhFoHjDS.js";
7
7
  import { t as PageTabs } from "./tabs-BmwKfUeK.js";
8
- import { A as accessRows, M as projectAccessLabel, l as directoryList, n as useChangeStatus } from "./use-change-By4cG8bT.js";
8
+ import { F as accessRows, L as projectAccessLabel, d as directoryList, n as useChangeStatus } from "./use-change-DIQTGXER.js";
9
9
  import { t as PrincipalAvatar } from "./principal-DFBswTBr.js";
10
- import { i as PrincipalActions, n as InstanceRole, r as KIND } from "./directory-DrtdKny2.js";
11
- import { a as lines, i as describe, t as Sentence } from "./audit-sentence-CUUMshIp.js";
12
- import { t as useAction } from "./use-action-DthL5hL8.js";
13
- import { n as GrantsTable, t as GrantRowView } from "./grants-DDBui9YD.js";
14
- import { r as RemovedNotice, t as PrincipalReportCards } from "./offboarding-C7ECW5o0.js";
10
+ import { i as PrincipalActions, n as InstanceRole, r as KIND } from "./directory-SRN01yP6.js";
11
+ import { a as lines, i as describe, t as Sentence } from "./audit-sentence-BVv_9_nq.js";
12
+ import { t as useAction } from "./use-action-Bv7yQ0DW.js";
13
+ import { n as GrantsTable, t as GrantRowView } from "./grants-1E1vqkM0.js";
14
+ import { r as RemovedNotice, t as PrincipalReportCards } from "./offboarding-Bt7KSixm.js";
15
15
  import { useState } from "react";
16
16
  import { Link, Outlet } from "@tanstack/react-router";
17
17
  import { toast } from "sonner";
@@ -55,10 +55,7 @@ function ActionsLog({ member }) {
55
55
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("section", {
56
56
  className: "card",
57
57
  "aria-label": "Actions log",
58
- children: shown.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
59
- title: "Nothing done yet",
60
- children: "Every read, write and change they make is listed here."
61
- }) : /* @__PURE__ */ jsx("div", {
58
+ children: shown.length === 0 ? /* @__PURE__ */ jsx(EmptyState, { title: "Nothing yet" }) : /* @__PURE__ */ jsx("div", {
62
59
  className: "dt-wrap",
63
60
  children: /* @__PURE__ */ jsxs("table", {
64
61
  className: "dt actions-log stacks stacks-inline",
@@ -544,7 +541,7 @@ function PrincipalAccess({ principalType, principalId }) {
544
541
  error
545
542
  }) : rows.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
546
543
  title: "No project access yet",
547
- children: editable.length > 0 ? `Edit access gives this ${kind} access to several projects at once.` : `None of the projects where you manage access has a grant for this ${kind}.`
544
+ children: editable.length > 0 ? void 0 : `None of the projects where you manage access has a grant for this ${kind}.`
548
545
  }) : /* @__PURE__ */ jsx(GrantsTable, {
549
546
  lead: /* @__PURE__ */ jsxs("span", {
550
547
  className: "th",
@@ -563,7 +560,7 @@ function PrincipalAccess({ principalType, principalId }) {
563
560
  className: "cell-link",
564
561
  to: people ? "/projects/$project/users" : "/projects/$project/service-accounts",
565
562
  params: { project: project.slug },
566
- children: project.name
563
+ children: project.slug
567
564
  }),
568
565
  project.archivedAt !== null && /* @__PURE__ */ jsx("span", {
569
566
  className: "tag tag-red",
@@ -583,9 +580,9 @@ function PrincipalAccess({ principalType, principalId }) {
583
580
  offers
584
581
  })
585
582
  }),
586
- /* @__PURE__ */ jsx("p", {
583
+ !(held?.managed === true && principalType === "service") && /* @__PURE__ */ jsx("p", {
587
584
  className: "hint section-foot",
588
- children: held?.managed === true && principalType === "service" ? "Only projects where you may give it access are listed: what you hold there, where the instance lets you." : "Only projects where you manage access are listed."
585
+ children: "Only projects where you manage access are listed."
589
586
  })
590
587
  ] }),
591
588
  found !== null && /* @__PURE__ */ jsx(PrincipalReportCards, { report: found })
@@ -712,7 +709,7 @@ function EditAccess({ principalType, principalId, access, offers }) {
712
709
  className: "plan-project-text",
713
710
  children: [/* @__PURE__ */ jsx("span", {
714
711
  className: "plan-project-name",
715
- children: project.name
712
+ children: project.slug
716
713
  }), held.level === "custom" && /* @__PURE__ */ jsxs("span", {
717
714
  className: "plan-project-held",
718
715
  children: ["Holds ", grants.map((grant) => projectAccessLabel(grant)).join(", ")]
@@ -752,7 +749,7 @@ function EditAccess({ principalType, principalId, access, offers }) {
752
749
  ]
753
750
  }),
754
751
  (plan.level === "owner" || plan.level === "viewer" || plan.level === "developer") && /* @__PURE__ */ jsx(ExpiryField, {
755
- label: `${project.name} expires`,
752
+ label: `${project.slug} expires`,
756
753
  expiresAt: plan.expiresAt,
757
754
  onChange: (expiresAt) => edit({
758
755
  ...plan,
@@ -761,7 +758,7 @@ function EditAccess({ principalType, principalId, access, offers }) {
761
758
  }),
762
759
  plan.level === "env" && /* @__PURE__ */ jsx("ul", {
763
760
  className: "plan-envs",
764
- "aria-label": `Environments of ${project.name}`,
761
+ "aria-label": `Environments of ${project.slug}`,
765
762
  children: environments.map((slug) => {
766
763
  const current = environmentAccess(plan, slug);
767
764
  return /* @__PURE__ */ jsxs("li", {
@@ -799,7 +796,7 @@ function EditAccess({ principalType, principalId, access, offers }) {
799
796
  ]
800
797
  }),
801
798
  current !== null && /* @__PURE__ */ jsx(ExpiryField, {
802
- label: `${slug} of ${project.name} expires`,
799
+ label: `${slug} of ${project.slug} expires`,
803
800
  expiresAt: current.expiresAt,
804
801
  onChange: (expiresAt) => edit(withEnvironment(plan, slug, {
805
802
  ...current,
@@ -812,7 +809,7 @@ function EditAccess({ principalType, principalId, access, offers }) {
812
809
  }),
813
810
  changes.length > 0 && /* @__PURE__ */ jsx("ul", {
814
811
  className: "plan-changes",
815
- "aria-label": `Changes to ${project.name}`,
812
+ "aria-label": `Changes to ${project.slug}`,
816
813
  children: changes.map((change) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(AccessChangeTag, { change }) }, change.kind === "create" ? `+${change.role}@${change.environmentSlug ?? ""}` : change.grant.id))
817
814
  })
818
815
  ]
@@ -890,4 +887,4 @@ function AccessChangeTag({ change }) {
890
887
  //#endregion
891
888
  export { PrincipalLayout as n, ActionsLog as r, PrincipalAccess as t };
892
889
 
893
- //# sourceMappingURL=principal-page-CB6dAABC.js.map
890
+ //# sourceMappingURL=principal-page-Cbx2l6XL.js.map