Repository navigation
fix(git-graph): clear the Doctor warnings that fail check on main - #427
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — Reviewed all three files in the git-graph Doctor fix for type safety and behavioral equivalence.
- Node type checks: Four node literals now use
satisfies ElementNode, preserving their runtime markup while removing assertion warnings. - Commit folding: The combined
flatMap()retains the original commit indices, output order, and merge-reference remapping while excluding folded duplicates. - Validation: All 16 git-graph tests pass; the package build, publint, changed-module typecheck, and
vp checkpass. Package Doctor reports zero warnings.
gpt-6.1-sol(xhigh) | 𝕏
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |

Since #418 merged,
checkfails on main and on every open PR:vite-doctorinpackages/git-graphreports 5 warnings, and the package runs it with--max-warnings 0.TS0008:[...] as ElementNodeon node literals insrc/index.tsandsrc/draw.ts. These are nowsatisfies ElementNode, which checks the same shape without an assertion.TS0012:filter().map()over the commits insrc/read.ts. It's oneflatMapnow, same order and output.pnpm run doctorinpackages/git-graphgoes from 5 warnings to 0. The git-graph tests (16),pnpm run typecheckandvp checkon the package pass. No behavior change.Unblocks #419, #420, #421, #423 and #424.