Skip to content

feat(ui): show log extra to superadmins#29

Open
BatLeDev wants to merge 1 commit into
masterfrom
feat-logs-extra-superadmin
Open

feat(ui): show log extra to superadmins#29
BatLeDev wants to merge 1 commit into
masterfrom
feat-logs-extra-superadmin

Conversation

@BatLeDev
Copy link
Copy Markdown
Member

@BatLeDev BatLeDev commented May 29, 2026

Show the log extra field to superadmins (admin mode): a "View extra" button expands a panel with the formatted JSON and a copy-to-clipboard button. Adds the required Vite icons.

Why: Playwright had bumped itself to 1.60 (requiring a newer Chromium) — pin it back to 1.59.1. Playwright reporter switched to dot.

Regression risks:

  • log.vue root element changed (d-flex text-break moved one level down under a new root <div>) — verify layout wherever the component is mounted.
  • Hiding the extra relies on the adminMode UI gate, which is not a security boundary: if the API returns log.extra to all roles, a non-superadmin can read it via the network. Confirm whether extra should be filtered server-side.
  • copyExtra has no try/catch around navigator.clipboard.writeText (unhandled rejection in non-secure contexts).

@github-actions github-actions Bot added feature and removed feature labels May 29, 2026
@BatLeDev BatLeDev force-pushed the feat-logs-extra-superadmin branch 3 times, most recently from 7a1c147 to fd4e9ec Compare May 29, 2026 14:13
Add an admin-only "view extra" toggle on log lines that reveals the
log's extra payload as formatted JSON, with a copy-to-clipboard button.
Visible only when the user is in adminMode and the log carries extra.
@BatLeDev BatLeDev force-pushed the feat-logs-extra-superadmin branch from fd4e9ec to 06bdf01 Compare May 29, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant