Skip to content

Show brand page related equipment#551

Closed
Codex wants to merge 2 commits intomasterfrom
codex/show-related-items-on-brand-page
Closed

Show brand page related equipment#551
Codex wants to merge 2 commits intomasterfrom
codex/show-related-items-on-brand-page

Conversation

@Codex
Copy link
Copy Markdown

@Codex Codex AI commented Feb 4, 2026

Brand pages lacked related equipment context, making it hard to see items for a brand. This change fetches brand-scoped equipment and renders it alongside brand details.

  • API: Added optional brandId query filter to /api/equipment/items to return only equipment for the brand.
  • UI: Brand detail page now fetches related equipment and displays it with existing table/cards, with error and empty states.

Example (brand filter on API):

const { data } = await useFetch('/api/equipment/items', {
  query: { brandId },
  transform: ({ data }) => data.map((item) => ({
    id: item.id.toString(),
    name: item.name,
    weight: item.weight
  }))
})

Model used: GPT-5 (Codex)

Original prompt

This section details on the original issue you should resolve

<issue_title>Show related items on brand page</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @codex[agent] in this section)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 4, 2026

🎉 Deployed to Cloudflare!

Co-authored-by: Perdolique <161577745+Perdolique@users.noreply.github.com>
@Codex Codex AI changed the title [WIP] Add related items feature to brand page Show related equipment on brand detail pages Feb 4, 2026
@Codex Codex AI requested a review from Perdolique February 4, 2026 18:10
@Codex Codex AI changed the title Show related equipment on brand detail pages Show brand page related equipment Feb 4, 2026
@Perdolique Perdolique closed this Feb 4, 2026
@Perdolique Perdolique deleted the codex/show-related-items-on-brand-page branch February 4, 2026 18:19
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.

Show related items on brand page

2 participants