Skip to content

Capstone: a team chat on the team's page - #2080

Closed
svaka2000 wants to merge 3 commits into
Open-Coding-Society:mainfrom
svaka2000:feat/capstone-team-chat
Closed

svaka2000 wants to merge 3 commits into
Open-Coding-Society:mainfrom
svaka2000:feat/capstone-team-chat

Conversation

@svaka2000

@svaka2000 svaka2000 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

A capstone page can now show its team's group chat from Messages, so the team and its mentors can talk on the project page.

The team chat on the Communication Systems page, with a mentor's message

  • A project post names its team's group in Messages with capstone_project.team_group, and puts {% include projects/capstone/capstone-team-chat.html %} where the chat goes.
  • It's the same group chat as in Messages (it uses Messages' mountGroupChat), with an Open in Messages link.
  • Everyone in the team's group sees it (a mentor once the group has 2 members who aren't mentors), and so do teachers and admins. A mentor who can't see it yet gets a note that a member has to add them and the group needs 2 members who aren't mentors. Anyone else gets a note that the chat is for the team, and someone signed out gets a sign-in link.
  • I turned it on for our Communication Systems page, with our Messages group "OCS Comm and Cap".
  • Pages without team_group, and Flask-only sites (spring: false), don't change.

How it fits with Darshan's work:

Other notes:

  • It works with today's Spring. Mentors: no direct messages, and only the groups they're added to spring#303 adds the mentor rules behind it.
  • No new CSS. It's ocs__card, ocs__lead, ocs__callout, ocs__links and ocs__btn, and the words are in data/team_chat.yml.
  • The include has to go outside a *-infograph wrapper, because infograph.scss makes every class ending in -title 2.75rem inside one. That's written in the include, the README and both AGENTS files.
  • The build stops if team_group is empty or names a class group (CSA, CSP, CSH, CSSE).
  • node --test _projects/systems/capstone/tests/*.test.mjs and scripts/test_capstone.rb pass. I tried it against a local Spring in Chrome and Safari's engine, on a laptop and phone width, in Sepia, Light and Cyberpunk.

How to try it:

  1. Sign in as a teacher or someone in OCS Comm and Cap, and open /capstone/communication-system/.
  2. Send a message in the team chat, then open /dm. It's in the group there too.

A project post names its team's group in Messages with
capstone_project.team_group and places capstone-team-chat.html where
the chat goes. The page shows that group's chat (Messages'
mountGroupChat) with a link to the group in Messages: to its members,
to a mentor in the group once it has at least 2 members who aren't
mentors, and to teachers and admins. Anyone else gets a note saying
the chat is for the team.

Everyone looks for the group in their own groups first, and only a
teacher who isn't a member searches by name, so a mentor's browser
never calls a route Spring refuses mentors. Without team_group, or on a
Flask-only site, nothing renders. The words are in data/team_chat.yml.
The post names our team's group in Messages, OCS Comm and Cap, as
capstone_project.team_group and places the team chat below the
infograph. Inside the comms-infograph wrapper, infograph.scss would
restyle the chat (every class ending in -title is 2.75rem there).
Spring lists a group to its mentor only once they're in it and it has
2 members who aren't mentors. So the page never got a team that was too
small, the team-too-small note could never show, and a mentor whose own
groups left the team out was told "A member can add you" even when they
were already in the group.

A mentor who doesn't see the chat now gets one note naming both steps,
and the page no longer counts members itself.
@svaka2000

Copy link
Copy Markdown
Contributor Author

Combined into #2091 with the same commits.

@svaka2000 svaka2000 closed this Nov 26, 2026
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