Project and tabular review sharing UI enabled; Aurora jsonb parse fix for shared_with

dropthejase enables the sharing UI for projects and tabular reviews after a brief "Coming soon" hold, and fixes a backend bug where the Aurora Data API returns `shared_with` jsonb columns as raw strings instead of arrays. If you're using Aurora Data API, the same parse-on-read fix will hit you in the same place.

workflowmulti-tenant

The "Coming soon" placeholder (82dd664) is a two-line change - the People button on each view goes disabled with cursor-not-allowed. When sharing is re-enabled in 5fd946c, the architecture doc is updated to note the current state: email-array based, no invite notification sent.

The bug fix (5623a28) is the substantive commit. Aurora's RDS Data API serialises jsonb columns as strings when the column value is a JSON array. Any code doing Array.isArray(project.shared_with) gets back false, and the sharing check silently fails - users who should have access get a 404. The fix is a three-way parse at each call site: if the value is a string, JSON.parse it; if it's already an array or null, use it as-is. This pattern repeats in access.ts, projects.ts, and tabular.ts.

So what Worth a look if you're using Aurora Data API and have any jsonb columns that store arrays - `shared_with` is a predictable example but anything in a jsonb column will hit the same problem. The fix is mechanical but easy to miss because the bug only surfaces in production against Aurora, not against a direct Postgres connection in dev.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

3 commits from dropthejase/louis, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
82dd6645 chore(ui): disable sharing buttons with Coming soon tooltip Jason Lee 2026-05-15 ↗ GitHub
ProjectPage and TabularReviewView sharing/people buttons disabled pending
sharing feature implementation.
5fd946c5 feat(frontend): enable project and tabular review sharing UI Jason Lee 2026-05-15 ↗ GitHub
Re-enable People button in ProjectPage and TabularReviewView.
PeopleModal, backend /people endpoints, and PATCH shared_with
were already fully implemented - buttons were just disabled.
5623a285 fix(api): parse shared_with jsonb string from Aurora in access checks Jason Lee 2026-05-16 ↗ GitHub
commit body
Aurora Data API returns jsonb columns as raw strings. Array.isArray()
on a string returns false, causing 404 for all shared project/review
access. Add JSON.parse fallback in projects.ts (GET /:id, GET /:id/people),
access.ts (checkProjectAccess), and tabular.ts (GET /:id/people).

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-357.md from inside the repo you want the changes in.

⬇ Download capture-thread-357.md