@coffre/ui 0.4.4 → 0.4.6
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/chunks/{audit-sentence-BhHmvQX_.js → audit-sentence-DIztXvbU.js} +11 -2
- package/dist/chunks/audit-sentence-DIztXvbU.js.map +1 -0
- package/dist/chunks/{connected-apps-D8Df97-F.js → connected-apps-AZsX9Zvv.js} +2 -2
- package/dist/chunks/{connected-apps-D8Df97-F.js.map → connected-apps-AZsX9Zvv.js.map} +1 -1
- package/dist/chunks/{delete-place-LYN7z7xb.js → delete-place-D6LIZkg9.js} +4 -4
- package/dist/chunks/delete-place-D6LIZkg9.js.map +1 -0
- package/dist/chunks/{directory-v87HGjEn.js → directory-B6FuiCir.js} +5 -5
- package/dist/chunks/directory-B6FuiCir.js.map +1 -0
- package/dist/chunks/{folders-CbGU0xOz.js → folders-DvSqBhuu.js} +3 -3
- package/dist/chunks/folders-DvSqBhuu.js.map +1 -0
- package/dist/chunks/{offboarding-DdnmRV1f.js → offboarding-CLJaNTcD.js} +6 -6
- package/dist/chunks/offboarding-CLJaNTcD.js.map +1 -0
- package/dist/chunks/{principal-page-BubEO6-b.js → principal-page-1yMztIcc.js} +8 -8
- package/dist/chunks/principal-page-1yMztIcc.js.map +1 -0
- package/dist/chunks/{references-DPSYdWOk.js → references-DWDnXNoW.js} +3 -3
- package/dist/chunks/references-DWDnXNoW.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/pages/account.js +8 -8
- package/dist/pages/account.js.map +1 -1
- package/dist/pages/approval.js +55 -23
- package/dist/pages/approval.js.map +1 -1
- package/dist/pages/audit.js +4 -4
- package/dist/pages/audit.js.map +1 -1
- package/dist/pages/device-login.js +5 -4
- package/dist/pages/device-login.js.map +1 -1
- package/dist/pages/environment.js +9 -13
- package/dist/pages/environment.js.map +1 -1
- package/dist/pages/login.js +3 -3
- package/dist/pages/login.js.map +1 -1
- package/dist/pages/oauth-authorize.js +9 -14
- package/dist/pages/oauth-authorize.js.map +1 -1
- package/dist/pages/project-access.js +2 -2
- package/dist/pages/project-environments.js +7 -7
- package/dist/pages/project-environments.js.map +1 -1
- package/dist/pages/project-settings.js +6 -6
- package/dist/pages/project-settings.js.map +1 -1
- package/dist/pages/project.js +1 -1
- package/dist/pages/project.js.map +1 -1
- package/dist/pages/projects.js +4 -4
- package/dist/pages/projects.js.map +1 -1
- package/dist/pages/service-account.js +5 -5
- package/dist/pages/service-account.js.map +1 -1
- package/dist/pages/service-accounts.js +2 -2
- package/dist/pages/settings.js +4 -4
- package/dist/pages/settings.js.map +1 -1
- package/dist/pages/unregistered.js +3 -3
- package/dist/pages/unregistered.js.map +1 -1
- package/dist/pages/user.js +1 -1
- package/dist/pages/users.js +2 -2
- package/package.json +3 -3
- package/src/components/connected-apps.tsx +1 -1
- package/src/components/delete-place.tsx +4 -5
- package/src/components/directory.tsx +5 -6
- package/src/components/folders.tsx +2 -2
- package/src/components/offboarding.tsx +5 -5
- package/src/components/principal-page.tsx +3 -3
- package/src/components/references.tsx +2 -2
- package/src/components/route-states.tsx +4 -5
- package/src/components/service-tokens.tsx +1 -1
- package/src/components/trusted-workloads.tsx +3 -3
- package/src/lib/approval.ts +23 -0
- package/src/lib/audit-sentences.ts +5 -0
- package/src/pages/account.tsx +7 -7
- package/src/pages/approval.tsx +21 -20
- package/src/pages/audit.tsx +3 -3
- package/src/pages/device-login.tsx +3 -5
- package/src/pages/environment.tsx +8 -15
- package/src/pages/login.tsx +5 -10
- package/src/pages/oauth-authorize.tsx +7 -11
- package/src/pages/project-environments.tsx +6 -6
- package/src/pages/project-settings.tsx +5 -7
- package/src/pages/project.tsx +2 -2
- package/src/pages/projects.tsx +3 -3
- package/src/pages/settings.tsx +4 -4
- package/src/pages/unregistered.tsx +3 -5
- package/src/styles/globals.css +12 -7
- package/dist/chunks/audit-sentence-BhHmvQX_.js.map +0 -1
- package/dist/chunks/delete-place-LYN7z7xb.js.map +0 -1
- package/dist/chunks/directory-v87HGjEn.js.map +0 -1
- package/dist/chunks/folders-CbGU0xOz.js.map +0 -1
- package/dist/chunks/offboarding-DdnmRV1f.js.map +0 -1
- package/dist/chunks/principal-page-BubEO6-b.js.map +0 -1
- package/dist/chunks/references-DPSYdWOk.js.map +0 -1
|
@@ -8,8 +8,8 @@ import { t as useShell } from "../chunks/use-shell-Dkv89nW1.js";
|
|
|
8
8
|
import { D as hasSecretEditConflict, O as secretChangeFor, S as restoreSecret, T as saveSecrets, _ as moveSecret, a as archiveSecret, n as useChangeStatus, r as UnsavedEdits, t as useChange } from "../chunks/use-change-C4bGRhHY.js";
|
|
9
9
|
import { t as pageRoute } from "../chunks/page-route-Drfw7lmn.js";
|
|
10
10
|
import { a as useAction, r as secretKeyProblem } from "../chunks/validation-DvPinn8V.js";
|
|
11
|
-
import { n as FolderRow, r as MoveToFolder, t as FolderMenu } from "../chunks/folders-
|
|
12
|
-
import { i as ReferenceValue, n as LentReferences, o as archiveBlockers, r as MakeReference, t as ArchiveBlocked } from "../chunks/references-
|
|
11
|
+
import { n as FolderRow, r as MoveToFolder, t as FolderMenu } from "../chunks/folders-DvSqBhuu.js";
|
|
12
|
+
import { i as ReferenceValue, n as LentReferences, o as archiveBlockers, r as MakeReference, t as ArchiveBlocked } from "../chunks/references-DWDnXNoW.js";
|
|
13
13
|
import { useEffect, useRef, useState } from "react";
|
|
14
14
|
import { Link } from "@tanstack/react-router";
|
|
15
15
|
import { toast } from "sonner";
|
|
@@ -503,7 +503,7 @@ function EnvironmentLedger({ project, environment, permissions, keys: keys$1 })
|
|
|
503
503
|
"aria-label": "Secrets",
|
|
504
504
|
children: active.length === 0 && drafts.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
505
505
|
title: "No secrets yet",
|
|
506
|
-
children: canWrite ? "Add them one by one, or import
|
|
506
|
+
children: canWrite ? "Add them one by one, or import a .env file." : "Adding secrets here needs secret.write."
|
|
507
507
|
}) : /* @__PURE__ */ jsx("div", {
|
|
508
508
|
className: "dt-wrap",
|
|
509
509
|
children: /* @__PURE__ */ jsxs("table", {
|
|
@@ -1332,7 +1332,7 @@ function DraftRow({ draft, existingVersion, disabled, onChange, onRemove, onSave
|
|
|
1332
1332
|
}
|
|
1333
1333
|
}), (keyProblem !== null || isNewVersion) && /* @__PURE__ */ jsx("span", {
|
|
1334
1334
|
className: `edit-note${keyProblem !== null ? " edit-note-error" : ""}`,
|
|
1335
|
-
children: keyProblem ?? "This name
|
|
1335
|
+
children: keyProblem ?? "This name exists here already. Saving adds a new version to it."
|
|
1336
1336
|
})]
|
|
1337
1337
|
})
|
|
1338
1338
|
}),
|
|
@@ -1596,9 +1596,9 @@ function VersionHistory({ project, environment, secretKey, currentVersion, canWr
|
|
|
1596
1596
|
"?"
|
|
1597
1597
|
] }),
|
|
1598
1598
|
body: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1599
|
-
"
|
|
1599
|
+
"v",
|
|
1600
1600
|
version.version,
|
|
1601
|
-
"
|
|
1601
|
+
" becomes current, and anything reading",
|
|
1602
1602
|
" ",
|
|
1603
1603
|
/* @__PURE__ */ jsxs("span", {
|
|
1604
1604
|
className: "mono",
|
|
@@ -1609,7 +1609,7 @@ function VersionHistory({ project, environment, secretKey, currentVersion, canWr
|
|
|
1609
1609
|
]
|
|
1610
1610
|
}),
|
|
1611
1611
|
" ",
|
|
1612
|
-
"
|
|
1612
|
+
"gets it at once. Every version stays."
|
|
1613
1613
|
] }),
|
|
1614
1614
|
confirmLabel: `Roll back to v${version.version}`,
|
|
1615
1615
|
destructive: false,
|
|
@@ -1631,10 +1631,6 @@ function VersionHistory({ project, environment, secretKey, currentVersion, canWr
|
|
|
1631
1631
|
error !== null && /* @__PURE__ */ jsx("div", {
|
|
1632
1632
|
className: "history-body",
|
|
1633
1633
|
children: /* @__PURE__ */ jsx(ErrorLine, { error })
|
|
1634
|
-
}),
|
|
1635
|
-
/* @__PURE__ */ jsx("p", {
|
|
1636
|
-
className: "history-note",
|
|
1637
|
-
children: "Metadata only. Listing versions decrypts nothing."
|
|
1638
1634
|
})
|
|
1639
1635
|
]
|
|
1640
1636
|
});
|
|
@@ -1728,7 +1724,7 @@ function ImportEnv({ project, environment }) {
|
|
|
1728
1724
|
})
|
|
1729
1725
|
] }),
|
|
1730
1726
|
wide: true,
|
|
1731
|
-
description: /* @__PURE__ */ jsx(Fragment$1, { children: "Paste a .env file.
|
|
1727
|
+
description: /* @__PURE__ */ jsx(Fragment$1, { children: "Paste a .env file. coffre parses it as the CLI does and compares it with the current values, without sending them to this page." }),
|
|
1732
1728
|
children: /* @__PURE__ */ jsxs("div", {
|
|
1733
1729
|
className: "form",
|
|
1734
1730
|
style: { marginTop: "1.25rem" },
|
|
@@ -1786,7 +1782,7 @@ function ImportEnv({ project, environment }) {
|
|
|
1786
1782
|
}),
|
|
1787
1783
|
plan !== null && plan.entries.length > 0 && changes.length === 0 && /* @__PURE__ */ jsx(Notice, {
|
|
1788
1784
|
tone: "good",
|
|
1789
|
-
children: "Every key already has this value.
|
|
1785
|
+
children: "Every key already has this value."
|
|
1790
1786
|
}),
|
|
1791
1787
|
problems.length > 0 && /* @__PURE__ */ jsxs(Notice, {
|
|
1792
1788
|
tone: "bad",
|