Repository navigation
refactor(docs): use @vite-hub/docs on ViteHub main for image sizes, marked charts and nested blocks - #473
Conversation
…arked charts and nested blocks
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. Pushed `367d8caa` to fix the inline-script test collection failure without changing how dates refresh when scripts are moved to the end of the page. Resolved the review thread. All 39 focused tests passed, the properties package built successfully, and lint exited successfully with warnings. Awaiting hosted checks on the new commit. Session Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending. Session Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending. Session Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending. Pushed `4feb7c0f` to fix the GitHub store typecheck and the reported P1 regression where properties dates stayed absolute after script hoisting. Resolved the review thread. Focused tests, typechecking, lint, and a DOM reproduction passed. Local Playwright was blocked by the Chromium download; hosted checks are pending. 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. Session Waiting for review checks before the next pass. |
There was a problem hiding this comment.
Important
The new HTML renderer leaves dates stale when a properties box appears inside an annotated screenshot caption.
Approach: Moving docs rendering into @vite-hub/docs is the right approach, but the pin needs to preserve scripts that depend on where they render.
Reviewed changes across the Markdown pipeline, Nuxt configuration, and dependency pin.
- Docs rendering: Verified public image dimensions, marked charts, nested screenshot comparisons, and the landing studio. The compare slider responds to the right arrow key in Chromium.
- Build and types: Verified the frozen install, workspace build, docs generation, link checks, Vue typecheck, and Wrangler bundle budget.
- Worker routes: Smoke-tested the GitHub sign-in redirect, the moved Comments overlay and anonymous access check, and the Console RPC auth gate locally. Live OAuth and authenticated team workflows were not tested.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
Important
The caption date now refreshes correctly, but the new runtime makes the inline-script test suite fail before it runs any tests.
Reviewed changes since 53019f7.
- Made date refresh independent of script placement. Verified through the pinned docs parser in Chromium that an annotated screenshot caption reads “yesterday” both on initial load and after the figure is replaced. All seven properties browser tests and 17 properties unit tests passed.
- Updated the GitHub store fixture to use the pinned workspace API’s
driveroption. Its test passed.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes in 367d8ca since the previous Pullfrog review.
- Extracted the properties date runtime into
script.tsand imported it by name so the inline-script guard can check it without changing how dates refresh. The targeted build and package validation passed, along with all 38 inline-script and properties tests.
gpt-6.2-sol(high) | 𝕏
comark-annotate
comark-badge
comark-bundle
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: |

The docs pinned a ViteHub integration build from 16 November and kept their own copies of three things
@vite-hub/docsonmainnow does: sizing the images indocs/public(vite-hub/vitehub#4722), keeping the HTML of charts with notes (vite-hub/vitehub#4663), and drawing a block such as::comparetogether with the::screenshots inside it. They also kept three type workarounds for@vite-hub/docstypes thatmainfixed.This moves every
@vite-hub/*package tomainat 4a6f7c7 and deletes the copies:docs/markdown.tsloses itsdocs-image-sizesplugin and the half of its HTML bridge that drew marked charts and nested blocks. Its plugin had the same name as upstream's, so it replaced it. The studio on the landing still draws its own blocks as HTML, since it parses them apart from the page.docs/nuxt.config.tsloses theprepare:typeshook, anddocs/app/types/vitehub-docs-icon.d.tsandvitehub-docs-layouts.d.tsgo.mainrefuses to start without:database.driveris"cloudflare"instead of"d1", andrealtime.authorityisrealtime.driver.[email protected]release-age exception expired on 17 November, so it goes too.Before and after: https://drop.vitehub.dev/d/8e50j77ygkcj/before-after
I compared a
pnpm docs:generatebuild ofmain(21c78f8) with this branch, across all 584 prerendered pages:main<img>with a site pathwidthandheighton each::compareblocksThe screenshots of the first compare, the first marked chart, and the first
docs/publicfigure match: 0 pixels differ on the chart and the figure, 64 of 129,888 on the compare. The block heights and page heights are the same.pnpm docs:generatebuilds and checks the links of 438 pages.vue-tsc -b --noEmit --forceondocspasses without the type workarounds.pnpm install --frozen-lockfileaccepts the lockfile, and every@vite-hub/*entry in it comes from 4a6f7c7.I didn't run
nuxi dev, the Playwright suite,pnpm ready, or the Worker withwrangler dev, so the Comments, sign-in and Console routes after ViteHub's/_vitehubroute move (vite-hub/vitehub#4923) are untested.