Update code examples to Sillo v1, rebuild the nav, and split the bundle - #1
Open
TechWithDunamix wants to merge 3 commits into
Open
TechWithDunamix wants to merge 3 commits into
TechWithDunamix wants to merge 3 commits into
Conversation
Rewrites every Python snippet on the site (home page code tabs, capability showcase, and the "magic stack" feature grid) from the released 0.x request/response handler style to Sillo v1: single ctx: HttpContext handlers, direct return values instead of response.json(...), request_model + injected body params, useAuth() route gates, JWTAuthBackend/TokenForUser, setup_mail/send_template_email for mail, and enqueue() through a queue connection instead of the broken Job.dispatch()/dispatch_after() classmethods. Verified against the sillo/core v1.0 docs and source. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Drops the CTA button's hover shadow, the active-tab glow shadow in the capability detail panel, and the bg-elevated tint on the two featured bento cells — flat surfaces and borders only, no drop shadows or elevated backgrounds. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rebuilds the nav panel as a sheet that drops below the bar rather than stretching it, with four panel shapes behind it: a platforms grid of tall cards showing each product's real interface cropped at the card edge, and headed-column panels for Framework, Resources and About, with a featured item and a file cascade. Adds Warder and Atlas to the product data, built from their own READMEs so the previews cannot show a screen the product does not have, and closes the page with the wordmark the docs site ends on. The site shipped as one 548 kB chunk on every page. Route-level code splitting, a lazily loaded platforms grid (it had put 47 kB of product data in the chunk every page fetched, to draw a menu most visitors never open) and a deferred WebGL hero take the home page to 231 kB. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ctx: HttpContexthandler, direct return values,request_model=with an injected body,useAuth()gates,TokenForUser, andsetup_mail/send_template_email. Queue examples useenqueue()through a connection rather thanJob.dispatch()/dispatch_after(), which the v1 docs flag as raising in every context. Verified againstsillohq/core's v1.0 docs and source.Performance
Three changes got it there:
autoCodeSplittingon the router plugin, so/about,/craftmanand/foremanno longer ship with the home page.SiteNavimportproducts.tsandAppMock, putting 47 kB of product data in the chunk every page fetched, to draw a menu most visitors never open.ogl(49.67 kB) into the critical path for decoration.Plasma and the demo cursor already gated on
IntersectionObserverandprefers-reduced-motion, so the cost was load-time, not runtime.Test plan
bunx tsc --noEmitandbun run buildpass (both clean locally)docs.sillo.build/packages/,/guides/record/,/guides/work/queue/,/guides/work/scheduler/,/guides/services/mail/, andgithub.com/sillohq/starterNote
design-v1/was left untracked — it predates this branch and is not mine to commit.🤖 Generated with Claude Code