Skip to content

fix(studio): weigh the whole graph before laying it out - #1094

Merged
ixuz merged 1 commit into
mainfrom
fix/graph-layout-limit
Nov 28, 2026
Merged

ixuz merged 1 commit into
mainfrom
fix/graph-layout-limit

Conversation

@ixuz

@ixuz ixuz commented Nov 28, 2026

Copy link
Copy Markdown
Member

What and why

The Studio graph screen asked before drawing a graph past its size limit, but it weighed only the part the filters show. The layout places every node and routes every edge, hidden ones too, and vocabulary terms are hidden at first. A graph with few nodes shown and a great many edges to vocabulary terms was laid out without asking, holding the tab and its memory for the whole graph.

  • The screen weighs the whole graph against the limit. Past it, nothing is laid out until the user picks Draw anyway.
  • Draw anyway holds only for the graph it was chosen for. Another graph read later on the same screen is weighed again.
  • The prompt gives the whole graph's counts in all six locales, and no longer suggests the filters, which don't make the layout smaller. docs/studio.md says so.
  • An instance whose whole graph is past the limit now always gets the prompt, even when the visible part is small.

Refs: GHSA-7ghc-46r3-29gg

The Studio graph screen asked before drawing a graph past its size
limit, but it weighed only the part the filters show. The layout places
every node and routes every edge of the graph, the hidden ones too, and
the vocabulary terms are hidden at first. A graph with few nodes shown
and a great many edges to vocabulary terms was laid out without asking,
holding the tab and its memory for the whole graph.

The screen now weighs the whole graph against the limit, so past it
nothing is laid out until the user picks Draw anyway. That choice holds
for the graph it was made for alone: another graph, read later on the
same screen, is weighed again. The prompt names the whole graph's
counts, and no longer offers the filters, which do not make the layout
smaller. docs/studio.md says so.

Refs: GHSA-7ghc-46r3-29gg
@ixuz ixuz added bug Something isn't working i18n labels Nov 28, 2026
@ixuz
ixuz enabled auto-merge November 28, 2026 15:56
@ixuz
ixuz added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 3e9bde0 Nov 28, 2026
57 checks passed
@ixuz
ixuz deleted the fix/graph-layout-limit branch November 28, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working i18n

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant