Skip to content

feat(artifacts): add Competitor Research story to Storybook - #90

Open
ireenh wants to merge 9 commits into
masterfrom
feat/competitor-research-story
Open

feat(artifacts): add Competitor Research story to Storybook#90
ireenh wants to merge 9 commits into
masterfrom
feat/competitor-research-story

Conversation

@ireenh

@ireenh ireenh commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add competitor-research.html — an htmdx@2 artifact covering the "Owner Booking Pending Payment" competitor research (Mangomint, Setmore, Acuity, Fresha, Mindbody, Square)
  • Add companion Storybook story Artifacts/Competitor Research with a custom render for the interactive competitor-matrix filter enhancer
  • Add 8 evidence images (Mangomint and Setmore screenshots) served via Storybook staticDirs
  • Fix link-chip/badge overflow in the User voice section — defer the outer 2-col layout to xl (1280px+) so it only applies when there's enough room for the nested grids

Validation

  • tsc --noEmit passes clean (zero errors)
  • Storybook renders the artifact correctly across breakpoints — QA'd during the session
  • htmdx source has zero indentation inside <script type="text/htmdx"> (required by the Markdown parser — 4+ spaces = code block)

Not Run

  • Automated E2E tests for artifact rendering — none exist in the repo

Risks

  • Low: new artifact and story only; no changes to runtime library code
  • staticDirs: ['../src/artifacts'] was added to .storybook/main.ts so ./evidence-images/ paths resolve at Storybook dev time — these images are not bundled into the library build

Review Context

  • The story uses a custom render override instead of the plain ...createArtifactStory(html) spread used by other stories. This is intentional: the HTML embeds a data-ck-enhancer script that powers the interactive matrix filter. The override cleans up stale injected style/script elements before each Storybook re-render, then re-injects the enhancer. Other artifacts have no enhancer, so they don't need this.
  • ck-renderer meta pins @wix/htmdx@4.11.0; the repo is at 4.11.1. The patch delta is intentional — no API changes affect this artifact.

Suggested Reviewers

  • Maksym Anisimov — dominant editor across touched paths (8 commits). GitHub handle maksyma exists but display name is unset; please verify before tagging.

ireenh and others added 8 commits July 31, 2026 18:55
Adds the Owner Booking Pending Payment competitor-research htmdx artifact
as a Storybook story, with evidence screenshots served via staticDirs and
the ck-competitor-matrix-filters enhancer injected at render time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… source

Markdown parsers treat 4+ spaces of indentation as code blocks, so the
previous formatting commit broke component rendering in the Storybook story.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Removed overflow-hidden from the inner column containers in the User
voice cards — min-w-0 already prevents grid column expansion, so
overflow-hidden was only clipping badge text that was longer than
in other sections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Reduce badge column from 120px to 80px in User voice cards, giving
  the text column 40px more space so long link chips (Mangomint learn
  — Express ↗) render without risk of clipping across browsers
- Change owner from Creator Kit to Ireen Havkin

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…overflow

The nested grid (lg:grid-cols-[220px_1fr] outer + md:grid-cols-[80px_1fr]
inner) left only ~238px for text+badges, causing chips and descriptions to
overflow. Stack header above cards with flex-col instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…vent overflow

lg breakpoint (~1024px) left only ~238px for the text/badge column when
nested inside the inner md:grid-cols-[80px_1fr]. Bumping to xl (1280px+)
gives the inner grid enough room; below xl the header stacks above the cards.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Preview

Built from cb4234e336996515a2391f021be4066fb17cdec2 with this branch's browser.js.

…or-research

Adds <!-- prettier-ignore --> before <script type="text/htmdx"> so the
formatter never indents the htmdx source (4+ spaces = Markdown code block,
which breaks component rendering). Also applies oxfmt's other changes:
self-closing <meta> tags and single-quote normalisation in the enhancer script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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