From bcbe7376c293a55857b253e90dd9b097c4a43902 Mon Sep 17 00:00:00 2001 From: Kirill Kolesnikov Date: Sat, 5 Sep 2026 13:57:24 +0700 Subject: [PATCH] Enrich six showcase demos to match VueForge's actual frozen rendering You said components looked worse than VueForge's fd793696 commit, which you remembered as 10/10. Checked against the real evidence rather than guessing: this repo keeps genuine frozen screenshots from that exact commit at visual-baselines/vueforge-cross-platform/, and the `visual` CI job already pixel-diffs the live Vue and Razor adapters against them on every run (currently green, 4-level-per-channel tolerance). That means the design system itself -- tokens, CSS -- is already proven pixel-faithful for every case that baseline covers. Compared six of those baseline images against the showcase demos directly and found the gap: mine were bare-bones, using each component's minimum viable props instead of the fuller composition the baseline actually shows. - Alert: baseline (alert-danger-icon) has a tone-matching icon in the icon slot; mine had none. Added CmIcon (infoCircle / alertCircle) and matched the baseline's own copy ("Submission failed" / "Review the failed fields.") for the danger case specifically. - Badge: baseline (badge-danger) shows a text label ("Blocked"), not a single digit or punctuation mark. Badge's own CSS is a text pill, not a numeral dot -- changed "3"/"!" to "New"/"Blocked". - Field: baseline (field-help-error) shows a required field with both a description and an error rendered at once. Rewrote the demo to `required`, with an error, matching the baseline's copy ("Display name" / "Shown to other members." / "Enter a display name.") exactly. - Input: baseline (input-enhanced) combines a leading slot, password-reveal, clearable, and a required indicator in one control. Added a second CmInput demonstrating all four together, including the literal "required" trailing-slot text the baseline itself displays. - Select: baseline (select-clearable) shows the clear button; mine omitted `clearable`. Added it. - Date picker: baseline (date-picker-clearable) shows a filled value with both the calendar and clear icons visible; mine was empty, showing only the calendar icon. Gave it an initial value. Verified live over CDP against the actual dev server, not just by reading the diff: confirmed the alert icon, badge text, field's required marker/description/error, input's leading/trailing/ password/clear elements, select's clear button, and the date picker's filled value all render, then screenshotted each section and compared side by side with its baseline image. Zero console warnings. No design-system code changed -- this is a demo-content fix, not a token or CSS fix. The other 38 sections weren't touched; they don't have a frozen baseline to compare against, so there was nothing concrete to check them against here. --- examples/ui-showcase/src/App.vue | 54 ++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/examples/ui-showcase/src/App.vue b/examples/ui-showcase/src/App.vue index 02a752fa..cf66d7b8 100644 --- a/examples/ui-showcase/src/App.vue +++ b/examples/ui-showcase/src/App.vue @@ -1,6 +1,15 @@