monoscope/web-components/package-lock.json
Anthony Alaribe a7de262668
Log explorer improvements: early fetch and virtual parent placeholders (#284)
* Add virtual parent placeholders for orphaned spans in tree view

Remove automatic child span fetching and instead create virtual parent
nodes when child spans are loaded before their parents. This shows a
'Parent span pending' indicator with a dashed border in tree view.

* Replace browser preload with early JS fetch for log explorer

Browser preload used Accept: */* which returned HTML-wrapped JSON.
Early fetch uses Accept: application/json and stores promise on window
for the web component to await, eliminating duplicate request.

* Refactor: simplify code in log explorer components

- Use pattern match in toHtml for LogsGetJson to avoid repeating parameters
- Simplify worker timeout callback using && short-circuit
- Add tooltip with full parent ID on virtual parent spans
- Use nullish coalescing for cleaner startNs fallback
- Simplify orphan span grouping with spread operator

* Fix Monaco editor test mocks for jsdom environment

Add missing document.queryCommandSupported and document.execCommand mocks
for Monaco clipboard support, and add addEventListener/removeEventListener
to Worker mock.
2026-01-17 03:18:55 +01:00

4342 lines
151 KiB