Skip to content

fix: reach environment variables pre-deployment and unblock JSON saves - #185

Merged
asifrafeen merged 1 commit into
stgfrom
dev
Aug 23, 2026
Merged

asifrafeen merged 1 commit into
stgfrom
dev

Conversation

@asifrafeen

Copy link
Copy Markdown
Member

Two defects in the environment-variable work.

The Environment Variables tab was unreachable before a repository's first deployment. The repo-details page returns a standalone "No deployments available" screen whenever the build list is empty, which happens above the tab strip, so the only entry point to the editor was gated behind a deployment that might already have needed the variables. The empty state now sits in a Details tab alongside Environment Variables. This is a UI gate only: the server keys the set on the repository alone, and PipelineRunService reads whatever is stored when the first run starts. A stale ?tab=history is clamped to Details, since History has no tab on this path.

Saving from JSON mode was a silent no-op on a new set. The form schema enforced the key rules in the object shape, which validates for both modes, so the blank row the key/value editor starts with failed the whole form on rows.0.key - a field JSON mode does not render. Submit never fired and nothing explained why. The key rules moved into the refinement, which only reaches them in key/value mode; per-row reporting and wording are unchanged. Editing an existing set was unaffected, since its rows seed from valid keys.

Two defects in the environment-variable work.

The Environment Variables tab was unreachable before a repository's first
deployment. The repo-details page returns a standalone "No deployments
available" screen whenever the build list is empty, which happens above the
tab strip, so the only entry point to the editor was gated behind a
deployment that might already have needed the variables. The empty state now
sits in a Details tab alongside Environment Variables. This is a UI gate
only: the server keys the set on the repository alone, and PipelineRunService
reads whatever is stored when the first run starts. A stale ?tab=history is
clamped to Details, since History has no tab on this path.

Saving from JSON mode was a silent no-op on a new set. The form schema
enforced the key rules in the object shape, which validates for both modes,
so the blank row the key/value editor starts with failed the whole form on
rows.0.key - a field JSON mode does not render. Submit never fired and
nothing explained why. The key rules moved into the refinement, which only
reaches them in key/value mode; per-row reporting and wording are unchanged.
Editing an existing set was unaffected, since its rows seed from valid keys.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@asifrafeen
asifrafeen merged commit e41b26e into stg Aug 23, 2026
25 of 27 checks passed
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