Skip to content

Stage#2

Merged
deliciousmonster merged 19 commits into
masterfrom
stage
Mar 3, 2020
Merged

Stage#2
deliciousmonster merged 19 commits into
masterfrom
stage

Conversation

@deliciousmonster

Copy link
Copy Markdown
Contributor

No description provided.

@deliciousmonster
deliciousmonster merged commit 26f0b8d into master Mar 3, 2020
dawsontoth added a commit that referenced this pull request Jul 13, 2026
…saved tier switch

Review feedback from Kris on #1402:

- Managed-cluster banner flash: while the cluster lookup was pending,
  `cluster === undefined` read as self-managed, so the public-key query
  targeted the node and failed on a CM-custody cluster, flashing the
  read-only banner. Gate the key fetch on the cluster query settling
  (or no clusterId, i.e. local Studio, where the node is correct).

- Live grants editor on an unsaved tier switch: flipping a processEnv
  secret to Scoped (not yet saved) rendered the live SecretGrantsEditor,
  whose Grant fires grant_secret against a still-processEnv secret →
  rejected. Gate it behind an unsaved change: show a "save as scoped
  first" hint until the scoped save lands.

Minor items:
- PendingGrantsInput commits a typed-but-not-Added grant on blur, so
  submitting the Add form no longer silently drops it.
- Clear the set_secret mutation after each call so the plaintext value
  doesn't linger in useMutation variables.
- Comment the Secrets nav gate: manage-gated like its siblings, and the
  secret ops are super_user-only server-side.

Covers fix #2 with two jsdom tests (grants editor hidden on the unsaved
switch, shown when the stored tier is already scoped).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant