From b3da9fbb25f7f974a088f19df5f6e020625ea730 Mon Sep 17 00:00:00 2001 From: Andy Dixon Date: Sat, 12 Sep 2026 18:47:20 +0100 Subject: [PATCH] Render email metadata as real tables and redesign the shell Metadata blocks were divs styled with display:table. Nested blocks and orphan cells created phantom columns that squeezed the value column to a character or two. Every metadata block is now a real //
, which mail clients lay out reliably, and the value column always fills the remaining width. The shared shell gets a gradient hero header, timestamp pill, dark frame, and refreshed section, card, and code-block styling. --- index.php | 28 +-- parsers/github.php | 172 +++++++++---------- parsers/grafana.php | 160 ++++++++--------- parsers/helpers.php | 141 +++++++-------- parsers/json.php | 66 +++---- parsers/wxinteract.php | 380 ++++++++++++++++++++--------------------- 6 files changed, 476 insertions(+), 471 deletions(-) diff --git a/index.php b/index.php index 1acf153..50c1934 100755 --- a/index.php +++ b/index.php @@ -152,20 +152,20 @@ if (empty($html)) {
📋 Request Information
- + + + + + + + + + + + + + +
diff --git a/parsers/github.php b/parsers/github.php index 8a45453..2811a6c 100644 --- a/parsers/github.php +++ b/parsers/github.php @@ -46,20 +46,20 @@ function githubParse($rawBody, $headers, $metadata) { $eventContent = <<
Push Details
- + + + + + + + + + + + + + + HTML; @@ -88,28 +88,28 @@ HTML; $eventContent = <<
Pull Request Details
- + + + + + + + + + + + + + + + + + + + + + + HTML; break; @@ -125,24 +125,24 @@ HTML; $eventContent = <<
Issue Details
- + + + + + + + + + + + + + + + + + + HTML; break; @@ -157,20 +157,20 @@ HTML; $eventContent = <<
Release Details
- + + + + + + + + + + + + + + HTML; break; @@ -190,24 +190,24 @@ HTML;
📋 Repository Information
- + + + + + + + + + + + + + + + + + +
$eventContent diff --git a/parsers/grafana.php b/parsers/grafana.php index f39f543..2fb6b8a 100644 --- a/parsers/grafana.php +++ b/parsers/grafana.php @@ -47,42 +47,42 @@ function grafanaParse($rawBody, $headers, $metadata) { $alertSummary = <<
Alert Summary
- HTML; @@ -92,33 +92,33 @@ HTML; $labelsContent .= '
Labels
'; if (!empty($groupLabels)) { - $labelsContent .= '
Group Labels