-
{entries.isPending &&
Loading…
}
{entries.error &&
{entries.error.message}
}
{entries.data?.length === 0 &&
No secrets in {where} yet.
}
diff --git a/src/index.css b/src/index.css
index ad10f5f..ab082f6 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1095,14 +1095,6 @@ button.link:hover:not(:disabled) {
align-items: start;
}
-.secrets-browser .crumbs {
- margin-top: 0;
-}
-
-.secrets-browser .crumbs select {
- min-width: 0;
-}
-
.secrets-browser .entries {
max-height: 70vh;
overflow-y: auto;
@@ -1501,11 +1493,44 @@ button.danger-solid:hover:not(:disabled) {
white-space: pre-wrap;
}
-/* Create / settings / delete panel for a secrets engine mount. */
+/* Top of the Secrets page: New, then the engine picker with its actions, then (KV) the breadcrumbs. */
+.mount-new {
+ margin-bottom: var(--s4);
+}
+
+.mount-bar {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--s3);
+ margin-bottom: var(--s2);
+}
+
+.mount-pick {
+ display: flex;
+ align-items: center;
+ gap: var(--s2);
+ min-width: 0;
+}
+
+.mount-pick label {
+ font-weight: 500;
+ white-space: nowrap;
+}
+
+.mount-pick select {
+ min-width: 12rem;
+ max-width: 100%;
+}
+
.mount-actions {
display: flex;
gap: var(--s2);
- margin-bottom: var(--s4);
+}
+
+.mount-bar + .crumbs,
+.mount-dialog + .crumbs {
+ margin-top: var(--s2);
}
.mount-dialog {
diff --git a/src/routes.test.tsx b/src/routes.test.tsx
index 3693646..6ea94c7 100644
--- a/src/routes.test.tsx
+++ b/src/routes.test.tsx
@@ -22,7 +22,7 @@ test.each([
expect(screen.getByRole('heading', { name: heading })).toBeInTheDocument()
})
-test('redirects / to identities', () => {
+test('redirects / to the connect page while signed out', () => {
const router = createMemoryRouter(routes, { initialEntries: ['/'] })
render(
@@ -31,5 +31,6 @@ test('redirects / to identities', () => {
,
)
- expect(screen.getByRole('heading', { name: 'Identities' })).toBeInTheDocument()
+ expect(screen.getByRole('heading', { name: 'Connect' })).toBeInTheDocument()
+ expect(router.state.location.pathname).toBe('/connect')
})
diff --git a/src/routes.tsx b/src/routes.tsx
index 43c5c17..0c75a6a 100644
--- a/src/routes.tsx
+++ b/src/routes.tsx
@@ -1,15 +1,16 @@
-import { Navigate, type RouteObject } from 'react-router'
+import type { RouteObject } from 'react-router'
import { ConnectPage } from './features/connect/ConnectPage'
import { GraphPage } from './features/graph/GraphPage'
import { IdentitiesPage } from './features/identities/IdentitiesPage'
import { SecretsPage } from './features/secrets/SecretsPage'
+import { Home } from './Home'
import { Layout } from './Layout'
export const routes: RouteObject[] = [
{
element:
,
children: [
- { index: true, element:
},
+ { index: true, element:
},
{ path: 'connect', element:
},
{ path: 'identities', element:
},
{ path: 'secrets', element:
},