Skip to content

feat(evo-marko): evo-star-rating#633

Merged
LuLaValva merged 4 commits intomainfrom
evo-star-rating
Apr 23, 2026
Merged

feat(evo-marko): evo-star-rating#633
LuLaValva merged 4 commits intomainfrom
evo-star-rating

Conversation

@LuLaValva
Copy link
Copy Markdown
Member

  • Add <evo-star-rating> component

Differences from <ebay-star-rating>

  • a11yText is required with TS
  • Receives an integer value (2.5) instead of our special data attribute value (2-5)
    • This is more future proof, in case we ever support something like fractional stars

Copilot AI review requested due to automatic review settings April 21, 2026 18:52
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 21, 2026

🦋 Changeset detected

Latest commit: 8ddba7d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@evo-web/marko Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new evo-star-rating tag to the evo-marko package, using Skin’s star-rating styles and providing Storybook + SSR/browser tests for coverage.

Changes:

  • Introduces the <evo-star-rating> Marko component with valuedata-stars conversion (including half-star support).
  • Adds Storybook stories plus SSR snapshot tests and browser DOM/a11y assertions.
  • Wires up component styling via @ebay/skin/star-rating and includes usage examples + README.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/evo-marko/src/tags/evo-star-rating/index.marko Implements the component markup/API and valuedata-stars conversion.
packages/evo-marko/src/tags/evo-star-rating/style.ts Imports Skin star-rating styles for the new tag.
packages/evo-marko/src/tags/evo-star-rating/star-rating.stories.ts Adds Storybook docs/controls and example stories.
packages/evo-marko/src/tags/evo-star-rating/test/test.server.ts Adds SSR snapshot coverage for stories.
packages/evo-marko/src/tags/evo-star-rating/test/test.browser.ts Adds browser assertions for role/attributes/icons.
packages/evo-marko/src/tags/evo-star-rating/examples/default.marko Provides a minimal example wrapper for Storybook.
packages/evo-marko/src/tags/evo-star-rating/examples/all-values.marko Demonstrates all star values (0–5, including halves).
packages/evo-marko/src/tags/evo-star-rating/README.md Documents the new component and links to Storybook/examples.

Comment thread packages/evo-marko/src/tags/evo-star-rating/index.marko Outdated
Comment thread packages/evo-marko/src/tags/evo-star-rating/test/test.server.ts Outdated
Comment thread packages/evo-marko/src/tags/evo-star-rating/test/test.browser.ts Outdated
Comment thread packages/evo-marko/src/tags/evo-star-rating/star-rating.stories.ts Outdated
Copy link
Copy Markdown
Contributor

@saiponnada saiponnada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor knit.

Comment thread packages/evo-marko/src/tags/evo-star-rating/index.marko Outdated
Copy link
Copy Markdown
Contributor

@saiponnada saiponnada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@LuLaValva LuLaValva merged commit 30b11ec into main Apr 23, 2026
3 checks passed
@LuLaValva LuLaValva deleted the evo-star-rating branch April 23, 2026 17:48
@github-actions github-actions Bot mentioned this pull request Apr 23, 2026
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.

3 participants