Skip to content

Enrich six showcase demos to match VueForge's actual frozen rendering - #21

Merged
KolesnikovKirill merged 1 commit into
mainfrom
fix/showcase-demo-parity-with-vueforge
Sep 5, 2026
Merged

KolesnikovKirill merged 1 commit into
mainfrom
fix/showcase-demo-parity-with-vueforge

Conversation

@KolesnikovKirill

Copy link
Copy Markdown
Member

What and why

You said components looked worse than VueForge's fd793696 commit, which you remembered as 10/10.

Checked against 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 actual gap: mine were bare-bones, using each component's minimum viable props instead of the fuller composition the baseline shows.

What changed

  • 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.
  • Badge — baseline (badge-danger) shows a text label ("Blocked"), not a 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 exactly ("Display name" / "Shown to other members." / "Enter a display name.").
  • 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 against the real thing

Drove the live dev server over the Chrome DevTools protocol: 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 have no frozen baseline to compare against, so there was nothing concrete to check them against here.

Checks

npm run verify passes in full.

You said components looked worse than VueForge's fd79369 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.
@KolesnikovKirill
KolesnikovKirill merged commit eb0fdf8 into main Sep 5, 2026
9 checks passed
@KolesnikovKirill
KolesnikovKirill deleted the fix/showcase-demo-parity-with-vueforge branch September 5, 2026 07:09
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