polish: make saving a case or statute usable

↗ view on GitHub · Ethan Ward · 2026-08-19 · 512ba17b

Four things stood between this feature and everyday use.

The Save button only turned up when the assistant happened to list the
statute as a numbered source, which it often did not, so asking for a
statute usually left nothing to save. It is now told to list one every
time it reports the wording of a statute it looked up.

A source already in the matter looked unsaved after a page reload,
inviting a pointless click. The button now asks what the matter already
holds and says "In Law" for anything that is there.

A save that failed left an empty Law folder behind in the matter. The
folder is now taken back out if nothing ends up filed.

The saved file itself carried the whole web page - the site menus, and a
title broken into single letters - ahead of the law. That came from the
statute lookup, which has been narrowed to the statute block, so the
assistant reads less clutter as well.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PoCRDAPyEq4wwBVFFbDzck
Repository wardethan2000-eng/mike
Author Ethan Ward <ethanward321@hotmail.com>
Authored
Parents b3fcb9b2
Stats 5 files changed , +134 , -15
Part of Save legal sources to a matter

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-512ba17b.md from inside the repo you want the change in.

⬇ Download capture-commit-512ba17b.md