v0.1.1
Go quality gates / test (push) Waiting to run

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-30 14:44:28 +01:00
1 parent 8c4d463f1e
commit de13d851a8
75 files changed
+4656 -442

No files matched your search

+35 -25
View File
@@ -1,37 +1,47 @@
# EasyDNS — OLED design system
# EasyDNS OLED design system
Punktem odniesienia są dołączone do zadania przykłady z RustProxy 0.43.1 (stylistyka, nie kod ani funkcjonalność) oraz zatwierdzone makiety w `design/reference/`.
The visual references are the supplied RustProxy 0.43.1 screenshots and the five approved EasyDNS mockups in `design/reference/`. Only the **visual style** is borrowed; no RustProxy code, logo, APIs, or features are used.
## Kolory (rzeczywiste zmienne CSS)
## Palette (implemented in CSS)
| Token | HEX | Użycie |
| CSS token | HEX | Purpose |
|---|---|---|
| `--bg` | `#050807` | Tło OLED |
| `--sidebar` | `#060908` | Lewa nawigacja |
| `--panel` | `#111614` | Tabele i panele |
| `--panel-alt` | `#151b17` | Powierzchnie drugiego planu |
| `--field` | `#0b100e` | Wypełnienie pól formularza |
| `--line` | `#323b37` | Cienkie obramowania |
| `--text` | `#eff3ed` | Główny tekst |
| `--muted` | `#a5b1aa` | Drugi poziom typografii |
| `--subtle` | `#7f9087` | Etykiety pomocnicze |
| `--green` | `#a6d79d` | OK, akcje podstawowe, aktywna karta |
| `--cyan` | `#6fcde0` | Pierwsza seria wykresu, focus |
| `--amber` | `#f2b42f` | Ostrzeżenie, druga seria wykresu |
| `--red` | `#e88a8a` | Błędy, operacje niebezpieczne |
| `--bg` | `#050807` | OLED canvas |
| `--sidebar` | `#060908` | Left navigation |
| `--panel` | `#111614` | Cards and tables |
| `--panel-alt` | `#151b17` | Secondary surfaces |
| `--field` | `#0b100e` | Inputs |
| `--line` | `#323b37` | Hairline borders |
| `--text` | `#eff3ed` | Primary typography |
| `--muted` | `#a5b1aa` | Secondary labels |
| `--subtle` | `#7f9087` | Hints and metadata |
| `--green` | `#a6d79d` | Healthy status and primary action |
| `--cyan` | `#6fcde0` | First graph series and focus |
| `--amber` | `#f2b42f` | Warning and second graph series |
| `--red` | `#e88a8a` | Errors and destructive actions |
Brak gradientów, glassmorphism, miękkich cieni i ozdobnego monogramu. Proste narożniki 2–3 px, obramowania 1 px, małe przyciski konturowe. Podstawowe akcje w kolorze zielonym, destrukcyjne czerwone i opisane tekstem; ikona nigdy nie jest jedynym oznaczeniem przycisku, jeśli wymaga jasnego potwierdzenia.
No gradients, glassmorphism, soft shadows, mascot artwork or monogram logo. Corners use small 2–3 px radii, borders use 1 px rules, and action buttons are compact. The EasyDNS wordmark is text-only. Visual status uses labels plus color, never color alone.
## Typografia / grid
## Typography, density and layout
`Inter` (jeśli dostępny w systemie), potem systemowy sans-serif. Dane liczbowe, DNS i etykiety tabel: systemowy monospace. Sidebar desktop 208 px, topbar 48 px; karta minimum ok. 185 px, gap 9–13 px, table row 38 px, typografia body 13 px. Układ wykresów 3 kolumny desktop, 2 tablet i 1 mobile. Wszystko w rozdzielczości desktop 1920×1080 z rzeczywistym przepływem dokumentu, bez sztucznego przycinania.
Inter if installed, otherwise the system UI sans-serif. Use system monospace for counters, IP addresses, DNS names, record contents and tables. Desktop sidebar is 208 px and top bar is 48 px. Normal body copy is 13 px; metadata is 10–12 px. Cards and tables use 9–13 px gaps. Chart groups typically use three columns on desktop, two on tablet, one on mobile.
## Wykresy
The `Server status` status strip uses a **five-column desktop grid**: Health, Readiness, Mode, Uptime and Version, all visible on one line. The layout adapts below the tablet breakpoint rather than allowing a fifth value to wrap under the first column.
Lekka, cienka linia 1.65 px, subtelna siatka przerywana, cyjan i bursztyn dla serii, minimalne legendy, oś X z czasami próbek. Żadne wartości statystyczne nie są animowane ani sztucznie uzupełniane. Unikamy mieszania licznika narastającego z QPS. Brak danych? Komunikat „Collecting live samples”.
## Controls and diagrams
## Przyciski / formularze
- `btn-ui`: subtle outline control; `btn-primary-ui`: green primary action; `btn-danger-ui`: red destructive action; `btn-small`: row action.
- All input fields have visible labels, a clear keyboard focus ring, required-field indications and readable server-side validation feedback.
- Irreversible actions require explicit confirmation; API serial conflicts receive dedicated feedback.
- The multi-server UI uses a flat two-column Primary / Secondary layout with real per-server health labels, no decorative animations. A connector caption (`AXFR / IXFR*`) is explicitly footnoted as **intended topology, not verified replication**.
- Panel Configuration uses a quiet preference row with a checkbox and Save button. It is **off by default**, and the original sidebar and topbar remain unchanged when disabled.
`btn-ui` (kontur), `btn-primary-ui` (zielony), `btn-danger-ui` (czerwony), `btn-small` (tabela). Pola mają wyraźny focus i tekstowy label, z gwiazdką dla wymaganych parametrów. `ETag` do konkurowania o serial, ostrzeżenie 412, osobne potwierdzenia operacji: delete/replace/cache flush/reload.
## Charts and data integrity
Źródłem implementacji jest `internal/server/web/static/app.css`. Zmiany design systemu należy wprowadzać tam, a nie w obrazach PNG.
Thin 1.65 px lines, low-contrast grid, restrained cyan and amber series, compact legends and sample time labels. Values come only from native `/stats` samples; no fake historical charts or arbitrary 24-hour metrics are shown. Before there are enough samples, the UI shows "Collecting live samples". Counters are not confused with QPS.
Implementation source of truth: `internal/server/web/static/app.css`, `internal/server/web/static/charts.js`, and the Go templates. Screenshots are reference and QA artifacts, not the code implementation.
## Optional fleet telemetry presentation
When Multi-server is enabled, Metrics uses compact, outlined **Aggregate / Split / Single** mode tabs (no gradients). Aggregate uses combined amber/cyan rate series and explicit responding-node coverage. Split uses a consistent multi-node palette, small legends and a dense per-node status table. Percentile latency always retains individual server lines. A single-node panel retains its original layout unchanged. A removed/offline node never masquerades as zero traffic.