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.
This was referenced Nov 26, 2026
Contributor
Author
|
Combined into #2090 with the same commits. |
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.
I made this demo for the messaging request you sent me on Nov 10. It's a members app for an organization: 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, and the rules are my picks to show what the systems can check. It runs at
/community/demo/on fake data in the browser, so nothing you post is saved or sent anywhere, and a reload starts it over.createThread) on a fake backend that answers the same calls Messages makes to Spring. 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.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 to stay on one row on a phone. Without Add ocs__tabs--fit to the tabs grammar, so a page's main tabs fit one row on a phone #2085 they wrap onto two rows, so it's better to merge Add ocs__tabs--fit to the tabs grammar, so a page's main tabs fit one row on a phone #2085 first.data/texts.ymland the demo organization is indata/demo.yml. The rules are classes with static methods, likeMath.max, 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:
node --test _projects/systems/community/tests/*.test.mjsruns 60 tests. They read the fake backend's answers with Messages' own message models, so a change to those shapes fails them. A change to the chat pane itself would only show in the browser./dm.How to try it:
feat/community-demofromsvaka2000/Pages-JJand runmake.http://localhost:4500/community/demo/. You start as Demo LP 1. Hover over an update and click Reply in your group. On the Groups tab, send a message in Demo Series 1, then use Report a message (next to the group's name) on Demo LP 9's message about a side deal.