feat(system): add the User logs viewer under Information#38
Merged
Conversation
Read-only admin view at /system/information/user-logs listing browser errors from GET rest/user-log: server-side paging/sort (date desc) via useDataTable + VibrantDataTable, a From/To date-range filter, and a link from the Information page.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Context
UI part of #34. Adds the admin "User logs" view that lists the
browser errors captured by the front-end reporter and stored by the backend.
What it does
SystemUserLogViewat/system/information/user-logs,reachable from the Information page (new "User logs" action).
useDataTable('user-log')+VibrantDataTable,default sort date desc. Columns: date, user, message, url. Epoch-ms dates are
formatted for display.
from/toquery (the "To" boundcovers the whole selected day).
Design decisions
consulted here — no edit/delete.
paging + sort only, so a text box would be inert. A server-side text filter would
be a small backend follow-up if wanted.
Dependencies
Tests
npm run test(incl. a view test: mounts, columns, default sort, triggers therest/user-logGET withsidx=date&sord=desc) andnpm run buildpass. Verifiedin the running app: rows listed date-desc, dates formatted, paging, date filter
restricting the list.
Note
Base is feature/vuejs → the issue won't auto-close. Refs #34 — close
manually once the three parts (backend, capture, UI) are merged.
Feedback welcome.