Skip to content

Meetup groups, Connections and Hallway board - #31

Merged
riponcm merged 3 commits into
mainfrom
feat/groups
Nov 9, 2026
Merged

riponcm merged 3 commits into
mainfrom
feat/groups

Conversation

@riponcm

@riponcm riponcm commented Nov 9, 2026

Copy link
Copy Markdown
Owner

People gets Match | Connections | Groups.

  • Groups: suggestions from the user's profile (University of Utah · 7 people here, United States 34, Women in Cloud Native 23 …, counted with aggregations); propose a meetup with up to 3 free break times; others join and vote; the host fixes a time and every member gets Meetup: … on their agenda. Propose a University of Utah meetup from a Match reason chip opens the dialog prefilled.
  • Connections: incoming requests (Accept / Decline), sent (Withdraw), confirmed meetings and group meetups.
  • Hallway board: short posts (At the Cilium booth till 15:00) with an expiry, highlighted when they match your interests; meetups show alongside; authors can remove their posts.
  • New confox-groups index with seeded sample groups and posts (labelled); activity events for group actions; rule errors: non-host fix 403, unknown vote 422, host leaving 409.

Verified end to end on Emma (join, vote, propose, fix, agenda item, Connections accept, board post/remove) at desktop and 375 px; demo data restored. 20 new tests.

Built by a Claude Code agent from a written brief; reviewed before this pull request.

- confox-groups: groups by school, country, company, community or interest
  with members, proposed break slots, votes and a fixed time; seeded sample
  groups and board posts
- /api/groups: suggestions from the user's profile values with how many
  people share them, propose with up to 3 free times, join, leave, vote,
  fix (host; members get the meetup on their agenda); board posts with
  expiry, interest highlighting and author removal
- People tabs Match | Connections | Groups; 'Propose a <school> meetup'
  from Match reasons; Connections lists requests, meetings and sent ones
- Activity events for groups and board; 20 new tests
@riponcm
riponcm enabled auto-merge November 9, 2026 22:57
Comment thread backend/app/routers/groups.py Resolved
Comment thread backend/app/load.py Resolved
- Joining a fixed group returns 409 when the user already has a confirmed
  item at that time; fixing skips busy members and reports them as
  busy_members instead of writing a second item
- Leaving a group that no longer exists removes its meetup from the agenda
Comment thread backend/app/routers/groups.py Resolved
…ho was left out

- Joining a fixed group (again) writes the meetup once the user is free;
  busy users get 409 for both new and existing members
- The fix message lists members not added because they were busy
- Test for the busy check
@gitar-bot

gitar-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 3 closed / 4 findings

🔴 High risk · New group endpoints add host/author authorization and agenda writes; request-supplied identity could permit unauthorized changes to group or meetup records.

Adds meetup groups with propose, join, vote, and fix flows, a Connections tab for requests and meetings, and a Hallway board for short expiring posts. Clash checks now prevent double-booking, and deleted groups clean up their meetups. Open suggestion: the PR bundles three features (Groups, Connections, Hallway board) and could be split into separate PRs for easier review. Resolved this session: agenda clash checks on join and fix, orphaned Meetup items after --only groups reload, and busy members being left out at fix time.

💡 Quality: Three features bundled in one PR (Groups, Connections, Hallway board)

📄 frontend/src/components/connect/ConnectionsTab.tsx:1-15 📄 frontend/src/components/groups/HallwayBoard.tsx:1-15 📄 backend/app/routers/groups.py:217-231

The review guidelines ask for one feature per pull request. This PR adds meetup groups, a separate Connections tab (ConnectionsTab.tsx, which reworks the existing /api/connect flows into a new view), and a Hallway board with its own post model and endpoints. Each can ship and be reviewed on its own. Consider splitting Connections and the Hallway board into their own PRs.

✅ 3 closed
✅ Bug: Join/fix put the meetup on agendas without checking for clashes

📄 backend/app/routers/groups.py:69-73 📄 backend/app/routers/groups.py:168-177 📄 backend/app/routers/groups.py:207-214
propose only accepts breaks the host is free for, but neither join (when the group is already fixed) nor fix checks the members' agendas. _write_agenda writes a confirmed Meetup: … item for every member at fixed_slot, even when that member already has a confirmed meeting or session at the same break, for example a coffee with Alice. The user ends up double-booked with two confirmed items at once. free_slots will then treat both as blocking, but the clash itself is never shown. Fix: in join for fixed groups, compare the user's agenda.user_items with fixed_slot using agenda.blocking/overlaps and return a 409 (or warn). In fix, skip or flag members who are busy at that slot.

✅ Edge Case: --only groups reload leaves orphaned Meetup items on agendas

📄 backend/app/load.py:89-91 📄 backend/app/routers/groups.py:180-187
load --only groups rebuilds confox-groups and drops every group created during a demo. The {user_id}-g-{group_id} items fix wrote into confox-agenda stay behind. Afterwards, users have confirmed Meetup: … items (shown under Connections as a group meetup) for groups that no longer exist. Nothing can remove them, because /leave now returns 404 from store.get before it reaches _drop_agenda. The rule that re-indexing must not touch another index means the fix belongs elsewhere. Either let leave/cleanup delete -g- agenda items whose group is missing, or document that --only groups must be paired with --only agenda.

✅ Bug: Busy members at fix stay members but can never get the meetup

📄 backend/app/routers/groups.py:244-250 📄 backend/app/routers/groups.py:196-200 📄 frontend/src/components/groups/GroupCard.tsx:58-61
fix leaves members who are busy at the fixed time off the agenda write, but they stay in members. The group card still shows them as part of a fixed meetup, and they have no way to get the agenda item later. Calling join again does nothing: store.join returns the same group, so after is before and _write_agenda is skipped. The host can be skipped too, if they booked something after proposing, yet GroupCard.fix always tells them "It is on your agenda." Nothing in the frontend reads the new busy_members field, so nobody is told who was left out, and there is no test for the busy path. Fix: when a group is fixed, remove busy members from it (or mark them), let a re-join of a fixed group write the agenda item once the user is free, and show busy_members in the fix toast.

🤖 Prompt for agents
Code Review: Adds meetup groups with propose, join, vote, and fix flows, a Connections tab for requests and meetings, and a Hallway board for short expiring posts. Clash checks now prevent double-booking, and deleted groups clean up their meetups. Open suggestion: the PR bundles three features (Groups, Connections, Hallway board) and could be split into separate PRs for easier review. Resolved this session: agenda clash checks on join and fix, orphaned Meetup items after `--only groups` reload, and busy members being left out at fix time.

1. 💡 Quality: Three features bundled in one PR (Groups, Connections, Hallway board)
   Files: frontend/src/components/connect/ConnectionsTab.tsx:1-15, frontend/src/components/groups/HallwayBoard.tsx:1-15, backend/app/routers/groups.py:217-231

   The review guidelines ask for one feature per pull request. This PR adds meetup groups, a separate Connections tab (`ConnectionsTab.tsx`, which reworks the existing /api/connect flows into a new view), and a Hallway board with its own post model and endpoints. Each can ship and be reviewed on its own. Consider splitting Connections and the Hallway board into their own PRs.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@riponcm
riponcm merged commit 8f687f2 into main Nov 9, 2026
3 checks passed
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