Skip to content

feat: add secrets page#362

Draft
drankou wants to merge 4 commits into
mainfrom
implement-secrets-page-when-back-end-ready-eng-3766
Draft

feat: add secrets page#362
drankou wants to merge 4 commits into
mainfrom
implement-secrets-page-when-back-end-ready-eng-3766

Conversation

@drankou

@drankou drankou commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

drankou added 4 commits June 5, 2026 16:32
From design system Icon/20px/Vault. Used by the upcoming Secrets page
sidebar entry and empty state.
Add the Secrets page skeleton: route + error boundary under
/dashboard/{teamSlug}/secrets, sidebar entry in the integration group with
the new VaultIcon, layout title config, and the empty-state page content
(search input, helper copy, total label, table with 'No secrets added yet').

The 'Add a secret' button is rendered but inert; the next commit wires it to
the new-secret dialog. tRPC list query lands with the BE ticket.
Adds the create flow for secrets:

- Zod schema (label, value, description, allowList { mode, hosts }). Hosts
  are wrapped in '{ value }' objects because RHF's useFieldArray treats
  arrays of primitives as 'never' \-- flattenHosts unwraps them before the
  payload heads to the BE.
- SecretForm: single reusable form (RHF + FormProvider + zodResolver,
  mode: 'onChange'). Submit is gated on formState.isValid (+ optional
  requireDirty for the future edit flow). Renders label / secret value /
  description / allow-list sections plus the footer.
- SecretValueField: masked input with eye / eye-off reveal toggle.
- HostFieldArray: only mounts when allowList.mode === 'specific'; manages
  the host list with useFieldArray, min 1 / max MAX_SECRET_HOSTS.
- NewSecretDialog: thin Dialog wrapper around SecretForm with the create
  title / Add label. Submit is a toast stub until the BE lands.
- Wires the 'Add a secret' page button to NewSecretDialog.
@linear-code

linear-code Bot commented Jun 8, 2026

Copy link
Copy Markdown

ENG-3766

@cla-bot cla-bot Bot added the cla-signed label Jun 8, 2026
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 8, 2026 2:41pm
web-juliett Ready Ready Preview, Comment Jun 8, 2026 2:41pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant