Skip to content

feat(panel): redesign the web panel with a Chakra UI v3 look - #528

Merged
Akinator31 merged 20 commits into
mainfrom
feat/panel-redesign
Nov 21, 2026
Merged

Akinator31 merged 20 commits into
mainfrom
feat/panel-redesign

Conversation

@Akinator31

@Akinator31 Akinator31 commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Full redesign of the web panel (crates/rustmail_panel) with a Chakra UI v3 look, still in Yew + Tailwind (no React). Design source: the "Rustmail Panel UI" Figma file (Foundations / Components / Screens pages).

Foundations

  • Design tokens as CSS variables with Chakra UI v3 values (gray / orange palettes, semantic bg / fg / border tokens). Dark by default, light through prefers-color-scheme.
  • Tailwind radius scale remapped to Chakra (l1 2px, l2 4px, l3 6px).
  • Inter and JetBrains Mono self-hosted in static/fonts (OFL), since the bot is self-hosted.
  • Tailwind pin bumped to 3.4.17 (still v3). 3.3.5 lacks the size-* utilities, and the build silently renders icons and logos at their intrinsic size.
  • New UI primitives in components/ui/: Button, IconButton, Badge, Chip, Field, Select, Switch, Checkbox, ToggleRow, Avatar, TicketStub, PageHeader, Loading, EmptyState, Notice, Modal, Segmented, plus lucide icons.

Layout and pages

  • The top navbar is replaced by a sidebar shell. Administration now lives inside the same shell.
  • Every page is rebuilt: overview statistics (SVG activity chart), tickets list and transcript, configuration (section list, floating save bar, restart dialog), categories, bans, API keys, administration, sign-in, error, 404, and the setup wizard.
  • All strings go through i18n (en + fr). Copy is cleaned up (sentence case, no emoji).

Behaviour changes

  • Destructive actions now ask for confirmation: revoke an API key, delete a category, remove access, stop the bot, restart setup.
  • Fixed hooks being called after early returns. Permission gating now happens in an outer component, and data hooks live in an inner one.
  • Configuration: the save bar stays visible when a save fails, and the form reloads from the server after a successful save.
  • time_to_close_thread is now labelled in seconds, which is how the bot actually uses it.
  • The tickets list title says "Tickets", since it shows every ticket.
  • The ticket list page and page size are kept only in the URL.
  • Removed a debug println! in the markdown renderer.

No backend changes: every endpoint and payload is unchanged.

Test plan

  • cargo check, cargo clippy (wasm32), cargo test and cargo fmt --check pass (pre-commit hook on every commit)
  • trunk build --release (without the wasm-opt hook) succeeds and the CSS is generated by Tailwind 3.4.17
  • Every page screenshotted against a mock API, in dark and light mode and at mobile width
  • Run against a real bot: Discord login, config save and restart, profile upload, API key create and revoke, setup wizard end to end

Known follow-ups

  • No category filter on the tickets list yet (the API already supports category_id).
  • Category role chips show role IDs, because role names need /api/admin/roles, which is gated by another permission.
  • The sign-in page can't show the version, because /api/bot/version needs a session.

@Akinator31
Akinator31 merged commit 4373348 into main Nov 21, 2026
2 checks passed
@Akinator31
Akinator31 deleted the feat/panel-redesign branch November 21, 2026 02:57
Mathieu133 added a commit to Mathieu133/rustmail that referenced this pull request Nov 21, 2026
Brings the unreleased panel redesign (Rustmail#528) on top of v1.2.1. Only crates/rustmail_panel changes: no migration, config or bot change. Tailwind is now pinned to 3.4.17 by Trunk.toml and the Inter / JetBrains Mono fonts are copied by trunk, so Dockerfile.source builds it as is.
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