Skip to content

feat(ui): update the web UI to buggregator/frontend 1.42.0 - #379

Closed
roxblnfk wants to merge 15 commits into
masterfrom
feat/frontend-1.42
Closed

roxblnfk wants to merge 15 commits into
masterfrom
feat/frontend-1.42

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What was changed

  • The bundled web UI is buggregator/frontend 1.42.0 (was 1.39.0); /logs opens as a UI page, and the .webp pictures of the build are stored as binary.
  • The event list takes the parameters the new UI sends: type, trace, q, offset and the feed filters (host=web-1, not.level=debug, tag=name:value); /api/events/facets and /api/events/histogram answer as in buggregator/server. Monolog, Sentry, Ray, profile, dump, HTTP dump and mail events carry their filter values in facets; the window and histogram bucket are capped at 100 years, and the search folds the case of any letter.
  • So the new Logs page (Monolog search, level and channel filters, chart), the feed filter bar and the Request view of a trace work in Trap; the features that need server work stay hidden behind the 404 the UI reads as "an older server".
  • Sentry user feedback (feedback and user_report items) goes to a store of its own, as in buggregator/server: /api/sentry/feedback, a feedback count, clearing with the Sentry section, the list_feedback MCP tool and a console rendering.
  • The early hints preload the styles with crossorigin, as the build links them: no more preload warning on every page.

Why?

Against 1.42 the Logs page, shown in the menu whenever Monolog is on, failed with "The server answered 404", the filter picker could not load its values, and the Request view of a trace (now the default view) listed every event of Trap as part of the request, because Trap ignored trace=.

