From 550798b60aed9a6367e9e9a7e8db348c9a061805 Mon Sep 17 00:00:00 2001 From: Leon Schmidt Date: Mon, 13 Apr 2026 19:00:31 +0200 Subject: [PATCH 1/3] feat: Add log level labels and update type colors in dashboard --- assets/css/dashboard.css | 32 ++++++++++++++++++++++++++++++++ assets/js/dashboard.js | 34 ++++++++++++++++++++++++---------- 2 files changed, 56 insertions(+), 10 deletions(-) diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css index 55d2a70..2d91bc9 100644 --- a/assets/css/dashboard.css +++ b/assets/css/dashboard.css @@ -672,6 +672,38 @@ body { color: var(--blue); } +.label-emergency { + background: rgba(248, 113, 113, 0.2); + color: var(--red); + font-weight: 700; +} + +.label-alert { + background: rgba(248, 113, 113, 0.18); + color: var(--red); + font-weight: 600; +} + +.label-critical { + background: rgba(248, 113, 113, 0.15); + color: var(--red); +} + +.label-warning { + background: rgba(251, 146, 60, 0.15); + color: var(--orange); +} + +.label-notice { + background: rgba(96, 165, 250, 0.15); + color: var(--blue); +} + +.label-debug { + background: rgba(167, 139, 250, 0.15); + color: var(--text-secondary); +} + .entry-time { font-family: var(--font-mono); font-size: var(--text-sm); diff --git a/assets/js/dashboard.js b/assets/js/dashboard.js index 279c116..7155ed3 100644 --- a/assets/js/dashboard.js +++ b/assets/js/dashboard.js @@ -24,16 +24,6 @@ let typeCounts = new Map(); let labelCounts = new Map(); - const TYPE_COLORS = { - info: 'var(--blue)', - sql: 'var(--purple)', - error: 'var(--red)', - timer: 'var(--yellow)', - success: 'var(--accent)', - cache: 'var(--orange)', - table: 'var(--blue)', - }; - // ─── Editor Picker ────────────────────────────────────── /** @@ -191,6 +181,30 @@ success: 'label-success', cache: 'label-cache', table: 'label-table', + + emergency: 'label-emergency', + alert: 'label-alert', + critical: 'label-critical', + warning: 'label-warning', + notice: 'label-notice', + debug: 'label-debug', + }; + + const TYPE_COLORS = { + info: 'var(--blue)', + sql: 'var(--purple)', + error: 'var(--red)', + timer: 'var(--yellow)', + success: 'var(--accent)', + cache: 'var(--orange)', + table: 'var(--blue)', + + emergency: 'var(--red)', + alert: 'var(--red)', + critical: 'var(--red)', + warning: 'var(--yellow)', + notice: 'var(--blue)', + debug: 'var(--text-muted)', }; // ─── API ──────────────────────────────────────────────── From 8f396cb35ef8c1e875df64996bea8097d8deee8c Mon Sep 17 00:00:00 2001 From: Leon Schmidt Date: Mon, 13 Apr 2026 19:00:40 +0200 Subject: [PATCH 2/3] chore: Remove CHANGELOG.md as it is no longer needed --- CHANGELOG.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index df90436..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [0.1.0] - 2026-04-09 - -### Public Release -- DebugPHP Server - -[0.1.0]: https://github.com/CallMeLeon167/debugphp-server/releases/tag/v0.1.0 \ No newline at end of file From 92c240200f7fc27c09253d3a26a849bef388c28f Mon Sep 17 00:00:00 2001 From: Leon Schmidt Date: Mon, 13 Apr 2026 19:00:47 +0200 Subject: [PATCH 3/3] fix: Update version number to 0.2.0 in Config class --- src/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config.php b/src/Config.php index e8ee191..39a4dd0 100644 --- a/src/Config.php +++ b/src/Config.php @@ -29,7 +29,7 @@ final class Config { /** @var string */ - private string $version = '0.1.2'; + private string $version = '0.2.0'; /** @var self */ private static self $instance;