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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user