Skip to content

fix: show the instances field in the inspector - #95

Open
Mrkewl wants to merge 1 commit into
xevrion:mainfrom
Mrkewl:fix/inspector-instances
Open

Mrkewl wants to merge 1 commit into
xevrion:mainfrom
Mrkewl:fix/inspector-instances

Conversation

@Mrkewl

@Mrkewl Mrkewl commented Oct 18, 2026 •

Copy link
Copy Markdown

What this changes

Fixes #96.

Adds instances to the "How much it can handle" group in FIELD_GROUPS, so the Instances field appears in the inspector again, above slots per instance.

Why

FIELDS_BY_KIND lists instances for most kinds (service, db, cache, lb, worker, cdn and others), and FIELD_SPECS defines it ("How many copies of this component are running. This is what an autoscaler adds and removes."). But the inspector only renders fields that belong to some FIELD_GROUPS entry, and instances was in none. So it was filtered out silently and scaling out couldn't be done from the panel. The comment above FIELD_GROUPS says the groups partition each kind's list. instances was the field that fell through.

Found while working through the "Keep it warm" challenge: the hint suggests more database capacity, but only slots per instance could be edited.

Verification

  • New Inspector.instances.test.tsx renders the panel for service, db, cache, lb and worker and asserts an Instances label. It fails 5/5 on main and passes with this change.

  • Covers the multi-selection panel too, since it uses the same FIELD_GROUPS.

  • bun run test passes (58 files, 1254 tests)

  • bun run typecheck and bun run lint pass (lint: pre-existing warnings only, none in touched files)

  • bun run build passes

  • Screenshot attached, if anything visual changed (the field now shows as the first row under "How much it can handle")

🤖 Generated with Claude Code

FIELDS_BY_KIND lists `instances` for most kinds, but the inspector only
renders fields that belong to a FIELD_GROUPS entry, and `instances` was in
none, so it was silently filtered out. Scaling out was unreachable from the
panel. Add it to "How much it can handle", ahead of slots per instance.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Mrkewl
Mrkewl requested a review from xevrion as a code owner October 18, 2026 13:33
@vercel

vercel Bot commented Oct 18, 2026

Copy link
Copy Markdown

@Mrkewl is attempting to deploy a commit to the breakscale OSS Program Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

The inspector never shows the instances field, so scaling out is unreachable

1 participant