Skip to content

feat: add VBreadcrumb#439

Open
timothejoubert wants to merge 24 commits intomainfrom
feature/add-breadcrumb
Open

feat: add VBreadcrumb#439
timothejoubert wants to merge 24 commits intomainfrom
feature/add-breadcrumb

Conversation

@timothejoubert
Copy link
Contributor

No description provided.

@timothejoubert timothejoubert marked this pull request as draft September 4, 2025 10:34
@timothejoubert timothejoubert marked this pull request as ready for review September 4, 2025 13:02
Copy link
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

This PR introduces a new VBreadcrumb component along with supporting utilities for handling breadcrumb navigation in a Vue/Nuxt application. The component integrates with Roadiz CMS and provides structured data support for SEO.

  • Adds a reusable VBreadcrumb component with styling and accessibility features
  • Creates a composable for extracting breadcrumb data from Roadiz web responses
  • Implements JSON-LD structured data generation for breadcrumbs

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/utils/json-ld.ts Utility functions for cleaning and generating JSON-LD structured data
app/composables/use-roadiz-breadcrumb.ts Composable for extracting breadcrumb items from Roadiz web responses
app/components/organisms/VBreadcrumb/VBreadcrumb.vue Main breadcrumb component with structured data and accessibility features
app/components/organisms/VBreadcrumb/*.stories.vue Storybook examples demonstrating different breadcrumb scenarios
app/assets/stories/fixtures/web-responses/sub-page.json Test fixture data for breadcrumb stories

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}
})

const breadcrumbItems = computed(() => {
Copy link
Member

Choose a reason for hiding this comment

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

the API seems weird to me. IMO the composable should only return items, and optionaly use home and current item. Without looking at the code, I cannot understand the difference between breadcrumbItems and allItems.
Maybe it could be have options to the composable like { useHome?: boolean, useCurrentPage?: boolean}

@Illawind Illawind linked an issue Sep 11, 2025 that may be closed by this pull request
@timothejoubert timothejoubert marked this pull request as draft September 19, 2025 12:55
@timothejoubert timothejoubert self-assigned this Feb 19, 2026
@timothejoubert timothejoubert marked this pull request as ready for review February 24, 2026 08:59
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.

Roadiz: add breadcrumbs component

4 participants