[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

[backport] tarballs: redesign preview tarballs index page (#1911) - #1926

Merged
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball
May 5, 2026
Merged

[backport] tarballs: redesign preview tarballs index page (#1911)#1926
pranaygp merged 1 commit into
stablefrom
pgp/backport-tarball

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Manual backport of #1911 to stable.

The auto-backport action (run) cherry-picked cleanly but couldn't push directly because stable requires PRs / signed commits / status checks.

Summary

  • Cherry-picked the squashed merge commit b883ea0d (tarballs: redesign preview tarballs index page #1911) onto stable.
  • Only conflict was pnpm-lock.yaml; resolved by re-running pnpm install (same approach the backport action uses).
  • No changeset needed — tarballs is private (not published).

Test plan

  • CI green (tarballs build + smoke check)
  • Tarballs preview deploys and renders the new Vite + Preact SPA

* tarballs: redesign preview tarballs index page
Rebuild the static index page produced by `tarballs/scripts/pack.ts`:
- Featured `workflow` package up top with prominent install command,
copy button, and direct tarball download
- Top-of-page metadata chips: short SHA (linked to commit), branch,
PR number, build timestamp, package count + total size
- Collapsible "What is this?" explainer
- Package-manager tab toggle (pnpm / npm / yarn / bun) that swaps the
install command for every row in place
- Live filter input over the rest of the package list (with `/` shortcut)
- Per-row install command, copy button, and direct download
- Modern dark/light theme with system preference, Geist-inspired styling
Also captures tarball size during pack and renders human-readable byte counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: fix client-side interactivity broken by HTML-encoded JSON
`escapeHtml(JSON.stringify(catalog))` was HTML-encoding every quote in
the embedded catalog JSON to `&quot;`, so `JSON.parse(textContent)` threw
on the first character and the IIFE bailed before attaching any event
listeners — package-manager toggle, search filter, copy buttons, and the
`/` shortcut were all dead UI on the deployed page.
`<script type="application/json">` content is treated as text by the HTML
parser; the only sequence that can break out is `</script>` (or `</`
in legacy parsers). Replace `<` with the JSON `<` escape, which is
legal per the JSON spec and prevents the breakout without needing entity
encoding.
Also switch `formatBytes` from `KB`/`MB` to `KiB`/`MiB` since the
divisor is 1024.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: rewrite as Vite + Preact SPA with file breakdown, fix bundling
Address TooTallNate's review feedback by replacing the hand-rolled HTML-
in-template-literal approach with a small Vite + Preact SPA. The old
~600 lines of inlined HTML/CSS/JS in `pack.ts` is now `~80 lines of TSX`,
fully type-checked.
Layout:
- `tarballs/index.html`, `vite.config.ts`, `tsconfig.json` at the root
- `src/main.tsx` mounts the Preact app and fetches `/catalog.json`
- `src/app.tsx` is the page (Header, FeaturedCard, PackageRow, etc.)
- `src/catalog.ts` is the shared types + helpers (`buildInstallCommand`,
`formatBytes`)
- `src/icons.tsx`, `src/styles.css`
- `scripts/pack.ts` is now data-only — it scans packages, packs
tarballs, and writes `public/catalog.json`
The eliminates several smells the reviewer called out:
- The interactive script is now TypeScript with strict mode and JSX
type checking instead of an inline `<script>` block
- The `escapeHtml`-around-JSON-blob hack that broke client-side JS in
the prior commit is gone; the SPA fetches `catalog.json` and parses
it natively
- Pack-time logic and presentation logic no longer share a file
While verifying real tarball sizes I noticed `workflow-serde.tgz` was
only 828 bytes — it had `package.json`, `LICENSE.md`, `README.md` and
*nothing* else, because each package's `files: ["dist"]` excludes
sources but `dist/` hadn't been built. The Vercel build was running
`pnpm --filter tarballs build`, which only builds the `tarballs`
package itself — its workspace dependencies were never built.
Switch `vercel.json#buildCommand` to `pnpm turbo run build
--filter=tarballs`, which transitively builds dependencies first via
the `dependsOn: ["^build"]` rule already in the root `turbo.json`. With
the fix:
workflow: 241 KiB → 252 KiB tarball, 916 KiB unpacked, 205 files
@workflow/core: 59 KiB → 493 KiB tarball, 1.70 MiB unpacked, 236 files
@workflow/serde: 828 B → 1.4 KiB tarball, 4.6 KiB unpacked, 7 files
Add a smoke check that the `workflow` package has at least 5 files in
its tarball — catches the regression directly.
`pack.ts` now also runs `tar -tvzf` on each tarball and records the
file list with sizes. The SPA renders this as an expandable
"What's inside?" disclosure per package, grouped by top-level
directory (e.g. `dist/`, `docs/`) with proportional bars showing
each group's share of the unpacked size, and the largest files
listed below.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: replace tar shell-out with in-process tar reader
The smoke check broke in CI: `'workflow' tarball only has 0 files`.
Root cause is that `tar -tvzf` emits a different verbose layout on GNU
tar (Linux, what CI runs) vs BSD tar (macOS, where I tested locally) —
the parser only matched the BSD column ordering, so on Linux every line
was rejected and `fileCount` came out as 0.
Replace the shell-out with a small in-process tar reader using
`zlib.gunzipSync` + manual 512-byte block walk. ustar headers are
trivially structured (name at offset 0, octal size at 124, typeflag at
156, ustar prefix at 345). We emit regular files only (`typeflag` `0`
or NUL) and consume but skip pax extended headers (`x`/`g`) and GNU
long-name entries (`L`). Result is identical on every platform.
Verified locally: 206 files / 998413 bytes for `workflow.tgz` matches
`tar -tvzf` exactly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: redesign per-package details with packagephobia-style stats
The previous "What's inside?" view crammed nested directory groups,
proportional bars, and per-group file lists into a `<details>` inside
an already-narrow row. It was hard to read and harder to compare.
Replace it with the layout packagephobia uses on its result page:
- Two large headline metric tiles (Publish size / Unpacked size)
with a big bold value, smaller unit, and small uppercase label.
Modeled directly on packagephobia's `Stats` component but using
our existing CSS variables so it tracks light/dark theme.
- A single sortable file table beneath. Default is size-descending so
the contributors to package size are immediately visible. Click a
header to flip direction or switch sort key. Sticky header keeps
the columns visible inside the scrollable region.
Drop the `groupByTopLevel`, `ContentsGroup`, and bar-chart styles —
they were the source of the "hard to use" feedback and don't add
information that the flat sortable table doesn't already convey.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* tarballs: address Copilot review feedback (a11y, dev script, caching)
- main.tsx: drop `cache: 'no-store'` from the catalog fetch. Each
tarballs deployment is immutable per commit, so HTTP caching is
appropriate; forcing no-store made every visit re-download the full
catalog (which now includes per-package file lists).
- app.tsx (search input): add `aria-label="Filter packages"`. The
visible label only contained an icon and placeholder, so screen
readers had no name for the control.
- app.tsx (PmTabs): replace `role="tablist"` / `role="tab"` /
`aria-selected` with plain buttons that use `aria-pressed`. The
ARIA tab pattern requires arrow-key roving focus we never wired
up; toggle buttons are the honest representation. Each button
also gets an explicit `aria-label`.
- app.tsx (row buttons): include the package name in the accessible
label of every per-row copy/download button (and on the featured
card too), so the screen reader buttons/links list distinguishes
them. Added an `accessibleName` prop to `CopyButton`.
- app.tsx (CopyButton): only flip to the "Copied" state when the
write actually succeeded. Both the modern `navigator.clipboard`
path and the `execCommand` fallback can fail; the new
`writeToClipboard` helper returns success and the button shows a
short "Failed" state if both paths fail.
The previous `dev: vite` couldn't actually serve the page because
`/catalog.json` 404s and the SPA boots into the error fallback.
Restructure the build layout to vite's conventional shape:
- `public/` is now a true vite public dir — pack writes tarballs and
catalog.json there. In dev, vite serves these at the root.
- `dist/` is the production build output (vite copies public/ into it
and adds index.html + assets/).
- `vercel.json#outputDirectory` switches from `public` → `dist`.
- `turbo.json` outputs updated to match.
- `dev` chains pack before vite so the catalog exists when the dev
server starts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings May 5, 2026 01:44
@vercel

vercelBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-nextjs-workflow-webpackReadyReadyPreview, CommentMay 5, 2026 1:48am
example-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-astro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-express-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-fastify-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-hono-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nitro-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-nuxt-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-sveltekit-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-tanstack-start-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workbench-vite-workflowReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-swc-playgroundReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-tarballsReadyReadyPreview, CommentMay 5, 2026 1:48am
workflow-webReadyReadyPreview, CommentMay 5, 2026 1:48am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedMay 5, 2026 1:48am

@changeset-bot

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ec8138f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercelBottemporarily deployed to Preview – workflow-docs May 5, 2026 01:44 Inactive
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production901067968
✅ 💻 Local Development9700861056
✅ 📦 Local Production9700861056
✅ 🐘 Local Postgres9700861056
✅ 🪟 Windows880088
❌ 🌍 Community Worlds139830222
✅ 📋 Other492036528
Total4530833614974

❌ Failed Tests

🌍 Community Worlds (83 failed)

mongodb (11 failed):

  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

turso (65 failed):

  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • addTenWorkflow | wrun_01KQTX045MHAGNFQ53E9CJ4JE9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KQTX2DTFD0GGEFD49REXJ7B0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KQTX0BK88AW5ZX35P7E69J72
  • promiseRaceWorkflow | wrun_01KQTX0GC7Q2YKR3KRDSHWS7G0
  • promiseAnyWorkflow | wrun_01KQTX0JXVE3MJ2GXJ3MCBMTT0
  • importedStepOnlyWorkflow | wrun_01KQTX2T3S18XPZRW93NZ7ACZK
  • readableStreamWorkflow | wrun_01KQTX0N7V3DVWH9SJWDH81JAM
  • hookWorkflow | wrun_01KQTX0Z286Y6VEQ9HPTHFHPZC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KQTX1ASAHSAX43KH50N1AKK9
  • webhookWorkflow | wrun_01KQTX1JV2EWPV0GM423BRSGNH
  • sleepingWorkflow | wrun_01KQTX1SFEK8FN9ACBP4J67Y8T
  • parallelSleepWorkflow | wrun_01KQTX2654JFQWX726W07RQANE
  • nullByteWorkflow | wrun_01KQTX29SQ4H5K5YEV2PWATQ7C
  • workflowAndStepMetadataWorkflow | wrun_01KQTX2DEJH9H5N3ENMB5H488H
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KQTX4SQ8DSHDH6F9GM3300H5
  • fetchWorkflow | wrun_01KQTX57ETH5EPEEZ01MT5D6D5
  • promiseRaceStressTestWorkflow | wrun_01KQTX59ZASNNQ7H84H40N6ZAK
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KQTX91FA762529T9QQNC7SGA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KQTX9PCNB0WG85WHSM4B93P8
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KQTXABYJVKCBMR9FAJPZYNP6
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KQTXB11BR7RYF17XBJJ5RF6X
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KQTXBAK9N6MSXP9VTFP7PANH
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KQTXBJ42KGD3KJMZ1R9H1PGK
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KQTXBMG41QVS7QJSDSSYTDJX
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KQTXC5FF6FKZGRQ3ZVMNB6CY
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KQTXCBV0PY6G3DFG6TPC40EP
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KQTXCNDHJYFSV68NQW2VAYR2
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KQTXCVP4N35XC6HS0CJ4HGJA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KQTXD2XXD73H46AZ24NX7B0W
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KQTXDA5E82QVTS78XKKYZ16F
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KQTXDH2E41Q97H0EBQGBP8A6
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KQTXDW7WAQH1JZ1CFWT4N96M
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KQTXE613P1YQ5R7TV1YZH23Q
  • cancelRun - cancelling a running workflow | wrun_01KQTXED8GAWEMGWB3MJAQHN67
  • cancelRun via CLI - cancelling a running workflow | wrun_01KQTXEQ0RC33MV4YKSJTB052F
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KQTXF3QZTPBQ5PSFYFH0G0BH
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KQTXFSQ4ZSESTN1X7DMRVP9X
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KQTXG4M1PMFRXNH5JBNSHQXF
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KQTXGBYPMZDNXYYQ0ZQEF81W
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KQTXGE9VKW1VPYMC8K5SK90Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KQTXGGNJJYPVGQW0SWTQG9S2

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8107
✅ example8107
✅ express8107
✅ fastify8107
✅ hono8107
✅ nextjs-turbopack8602
✅ nextjs-webpack8602
✅ nitro8107
✅ nuxt8107
✅ sveltekit8107
✅ vite8107
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8206
✅ express-stable8206
✅ fastify-stable8206
✅ hono-stable8206
✅ nextjs-turbopack-canary69019
✅ nextjs-turbopack-stable8800
✅ nextjs-webpack-canary69019
✅ nextjs-webpack-stable8800
✅ nitro-stable8206
✅ nuxt-stable8206
✅ sveltekit-stable8206
✅ vite-stable8206
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8800
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb58110
✅ redis-dev500
❌ redis6270
✅ turso-dev500
❌ turso4650
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8206
✅ e2e-local-dev-tanstack-start-stable8206
✅ e2e-local-postgres-nest-stable8206
✅ e2e-local-postgres-tanstack-start-stable8206
✅ e2e-local-prod-nest-stable8206
✅ e2e-local-prod-tanstack-start-stable8206

📋 View full workflow run

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​preact/​preset-vite@​2.10.59910010090100
Addednpm/​preact@​10.29.110010010094100

View full report

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the tarballs preview site redesign to stable, moving from a generated static public/index.html to a Vite + Preact SPA that reads a generated public/catalog.json and renders a richer tarball catalog (featured package, metadata chips, filtering, per-package install/copy/download, and contents breakdown).

Changes:

  • Generate public/catalog.json with tarball sizes + file listings during scripts/pack.ts, and build a SPA UI to render it.
  • Switch the Vercel build output from public/ to dist/ (Vite build output) while still copying tarballs + catalog.json through public/.
  • Extend tarballs smoke checks to validate catalog.json in addition to HTML + .tgz responses.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
tarballs/vite.config.tsAdds Vite config for building the SPA into dist/.
tarballs/vercel.jsonUpdates Vercel outputDirectory to serve dist/.
tarballs/turbo.jsonUpdates Turbo cache outputs to include dist/** and public/catalog.json.
tarballs/tsconfig.jsonAdds TS config for the SPA + scripts.
tarballs/src/styles.cssAdds new Geist-inspired styling, light/dark support, layout/components.
tarballs/src/main.tsxBootstraps the app and loads /catalog.json.
tarballs/src/icons.tsxAdds inline SVG icons used by the UI.
tarballs/src/catalog.tsDefines catalog types + helpers for install commands and byte formatting.
tarballs/src/app.tsxImplements the SPA UI (featured workflow, metadata chips, filtering, copy/download, contents table).
tarballs/scripts/pack.tsExtends pack step to compute tarball sizes + file lists and emit catalog.json.
tarballs/scripts/check-tarballs-smoke.mjsAdds a smoke check validating /catalog.json content.
tarballs/package.jsonUpdates scripts to run vite build after packing; adds Preact/Vite/TS dev deps.
tarballs/index.htmlAdds SPA entry HTML with #app root and module entrypoint.
tarballs/.gitignoreUpdates ignores for public/catalog.json and dist/.
pnpm-lock.yamlLockfile updates for the new tarballs dev dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 96 to +100
const packageNames = new Set(packages.map((p) => p.name));
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: '';
const packed: PackedPackage[] = [];
await fs.mkdir(outDir, { recursive: true });

// Scan the packages directory for all packages
const packageDirs = await fs.readdir(packagesDir);
Comment threadtarballs/src/app.tsx
Comment on lines +112 to +116
{build.commitUrl ? (
<a class="chip" href={build.commitUrl} target="_blank" rel="noopener">
<CommitIcon />
<code>{build.shortSha}</code>
</a>
Comment threadtarballs/src/app.tsx
Comment on lines +125 to +130
<a
class="chip"
href={build.branchUrl}
target="_blank"
rel="noopener"
>
Comment threadtarballs/src/app.tsx
Comment on lines +139 to +141
<a class="chip" href={build.prUrl} target="_blank" rel="noopener">
<PrIcon /> PR #{build.pr}
</a>
Comment threadtarballs/src/app.tsx
<footer class="page">
Built from{' '}
{build.commitUrl ? (
<a href={build.commitUrl} target="_blank" rel="noopener">
@pranaygp
pranaygp enabled auto-merge (squash) May 5, 2026 02:13
@pranaygp
pranaygp merged commit 18fa7f4 into stableMay 5, 2026
185 of 191 checks passed
@pranaygp
pranaygp deleted the pgp/backport-tarball branch May 5, 2026 03:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@VaguelySerious