Skip to content

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

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/JulianMaurin/MRGFY-8297/expand-untitled-ref-targets-value-type--25ebe90e
Jul 30, 2026
Merged

fix(config-tables): expand untitled $ref targets in the value type#12259
mergify[bot] merged 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 deployed to Mergify Merge Protections July 29, 2026 14:49 Active
@mergify

mergify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 6 merge protections satisfied — ready to merge.

Show 6 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/

🟢 👀 Review Requirements

  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🟢 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)(?:\(.+\))?!?:

🟢 🔎 Reviews

  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 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

@mergify
mergify Bot requested a review from a team July 30, 2026 09:15
@mergify

mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 2 minutes 41 seconds in the queue, including 1 minute 54 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Jul 30, 2026
@mergify
mergify Bot merged commit 190b9b0 into main Jul 30, 2026
11 checks passed
@mergify
mergify Bot deleted the devs/JulianMaurin/MRGFY-8297/expand-untitled-ref-targets-value-type--25ebe90e branch July 30, 2026 11:17
@mergify mergify Bot removed the queued label Jul 30, 2026
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.

4 participants