Skip to content

feat: stories for the blog's components - #16

Merged
roble merged 2 commits into
mainfrom
dev-2026-11-27
Nov 27, 2026
Merged

roble merged 2 commits into
mainfrom
dev-2026-11-27

Conversation

@roble

@roble roble commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Release from dev. Expected: v3.5.0 (from v3.4.0). Merge with a merge commit.

Release after core v3.2.0 and auth (CI installs auth at its released version).

Changes

  • feat: stories for PostCard, CategoryNav, PostMeta and LatestPostsSection

Checks

Pint passes. Night run 2026-11-26 (fresh installs, Vue and React, PHPUnit and Playwright): no new failures.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Added visual component examples and checks for blog category navigation, latest posts, post cards, and post metadata across React and Vue.
    • Covered selected and empty category states, posts with optional details omitted, and author metadata with or without a photo or author name.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Storybook stories were added for blog category navigation, post cards, post metadata, and the latest posts section in React and Vue. The stories cover populated, selected, empty, and optional-content states.

Changes: Blog component Storybook stories

Layer / File(s) Summary
Category navigation states
resources/js/react/components/CategoryNav.stories.tsx, resources/js/vue/components/CategoryNav.stories.ts
Stories check that “All” is active by default, “Product” is active when selected, and navigation is absent when the category list is empty.
Post cards and metadata
resources/js/react/components/PostCard.stories.tsx, resources/js/vue/components/PostCard.stories.ts, resources/js/react/components/PostMeta.stories.tsx, resources/js/vue/components/PostMeta.stories.ts
Stories check populated and minimal post cards, author and date display, and the states where an author photo or author is absent.
Latest posts section
resources/js/react/components/LatestPostsSection.stories.tsx, resources/js/vue/components/LatestPostsSection.stories.ts
Stories use three sample posts and check the section heading, article count, and “View all” link.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · up to a7d06

This PR adds Storybook stories for the blog's category navigation, post cards, post metadata and latest-posts section in React and Vue. It does not change runtime behavior for users. The main remaining uncertainty is whether the generated Storybook preview provides the blog routes the category stories need. That would affect only story rendering in development, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat: stories for the blog's components" matches the main change. The PR adds Storybook stories for four blog components (PostCard, CategoryNav, PostMeta, LatestPostsSection) in both React …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "feat: stories for the blog's components" matches the main change. The PR adds Storybook stories for four blog components (PostCard, CategoryNav, PostMeta, LatestPostsSection) in both React and Vue. The objectives and commit messages confirm this scope. The title is short and specific, and it uses the conventional feat: prefix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e5616cf2-7350-4b77-b2b9-49730b21d51b
Commits

Reviewing files that changed from the base of the PR and between 5f41529 and a7d0627.

Files selected for processing: 8

  • resources/js/react/components/CategoryNav.stories.tsx
  • resources/js/react/components/LatestPostsSection.stories.tsx
  • resources/js/react/components/PostCard.stories.tsx
  • resources/js/react/components/PostMeta.stories.tsx
  • resources/js/vue/components/CategoryNav.stories.ts
  • resources/js/vue/components/LatestPostsSection.stories.ts
  • resources/js/vue/components/PostCard.stories.ts
  • resources/js/vue/components/PostMeta.stories.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
84.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@roble

roble commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

SonarCloud verdict: the only failing condition is new-code duplication. Reliability, security, maintainability and hotspots all pass. The duplicates are the Vue and React stories, which mirror each other on purpose: each stack has its own file, and an app installs only one stack. Not a defect. (Not a required check.)

🤖 Generated with Claude Code

@roble
roble merged commit 2e53ca3 into main Nov 27, 2026
16 of 17 checks passed
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