Public: anyone can read this; the crew can change it.
The studio's stylesheet belongs in the stylesheet, not in every page #166
Merged 74d 1h ago, live in production
studioCss and boardCss now live in the served stylesheet instead of in a block on every page that draws them. What moved.
-
Reviews
No review yet.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- A studio page carries no <style>, and a test says so 011d567
- The studio's and the board's rules move into the served stylesheet d518734
- After New app, land on the studio's app page — the one the studio built (#161) b5e32bc
- Read what you show: the log tail reads half a megabyte to print a dozen lines (#157) b48f573
- The same twenty icons, once each: the front door stops re-sending its drawings (#154) 3e85d1a
- The studio's contract catches up with what shipped: finding, speed, and where New app lands (#153) 72c1428
- The vocabulary table covers the studio's lists, and stays ahead of the next page (#152) a79adf0
- The app's page tails the deploy that is bringing it alive, not only the crew's run (#150) 0d1c8e4
- A change is not parked for the runner's failure: ask whose fault before stopping (#149) 50a1697
- The app's page tails the crew's log while the app is coming alive (#144) c72ba52
- A failed check says what failed, on the change's page (#143) e8be50b
- A deploy that never reached its preview is counted, not quietly dropped (#141) f9748ea
- The studio's lists answer at the studio's nouns: /tells and /changes (#139) 1cc73a7
- After New app, land on the app's page — the redirect, not the flash (#138) ecd81cc
- The test that parks other people's pulls: a 60s sleep against a 60s deadline (#135) 70dcb07
- A mistyped studio URL gets the forge's page, not a JSON blob (#137) e673ead
- In the studio, /apps is the shelf, not dev's table (#132) 8d1b324
- Finding things in the studio: the search box and the palette look for apps, changes and tells (#131) 7c25230
- The direction's number says where its seconds went (#129) ca39d2b
- A change that cannot land says so, instead of reading green (#127) 09ae1ea
Sign in to join this conversation.
new above
offline
studioCssandboardCssnow live in the served stylesheet instead of in a<style>block on every page that draws them.What moved.
studioCss(4,587 bytes, sent by nine studio pages plus/apps) andboardCss(13,744 bytes, sent by the board) joincssinsrc/web/style.ts, in thecomponentslayer, last — afteravatarHues, beforecontent. An inline block sits outside every layer and therefore beats all of them, so last incomponentsis the nearest place that reads the same; I checked it selector by selector before moving anything. Nothing else in the sheet styles a.studio-or.board-selector, and the four rules that reach a shared class —.badge[data-variant="accent"],.studio-asks .row-lead,.studio-head .env-facts,.board-run .avatar— set properties those components do not, or out-specify them in either arrangement. The rule text is unchanged: I diffed both blocks, whitespace-normalised, against what the pages used to send, and they are identical.The trade, in numbers. The sheet grows from 94,585 to 112,970 bytes (+18,385), cached with an ETag and immutable once #113 lands; a studio app page sheds 4,587 bytes of CSS plus the
<style nonce>wrapper, on every request, and the board sheds 13,744.styleCssstays for what its doc names —labelCss, colours mixed from the labels actually on the page — and its doc now says so explicitly.Look at this. One test,
a finished run renders in the studio's own word, asserteddata-word="look". The badge on that page has always readwaiting("no deploy of this head yet"); what matched was.studio-list li[data-word="look"]inside the inline stylesheet. The test was wrong, not the code — I confirmed the rendered word iswaitingonmaintoo — so it now asserts the badge itself (data-word="waiting" id="run-word") and that the word is notplanned, which is what a run whose pull was not found would say.What I did not do.
bulkCsscame along: it is generated from the bulk-action table at module load but is the same for every request, so it belongs with the rest.mapCss(src/web/pages/map.ts, still passed asstyleCssfrom two places) is the same kind of static block and the same fix, but it is a different surface with its own cascade checks to do, and the issue scoped this to the studio and the board — worth its own issue. I also leftshell,railand most ofrowsin place: the doc comment says nothing draws them any more, and deleting a rule changes what is served, which is not this change.How to try it.
curl -s $PREVIEW/assets/forge.css | grep -c studio-finds the rules in the sheet; view source on the studio home, an app page,/appsor/boardand there is no<style>element; open an issue with a label and there still is one, holding only itslc-rule.bun x tsc --noEmitis clean and the check's test list is green apart from six failures that are identical onmainin this sandbox (they spawngitover SSH, which this environment refuses).🤖 Generated with Claude Code
Closes #155