Skip to content

feat(web): foundry Content renderer + first generic positron component (listingCell) - #1772

Merged
joelteply merged 2 commits into
canaryfrom
feat/web-foundry-content
Jul 4, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/web-foundry-content

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Brick 1 of the foundry outlier (POSITRON-EVERY-CITIZEN.md): the web Content registry dispatches a foundry room to its model catalogue — chat + foundry, one registry, no shell change.

Forced by the outlier: foundry models + chat roster/rooms all project to the same ListingCell, so this introduces listingCell(cell) — the first reusable positron web component (draws any projected cell identically). Two consumers earns the extraction; outliers first, then the component. The roster's rich member card stays bespoke while it carries live vitals meters.

  • render/parts.ts: listingCell · content/registry.ts: register foundry (models via foundry-view modelCell + generic cell) · foundry-view exports modelCell · apps/web deps foundry-view.

3 new tests (renders catalogue / empty / unknown-purpose fails loud) + 4 chat = 7 green; typecheck + lint clean. Goes live once a room declares purpose "foundry" (#6 — next brick).

🤖 Generated with Claude Code

joelteply and others added 2 commits July 4, 2026 11:01
…onent (listingCell)

Brick 1 of the foundry outlier (POSITRON-EVERY-CITIZEN.md): the web Content registry
now dispatches a foundry room to its model catalogue — chat + foundry, ONE registry,
NO shell change. The second-outlier proof that the shell dispatches by purpose.

The elegant part, forced by the outlier: foundry's models and the chat roster/rooms
all project to the SAME `ListingCell`. So instead of a bespoke model row, this
introduces `listingCell(cell)` in render/parts.ts — the FIRST reusable positron web
*component*: it draws ANY projected ListingCell (model, room, cohort) identically.
Two consumers (foundry now) is exactly what earns the extraction — outliers first,
then the component ([[positron-is-a-framework-not-vanilla-pages]]). The roster's rich
member card stays bespoke while it carries live vitals meters; every other Listing
routes through the generic cell.

- render/parts.ts: `listingCell` (generic cell component).
- content/registry.ts: register `foundry` → models via foundry-view `modelCell` + the
  generic cell; honest empty state.
- foundry-view: export `modelCell` (one model→cell projection, reused by the renderer
  + the ContextPanel Listing).
- apps/web depends on @continuum/foundry-view.

Tests: 3 new (foundry renders its catalogue; empty state; unknown purpose fails loud)
+ 4 chat = 7 green; typecheck + lint clean. Goes live once a room DECLARES purpose
"foundry" (#6 room-purpose dispatch — the next brick).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…no one left out

Positron as the citizen-neutral interface substrate: one declaration rendered
gorgeously for humans (web/mobile/terminal) AND perceived+OPERATED by AIs (persona
Asha, agent Claude) via RAG + commands. Controls ARE commands (a button a human
clicks == a command Asha invokes); the three axes (layout primitives / component
library / render targets); foundry as the control-heavy outlier that proves it; the
build path (#6 dispatch → foundry-web → controls-as-commands → foundry-for-Asha →
extract component library → mobile). Grounds the foundry bricks.
[[positron-every-citizen-no-one-left-out]]

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 2195861 into canary Jul 4, 2026
2 checks passed
@joelteply
joelteply deleted the feat/web-foundry-content branch July 4, 2026 16:02
@joelteply
joelteply restored the feat/web-foundry-content branch August 21, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant