Skip to content

Fix automatic GH_TOKEN row after environment variables load failure - #5104

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-empty-environment-variables-card-when-loadin-thr_nnq5kyykq2
Oct 7, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-empty-environment-variables-card-when-loadin-thr_nnq5kyykq2

Conversation

@ymichael

@ymichael ymichael commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The real settings component hid its automatic GH_TOKEN row whenever the
variables response was absent, even though the switch's setting comes from
system config. A failed request left an empty card with the error below an
unused gap. The Ladle failed-load fixture correctly reproduced this behavior;
its hint described the intended row visibility.

What changed

Render the automatic row when the variables request fails as well as when
variables are available. Keep variable editing gated on a loaded response
and preserve the loading state.

How you verified

  • Served apps/app Ladle with pnpm exec turbo run storybook --filter=@bb/app -- --port 6193.

  • Reviewed before/after screenshots of Settings / Machine environment >
    Section (could not load) at 390px and 1280px. Isolated the story row and
    adapted only Ladle's surrounding layout to fit each viewport.

  • Confirmed the failed state displays GH_TOKEN, the config-backed switch,
    and the error, without editing buttons or horizontal overflow. Checked
    the loading state and successful story sections retain their behavior.

  • pnpm exec turbo run typecheck lint --filter=@bb/app passed; lint reported
    250 existing warnings and no errors.

  • git diff --check passed.

  • Rebased onto current main, including the SDK guard fix that builds declarations
    before packing, and repeated app typecheck/lint successfully.

  • All 18 selected PR checks passed. Full CI on the preceding rebase also
    passed all 44 jobs.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/fix-empty-environment-variables-card-when-loadin-thr_nnq5kyykq2 branch from 9ef067f to e1db7d2 Compare October 7, 2026 17:54
## What was wrong

The real settings component hid its automatic GH_TOKEN row whenever the
variables response was absent, even though the switch's setting comes from
system config. A failed request left an empty card with the error below an
unused gap. The Ladle failed-load fixture correctly reproduced this behavior;
its hint described the intended row visibility.

## What changed

Render the automatic row when the variables request fails as well as when
variables are available. Keep variable editing gated on a loaded response
and preserve the loading state.

## How you verified

- Served apps/app Ladle with pnpm exec turbo run storybook --filter=@bb/app -- --port 6193.
- Reviewed before/after screenshots of Settings / Machine environment >
  Section (could not load) at 390px and 1280px. Isolated the story row and
  adapted only Ladle's surrounding layout to fit each viewport.
- Confirmed the failed state displays GH_TOKEN, the config-backed switch,
  and the error, without editing buttons or horizontal overflow. Checked
  the loading state and successful story sections retain their behavior.
- pnpm exec turbo run typecheck lint --filter=@bb/app passed; lint reported
  250 existing warnings and no errors.
- git diff --check passed.

> AGENT GENERATED
@ymichael
ymichael force-pushed the bb/fix-empty-environment-variables-card-when-loadin-thr_nnq5kyykq2 branch from e1db7d2 to 761c83b Compare October 7, 2026 18:09
@ymichael
ymichael merged commit 0d7948a into main Oct 7, 2026
28 checks passed
@ymichael
ymichael deleted the bb/fix-empty-environment-variables-card-when-loadin-thr_nnq5kyykq2 branch October 7, 2026 18:12
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