Repository navigation
Clean up readability warnings in the comparison page, server and map - #46
Merged
Merged
Conversation
Rename only. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build delegates node positions, state labels, and the comparison, context, application and relation elements. mount delegates the stylesheet (node, edge and selection groups plus the comparison relation style), fitting and zooming the view, and the selection filter. Element order, labels, styles and event wiring are unchanged. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The request handler becomes handleRequest, which delegates the security headers, the allowed-request check, resolving and sending an evidence file, and sending a static asset. Header order, status codes, messages and the await points are unchanged; static assets are still sent without awaiting. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
show delegates the relation, criterion and paper details and the relation provenance line; render names its empty-relations message instead of nesting ternaries. The not-found reset, button state, map selection and focus run in the same order. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RequestContext names the per-request server state, which was easy to confuse with the URL route string, and the show* comment says that nothing is appended when the record is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The split read a node's title before its state line, a relation's needs_recheck before its number and kind, and a relation's review before its creator. Read them in the original order again. 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. |
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 third readability cleanup after ESLint was added (#43). It covers the comparison page, its server and the shared map:
src/views/research-map.ts,src/web/comparison.tsandsrc/web/comparison-server.ts. These files had 14 readability warnings and now have none, and this PR adds them (withbrowser-types.d.ts) to the list ineslint.config.jswhere the readability rules are errors. It changes no behavior.The commits are meant to be read separately.
git diff --color-movedhelps tell moved code from new code.ad40400Renames only.dca9b1bMap.builddelegates node positions, the state line, and the comparison, context, application and relation elements.mountdelegates the stylesheet (node, edge and selection groups, then the comparison relation style, in the same order), fitting and zooming the view, and the selection filter.1989af4Server. The request handler becomeshandleRequest, which delegates the security headers, the allowed-request check, resolving and sending an evidence file, and sending a static asset. Header order, status codes and messages are unchanged; static assets are still sent without awaiting.aaaa712Page.showdelegates the relation, criterion and paper details;rendernames its empty-relations message instead of nesting ternaries.4b5a147promotes the rules for these files.414f5bc,f42f41bReview fixes. A clearer type name and comment, and record fields read in the original order in three labels.No warning needed a behavior change to fix. Remaining warnings in the repository: 314 (328 on main).
Verification
npm run lint: 0 errors; 0 warnings in these files. A scratch one-letter name fails lint there.npm run check:format,npm test(94 product and 143 skill tests),npm run check:docs,npm run test:package,node dist/cli.js validate --workspace examples/minimal --jsonandgit diff --checkpassed on Windows 11 with Node 24.22.3. The strict browser type check passes.ce1bf5e). Both builds were given the same inputs:DanseoMap.buildon 20,000 random map inputs across every mode and scene, including broken ones: same elements or error message.DanseoMap.mounton 3,000 scenarios with a recording fake cytoscape: same config (style functions evaluated), calls, event wiring, ResizeObserver use and controller calls.comparison.jsin a fake DOM over 400 multi-step scenarios (load, selection buttons, filter, map selections, reload,pageshow, failed fetches): same DOM, title and map calls after every step.generated_attime were masked.Server<...>type with imported names.await sendEvidenceFile. The response is the same.Checklist
🤖 Generated with Claude Code