feat(audit): surface log path + /logs link in Help popover

Adds a "Log file" section to the sticky-footer Help popover with
two affordances:

1. The current audit-log path rendered as monospace text with
   ``user-select: all`` so a single click selects the whole path
   for copy-paste into a file manager. Works on every platform —
   no subprocess required.
2. A "View all logs →" link to the new ``/logs`` page (added in
   the previous commit) for download/inspection of today's and
   prior days' files.

i18n keys ``footer.help_logs_label`` + ``footer.help_logs_link``
added to en + es packs, matching the existing
``footer.help_*`` naming.

``audit_log_path()`` is wrapped in try/except because a broken
audit module MUST NOT take the footer down — falls back to "—".
Same defensive pattern the license section uses.

Rollback: ``git revert HEAD`` removes the section; the popover
and its layout return to the prior shape with zero coupling to
the audit module.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-19 21:26:53 +00:00
parent 7c9139f199
commit c16e2a5e29
3 changed files with 35 additions and 0 deletions

View File

@@ -185,6 +185,8 @@
"help_license_expires": "Expires {date} ({days} days)",
"help_activate_link": "Activate now →",
"help_manage_link": "Manage license →",
"help_logs_label": "Log file",
"help_logs_link": "View all logs →",
"help_dismiss": "Close"
}
}