feat(ks): embed Rose in the matter workspace
A lawyer working a matter reaches for their AI tools without leaving it, so Rose now opens in a side panel on the K&S matter page - tabbed Assistant / Documents / Workflows, scoped to that matter's Rose project via ks.matter_projects. Both apps are same-origin (K&S at /firm), so the iframe shares the Supabase session: no second login and no token in the URL. The frame is a normal Rose page load, so Rose applies its usual project access checks. Rose hides its own sidebar when framed, detected from window.self !== window.top so it survives navigation inside the panel. Also fixes three defects in ks.matter_projects, which shipped yesterday with no RLS and no grant because only triggers had ever written it: RLS enabled, SELECT granted to authenticated, and the read policy now respects the group pin - without that, five students out of six would have had the panel resolve NexaCare to another group's project.
| Repository | pdombkins/rose_lawyer |
|---|---|
| Author | Peter Dombkins <pdombkins@gmail.com> |
| Authored | |
| Parents | 1f6a6264 |
| Stats | 60 files changed , +438 , -79 |
| Part of | K&S matter-management integration: embed and sync |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-b7c3cc31.md
from inside the repo you want the change in.