Skip to content

feat(web): /lore on Effect UI - #374

Merged
shitratgit[bot] merged 1 commit into
mainfrom
effect-ui-reader
Nov 27, 2026
Merged

shitratgit[bot] merged 1 commit into
mainfrom
effect-ui-reader

Conversation

@shitratgit

@shitratgit shitratgit Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Moves /lore and all 137 lore detail pages from Foldkit to Effect UI. It is the third route family after /news (#370) and /directory (#373), on the same Vite manifest asset path.

What changes

  • Lore pages render with @effect/ui on the server and hydrate as an Effect UI island (#reader-effect-ui). Other reader routes (home, systems, pages with Cafe, docs, motion or tube submodels) stay on Foldkit.
  • Legacy lore blocks compile at build time (apps/web/scripts/reader-effect-ui-legacy.ts), outside the Worker graph.
  • The reader copy control reports success and failure, and keeps button identity and focus.
  • Experimental Effect UI APIs are allowed per file, by exact export.
  • One Landmines budget entry: the lore parity test compares complete documents for all 138 routes and needs a 30 second timeout under the parallel gate.

Proof

  • Cold install with an empty store, then the full gate: 106/106, normal hooks.
  • Parity: all 138 built lore pages match Foldkit for text, elements, attributes, links, StyleX classes, metadata and language. A planted deletion of one book reference fails the property.
  • Packaged Website on workerd in headless Chrome:
    • /lore and the deepest detail page hydrate with fresh route props;
    • /news and /news/latest still hydrate;
    • a rejected clipboard write announces failure, and a resolved one writes the exact payload and then resets, with focus kept;
    • no browser errors.
  • A single-commit revert restores Foldkit lore with a green gate, and /news and /directory stay on Effect UI.

Bytes

Startup JS, gzip, from matched packaged artifacts, base f396f76 (before #373) to head:

Route Base Head
/ 168,081 169,148
/lore, /lore/* 168,081 119,006
/directory 168,081 117,498
/news, /news/latest 107,570 120,666

The /news increase came with #373 and is accepted. The pinned @effect/ui hydration path shares Command.js with the command issuer. Once any entry in the build issues a command, every hydrating entry keeps commandRun, Stream, Channel, PubSub and Queue. Chunk splitting can't remove it. The upstream report follows separately.

Rollback: git revert the feature commit and let auto-ship deploy.

@coderabbitai

coderabbitai Bot commented Nov 27, 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: 3677fc46-3ffb-428e-8b6d-2752dafb1626

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 6d4866d into main Nov 27, 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