Skip to content

feat(web): pilot Effect UI on /news - #370

Merged
shitratgit[bot] merged 7 commits into
mainfrom
desk/effect-ui-news
Nov 26, 2026
Merged

shitratgit[bot] merged 7 commits into
mainfrom
desk/effect-ui-news

Conversation

@shitratgit

@shitratgit shitratgit Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Pilots Effect UI on /news and /news/latest only. Both pages server-render with @effect/ui and hydrate in the browser. Every other route stays on Foldkit 0.170.0, and Effect stays 4.1.4.

Joel: "effect ui works btw" and "yes fucking add the dep". @effect/ui is pinned to the exact pkg.pr.new commit snapshot e2cb60ec, with an exact minimumReleaseAgeExclude entry. vendor/README.md records when that entry comes out.

Size

Route gzip JS before gzip JS after
each news page 161,689 about 107,700 (−54,006)
other reader pages +6,570 (shared chunks)

HTML for the ranked page goes from 34,910 to 32,437 bytes gzipped, handoff included. CSS is unchanged.

Review

A blind cross-family review raised 27 findings, and the nine blocking ones are fixed:

  • Handoff escaping: HtmlServer.ts:227–231 escapes <, U+2028 and U+2029, pinned by a real hostile-render test.
  • Generated parity: 30 generated cases now check row order, visible text and an inert handoff; reversing the rows fails the property.
  • Build output: the build fails if the news entry isn't emitted, and production HTML never references /src/.
  • Navigation: Home → News is a fresh document load that hydrates Effect UI, checked in Chrome.
  • Head: the parity test covers the complete <head>, and the reader CSP test now covers news.
  • Errors: a page with no News data, or a failed loader, renders the reader 500 template.
  • Fence: test-only Effect UI APIs are allowed in the one test file only.
  • Hydration failure: a missing or invalid handoff leaves the server-rendered page readable.
  • Story test: the tautological Story test is removed.

Checks

  • Gate: pnpm turbo run check test build --summarize --force passed 106/106 with nothing cached.
  • Install: a cold frozen install from a fresh store passed.
  • Chrome: both orders hydrate under the reader CSP; pnpm dev hydrates, and WebMCP listCafeNews answers.
  • Rollback: proven on a scratch branch. Revert both code commits, regenerate the snapshot, and the forced gate passes 106/106.

Not covered

The page has no interactive state yet, so hydration buys DOM adoption only. The next step would be client-side order switching. A cold install depends on pkg.pr.new keeping the snapshot; the desk monitors that URL.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f5295415-8f3c-4d5d-bad9-e090ac1aff15

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shitratgit
shitratgit Bot merged commit f418783 into main Nov 26, 2026
4 checks passed
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.

0 participants