Skip to content

Let a page follow a whole subject type - #362

Merged
czpython merged 1 commit into
mainfrom
follow-a-subject-type
Aug 30, 2026
Merged

Let a page follow a whole subject type#362
czpython merged 1 commit into
mainfrom
follow-a-subject-type

Conversation

@czpython

Copy link
Copy Markdown
Owner

follows= took one subject, so a page about many subjects had nothing to watch and never updated as work arrived. That is the one thing a React board could do that a Python page could not.

follows= also takes the subject class now. The page, or a named region in it, then watches every subject of that type: subject_id is empty, and the shell reads the board stream the app already serves.

ui.Section(name="threads", follows=InboxThread, blocks=[thread_table(threads)])

No new block, no new endpoint, no new hook. GET /api/<app>/<subject type>/stream has been mounted for every declared subject all along, and the shell already had the URL builder for it.

A Link refuses a class. A link opens one subject's page, so a type with no id would render a link that goes nowhere.

@mintlify

mintlify Bot commented Aug 30, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
druks 🟢 Ready View Preview Aug 30, 2026, 4:06 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

follows= took one subject, so a board page had nothing to watch and never
updated. It now also takes a subject class: the type with an empty id, which
the shell streams through the board stream the app already serves. A Link
refuses a class, because a link opens one subject's page.
@czpython
czpython force-pushed the follow-a-subject-type branch from 5178dde to a813725 Compare August 30, 2026 16:08
@czpython
czpython enabled auto-merge (squash) August 30, 2026 16:08
@czpython
czpython disabled auto-merge August 30, 2026 16:11
@czpython
czpython merged commit 7240ecf into main Aug 30, 2026
3 checks passed
@czpython
czpython deleted the follow-a-subject-type branch August 30, 2026 16:11
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.

1 participant