- The audit read endpoint keeps the access decision but hands the
category filter to the DB handler, which expands it to actions.
- Trim the log viewer's header comment to two lines and drop its
em-dashes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- record() takes the request as its actor, and a target can be a
function: the lookups that name it now run inside the recorder's error
handling, and for downloads only once the dedupe lets them record.
That also restores the minimal visibility query on the file route.
- One changed_fields/change pair for rom, user, collection and platform
edits, one collection helper, AuditActor.anonymous, a shared
count_in_window and current_device_id, one test helper for recorded
events and one fixture for audit events.
- The describers share simple/counted/visibility builders and the
eventData readers with notifications, join lists per locale, and treat
any *.delete as unlinked.
- EventLog builds one item list with the phase folded in, keeps each
event's sentence across pages, formats days once, and loads users
through the users store.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Hide events on roms of a hidden platform from non-admins.
- Pin later pages to the highest matching id the API returns, not the
first row's: rows are ordered by when they happened, so a play synced
late has a higher id than newer events and was dropped.
- Cap recorded failed sign-ins per address, dedupe reset requests and
record them in the background with the email, and hash claim keys.
- Keep another user's private collection by id only in bulk downloads.
- Check a Range start without int(), which raises past 4300 digits.
- Clear the list when a reload fails, load more only once it's shown,
report a cover change only when the user made one, label only rom and
platform unhides, accept an actor kind the API doesn't know.
- One client IP helper, date-fns for today and yesterday, one time
formatter for the list, no em-dashes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A persistent record of what users, or RomM itself, did. Admins read
everyone's events through GET /api/audit-events; anyone else gets only
their own. Events older than AUDIT_LOG_RETENTION_DAYS (90 by default,
0 keeps them) are pruned nightly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>