Skip to content

feat(web): /directory on Effect UI with Vite manifest assets - #373

Merged
shitratgit[bot] merged 2 commits into
mainfrom
effect-ui-directory
Nov 27, 2026
Merged

shitratgit[bot] merged 2 commits into
mainfrom
effect-ui-directory

Conversation

@shitratgit

@shitratgit shitratgit Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Moves /directory from Foldkit to Effect UI. It is the second route after /news (#370), on one shared Vite client graph.

What changes

  • /directory renders with @effect/ui on the server and hydrates as an Effect UI island. The stack filter, Show all, and focus on reset (to the first filter) work with the keyboard. Rows are keyed by project URL, so the surviving nodes and focus stay put when filtering.
  • Asset tags for Effect UI routes come from Vite's own manifest (build.manifest), read before the public assets are written and then removed, so /.vite/manifest.json is never published. This replaces the old News-only bundle walk and follows the upstream advice in Document using HtmlServerVite with a shell from another renderer Effect-TS/ui#425.
  • Failures:
    • A missing Cafe data module, a failed dynamic import or a render defect gives the normal site 500 page.
    • An invalid hydration handoff logs once and leaves the server-rendered page usable.
  • UiSchema#TaggedEnum is allowed only for the Directory model file.

Proof

  • Cold install from a fresh clone with an empty store, then turbo run check test build --summarize --force: 106/106, 0 cached.
  • Parity against the Foldkit page on committed data: text, styles, links, controls, head.
  • Property test: the shown rows equal an inline oracle over generated projects and letters. A planted Boolean(stack[letter]) bug in the core filter fails and shrinks to an empty-string case.
  • Packaged Website in Chrome, base against head:
    • same 21 WebMCP tool names in the same order;
    • same header and footer links;
    • all four /directory URL forms return 200;
    • Enter filters 128 to 84 with focus kept, and Show all restores 128 with focus on the first filter;
    • both News routes hydrate 74 rows;
    • Home, lore and systems still adopt their Foldkit roots;
    • the manifest returns 404.
  • Startup JS, gzip, base to head:
    • /directory: 168,258 to 117,436.
    • /: flat.
    • /news: 107,682 to 120,698. Rollup moved modules that app shares from the rpc chunk into the shared reader chunk, which /news loads. The next route PR (the reader) removes this.
  • A single-commit revert plus the regenerated snapshot restores the base, with a green gate.

Rollback: revert the feature commit, regenerate .brain/data/git-snapshot.json, 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: 956c53c2-0c95-4c56-ad43-3b0c179ef9b0

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 0f5ea62 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