Skip to content

Session details drawer - #30

Merged
riponcm merged 3 commits into
mainfrom
feat/session-detail
Nov 9, 2026
Merged

riponcm merged 3 commits into
mainfrom
feat/session-detail

Conversation

@riponcm

@riponcm riponcm commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Click any event title to open its details (Schedule, search results, Compare, Now, Dashboard, My brief), or link with ?session=<id>.

  • GET /api/sessions/{id}: full description, speakers (bio, links, other sessions), on agenda / can add, clashes, going and people you know, why it matches you (interests, projects, track, profile-vector similarity bucket), similar sessions by kNN on the session's own vector (fallback: same track later), catch-up availability. Four reads then one msearch; a failing part degrades to empty and is recorded on the span.
  • Drawer: Agenda / Added toggle, clash warning, why chips, going, description, speakers, similar sessions with in-drawer Back, Catch up on this talk link. Native <dialog>, Escape closes and returns focus; full screen at 375 px.

Verified in the browser (Cloud Native AI + Inference Day, a Tuesday keynote with speaker and catch-up, deep link, Compare, Now, My brief). 20 new tests. Based on the Schedule branch: merge after #28.

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

…ssions

- GET /api/sessions/{id}: full session, speakers (bio, links, other
  sessions), on agenda, clashes, going and people you know, why it matches
  (interests, projects, track, profile similarity), similar sessions by kNN
  on the session vector (same track later as fallback), catch-up availability
- Session drawer mounted in the shell, opened by clicking a title in
  Schedule, search, Compare, Now, Dashboard and My brief; in-drawer history
  for similar sessions; ?session=<id> deep link; Agenda toggle inside
- 20 new tests
@riponcm
riponcm enabled auto-merge November 9, 2026 22:51
Comment thread frontend/src/pages/Now.tsx Resolved
# Conflicts:
#	docs/architecture.md
#	frontend/src/components/dashboard/NextUp.tsx
#	frontend/src/pages/Now.tsx
@gitar-bot

gitar-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 2 closed / 2 findings

🔴 High risk · The new session-details endpoint accepts a caller-supplied user ID and returns agenda- and profile-derived details, which could expose personalized data across users.

Adds a session details drawer opened from any event title or via ?session=<id>, backed by GET /api/sessions/{id} with speakers, clashes, going, similar sessions, and catch-up availability. Resolved: Schedule URL rewrites now preserve ?session so an open drawer stays open, and the Now page refreshes its agenda after changes made in the drawer. No open issues remain.

✅ 2 closed
✅ Bug: Schedule's URL rewrites drop ?session and close the open drawer

📄 frontend/src/pages/Schedule.tsx:51-52 📄 frontend/src/components/session/SessionDrawerProvider.tsx:18-32
Schedule rebuilds the query string from scratch with toParams({...parseState(prev), ...}). That covers the debounced search effect and update(), and toParams has no session key. So if you type in the search box and click a title in the results that are already showing within 300 ms, the drawer opens with ?session=<id>. The pending debounce timer then fires, rewrites the URL without session, and the drawer closes straight away. The timer is not cancelled because its dependencies (query, debounced) have not changed. Fix: carry the session parameter across in toParams callers, or have update and the debounce copy prev.get('session') onto the rebuilt params.

✅ Edge Case: Now page shows stale agenda after a change in the drawer

📄 frontend/src/pages/Now.tsx:37-45 📄 frontend/src/pages/Now.tsx:85-94
Now (my_next, which now opens the drawer through SessionLink) and the Dashboard's NextUp both read agenda-dependent data. Neither one subscribes to useAgendaVersion(), unlike Schedule and Brief. If you open your next session from the Now tile and remove it from your agenda in the drawer, the tile keeps showing it as "Next on your agenda" until the page is reloaded. Fix: add agendaVersion to the dependencies of the fetch effect in Now.tsx, and in NextUp if it reads the agenda.

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 b8bb234 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