f5320400

By: Michael Lynch <git@mtlynch.io>

Fix tooltip bug; move relativeTime to handlers; add e2e test

- relativeTime was running in <head> before the body existed, so
  querySelectorAll("time[datetime]") found nothing. Wrap it in a
  DOMContentLoaded listener to fix it.
- Move relativeTime out of the store package into handlers/, where it
  belongs, and add unit tests for it.
- The store now returns Reaction.CreatedAt (time.Time); the handler
  formats it into RelativeTime and CreatedAtISO for the template.
- Add e2e/media.spec.ts to verify the datetime attribute and the
  JS-populated title attribute are both set correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codeberg
configuredevShellbackendbackend-devcheck-bashcheck-frontendcheck-go-formattingcheck-trailing-newlinecheck-trailing-whitespacediagramdocker-imagee2e-testsgo-testsimport-from-tinybeanslint-sqllittle-momentslittle-moments-devx86_64-linux