monoscope/.github/workflows
Anthony Alaribe 845f6cee89
Dashboard revamp: Golden Signals, enhanced observability tabs, and infrastructure monitoring (#283)
* Revamp overview dashboard with Golden Signals, enhanced tabs, and Infra monitoring

- Add Golden Signals metrics (Traffic, P95 Latency, Error Rate, Apdex) as primary overview
- Add secondary System Overview row with service/endpoint counts
- Enhance Services table with Apdex score and improved error rate calculation
- Revamp Logs tab: timeseries for errors/warnings, error patterns table, service treemap
- Revamp Databases tab: query optimization targets, latency percentiles, operation breakdown
- Add new Infra tab: CPU/memory utilization, container metrics, Kafka/Redis monitoring
- Add WTServiceMap and WTHeatmap widget types for future visualizations
- Track dashboard YAML files as TH dependencies for automatic recompilation

* Improve group widget layout and collapse behavior

- Fix group header to use auto height instead of flex ratio
- Add CSS for collapsed state (header fills space, chevron rotates)
- Balance GridStack margins (1rem top/bottom) for better centering
- Remove h-full from grid-stack-item-content for proper margin support
- Remove paddingBtm from widgets (GridStack margins handle spacing)
- Reduce dashboard page top padding

* Auto-format code with fourmolu

* Add client-side variable interpolation for widget titles

- Add data-var-template attribute to title/subtitle elements containing {{var-*}}
- Add JS function to interpolate {{var-*}} placeholders from URL params
- Run interpolation on page load and when variables change (update-query event)
- Support both regular widget headers and group widget titles

This enables dynamic title updates without server round-trips when
dashboard variables are changed.

* Add dashboard skeleton loader and simplify widget code

- Add skeleton loader shown while GridStack initializes to prevent
  layout flash where widgets appear squished in top-left corner
- Hide grid until initialized with CSS, fade in skeleton smoothly
- Simplify Widget.hs: isFullWidth, effectiveHeight, attrs using foldMap
- Add widget descriptions to overview dashboard

* Auto-format code with fourmolu

* Refactor dashboard code and fix performance issues

- Use System.FilePath (</>) instead of custom operator
- Simplify groupRequiredHeight fold with foldl'
- Use foldMap pattern for verbose boolean conditions
- Remove orphaned comments
- Fix race condition in collapse handler using widget-scoped flags
- Increase debounce from 200ms to 500ms
- Optimize compactGrid to only batch update when items moved
- Add 5s skeleton timeout fallback
- Replace setTimeout with requestAnimationFrame

* Fix Math.max -Infinity edge case and ensure skeleton cleanup

- Add guard Math.max(1, ...) to prevent -Infinity when array is empty
- Wrap GridStack.init in try-finally to ensure skeleton timeout cleanup

* Upgrade Node.js from 18 to 22 for Vite 7 compatibility

* Update ui-tests to Node.js 22 for consistency

* Fix widget title variable interpolation on initial load

- Make interpolateVarTemplates() globally accessible via window scope
- Call interpolation after GridStack initializes widgets
- Call interpolation after HTMX swaps tab content

Variables in widget titles now render correctly on page load and tab
switches, not just after taglist changes.

* Move interpolateVarTemplates definition outside DOMContentLoaded

* Add SQL syntax highlighting and lazy loading for dashboard widgets

- Add highlight.js with sql-formatter for SQL preview syntax highlighting
- Cache URL params in interpolateVarTemplates for efficiency
- Add HTMX update-query trigger for stat/table widgets to refresh on variable changes
- Refactor stat widget rendering with lazy loading support
- Remove eager flag from overview dashboard widgets

* Auto-format code with fourmolu

* Add .playwright-mcp to gitignore

* Clean up processWidget and add JS optimizations

- Remove unused replacePlaceholders parameters from processWidget
- Add requestAnimationFrame debouncing to interpolateVarTemplates
- Add null check to compactGrid function

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
History 2026-01-15 21:06:33 +01:00
..
claude-code-review.yml chore(ci): bump the github-actions group with 4 updates (#212) 2026-01-01 21:39:53 +01:00
claude.yml chore(ci): bump the github-actions group with 4 updates (#212) 2026-01-01 21:39:53 +01:00
fourmolu.yml chore(ci): bump the github-actions group with 4 updates (#212) 2026-01-01 21:39:53 +01:00
haskell.yml Dashboard revamp: Golden Signals, enhanced observability tabs, and infrastructure monitoring (#283) 2026-01-15 21:06:33 +01:00
pullrequest.yml Dashboard revamp: Golden Signals, enhanced observability tabs, and infrastructure monitoring (#283) 2026-01-15 21:06:33 +01:00