Repository navigation
Conversation
…d access refreshes (#400) - Connection form: the Kubernetes service-account token and kubeconfig share one credential field. Switching the auth mode (select or Advanced config) now clears what was entered and the loaded file name, and an edit that changes the mode of a connection with a stored credential requires a new one; the "(stored)" hints only show in the stored mode. Half-typed Advanced JSON is not treated as a mode change. - Unsaved-changes guard: the connection form and the worker-profile editor passed only the access flag, so name, scopes, config, credential and runtime edits were lost without a prompt. Both pass their draft now; the worker editor guards creation too and compares attached environment mappings with the loaded ones, so seeding them is not an edit. A new connection's default name is set in the initial state, not an effect. - Access save: resource-access-fields invalidated `[resource]` ("agent_teams", "worker_profiles", "env_mappings"), which no query uses. queryKeys moves to the pure lib/query-keys.ts (re-exported from lib/queries.ts) with sharingInvalidationKeys(), which refreshes each resource's real list/detail keys and access-team resource lists. - Worker editor: harness-managed providers for different harnesses can share a provider name (the profile stores only that name). resolveProvider takes the worker's harness and prefers the provider for it, harnessMismatch uses it, and the select shows one option per stored value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #400.
Summary
credential field. Switching the auth mode (select or Advanced config) now clears what
was entered and the loaded file name, and an edit that changes the mode of a
connection with a stored credential requires a new one; the "(stored)" hints only
show in the stored mode. Half-typed Advanced JSON is not treated as a mode change.
the access flag, so name, scopes, config, credential and runtime edits were lost
without a prompt. Both pass their draft now; the worker editor guards creation too and
compares attached environment mappings with the loaded ones, so seeding them is not an
edit. A new connection's default name is set in the initial state, not an effect.
[resource]("agent_teams","worker_profiles", "env_mappings"), which no query uses. queryKeys moves to the pure
lib/query-keys.ts (re-exported from lib/queries.ts) with sharingInvalidationKeys(),
which refreshes each resource's real list/detail keys and access-team resource lists.
name (the profile stores only that name). resolveProvider takes the worker's harness
and prefers the provider for it, harnessMismatch uses it, and the select shows one
option per stored value.
Testing
pnpm --filter @orbit/web typecheck: passed;test: 98 passed (newlib/kubernetes-credential.test.ts,lib/query-keys.test.ts, a case inlib/worker-harness.test.ts)pnpm docs:check: passedNot checked in a browser; the guard inputs (item 2) are not unit-tested. The pasted kubeconfig is still shown unmasked.
🤖 Generated with Claude Code