Skip to content

fix: cap schema-card skip-index line at MAX_IDX#118

Merged
BorisTyshkevich merged 1 commit into
mainfrom
fix/schema-card-skipidx-overflow
Jul 1, 2026
Merged

fix: cap schema-card skip-index line at MAX_IDX#118
BorisTyshkevich merged 1 commit into
mainfrom
fix/schema-card-skipidx-overflow

Conversation

@BorisTyshkevich

Copy link
Copy Markdown
Collaborator

Summary

  • The fullscreen schema graph's rich node card joined every skip-index onto one unbounded idx: line — unlike columns, which already cap at MAX_COLS (16) with a "+N more" indicator.
  • A heavily-indexed table (e.g. an OTel-style log table with a bloom filter per Map key/value column plus a tokenbf_v1 on the body — 8 indexes total) produced a single line ~1700px wide, blowing the card and the whole graph layout out of proportion.
  • buildCardModel now caps the skip-index line at a new CARD.MAX_IDX (6) constant with a +N more suffix, mirroring the columns' overflow pattern.

Test plan

  • npm test — 1297/1297 passing, coverage gate unaffected (verified pre-existing branch-coverage gaps are unchanged, not newly introduced)
  • Reproduced the original bug by rebuilding the exact reported schema (buildCardGraph/buildRichSchemaSvg) and rendering it in a real browser via Playwright, confirming the fix caps the line and keeps the card in proportion

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xwt1KZ3rmKfM26jvyZQD2t

A heavily-indexed table (e.g. an OTel log table with a bloom filter per Map
key/value plus a tokenbf on the body) joined every skip-index onto one
unbounded idx: line, blowing the fullscreen schema graph card (and its
layout) out of proportion — unlike columns, which already cap at MAX_COLS
with an overflow indicator.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xwt1KZ3rmKfM26jvyZQD2t
@BorisTyshkevich BorisTyshkevich merged commit c1ea119 into main Jul 1, 2026
6 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