@coffre/ui 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/_coffre/assets/account-CyJDFhek.js +2 -0
- package/dist/client/_coffre/assets/account-DHSs5h2f.js +1 -0
- package/dist/client/_coffre/assets/affordances-BQD5B421.js +1 -0
- package/dist/client/_coffre/assets/audit-Bcyp_dU1.js +2 -0
- package/dist/client/_coffre/assets/audit-rMy9mU9Q.js +1 -0
- package/dist/client/_coffre/assets/auth.device-DuvaComb.js +1 -0
- package/dist/client/_coffre/assets/{auth.device-CWHNQn9W.js → auth.device-yBt_sLZW.js} +2 -2
- package/dist/client/_coffre/assets/directory-C4BMGC7-.js +1 -0
- package/dist/client/_coffre/assets/dist-BNkBTkxj.js +1 -0
- package/dist/client/_coffre/assets/{globals-CKBoTlyH.css → globals-BJkzu6T5.css} +1 -1
- package/dist/client/_coffre/assets/{grants-CjoOnxzz.js → grants-CyDW25eX.js} +1 -1
- package/dist/client/_coffre/assets/icons-BRl8DlXW.js +1 -0
- package/dist/client/_coffre/assets/{index-CUGytaO3.js → index-CA1mtrIx.js} +5 -5
- package/dist/client/_coffre/assets/link-CqlAJWBd.js +1 -0
- package/dist/client/_coffre/assets/login-B73b6bsJ.js +1 -0
- package/dist/client/_coffre/assets/login-BO1KAGPU.js +2 -0
- package/dist/client/_coffre/assets/offboarding--5vSKNHv.js +1 -0
- package/dist/client/_coffre/assets/page-Dngv8FMr.js +1 -0
- package/dist/client/_coffre/assets/preload-helper-DBha3tys.js +1 -0
- package/dist/client/_coffre/assets/principal-page-C4qDD-d8.js +1 -0
- package/dist/client/_coffre/assets/projects._project._environment-eBKxOZ0_.js +2 -0
- package/dist/client/_coffre/assets/projects._project._environment-or_AX6o5.js +3 -0
- package/dist/client/_coffre/assets/projects._project.index-DHdXfEh-.js +2 -0
- package/dist/client/_coffre/assets/projects._project.index-iynQgenH.js +1 -0
- package/dist/client/_coffre/assets/projects.index-CGW8mRil.js +1 -0
- package/dist/client/_coffre/assets/row-state-BlarvG7E.js +1 -0
- package/dist/client/_coffre/assets/{settings-D2zp1Ssu.js → settings-D-7RJIDf.js} +1 -1
- package/dist/client/_coffre/assets/suspense-q_eJaZ18.js +1 -0
- package/dist/client/_coffre/assets/tokens._token-0u7midqA.js +2 -0
- package/dist/client/_coffre/assets/tokens._token-C53NqScg.js +1 -0
- package/dist/client/_coffre/assets/{tokens.index-CSi5Wxwf.js → tokens.index-DBZTLnbi.js} +1 -1
- package/dist/client/_coffre/assets/{ui-BdipqGpP.js → ui-BPWFJNz7.js} +3 -3
- package/dist/client/_coffre/assets/{unregistered-CA7B4C1m.js → unregistered-CLhgtwUt.js} +1 -1
- package/dist/client/_coffre/assets/use-action-LULgF26O.js +1 -0
- package/dist/client/_coffre/assets/{use-change-BRRMJocl.js → use-change-Bd6NZJj9.js} +1 -1
- package/dist/client/_coffre/assets/use-shell-Dx92Huhb.js +1 -0
- package/dist/client/_coffre/assets/useQuery-BIIZz1CB.js +1 -0
- package/dist/client/_coffre/assets/useSuspenseQuery-tP9HFZ8w.js +1 -0
- package/dist/client/_coffre/assets/users._user-BXtaL8Ee.js +2 -0
- package/dist/client/_coffre/assets/users._user-CNYVkXaY.js +1 -0
- package/dist/client/_coffre/assets/{users.index-CKnQ1G76.js → users.index-Cs9tibIv.js} +1 -1
- package/dist/server/.vite/manifest.json +205 -206
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-T9tMsCwo.js +162 -0
- package/dist/server/_coffre/assets/{account-BocTPU1J.js → account-BUhhOS5-.js} +8 -8
- package/dist/server/_coffre/assets/{account-CL8hOGhO.js → account-B_h55GCs.js} +4 -4
- package/dist/server/_coffre/assets/{audit-Bcka4vA6.js → audit-B8Ck358-.js} +6 -6
- package/dist/server/_coffre/assets/{audit-CSRQYIhu.js → audit-DFsXfeAQ.js} +2 -2
- package/dist/server/_coffre/assets/{auth.device-DqO0T-rU.js → auth.device-BXf_JjT7.js} +2 -2
- package/dist/server/_coffre/assets/{auth.device-CMcUISZY.js → auth.device-cqjWACvB.js} +4 -4
- package/dist/server/_coffre/assets/{directory-CyYx6Jx1.js → directory-C9SfNgpM.js} +5 -5
- package/dist/server/_coffre/assets/{globals-CKBoTlyH.css → globals-BJkzu6T5.css} +1 -1
- package/dist/server/_coffre/assets/{grants-CRijabX0.js → grants--315KmXu.js} +5 -5
- package/dist/server/_coffre/assets/{icons-Dy-5ccDF.js → icons-CWsTEfpn.js} +123 -241
- package/dist/server/_coffre/assets/{login-BI9tzJEy.js → login-CQSkYW_D.js} +5 -5
- package/dist/server/_coffre/assets/{login-C-v88YwP.js → login-LBpXXfsQ.js} +1 -1
- package/dist/server/_coffre/assets/{offboarding-1H0LavTd.js → offboarding-CykelNis.js} +9 -79
- package/dist/server/_coffre/assets/{page-D_mO0-sn.js → page-BGeDoQO5.js} +3 -64
- package/dist/server/_coffre/assets/{principal-page-DQDoXute.js → principal-page-CRdoAQOq.js} +11 -11
- package/dist/server/_coffre/assets/{projects._project._environment-D_5R40of.js → projects._project._environment-BXU1Mee5.js} +3 -3
- package/dist/server/_coffre/assets/{projects._project._environment-C-yVwC92.js → projects._project._environment-BrDqn8kW.js} +11 -550
- package/dist/server/_coffre/assets/{projects._project.index-A2BImFIT.js → projects._project.index-CAxBU4tY.js} +12 -12
- package/dist/server/_coffre/assets/{projects._project.index-BPPKxKrt.js → projects._project.index-CYyUVTCl.js} +2 -2
- package/dist/server/_coffre/assets/{projects.index-543IsPzY.js → projects.index-D6ZoDE_0.js} +7 -7
- package/dist/server/_coffre/assets/{router-CM3vK8QO.js → router-Bu2qtyqw.js} +20 -20
- package/dist/server/_coffre/assets/{row-state-XBtDoIA4.js → row-state-CAItu3n_.js} +2 -2
- package/dist/server/_coffre/assets/{settings-BLVU74ym.js → settings-ByeF6hBa.js} +3 -3
- package/dist/server/_coffre/assets/{suspense-CzYTwxOj.js → suspense-beD01bb8.js} +1 -1
- package/dist/server/_coffre/assets/{tokens._token-B-hBgwBW.js → tokens._token-CM01QPCq.js} +2 -2
- package/dist/server/_coffre/assets/{tokens._token-aubAUonP.js → tokens._token-D2E4P3Qc.js} +10 -10
- package/dist/server/_coffre/assets/{tokens.index-4D3jwp5v.js → tokens.index-Cmrgn3mU.js} +6 -6
- package/dist/server/_coffre/assets/{ui-BI3Bf72q.js → ui-DvlGkmaH.js} +1 -1
- package/dist/server/_coffre/assets/{unregistered-CagDxMyw.js → unregistered-DSArejP9.js} +3 -3
- package/dist/server/_coffre/assets/{use-action-tzBZvjjQ.js → use-action-C2wz34kq.js} +2 -2
- package/dist/server/_coffre/assets/{use-change-Dggqxy5y.js → use-change-CJpGSNIq.js} +3 -3
- package/dist/server/_coffre/assets/{use-shell-CwStDfzX.js → use-shell-C3iYcyP1.js} +2 -2
- package/dist/server/_coffre/assets/{useQuery-C6_dBjem.js → useQuery-ChxaQ4Cb.js} +2 -2
- package/dist/server/_coffre/assets/{useSuspenseQuery-BuapQt_P.js → useSuspenseQuery-BjAmlGZl.js} +2 -2
- package/dist/server/_coffre/assets/{users._user-C252Iilj.js → users._user-BVeR9fZP.js} +2 -2
- package/dist/server/_coffre/assets/{users._user-137WNyxn.js → users._user-Cih2Etf4.js} +2 -2
- package/dist/server/_coffre/assets/{users.index-DQHsfnal.js → users.index-Bo2_a95G.js} +6 -6
- package/dist/server/index.js +2 -2
- package/package.json +3 -3
- package/src/components/icons.tsx +0 -34
- package/src/components/offboarding.tsx +1 -52
- package/src/lib/coffre.ts +1 -1
- package/src/lib/queries.ts +2 -10
- package/src/routes/projects.$project.$environment.tsx +1 -11
- package/src/shared/models.ts +1 -5
- package/src/styles/globals.css +2 -49
- package/dist/client/_coffre/assets/account-BJAdDvZf.js +0 -2
- package/dist/client/_coffre/assets/account-D0jLpk5c.js +0 -1
- package/dist/client/_coffre/assets/affordances-Bq2-oUB5.js +0 -1
- package/dist/client/_coffre/assets/audit-C-pcBgKe.js +0 -2
- package/dist/client/_coffre/assets/audit-CHGlDeBB.js +0 -1
- package/dist/client/_coffre/assets/auth.device-BndOUjse.js +0 -1
- package/dist/client/_coffre/assets/directory-nDExpkAz.js +0 -1
- package/dist/client/_coffre/assets/dist-QVHMLatb.js +0 -1
- package/dist/client/_coffre/assets/icons-BQ27Ds9u.js +0 -1
- package/dist/client/_coffre/assets/link-DP8SVWon.js +0 -1
- package/dist/client/_coffre/assets/login-CeaxDMcr.js +0 -2
- package/dist/client/_coffre/assets/login-DrMgvqZn.js +0 -1
- package/dist/client/_coffre/assets/offboarding-CNr_1tnl.js +0 -1
- package/dist/client/_coffre/assets/page-CGmvjSy4.js +0 -1
- package/dist/client/_coffre/assets/preload-helper-ClBkJ19f.js +0 -1
- package/dist/client/_coffre/assets/principal-page-DNLb_q_e.js +0 -1
- package/dist/client/_coffre/assets/projects._project._environment-CHzbboGp.js +0 -3
- package/dist/client/_coffre/assets/projects._project._environment-DDxu_HHD.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-CIAsjvg6.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-DZ9l6d-1.js +0 -1
- package/dist/client/_coffre/assets/projects.index-4eUXreE_.js +0 -1
- package/dist/client/_coffre/assets/row-state-ByET1OKX.js +0 -1
- package/dist/client/_coffre/assets/suspense-C7KwSnTG.js +0 -1
- package/dist/client/_coffre/assets/tokens._token-DWmbqzNk.js +0 -2
- package/dist/client/_coffre/assets/tokens._token-Dui_4KfS.js +0 -1
- package/dist/client/_coffre/assets/use-action-DRm9yVhV.js +0 -1
- package/dist/client/_coffre/assets/use-shell-BMGlJ25Q.js +0 -1
- package/dist/client/_coffre/assets/useQuery-D__2KBOs.js +0 -1
- package/dist/client/_coffre/assets/useSuspenseQuery-CSXyDALB.js +0 -1
- package/dist/client/_coffre/assets/users._user-BkNrX7Qf.js +0 -1
- package/dist/client/_coffre/assets/users._user-jbSvtdOg.js +0 -2
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-Dx-c3XVk.js +0 -162
- package/src/components/syncs.tsx +0 -597
|
@@ -4,23 +4,23 @@ import { C as createNonReactiveReadonlyStore, S as createNonReactiveMutableStore
|
|
|
4
4
|
import { a as redirect, r as isRedirect } from "./matchContext-qLfYbC6_.js";
|
|
5
5
|
import { t as Link } from "./link-42ZWdjzZ.js";
|
|
6
6
|
import { a as useStructuralSharing, i as useNavigate, n as createFileRoute, r as createRootRouteWithContext, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
7
|
-
import {
|
|
8
|
-
import { d as QueryClientProvider } from "./suspense-
|
|
9
|
-
import { t as useShell } from "./use-shell-
|
|
7
|
+
import { H as createClient, N as noop, a as Tile, f as loadShell, h as queries, l as loadDirectory, n as ClosedDoor, s as createQueryClient } from "./page-BGeDoQO5.js";
|
|
8
|
+
import { d as QueryClientProvider } from "./suspense-beD01bb8.js";
|
|
9
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
10
10
|
import { t as Toaster } from "./dist-CnnV3t2g.js";
|
|
11
|
-
import { S as composeRefs, _ 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, x as Primitive, y as DialogPortal } from "./ui-
|
|
11
|
+
import { S as composeRefs, _ 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, x as Primitive, y as DialogPortal } from "./ui-DvlGkmaH.js";
|
|
12
12
|
import { n as isActiveAccessibleEnvironment } from "./project-environments-lEzFHUt4.js";
|
|
13
13
|
import { a as hasAdministrationItems, t as AdministrationItems } from "./affordances-CKANXDTG.js";
|
|
14
|
-
import {
|
|
15
|
-
import { a as setTheme, i as ThemeToggle, o as themeBootScript, r as ThemeMenuItems, t as Route$8 } from "./account-
|
|
16
|
-
import { n as LiveRegion } from "./row-state-
|
|
17
|
-
import { t as Route$9 } from "./audit-
|
|
18
|
-
import { t as Route$10 } from "./login-
|
|
19
|
-
import { t as Route$11 } from "./auth.device-
|
|
20
|
-
import { t as Route$12 } from "./tokens._token-
|
|
21
|
-
import { t as Route$13 } from "./users._user-
|
|
22
|
-
import { t as Route$14 } from "./projects._project.index-
|
|
23
|
-
import { t as Route$15 } from "./projects._project._environment-
|
|
14
|
+
import { C as Mark, E as Moon, G as markSvg, H as UserCog, I as SignOut, L as SlashCircle, N as Search, O as PanelLeft, P as Settings, R as Sun, T as Monitor, U as Users, W as X$1, a as Check, b as Ledger, c as ChevronsUpDown, m as GitHub, p as Folder, r as AlertTriangle, v as Key, w as Menu, y as Layers } from "./icons-CWsTEfpn.js";
|
|
15
|
+
import { a as setTheme, i as ThemeToggle, o as themeBootScript, r as ThemeMenuItems, t as Route$8 } from "./account-B_h55GCs.js";
|
|
16
|
+
import { n as LiveRegion } from "./row-state-CAItu3n_.js";
|
|
17
|
+
import { t as Route$9 } from "./audit-DFsXfeAQ.js";
|
|
18
|
+
import { t as Route$10 } from "./login-LBpXXfsQ.js";
|
|
19
|
+
import { t as Route$11 } from "./auth.device-BXf_JjT7.js";
|
|
20
|
+
import { t as Route$12 } from "./tokens._token-CM01QPCq.js";
|
|
21
|
+
import { t as Route$13 } from "./users._user-BVeR9fZP.js";
|
|
22
|
+
import { t as Route$14 } from "./projects._project.index-CYyUVTCl.js";
|
|
23
|
+
import { t as Route$15 } from "./projects._project._environment-BXU1Mee5.js";
|
|
24
24
|
//#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
|
|
25
25
|
var getStoreFactory = (opts) => {
|
|
26
26
|
return {
|
|
@@ -647,7 +647,7 @@ function setupRouterSsrQueryIntegration(opts) {
|
|
|
647
647
|
}
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region src/styles/globals.css?url
|
|
650
|
-
var globals_default = "/_coffre/assets/globals-
|
|
650
|
+
var globals_default = "/_coffre/assets/globals-BJkzu6T5.css";
|
|
651
651
|
//#endregion
|
|
652
652
|
//#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
|
|
653
653
|
var U = 1;
|
|
@@ -2026,7 +2026,7 @@ var Route$5 = createFileRoute("/access")({ beforeLoad: () => {
|
|
|
2026
2026
|
} });
|
|
2027
2027
|
//#endregion
|
|
2028
2028
|
//#region src/routes/settings.tsx
|
|
2029
|
-
var $$splitComponentImporter$4 = () => import("./settings-
|
|
2029
|
+
var $$splitComponentImporter$4 = () => import("./settings-ByeF6hBa.js");
|
|
2030
2030
|
/** The instance's settings. Your own are under Account, at the sidebar's foot. */
|
|
2031
2031
|
var Route$4 = createFileRoute("/settings")({
|
|
2032
2032
|
loader: ({ context: { client, queryClient } }) => loadDirectory(queryClient, client),
|
|
@@ -2034,7 +2034,7 @@ var Route$4 = createFileRoute("/settings")({
|
|
|
2034
2034
|
});
|
|
2035
2035
|
//#endregion
|
|
2036
2036
|
//#region src/routes/unregistered.tsx
|
|
2037
|
-
var $$splitComponentImporter$3 = () => import("./unregistered-
|
|
2037
|
+
var $$splitComponentImporter$3 = () => import("./unregistered-DSArejP9.js");
|
|
2038
2038
|
var Route$3 = createFileRoute("/unregistered")({ component: lazyRouteComponent($$splitComponentImporter$3, "component") });
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Cloudflare Access has authenticated this person, but Coffre has not
|
|
@@ -2043,7 +2043,7 @@ var Route$3 = createFileRoute("/unregistered")({ component: lazyRouteComponent($
|
|
|
2043
2043
|
*/
|
|
2044
2044
|
//#endregion
|
|
2045
2045
|
//#region src/routes/projects.index.tsx
|
|
2046
|
-
var $$splitComponentImporter$2 = () => import("./projects.index-
|
|
2046
|
+
var $$splitComponentImporter$2 = () => import("./projects.index-D6ZoDE_0.js");
|
|
2047
2047
|
var Route$2 = createFileRoute("/projects/")({
|
|
2048
2048
|
loader: ({ context: { client, queryClient } }) => queryClient.fetchQuery(queries.projects(client)),
|
|
2049
2049
|
component: lazyRouteComponent($$splitComponentImporter$2, "component")
|
|
@@ -2054,14 +2054,14 @@ var Route$2 = createFileRoute("/projects/")({
|
|
|
2054
2054
|
*/
|
|
2055
2055
|
//#endregion
|
|
2056
2056
|
//#region src/routes/tokens.index.tsx
|
|
2057
|
-
var $$splitComponentImporter$1 = () => import("./tokens.index-
|
|
2057
|
+
var $$splitComponentImporter$1 = () => import("./tokens.index-Cmrgn3mU.js");
|
|
2058
2058
|
var Route$1 = createFileRoute("/tokens/")({
|
|
2059
2059
|
loader: ({ context: { client, queryClient } }) => loadDirectory(queryClient, client),
|
|
2060
2060
|
component: lazyRouteComponent($$splitComponentImporter$1, "component")
|
|
2061
2061
|
});
|
|
2062
2062
|
//#endregion
|
|
2063
2063
|
//#region src/routes/users.index.tsx
|
|
2064
|
-
var $$splitComponentImporter = () => import("./users.index-
|
|
2064
|
+
var $$splitComponentImporter = () => import("./users.index-Bo2_a95G.js");
|
|
2065
2065
|
var Route = createFileRoute("/users/")({
|
|
2066
2066
|
loader: ({ context: { client, queryClient } }) => loadDirectory(queryClient, client),
|
|
2067
2067
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { c as Spinner } from "./ui-
|
|
3
|
-
import {
|
|
2
|
+
import { c as Spinner } from "./ui-DvlGkmaH.js";
|
|
3
|
+
import { W as X, n as AlertCircle } from "./icons-CWsTEfpn.js";
|
|
4
4
|
//#region src/lib/announce.ts
|
|
5
5
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6
6
|
var heard = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
2
|
import { t as Link } from "./link-42ZWdjzZ.js";
|
|
3
|
-
import { C as useCoffre, h as queries, i as PageHeader, r as Fact, t as Card } from "./page-
|
|
4
|
-
import { t as useShell } from "./use-shell-
|
|
5
|
-
import { t as useSuspenseQuery } from "./useSuspenseQuery-
|
|
3
|
+
import { C as useCoffre, h as queries, i as PageHeader, r as Fact, t as Card } from "./page-BGeDoQO5.js";
|
|
4
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
5
|
+
import { t as useSuspenseQuery } from "./useSuspenseQuery-BjAmlGZl.js";
|
|
6
6
|
//#region src/routes/settings.tsx?tsr-split=component
|
|
7
7
|
var import_jsx_runtime = require_jsx_runtime();
|
|
8
8
|
/** The instance's settings. Your own are under Account, at the sidebar's foot. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { A as isServer, B as timeoutManager, D as notifyManager, E as fetchState, I as resolveQueryValue, L as shallowEqualObjects, M as isValidTimeout, N as noop, O as focusManager, P as replaceData, R as shouldThrowError, k as Subscribable, z as timeUntilStale } from "./page-
|
|
2
|
+
import { A as isServer, B as timeoutManager, D as notifyManager, E as fetchState, I as resolveQueryValue, L as shallowEqualObjects, M as isValidTimeout, N as noop, O as focusManager, P as replaceData, R as shouldThrowError, k as Subscribable, z as timeUntilStale } from "./page-BGeDoQO5.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.2.7/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
4
4
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as createFileRoute, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
2
|
-
import { u as loadPrincipal } from "./page-
|
|
2
|
+
import { u as loadPrincipal } from "./page-BGeDoQO5.js";
|
|
3
3
|
//#region src/routes/tokens.$token.tsx
|
|
4
|
-
var $$splitComponentImporter = () => import("./tokens._token-
|
|
4
|
+
var $$splitComponentImporter = () => import("./tokens._token-D2E4P3Qc.js");
|
|
5
5
|
var Route = createFileRoute("/tokens/$token")({
|
|
6
6
|
loader: ({ context: { client, queryClient }, params }) => loadPrincipal(queryClient, client, "service", params.token),
|
|
7
7
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { C as useCoffre, b as memberRef, h as queries, o as affects, t as Card } from "./page-
|
|
3
|
-
import { n as useChangeStatus, t as useChange, y as revokeCredential } from "./use-change-
|
|
4
|
-
import { t as useShell } from "./use-shell-
|
|
5
|
-
import { t as useSuspenseQuery } from "./useSuspenseQuery-
|
|
6
|
-
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-
|
|
7
|
-
import {
|
|
8
|
-
import { a as rowClass, i as RowPending, r as RowFailure } from "./row-state-
|
|
9
|
-
import { t as Route } from "./tokens._token-
|
|
10
|
-
import { t as useAction } from "./use-action-
|
|
11
|
-
import { t as PrincipalPage } from "./principal-page-
|
|
2
|
+
import { C as useCoffre, b as memberRef, h as queries, o as affects, t as Card } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { n as useChangeStatus, t as useChange, y as revokeCredential } from "./use-change-CJpGSNIq.js";
|
|
4
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
5
|
+
import { t as useSuspenseQuery } from "./useSuspenseQuery-BjAmlGZl.js";
|
|
6
|
+
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-DvlGkmaH.js";
|
|
7
|
+
import { A as Plus, W as X, v as Key } from "./icons-CWsTEfpn.js";
|
|
8
|
+
import { a as rowClass, i as RowPending, r as RowFailure } from "./row-state-CAItu3n_.js";
|
|
9
|
+
import { t as Route } from "./tokens._token-CM01QPCq.js";
|
|
10
|
+
import { t as useAction } from "./use-action-C2wz34kq.js";
|
|
11
|
+
import { t as PrincipalPage } from "./principal-page-CRdoAQOq.js";
|
|
12
12
|
//#region src/components/service-tokens.tsx
|
|
13
13
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
14
14
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { C as useCoffre, h as queries, i as PageHeader, n as ClosedDoor } from "./page-
|
|
3
|
-
import { t as useShell } from "./use-shell-
|
|
4
|
-
import { t as useSuspenseQuery } from "./useSuspenseQuery-
|
|
5
|
-
import { v as Key } from "./icons-
|
|
6
|
-
import { n as DirectoryTable, t as AddPrincipal } from "./directory-
|
|
7
|
-
import { n as RemovedList } from "./offboarding-
|
|
2
|
+
import { C as useCoffre, h as queries, i as PageHeader, n as ClosedDoor } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
4
|
+
import { t as useSuspenseQuery } from "./useSuspenseQuery-BjAmlGZl.js";
|
|
5
|
+
import { v as Key } from "./icons-CWsTEfpn.js";
|
|
6
|
+
import { n as DirectoryTable, t as AddPrincipal } from "./directory-C9SfNgpM.js";
|
|
7
|
+
import { n as RemovedList } from "./offboarding-CykelNis.js";
|
|
8
8
|
//#region src/routes/tokens.index.tsx?tsr-split=component
|
|
9
9
|
var import_jsx_runtime = require_jsx_runtime();
|
|
10
10
|
function TokensPage() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as require_react, o as __exportAll, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
2
|
import { t as require_react_dom } from "./react-dom-bBoJXlK2.js";
|
|
3
|
-
import {
|
|
3
|
+
import { W as X, _ as Info, a as Check, n as AlertCircle, r as AlertTriangle, u as Copy, x as Loader } from "./icons-CWsTEfpn.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
5
5
|
var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
6
6
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { n as ClosedDoor } from "./page-
|
|
3
|
-
import { t as useShell } from "./use-shell-
|
|
4
|
-
import {
|
|
2
|
+
import { n as ClosedDoor } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
4
|
+
import { V as User } from "./icons-CWsTEfpn.js";
|
|
5
5
|
//#region src/routes/unregistered.tsx?tsr-split=component
|
|
6
6
|
var import_jsx_runtime = require_jsx_runtime();
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as require_react, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { g as refresh, y as failureMessage } from "./page-
|
|
3
|
-
import { f as useQueryClient } from "./suspense-
|
|
2
|
+
import { g as refresh, y as failureMessage } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { f as useQueryClient } from "./suspense-beD01bb8.js";
|
|
4
4
|
//#region src/lib/use-action.ts
|
|
5
5
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as require_react, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { D as notifyManager, F as replaceEqualDeep, L as shallowEqualObjects, N as noop, R as shouldThrowError, T as getDefaultState, b as memberRef, c as keys, g as refresh, j as hashKey, k as Subscribable, o as affects, v as Refusal, y as failureMessage } from "./page-
|
|
3
|
-
import { f as useQueryClient } from "./suspense-
|
|
4
|
-
import { o as announce } from "./row-state-
|
|
2
|
+
import { D as notifyManager, F as replaceEqualDeep, L as shallowEqualObjects, N as noop, R as shouldThrowError, T as getDefaultState, b as memberRef, c as keys, g as refresh, j as hashKey, k as Subscribable, o as affects, v as Refusal, y as failureMessage } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { f as useQueryClient } from "./suspense-beD01bb8.js";
|
|
4
|
+
import { o as announce } from "./row-state-CAItu3n_.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.103.1/node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
6
6
|
/**
|
|
7
7
|
* Observes a single mutation and derives a `MutationObserverResult` from it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as require_react, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { C as useCoffre, D as notifyManager, F as replaceEqualDeep, L as shallowEqualObjects, N as noop, _ as shellOf, h as queries, k as Subscribable } from "./page-
|
|
3
|
-
import { a as ensurePreventErrorBoundaryRetry, c as useQueryErrorResetBoundary, f as useQueryClient, i as shouldSuspend, l as useIsRestoring, n as ensureSuspenseTimers, o as getHasError, r as fetchOptimistic, s as useClearResetErrorBoundary, t as defaultThrowOnError, u as QueryObserver } from "./suspense-
|
|
2
|
+
import { C as useCoffre, D as notifyManager, F as replaceEqualDeep, L as shallowEqualObjects, N as noop, _ as shellOf, h as queries, k as Subscribable } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { a as ensurePreventErrorBoundaryRetry, c as useQueryErrorResetBoundary, f as useQueryClient, i as shouldSuspend, l as useIsRestoring, n as ensureSuspenseTimers, o as getHasError, r as fetchOptimistic, s as useClearResetErrorBoundary, t as defaultThrowOnError, u as QueryObserver } from "./suspense-beD01bb8.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.103.1/node_modules/@tanstack/query-core/build/modern/queriesObserver.js
|
|
5
5
|
function difference(array1, array2) {
|
|
6
6
|
const excludeSet = new Set(array2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as QueryObserver } from "./suspense-
|
|
2
|
-
import { n as useBaseQuery } from "./useSuspenseQuery-
|
|
1
|
+
import { u as QueryObserver } from "./suspense-beD01bb8.js";
|
|
2
|
+
import { n as useBaseQuery } from "./useSuspenseQuery-BjAmlGZl.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.2.7/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
4
4
|
function useQuery(options, queryClient) {
|
|
5
5
|
return useBaseQuery(options, QueryObserver, queryClient);
|
package/dist/server/_coffre/assets/{useSuspenseQuery-BuapQt_P.js → useSuspenseQuery-BjAmlGZl.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as require_react, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { D as notifyManager, N as noop } from "./page-
|
|
3
|
-
import { a as ensurePreventErrorBoundaryRetry, c as useQueryErrorResetBoundary, f as useQueryClient, i as shouldSuspend, l as useIsRestoring, n as ensureSuspenseTimers, o as getHasError, r as fetchOptimistic, s as useClearResetErrorBoundary, t as defaultThrowOnError, u as QueryObserver } from "./suspense-
|
|
2
|
+
import { D as notifyManager, N as noop } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { a as ensurePreventErrorBoundaryRetry, c as useQueryErrorResetBoundary, f as useQueryClient, i as shouldSuspend, l as useIsRestoring, n as ensureSuspenseTimers, o as getHasError, r as fetchOptimistic, s as useClearResetErrorBoundary, t as defaultThrowOnError, u as QueryObserver } from "./suspense-beD01bb8.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.2.7/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
5
5
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6
6
|
function useBaseQuery(options, Observer, queryClient) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as createFileRoute, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
2
|
-
import { u as loadPrincipal } from "./page-
|
|
2
|
+
import { u as loadPrincipal } from "./page-BGeDoQO5.js";
|
|
3
3
|
//#region src/routes/users.$user.tsx
|
|
4
|
-
var $$splitComponentImporter = () => import("./users._user-
|
|
4
|
+
var $$splitComponentImporter = () => import("./users._user-Cih2Etf4.js");
|
|
5
5
|
var Route = createFileRoute("/users/$user")({
|
|
6
6
|
loader: ({ context: { client, queryClient }, params }) => loadPrincipal(queryClient, client, "user", params.user),
|
|
7
7
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { t as Route } from "./users._user-
|
|
3
|
-
import { t as PrincipalPage } from "./principal-page-
|
|
2
|
+
import { t as Route } from "./users._user-BVeR9fZP.js";
|
|
3
|
+
import { t as PrincipalPage } from "./principal-page-CRdoAQOq.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,10 +1,10 @@
|
|
|
1
1
|
import { r as require_jsx_runtime } from "./useRouter-CaUSUNsw.js";
|
|
2
|
-
import { C as useCoffre, h as queries, i as PageHeader, n as ClosedDoor } from "./page-
|
|
3
|
-
import { t as useShell } from "./use-shell-
|
|
4
|
-
import { t as useSuspenseQuery } from "./useSuspenseQuery-
|
|
5
|
-
import {
|
|
6
|
-
import { n as DirectoryTable, t as AddPrincipal } from "./directory-
|
|
7
|
-
import { n as RemovedList } from "./offboarding-
|
|
2
|
+
import { C as useCoffre, h as queries, i as PageHeader, n as ClosedDoor } from "./page-BGeDoQO5.js";
|
|
3
|
+
import { t as useShell } from "./use-shell-C3iYcyP1.js";
|
|
4
|
+
import { t as useSuspenseQuery } from "./useSuspenseQuery-BjAmlGZl.js";
|
|
5
|
+
import { U as Users } from "./icons-CWsTEfpn.js";
|
|
6
|
+
import { n as DirectoryTable, t as AddPrincipal } from "./directory-C9SfNgpM.js";
|
|
7
|
+
import { n as RemovedList } from "./offboarding-CykelNis.js";
|
|
8
8
|
//#region src/routes/users.index.tsx?tsr-split=component
|
|
9
9
|
var import_jsx_runtime = require_jsx_runtime();
|
|
10
10
|
function UsersPage() {
|
package/dist/server/index.js
CHANGED
|
@@ -12381,7 +12381,7 @@ var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
|
|
|
12381
12381
|
* the dev styles URL for route-scoped CSS collection.
|
|
12382
12382
|
*/
|
|
12383
12383
|
async function getStartManifest(matchedRoutes) {
|
|
12384
|
-
const { tsrStartManifest } = await import("./_coffre/assets/_tanstack-start-manifest_v-
|
|
12384
|
+
const { tsrStartManifest } = await import("./_coffre/assets/_tanstack-start-manifest_v-T9tMsCwo.js");
|
|
12385
12385
|
const startManifest = tsrStartManifest();
|
|
12386
12386
|
let routes = startManifest.routes;
|
|
12387
12387
|
routes[rootRouteId];
|
|
@@ -13508,7 +13508,7 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
13508
13508
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
13509
13509
|
async function loadEntries() {
|
|
13510
13510
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
13511
|
-
import("./_coffre/assets/router-
|
|
13511
|
+
import("./_coffre/assets/router-Bu2qtyqw.js"),
|
|
13512
13512
|
import("./_coffre/assets/start-DR3rN0St.js"),
|
|
13513
13513
|
import("./_coffre/assets/empty-plugin-adapters-Cq4--YW-.js")
|
|
13514
13514
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffre/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
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.
|
|
31
|
+
"@coffre/client": "0.1.13"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@cloudflare/vite-plugin": "1.50.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"typescript": "5.9.3",
|
|
54
54
|
"vite": "8.1.5",
|
|
55
55
|
"wrangler": "4.118.0",
|
|
56
|
-
"@coffre/core": "0.1.
|
|
56
|
+
"@coffre/core": "0.1.13"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "vite build && rm dist/server/wrangler.json && tsdown && node ../../scripts/check-client-bundle.mjs",
|
package/src/components/icons.tsx
CHANGED
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
CircleAlert,
|
|
12
12
|
CircleCheck,
|
|
13
13
|
Clock as ClockGlyph,
|
|
14
|
-
Cloud as CloudGlyph,
|
|
15
14
|
Copy as CopyGlyph,
|
|
16
15
|
Ellipsis,
|
|
17
16
|
Eye as EyeGlyph,
|
|
@@ -35,7 +34,6 @@ import {
|
|
|
35
34
|
Pencil as PencilGlyph,
|
|
36
35
|
Play as PlayGlyph,
|
|
37
36
|
Plus as PlusGlyph,
|
|
38
|
-
RefreshCw,
|
|
39
37
|
RotateCcw,
|
|
40
38
|
ScrollText,
|
|
41
39
|
Search as SearchGlyph,
|
|
@@ -43,7 +41,6 @@ import {
|
|
|
43
41
|
ShieldCheck as ShieldCheckGlyph,
|
|
44
42
|
Sun as SunGlyph,
|
|
45
43
|
Terminal as TerminalGlyph,
|
|
46
|
-
TrainFront,
|
|
47
44
|
TriangleAlert,
|
|
48
45
|
Upload as UploadGlyph,
|
|
49
46
|
User as UserGlyph,
|
|
@@ -161,7 +158,6 @@ export const Archive = lucide(ArchiveGlyph);
|
|
|
161
158
|
export const History = lucide(HistoryGlyph);
|
|
162
159
|
export const RotateBack = lucide(RotateCcw);
|
|
163
160
|
export const Upload = lucide(UploadGlyph);
|
|
164
|
-
export const Sync = lucide(RefreshCw);
|
|
165
161
|
export const Pause = lucide(PauseGlyph);
|
|
166
162
|
export const Play = lucide(PlayGlyph);
|
|
167
163
|
export const Lock = lucide(LockGlyph);
|
|
@@ -244,36 +240,6 @@ export function Microsoft({ size = 16, className, style }: IconProps) {
|
|
|
244
240
|
);
|
|
245
241
|
}
|
|
246
242
|
|
|
247
|
-
/** Vercel's triangle. */
|
|
248
|
-
export function Vercel({ size = 16, className, style }: IconProps) {
|
|
249
|
-
return (
|
|
250
|
-
<svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" className={className} style={style} aria-hidden>
|
|
251
|
-
<path d="M12 2.5 23 21.5H1Z" />
|
|
252
|
-
</svg>
|
|
253
|
-
);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Railway and Cloudflare marks are detailed enough that a redraw would be a
|
|
257
|
-
// guess; a plain glyph stands in for them.
|
|
258
|
-
const Cloud = lucide(CloudGlyph);
|
|
259
|
-
const Train = lucide(TrainFront);
|
|
260
|
-
|
|
261
|
-
/** The mark beside a sync provider; any other brand gets the sync glyph. */
|
|
262
|
-
export function SyncMark({ brand, size = 16 }: { brand: string; size?: number }) {
|
|
263
|
-
switch (brand) {
|
|
264
|
-
case 'github':
|
|
265
|
-
return <GitHub size={size} />;
|
|
266
|
-
case 'vercel':
|
|
267
|
-
return <Vercel size={size} />;
|
|
268
|
-
case 'railway':
|
|
269
|
-
return <Train size={size} />;
|
|
270
|
-
case 'cloudflare':
|
|
271
|
-
return <Cloud size={size} />;
|
|
272
|
-
default:
|
|
273
|
-
return <Sync size={size} />;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
243
|
/** The mark on a provider's button; any other OpenID Connect issuer gets a key. */
|
|
278
244
|
export function ProviderMark({ brand, size = 16 }: { brand: string; size?: number }) {
|
|
279
245
|
switch (brand) {
|
|
@@ -3,7 +3,7 @@ import type { PrincipalReport, RemovedPrincipal } from '../shared/models';
|
|
|
3
3
|
import { Card } from './page';
|
|
4
4
|
import { EmptyState, Notice, Timestamp } from './ui';
|
|
5
5
|
import { PrincipalLink } from './principal';
|
|
6
|
-
import { ChevronRight, Key,
|
|
6
|
+
import { ChevronRight, Key, User } from './icons';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The part of a user's or token's page that answers "if they left, what would
|
|
@@ -16,7 +16,6 @@ export function PrincipalReportCards({ report }: { report: PrincipalReport }) {
|
|
|
16
16
|
return (
|
|
17
17
|
<>
|
|
18
18
|
<SeenValues report={report} removed={removed} person={person} />
|
|
19
|
-
{report.syncs.length > 0 && <CreatedSyncs report={report} person={person} />}
|
|
20
19
|
{report.issuedTokens.length > 0 && <IssuedTokens report={report} />}
|
|
21
20
|
</>
|
|
22
21
|
);
|
|
@@ -187,56 +186,6 @@ function SeenValues({
|
|
|
187
186
|
);
|
|
188
187
|
}
|
|
189
188
|
|
|
190
|
-
function CreatedSyncs({ report, person }: { report: PrincipalReport; person: boolean }) {
|
|
191
|
-
return (
|
|
192
|
-
<Card
|
|
193
|
-
labelledBy="created-syncs"
|
|
194
|
-
title={person ? 'Syncs they set up' : 'Syncs it set up'}
|
|
195
|
-
description="A sync keeps pushing every change to the destination it names, whoever set it up. Check each one still points somewhere you control."
|
|
196
|
-
>
|
|
197
|
-
<div className="dt-wrap">
|
|
198
|
-
<table className="dt syncs">
|
|
199
|
-
<thead>
|
|
200
|
-
<tr>
|
|
201
|
-
<th>Destination</th>
|
|
202
|
-
<th className="col-shrink">From</th>
|
|
203
|
-
<th className="col-shrink col-hide-narrow">Token</th>
|
|
204
|
-
</tr>
|
|
205
|
-
</thead>
|
|
206
|
-
<tbody>
|
|
207
|
-
{report.syncs.map((sync) => (
|
|
208
|
-
<tr key={sync.id}>
|
|
209
|
-
<td>
|
|
210
|
-
<span className="cell-account">
|
|
211
|
-
<SyncMark brand={sync.brand} size={15} />
|
|
212
|
-
<span className="cell-stack">
|
|
213
|
-
<span>
|
|
214
|
-
{sync.providerLabel}
|
|
215
|
-
{sync.paused && <span className="tag">Paused</span>}
|
|
216
|
-
</span>
|
|
217
|
-
<small className="mono">{sync.destination}</small>
|
|
218
|
-
</span>
|
|
219
|
-
</span>
|
|
220
|
-
</td>
|
|
221
|
-
<td className="col-shrink">
|
|
222
|
-
<Link
|
|
223
|
-
className="cell-link mono"
|
|
224
|
-
to="/projects/$project/$environment"
|
|
225
|
-
params={{ project: sync.project, environment: sync.environment }}
|
|
226
|
-
>
|
|
227
|
-
{sync.project}/{sync.environment}
|
|
228
|
-
</Link>
|
|
229
|
-
</td>
|
|
230
|
-
<td className="col-shrink col-hide-narrow cell-mono cell-muted">{sync.credential}</td>
|
|
231
|
-
</tr>
|
|
232
|
-
))}
|
|
233
|
-
</tbody>
|
|
234
|
-
</table>
|
|
235
|
-
</div>
|
|
236
|
-
</Card>
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
189
|
function IssuedTokens({ report }: { report: PrincipalReport }) {
|
|
241
190
|
return (
|
|
242
191
|
<Card
|
package/src/lib/coffre.ts
CHANGED
|
@@ -32,7 +32,7 @@ export function failureMessage(error: unknown): string {
|
|
|
32
32
|
}
|
|
33
33
|
if (error.status === 404) return 'Not found. It may have been renamed or archived.';
|
|
34
34
|
// A 400 or 409 carries a sentence written for the person, such as which
|
|
35
|
-
// field of a
|
|
35
|
+
// field of a request is wrong. Anything unexpected stays generic.
|
|
36
36
|
if (error.status === 400 || error.status === 409) return error.message;
|
|
37
37
|
return 'coffre is unavailable. Nothing was read or written.';
|
|
38
38
|
}
|
package/src/lib/queries.ts
CHANGED
|
@@ -47,7 +47,6 @@ export const keys = {
|
|
|
47
47
|
projects: ['projects'],
|
|
48
48
|
grants: (project: string) => ['grants', project],
|
|
49
49
|
secrets: ({ project, environment }: Place) => ['secrets', project, environment],
|
|
50
|
-
syncs: ({ project, environment }: Place) => ['syncs', project, environment],
|
|
51
50
|
directory: ['directory'],
|
|
52
51
|
report: (member: string) => ['report', member],
|
|
53
52
|
credentials: (member: string) => ['credentials', member],
|
|
@@ -133,12 +132,6 @@ export const queries = {
|
|
|
133
132
|
queryFn: () => uiResult(() => client.secrets.list(`${place.project}/${place.environment}`)),
|
|
134
133
|
}),
|
|
135
134
|
|
|
136
|
-
syncs: (client: CoffreClient, place: Place) =>
|
|
137
|
-
queryOptions({
|
|
138
|
-
queryKey: keys.syncs(place),
|
|
139
|
-
queryFn: () => uiResult(() => client.syncs.list(`${place.project}/${place.environment}`)),
|
|
140
|
-
}),
|
|
141
|
-
|
|
142
135
|
/**
|
|
143
136
|
* Everyone in the directory, and who was removed. The API shows grant
|
|
144
137
|
* managers the members of their projects; the directory pages stay the
|
|
@@ -355,9 +348,8 @@ export function managedProjects(projects: ProjectSummary[]): ProjectSummary[] {
|
|
|
355
348
|
export const affects = {
|
|
356
349
|
/** A project or environment made, renamed or archived: the tree, and where you hold access. */
|
|
357
350
|
places: (): QueryKey[] => [keys.projects, keys.me],
|
|
358
|
-
/** Secrets written, renamed, restored or archived: the environment
|
|
359
|
-
secrets: (place: Place): QueryKey[] => [keys.secrets(place), keys.
|
|
360
|
-
syncs: (place: Place): QueryKey[] => [keys.syncs(place)],
|
|
351
|
+
/** Secrets written, renamed, restored or archived: the environment and the counts. */
|
|
352
|
+
secrets: (place: Place): QueryKey[] => [keys.secrets(place), keys.projects],
|
|
361
353
|
/**
|
|
362
354
|
* Someone's access in a project changed: its grants, their report, and, as
|
|
363
355
|
* it may be your own, what you can see.
|
|
@@ -48,7 +48,6 @@ import {
|
|
|
48
48
|
} from '../components/ui';
|
|
49
49
|
import { Card, ClosedDoor, PageHeader } from '../components/page';
|
|
50
50
|
import { SecretReadOnly } from '../components/affordances';
|
|
51
|
-
import { Syncs } from '../components/syncs';
|
|
52
51
|
import {
|
|
53
52
|
AlertCircle,
|
|
54
53
|
Archive,
|
|
@@ -84,10 +83,7 @@ export const Route = createFileRoute('/projects/$project/$environment')({
|
|
|
84
83
|
filter: typeof search.filter === 'string' && search.filter !== '' ? search.filter : undefined,
|
|
85
84
|
}),
|
|
86
85
|
loader: ({ context: { client, queryClient }, params }) =>
|
|
87
|
-
|
|
88
|
-
queryClient.fetchQuery(queries.secrets(client, params)),
|
|
89
|
-
queryClient.fetchQuery(queries.syncs(client, params)),
|
|
90
|
-
]),
|
|
86
|
+
queryClient.fetchQuery(queries.secrets(client, params)),
|
|
91
87
|
component: EnvironmentPage,
|
|
92
88
|
});
|
|
93
89
|
|
|
@@ -498,12 +494,6 @@ function EnvironmentLedger({
|
|
|
498
494
|
)}
|
|
499
495
|
</section>
|
|
500
496
|
|
|
501
|
-
<Syncs
|
|
502
|
-
project={project}
|
|
503
|
-
environment={environment}
|
|
504
|
-
canRun={canWrite || permissions.includes('environment.manage')}
|
|
505
|
-
/>
|
|
506
|
-
|
|
507
497
|
{archived.length > 0 && (
|
|
508
498
|
<Card
|
|
509
499
|
labelledBy="archived-secrets"
|
package/src/shared/models.ts
CHANGED
|
@@ -5,10 +5,8 @@ import type {
|
|
|
5
5
|
OffboardingReport,
|
|
6
6
|
ProjectSummary as ApiProjectSummary,
|
|
7
7
|
RemovedMember,
|
|
8
|
-
RunOutcome as ApiRunOutcome,
|
|
9
8
|
SecretKey as ApiSecretKey,
|
|
10
9
|
SecretVersion as ApiSecretVersion,
|
|
11
|
-
SyncView as ApiSyncView,
|
|
12
10
|
} from '@coffre/client';
|
|
13
11
|
import type { Permission as CorePermission } from '@coffre/core/access';
|
|
14
12
|
|
|
@@ -18,8 +16,6 @@ export type Me = ApiMe;
|
|
|
18
16
|
export type SecretKey = ApiSecretKey;
|
|
19
17
|
export type ProjectSummary = ApiProjectSummary;
|
|
20
18
|
export type SecretVersion = ApiSecretVersion;
|
|
21
|
-
export type SyncView = ApiSyncView;
|
|
22
|
-
export type RunOutcome = ApiRunOutcome;
|
|
23
19
|
|
|
24
20
|
/** One member's role at one place in a project, as the project page lists them. */
|
|
25
21
|
export type GrantRow = {
|
|
@@ -48,7 +44,7 @@ export type DirectoryPrincipal = Pick<Member, 'principalType' | 'principalId' |
|
|
|
48
44
|
|
|
49
45
|
export type ImportPlanEntry = { key: string; action: ImportAction; version: number | null };
|
|
50
46
|
|
|
51
|
-
/** What someone can still reach and what they have seen
|
|
47
|
+
/** What someone can still reach and what they have seen. */
|
|
52
48
|
export type PrincipalReport = OffboardingReport;
|
|
53
49
|
export type RemovedPrincipal = RemovedMember;
|
|
54
50
|
|