Frontend feature (version) In Trap Server work it would need
Broadcast page for Pusher/Reverb (1.40) hidden: no broadcast event type Pusher protocol ingest, channels and forwarding: L
Sentry Crons tab (1.40) hidden: /api/crons is 404 check-ins and ping URLs, monitor state: M
Send an email to a real inbox (1.40) no button; Settings › Email relay says the server can't send SMTP relay client and config: M
Sentry user feedback (1.40) supported: Feedback tab, feedback on the error page, list_feedback MCP tool; feedback makes no feed event, as in the server -
Desktop notifications (1.40) works: browser-side -
CSP reports (1.40) hidden: no csp event type report ingest endpoint: S-M
Feed filters (1.41) supported: Monolog, Sentry, Ray, profile, dump and HTTP dump values -
Logs page for Monolog (1.41) supported -
Request view on the trace page (1.41) supported: Monolog trace_id, HTTP dump and mail trace headers -
Sentry Queues tab (1.41) hidden: /api/sentry/queues/* is 404 queue spans to jobs: M
Monolog context in the list (1.41) works: browser-side -
SSO profile, audit log (1.41) not shown: auth is off auth: L, out of scope
New page header (1.41) works -
Ray pause state (1.41) works in the tab that clicked state on the event, pushed to other tabs: S
Clear events frees memory (1.41) works: browser-side -
Email versions and invite card (1.42) not shown: the mail payload has no parts/calendar MIME alternatives and ICS parsing: M
Lazy loading (1.42) works -

Checklist

  • Tested
    • Tested manually: bin/trap --ui on its own port and on a shared TCP port, filled with bin/trap test, every page walked in headless Chromium; only the expected 404s of missing server features remain
    • Unit tests added

Documentation

  • docs/web-ui.md: version, /logs, what stays hidden, the Logs page and the feed filter values; docs/monolog.md, docs/sentry.md and skills/trap/references/server.md follow.

The UI 1.40-1.42 asks the event list for `type`, `trace`, `q`, `offset` and the feed filters (`host=web-1`, `not.level=debug`, `tag=name:value`), and calls `/api/events/facets` and `/api/events/histogram`: the Logs page, the filter bar of the feeds and the request view of a trace use them. Trap ignored the parameters, so the request view of a trace listed every event and the Logs page failed. Monolog, Sentry, HTTP dump and mail events now carry the values buggregator/server indexes, and the UI gets them in `facets` of an event.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…eir tags

The build links its styles with `crossorigin`: a preload without it is not used, and the browser warns about it on every page load.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
The new Logs page opens at `/logs`, and the login page brings `.webp` pictures. The features of the UI that need buggregator/server 2.13 and 2.14 and that Trap has not (Broadcast, CSP reports, Sentry Crons, Queues and Feedback, the email relay, the versions and invite card of an email, sign-in) stay hidden or empty: Trap answers 404 to their endpoints, which the UI takes for a server without them.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added enhancement New feature or request tests Changes in the tests labels Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.55%. Comparing base (547e19b) to head (1caa6fb).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
+ Coverage   80.48%   80.55%   +0.06%     
==========================================
  Files         426      432       +6     
  Lines       17049    17488     +439     
==========================================
+ Hits        13722    14087     +365     
- Misses       3327     3401      +74     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…le tags

As in buggregator/server: a Ray event takes the hosts of its payloads' `origin`, a profile its `hostname` and tags, a dump the host of the request it was made in. Without them a `host=web-1` filter hid every Ray event and profile of web-1. The trap skill now states the Logs page, the filter values and how an event joins the request view of a trace, as the docs do.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
… 100 years

fix(ui): fold the case of any letter in the search of the Logs page
test(ui): cover the trace facet of a mail, the facets of a Sentry store event, counts under an exclusion and a histogram 400 over HTTP

A window as `99999999999999999999d` overflowed the bucket arithmetic into a float; buggregator/server caps it the same way. The UI folds the case of a live line with `toLowerCase()`, so an `Ошибка` line it showed was gone after a reload: `mb_strtolower` folds it on the server when mbstring is there.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…age of its error

As buggregator/server does, `feedback` and legacy `user_report` envelope items make no feed event: Trap keeps them in the telemetry store, the last 1 000, by the project of the envelope. `GET /api/sentry/feedback` lists them newest first by project, period and `event_id`, `/api/sentry/counts` counts them so the UI shows the Feedback tab, and clearing the Sentry section deletes them, but the feedback on a pinned error when the pinned events stay. `/api/event/{id}` finds a Sentry error by its Sentry event ID too, which the Feedback tab links by. AI agents read the feedback with the new `list_feedback` tool, and the console prints who wrote it, the page, the error and the message. `trap test` sends a feedback on its error and one on its own.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
… structure

A malformed payload with `hostname` as an array warned "Array to string conversion" when the UI got the profile.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
`window=0d` asked for the events since now and got none; buggregator/server reads it as no window.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
An error page opened from the Feedback tab has the Sentry `event_id` in its route and deletes and pins the error by it: the deletes found nothing and answered success, so the error stayed in the feed. Every route that takes an event ID now resolves it as the event page does. An ID of only dashes finds no event, not one with an empty `event_id`.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…list_feedback` filter

A feedback item with a field of another type, as `contexts.feedback` a string or `message` a list, made an empty entry; buggregator/server drops it, and so does Trap now, the console saying so. `list_feedback` filtered on the first item of a list given for `project` or `event_id`; it now fails the call, as its schema takes a string.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
… takes as non-empty

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…k` for Sentry user feedback

test(server): check that `trap test` fills the Feedback tab and links its feedback to an error

An envelope of only feedback makes no event, so a wait for it never returns. The docs and the trap skill say so, give user feedback a section of its own in the skill, and say that the feedback limit drops the feedback on a pinned error too: the store of the feedback does not know the pins.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
… a pinned error

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk

Copy link
Copy Markdown
Member Author

Landed on master as a fast-forward of three signed commits: d114ac5, 676bb95, 73bea3d (same tree as 1caa6fb plus the 1.21.0 release commit).

@roxblnfk roxblnfk closed this Nov 23, 2026
@roxblnfk
roxblnfk deleted the feat/frontend-1.42 branch November 23, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tests Changes in the tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant