Dshamir bolts down the front end of AI-Legal

A round of frontend hardening adds login enforcement, crash reporting, and a basic accessibility win to the fork's web app.

securitychat-ui

Dshamir brought the user-facing side of AI-Legal up to the same standard as its back end. The biggest change is a gatekeeper layer that checks a user is authenticated before any page loads, rather than trusting individual screens to police themselves. Alongside it: client-side error tracking via Sentry (a service that captures crashes happening in a user's browser and reports them back), so problems surface instead of failing silently.

There's also a small but real accessibility improvement - a "skip to content" link that lets keyboard and screen-reader users jump past navigation. Rounding it out, the team fixed a build that crashed when configuration values were missing, which had been blocking clean deploys.

So what Worth a look for anyone running their own AI-Legal instance who wants the login layer and crash visibility buttoned up before going live.

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 Dshamir/AI-Legal, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
5755ec93 [P4] feat: add auth middleware, error tracking, accessibility, bundle analyzer Dshamir 2026-05-23 ↗ GitHub
87b7d2c2 [P4] chore: add Sentry and bundle-analyzer dependencies Dshamir 2026-05-23 ↗ GitHub
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
d52b4e52 [P4] fix: use placeholder Supabase URL to prevent build-time crash Dshamir 2026-05-23 ↗ GitHub
commit body
The Supabase client was created with an empty string URL when env vars
were missing, causing createClient to throw during Next.js static page
generation. Uses placeholder values that safely no-op at build time.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

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-523.md from inside the repo you want the changes in.

⬇ Download capture-thread-523.md