Skip to content

Drawing sheets: a balloon on a linked design's parts list shows no number, not this design's (#3874) - #17733

Merged
bherbruck merged 1 commit into
tangency-labs:drawingsfrom
CamWight:balloon-rows-drawn
Nov 16, 2026
Merged

bherbruck merged 1 commit into
tangency-labs:drawingsfrom
CamWight:balloon-rows-drawn

Conversation

@CamWight

Copy link
Copy Markdown
Contributor

Requested by Cam

A balloon on a drawing sheet shows the item number of the part it points at, read from a parts list. This PR makes sure that number always comes from the design the parts list documents, never from another design by mistake.

Part of #3874. Follow-up to #16842 (balloons on the sheet).

The problem

What changes

  • doc: balloon_rows is now a free function. The caller gives the design for each source (Design: the design and its model, or why it can't be read). Each source is asked once, with one tree per source. A list whose design can't be read gives RowRead::Unread, with the reason.
  • engine: Session::source_design returns drawn's answer in that shape. drawing.balloon.inspect and the sheet both use it.
    • row_status can now be unread.
    • The sheet and inspect give the reason in one sentence ("its parts list can't be read: …"), from one function.
  • drawing.inspect and drawing.check count a list's balloons only when its source means this design. A list of a linked design shows ballooned: null and gets no "not ballooned" findings. Before, it was counted against this design's rows.

Nothing changes for any list a command can make: those all document the design the drawing is in. So there is nothing new to see in the app, and no picture.

Tests

  • engine a_balloon_on_a_list_of_a_linked_design_is_never_numbered. It was written first and failed before the fix. It checks inspect (unread, no item, a warning that names the linked design), the sheet's reason, and drawing.inspect's count.
  • doc a_list_whose_design_cant_be_read_numbers_none: two lists of two sources. Each source is asked once. The list that can't be read numbers none of its balloons, and the other list still reads its own design.
  • Four planted faults, each caught: the design ignored, unread reported as not_found, the sheet reading this design, and the count taking any list.

For later

Changes a default: no

… numbered from this design (tangency-labs#3874)

A balloon reads its number from the parts list it goes by. That list documents one of the drawing's
sources, and Session::drawn is the one place that says which design a source means. The balloon read
path skipped it and listed this design, so a list of a linked design (made by hand or by an older file)
gave this design's numbers with no warning.

- doc: balloon_rows is a free function that takes each source's design from the caller (Design): asked
  once per source, one tree per source. A list whose design can't be read reads RowRead::Unread, with why.
- engine: Session::source_design gives drawn in doc's shape; drawing.balloon.inspect and the sheet use it.
  row_status says "unread"; the sheet and inspect say why, in one wording (row_why).
- drawing.inspect and drawing.check count a list's balloons only when its source means this design, so a
  linked list is never counted against this design's rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added the area:doc timeline, components, parameters, naming label Nov 16, 2026
@bherbruck
bherbruck merged commit ce23d04 into tangency-labs:drawings Nov 16, 2026
32 checks passed
@CamWight
CamWight deleted the balloon-rows-drawn branch November 16, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:doc timeline, components, parameters, naming

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants