Skip to content

feat(web): refresh the dashboard's visual design - #99

Merged
thiagoesteves merged 3 commits into
mainfrom
feat/dashboard-design-refresh
Nov 12, 2026
Merged

thiagoesteves merged 3 commits into
mainfrom
feat/dashboard-design-refresh

Conversation

@thiagoesteves

Copy link
Copy Markdown
Collaborator

Summary

  • Introduces a shared color-token system (assets/css/tokens.css, mapped to Tailwind utilities in app.css's @theme block) so every page's chrome reads from one place instead of scattered light/dark class pairs - documented in the README under a new "Theming" section.
  • Replaces every page's old banner-plus-form header with a compact Toolbar row: selection chips where a page has them, a Settings popover for less-used config fields, and the primary action pushed to the right.
  • MultiSelect/MultiSelectList now toggle open/closed instantly client-side instead of round-tripping to the server, and close on click-away or Escape.
  • Converts Apps', Processes', Network's, ETS's, and Crashdump's inline, scroll-to-find detail panels into a shared bottom-docked panel that slides up on open, with collapse/expand/close controls and page padding so it never overlaps the page's own content.
  • Adds a live countdown timer (and, on Tracing, a running message count) next to RUN/STOP while a trace/profiling session is active, ticking down client-side via a small Countdown JS hook.

Test plan

  • Full suite (mix test), mix format --check-formatted, and mix credo --strict all pass locally pre-rebase.
  • Every page route (/observer/{applications,system,crashdump,ets,logs,metrics,network,processes,profiling,tracing}) manually verified in the browser against a live multi-node dev setup through the course of this change.
  • CI (this PR rebases in dependency bumps merged after local verification - mix deps.get wasn't re-run locally to avoid disrupting a live dev session; CI will validate the full build against the current lockfile).

Introduces a shared color-token system (assets/css/tokens.css, mapped to Tailwind
utilities in app.css's @theme block) so every page's chrome - backgrounds, borders,
text, buttons - reads from one place instead of scattered light/dark class pairs.

Replaces every page's old banner-plus-form header with a compact Toolbar row:
the selection chips (where a page has them), a Settings popover for less-used
config fields, and the primary action pushed to the right. The chip selectors
(MultiSelect, MultiSelectList) now toggle open/closed instantly client-side
instead of round-tripping to the server, and close on click-away or Escape.

Converts the Apps, Processes, Network, ETS, and Crashdump pages' inline,
scroll-to-find detail panels into a shared bottom-docked panel that slides up
on open, with collapse/expand/close controls and padding so it never overlaps
the page's own content.

Adds a live countdown timer (and, on the Tracing page, a running message count)
next to RUN/STOP while a trace or profiling session is active, ticking down
client-side via a small Countdown JS hook.
@thiagoesteves thiagoesteves self-assigned this Nov 11, 2026

@thiagoesteves thiagoesteves left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review notes from a pass over this diff.

Comment thread lib/web/pages/ets/page.ex Resolved
Comment thread lib/web/components/multi_select.ex Resolved
Comment thread assets/js/hooks/countdown.js Resolved
Comment thread lib/web/pages/ets/page.ex Resolved
Comment thread lib/web/pages/apps/page.ex Resolved
Comment thread lib/web/pages/tracing/page.ex Resolved
Comment thread lib/web/pages/apps/process_actions.ex Resolved
Comment thread lib/web/pages/ets/page.ex Resolved
Comment thread lib/web/pages/ets/page.ex Resolved
- Reset the bottom-docked panel's collapsed/expanded state on both selecting
  a new row and closing the panel, so opening a different row's details never
  inherits a stale collapsed state (ets, crashdump, network, processes, apps).
- Gate the multi-select dropdown's unselected items behind :if={@show_options}
  again, so the full list isn't shipped to the client until the dropdown is
  actually opened; restores the metrics test that was guarding this.
- Truncate the trace/profiling session's expiry timestamp to millisecond
  precision before encoding it, so the countdown hook's `new Date()` parse
  stays within the ECMA-262 guaranteed format instead of risking "NaNs".
- Extract the duplicated bottom-panel chrome into Observer.Web.Components.DetailsPanel,
  the duplicated Settings popover into Observer.Web.Components.SettingsPanel,
  the repeated CTA/badge class strings into Core.action_button_class/0 and
  Core.badge_class/1, and the repeated session-expiry computation into
  Helpers.trace_expires_at/1.
- Migrate two leftover un-tokenized text colors in process_actions.ex and
  port_actions.ex to text-base-content.
@thiagoesteves

Copy link
Copy Markdown
Collaborator Author

Thanks for the thorough pass - all nine points addressed in 3cdd20b:

  • Collapse/expand state leak: reset on both row-select and close across ets/crashdump/network/processes/apps.
  • Unselected items always shipped: back behind :if={@show_options}, restored the metrics test that was guarding it.
  • countdown.js date precision: Helpers.trace_expires_at/1 now truncates to millisecond precision before to_iso8601/1.
  • Duplication: extracted Observer.Web.Components.DetailsPanel, Observer.Web.Components.SettingsPanel, Core.action_button_class/0, Core.badge_class/1, and consolidated the expiry computation into the same Helpers.trace_expires_at/1 above.
  • Leftover un-migrated colors: fixed in process_actions.ex and port_actions.ex.

Full suite (484 tests), mix format --check-formatted, and mix credo --strict all clean on top of the fix commit.

@thiagoesteves
thiagoesteves merged commit 4897fc7 into main Nov 12, 2026
3 checks passed
@thiagoesteves
thiagoesteves deleted the feat/dashboard-design-refresh branch November 12, 2026 16:28
@thiagoesteves thiagoesteves mentioned this pull request Nov 13, 2026
4 tasks done
thiagoesteves added a commit that referenced this pull request Nov 13, 2026
Risk assessment
- Impact: version bump and CHANGELOG only; the release ships the access-control
  security fix (#77), several bug fixes, dark/light live metrics charts, the
  dashboard visual redesign, and Processes/Network search.
- Blast radius: mix.exs version, CHANGELOG.md.
- Regression risk: low for this commit; the shipped changes were reviewed and
  merged individually (#77, #88, #89, #90, #91, #99, #100).
- Rollback: revert this commit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant