Repository navigation
Clean up readability warnings in the graph presentation and reading view scripts - #48
Merged
Merged
Conversation
select delegates the connections section (one row per relation) and the sources section (one detail per source). The DOM is updated in the same order: the connections area is cleared before its relations are chosen. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
explorer delegates the filter definitions, the select for each filter and the status line. Controls are built and appended in the same order. The relation state and edge line style use named branches instead of nested ternaries, and topic layout coordinates get descriptive names without changing the fields they set. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…view scripts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The split appended helper results directly, which read the parent's append before building the child. Build the relation row, source detail and filter control first, then append, as the original code did. Also say in a comment that each filter control is registered in selects for reset and reveal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
The fifth readability cleanup after ESLint was added (#43), and the first for the browser viewer scripts. It covers
skills/danseo/assets/graph-presentation.jsandskills/danseo-reading/assets/learning-view.js, which are inlined into generated HTML pages. They had 7 readability warnings and now have none, and this PR makes the readability rules errors for these two files. The other viewer scripts follow in later PRs. It changes no behavior.d4c4f28Reading view.select(125 lines) delegates the connections section (one row per relation) and the sources section (one detail per source). The connections area is still cleared before its relations are chosen.951b4deGraph presentation.explorer(98 lines) delegates the filter definitions, the select for each filter, and the status line. The relation state and edge line style use named branches instead of nested ternaries. Topic layout coordinates get descriptive local names; the fields they set are stillxandy.6e6f954promotes the rules for the two files.7355122Review fixes. Each row, detail and control is built before it is appended, as in the original, and a comment explains why controls are registered.Remaining warnings in the repository: 284 (291 on main).
Verification
npm run lint: 0 errors; 0 warnings in these files.npm run check:format,npm test(94 product and 143 skill tests),npm run check:docs,npm run test:packageandgit diff --checkpassed on Windows 11 with Node 24.22.3.1a212c8). Both versions were run on the same inputs:window.DanseoGraphfunction on 20,000 random inputs;learning-dom.mjs) on 1,470 random valid candidates, comparing the whole DOM, focus and hash after every concept selection, previous/next click, skip-link click and hash change.Checklist
🤖 Generated with Claude Code