Skip to content

fix(config-tables): expand untitled $ref targets in the value type - #12259

Open
JulianMaurin wants to merge 1 commit into
mainfrom
devs/JulianMaurin/MRGFY-8297/expand-untitled-ref-targets-value-type--25ebe90e
Open

fix(config-tables): expand untitled $ref targets in the value type#12259
JulianMaurin wants to merge 1 commit into
mainfrom
devs/JulianMaurin/MRGFY-8297/expand-untitled-ref-targets-value-type--25ebe90e

Conversation

@JulianMaurin

Copy link
Copy Markdown
Contributor

An option whose schema property is a bare $ref to an untitled $defs
entry rendered an empty value type, since both renderers only read the
target's title. Expand the target instead, and name the keys of an
inline object shape so a union like batch_size reads as
"integer or {min, max}".

MRGFY-8297

An option whose schema property is a bare `$ref` to an untitled `$defs`
entry rendered an empty value type, since both renderers only read the
target's `title`. Expand the target instead, and name the keys of an
inline object shape so a union like `batch_size` reads as
"integer or `{min, max}`".

MRGFY-8297

Change-Id: I25ebe90e607c8227ad921b9fe9d8305801e1ef4f
Copilot AI review requested due to automatic review settings July 29, 2026 14:49
@mergify
mergify Bot had a problem deploying to Mergify Merge Protections July 29, 2026 14:49 Failure
@mergify

mergify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 2 of 6 protections blocking · waiting on 👀 reviews

Protection Waiting on
🔴 👀 Review Requirements 👀 reviews
🔴 🔎 Reviews 👀 reviews
🟢 🤖 Continuous Integration
🟢 Enforce conventional commit
🟢 📕 PR description
🟢 🚦 Auto-queue

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by >= 2
This rule is failing.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

Show 4 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

@mergify
mergify Bot requested a review from a team July 29, 2026 14:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes config option value-type rendering when a schema property is a bare $ref to an untitled $defs entry by expanding the referenced target instead of relying on the target’s title (which can be empty). This improves both the React-rendered config tables and the markdown/plain-text renderer used for exports/tests.

Changes:

  • Expand untitled $ref targets in getValueTypeText() (markdown/plain-text) to avoid empty value-type cells.
  • Expand untitled $ref targets in getValueType() (React) to avoid rendering an empty type label.
  • Render inline object shapes as {key1, key2} (instead of just object) so unions like integer or {min, max} are clearer; adds test coverage for both renderers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/util/schemaToMarkdown.ts Expands untitled $ref targets and renders inline object shapes as a {keys} summary in the plain-text/markdown renderer.
src/components/Tables/ConfigOptions.tsx Expands untitled $ref targets and renders inline object shapes as {keys} in the React config options table renderer.
src/components/Tables/ConfigOptions.test.tsx Adds regression tests covering untitled $ref expansion and inline object key rendering for both renderers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JulianMaurin
JulianMaurin marked this pull request as ready for review July 29, 2026 15:09
Comment thread src/components/Tables/ConfigOptions.tsx
@JulianMaurin

Copy link
Copy Markdown
Contributor Author
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants