Skip to content

perf: enforce budgets and isolate the live lab - #23

Merged
stackloomdev merged 1 commit into
mainfrom
agent/week2-performance-budget
Jul 25, 2026
Merged

stackloomdev merged 1 commit into
mainfrom
agent/week2-performance-budget

Conversation

@stackloomdev

Copy link
Copy Markdown
Owner

Summary

  • enforce transitive raw, gzip, and Brotli budgets for every public browser, Vite, and adapter entry, plus actual tarball and unpacked package limits
  • replace the monorepo StackBlitz import with an isolated TypeScript/pnpm live lab that installs the published package
  • verify the isolated lab's dev transform, source map, and production build, and document the performance contract and canonical live-lab URL

Validation

  • pnpm check
  • desktop and 390 px mobile browser verification
  • ordinary-text, dynamic disabled-state, cross-file ownership, direct reselection, and state-provenance interactions
  • independent code review: no findings after fixes

@stackloomdev
stackloomdev marked this pull request as ready for review July 25, 2026 13:22
@stackloomdev
stackloomdev merged commit b26d5c9 into main Jul 25, 2026
10 checks passed
@stackloomdev
stackloomdev deleted the agent/week2-performance-budget branch July 25, 2026 13:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5d0a7a15a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +81 to +83
const repositoryBeta = /^(\d+\.\d+\.\d+)-beta\.(\d+)$/.exec(repositoryVersion);
const liveLabBeta = /^(\d+\.\d+\.\d+)-beta\.(\d+)$/.exec(liveLabVersion);
if (!repositoryBeta || !liveLabBeta || repositoryBeta[1] !== liveLabBeta[1]) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Accept stable package versions in the live-lab gate

When the package is promoted from a beta to a stable version such as 1.0.0, repositoryBeta is null and this verifier always throws. The inspected release workflow runs pnpm check—which includes this verifier—before publishing, even though that workflow explicitly supports stable releases via the latest channel, so the first stable release cannot pass its release gate.

Useful? React with 👍 / 👎.

.card-heading h2 { margin-bottom: 0; font-size: 26px; letter-spacing: -0.04em; }
.status-dot::before { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #77736f; content: ""; }
.status-dot--ready { color: #a9e9c7; }
.status-dot--ready::before { background: #42d392; box-shadow: 0 0 12px rgba(66,211,146,0.6); }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep the ready state on the pink accent

When the fixture reaches its ready state, this rule introduces a saturated green status indicator, making the live lab depart from the repository's required visual system in which #ff385c is the only saturated accent. Use the established pink accent treatment rather than adding a second status hue.

AGENTS.md reference: AGENTS.md:L8-L8

Useful? React with 👍 / 👎.

Sign up for free to 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.

1 participant