Skip to content

fix(ui): no stray "null" on the Import page - #830

Open
MathiasVDA wants to merge 1 commit into
mainfrom
claude/project-thread-4qfh9q-801
Open

MathiasVDA wants to merge 1 commit into
mainfrom
claude/project-thread-4qfh9q-801

Conversation

@MathiasVDA

Copy link
Copy Markdown
Contributor

Requested by Mathias · project thread

Closes #801

What

The Import page wrote the word null in two places: under the file's card when the server runs without --schema-tools, and after Add to the graph when no file is left. replaceChildren turns a null child into text. Every replaceChildren call in ui/import.js now goes through a fill(node, ...children) helper that drops null and false children, the same helper access.js, shapes.js and workbench.js already use. No other UI script passes a conditional child to replaceChildren directly.

Tests

ui-tests/test/add-data.test.mjs now checks that #imp-work has no "null" text after the first draft (no schema tools), and after the last file is added (no #imp-next). Without the fix the test fails on #imp-work. With it, all 3 tests pass.

Docs

CHANGELOG (Fixed).


Generated by Claude Code

…iting null

replaceChildren writes a null child as the text "null": under the file's
card without --schema-tools, and after Add to the graph with no next file.
The page's replaceChildren calls now go through a helper that drops null
and false children, as el() does.

Closes #801
@MathiasVDA MathiasVDA self-assigned this Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

audit is red here for the same reason as on main: RUSTSEC-2026-0628 in calamine 0.38, which this PR does not touch. #828 bumps calamine to 0.39. I'll merge main once it lands.


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Review (Reviewer 2), round 1 at 88e58a4: approved, needs a merge of main

  • Both places of fix(ui): the Import page shows a stray "null" under the file and after "Add to the graph" #801 are covered: fill drops null and false children before replaceChildren, and every call in ui/import.js goes through it, so a later conditional child cannot bring the word back.
  • The browser test checks #imp-work for the word after the first draft (no schema tools) and after the last file is added, where there is no #imp-next.
  • CHANGELOG has the line; no guide page shows this text.

audit is red here for the reason it was red on main; #828 is merged now. Please merge main into the branch (no rebase) and I merge on green.


Generated by Claude Code

@MathiasVDA MathiasVDA added the review:approved Reviewer approved label Dec 3, 2026 — with Claude

This branch has not been deployed

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

Labels

review:approved Reviewer approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ui): the Import page shows a stray "null" under the file and after "Add to the graph"

1 participant