Repository navigation
Conversation
A members app for an organization, put together from OCS systems. This commit holds its words, a made-up demo organization's setup, the static rule classes (roles, the DM rule, channels, moderation, records, plain calendar weeks, the brand), and DemoStore and DemoBackend, which answer Messages' createMessagesApi calls in Spring's shapes and make every check a server would make.
The page at /community/demo/ hands the other systems' modules to CommunityApp: Messages' thread pane for group chats and direct messages, its message log for updates, Courses' week view for the calendar, the microblog's surveys for polls, and the theme engine for the organization's colors. Downloads go through Messages' saveBlob.
… the tabs grammar
Open-Coding-Society#2087 rewrites the week calendar line that the Community line sat right above, so the two conflicted in AGENTS.md and AGENTS_MD_DOCUMENTATION.md. Between Grades and the UI Builder, the line merges cleanly with it.
This was referenced Nov 26, 2026
Contributor
Author
|
Closing this for now. I'll show you the demo when we talk about the messaging project, and reopen it if you want it on the site. |
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.
This puts #2085 and #2086 into one PR, since I had a lot of PRs open: the Community demo at
/community/demo/, a members app for a made-up organization, andocs__tabs--fit, the tabs class it uses to keep its main tabs on one row on a phone. I closed #2085 and #2086. I merged each branch in withgit merge --no-ffinstead of squashing, so the commits are the same ones those PRs had and each PR has its own merge commit. It doesn't need any other PR or a Spring or Flask change, so it can merge anytime.From #2085:
ocs__tabs--fitkeeps a page's main tabs on one row on a phoneocs__grammar (the site's shared classes). On a phone, four tabs with icons don't fit on one row, so they wrap onto two. With--fitthey share one row, each with its icon above its words, like the tab bar in a phone app.$breakpoint-mobile). Wider screens keep the usual tabs.ocs__tabs:class="ocs__tabs ocs__tabs--fit".ocs__tabs-btn, not in a<span>, since the preset themes recolor span text.Four tabs on a 390px-wide phone without
--fit:The same tabs with
--fit:From #2086: the Community demo, a members app built from OCS systems
I made this demo for the messaging request you sent me on Nov 10. It's one new system, Community, put together from Messages, Courses' calendar, the microblog's polls and the theme engine. The organization, its people, its messages and its rules are all made up. It's "Demo Org", an investment group whose limited partners (LPs) put money into one deal at a time, called a series. Its people are LPs (the members), moderators and staff, and the rules are my picks to show what the systems can check. It runs on fake data in the browser, so nothing you post is saved or sent anywhere, and a reload starts it over.
ocs__grammar, and the chats keep Messages' styles. The main tabs useocs__tabs--fitfrom Add ocs__tabs--fit to the tabs grammar, so a page's main tabs fit one row on a phone #2085, so they stay on one row on a phone.createThread) on a fake backend that answers the calls the chat pane makes to Spring, with the same names and shapes. So sending, editing, deleting, replies, pins and Add to calendar work like they do in/dm. Add to calendar puts the event on the demo's own calendar.ocs__hub-card).DemoStore, not in the page, including who can follow a group's live chat. That's where a real server would check them.data/texts.ymland the demo organization is indata/demo.yml. The rules are classes with static methods, and the store, backend and views are classes you make withnew._projects/.makeprojects,AGENTS.mdandAGENTS_MD_DOCUMENTATION.md. It's registered without:dev, somake devleaves it out. Once merged the page is live, but nothing links to it.An LP's Updates tab at 1440px:
A series chat on a 390px phone, with a reply that quotes an update:
The moderator's Review tab on a phone:
A second staff member approving an update:
Other notes:
AGENTS.mdandAGENTS_MD_DOCUMENTATION.mdup two lines, to between Grades and the UI Builder. It used to sit right above the line about the week calendar's header row (mountWeekView({ tools })), which Keep the week calendar and Coming up bar from firing a ResizeObserver error when resized #2087 rewrites, so Community: a demo members app built from OCS systems #2086 and Keep the week calendar and Coming up bar from firing a ResizeObserver error when resized #2087 conflicted. Keep the week calendar and Coming up bar from firing a ResizeObserver error when resized #2087 is in Calendar fixes: slow regexes, an event that won't open, and a resize error #2089 now, and this PR and Calendar fixes: slow regexes, an event that won't open, and a resize error #2089 merge cleanly in either order.node --test _projects/systems/community/tests/*.test.mjspasses all 60 tests. They read the fake backend's answers with Messages' own message models, so if Messages changes what it expects from Spring, they fail. A change to the chat pane itself would only show in the browser./dm.How to try it:
combined/community-demofromsvaka2000/Pages-JJand runmake.http://localhost:4500/community/demo/. You start as Demo LP 1. Hover over an update and click its reply arrow (Reply in your group). On the Groups tab, send a message in Demo Series 1, then click Report a message (next to the group's name) and pick Demo LP 9's message about a side deal.ocs__tabs--fitoff theirocs__tabselement in DevTools, they wrap onto two rows.