monoscope/web-components/src
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.
History 2026-01-17 03:18:55 +01:00
..
query-editor Fix YAML editor rendering and add syntax highlighting 2026-01-16 12:37:09 -08:00
types Log explorer improvements: early fetch and virtual parent placeholders (#284) 2026-01-17 03:18:55 +01:00
charts.ts Fix trace rendering span overflow and improve text legibility 2026-01-06 23:37:58 +01:00
colorMapping.ts Fix trace rendering span overflow and improve text legibility 2026-01-06 23:37:58 +01:00
index.ts Fix YAML editor rendering and add syntax highlighting 2026-01-16 12:37:09 -08:00
log-list-utils.ts log list duplicate traces fix 2025-09-30 16:05:53 +00:00
log-list.ts Log explorer improvements: early fetch and virtual parent placeholders (#284) 2026-01-17 03:18:55 +01:00
log-worker-functions.ts Log explorer improvements: early fetch and virtual parent placeholders (#284) 2026-01-17 03:18:55 +01:00
log-worker.ts Log explorer improvements: early fetch and virtual parent placeholders (#284) 2026-01-17 03:18:55 +01:00
main.ts Update Tagify dropdown positioning config 2026-01-16 07:42:53 -08:00
session-replay.ts fix anomaly session replay rendering 2025-12-24 17:35:47 +00:00
widgets.ts Kql update (#276) 2026-01-09 23:38:28 +01:00
yaml-editor.ts Fix YAML editor rendering and add syntax highlighting 2026-01-16 12:37:09 -08:00