Repository navigation
Conversation
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.
Under the team chat, everyone in it sees who mentors the team. A member who isn't a mentor, or a teacher, can search for verified mentors (people search, narrowed to ROLE_MENTOR accounts not in the group yet) and add or remove them through the group's members routes. A mentor sees the list only. When Spring refuses a change, the panel shows the page's words for Spring's reason. Names are always set as text.
"Add at least 2 team members" was wrong for a group that already had one. It now says the group needs at least 2 members who aren't mentors before it can have a mentor, and that teammates are added in Messages.
svaka2000
force-pushed
the
feat/capstone-mentor-chat
branch
from
November 26, 2026 05:32
d48b85a to
e107bc2
Compare
Contributor
Author
|
Combined into #2091 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.
Under the team chat, a capstone page now lists the team's mentors, and the team can add and remove them.
How it fits with Darshan's work:
Other notes:
ocs__entity-list,ocs__team,ocs__fieldandocs__links. The words are indata/team_chat.yml.node --test _projects/systems/capstone/tests/*.test.mjsandscripts/test_capstone.rbpass. I tried adding and removing a mentor against a local Spring with Mentors: no direct messages, and only the groups they're added to spring#303, in Chrome and Safari's engine.How to try it (with Open-Coding-Society/spring#303):