Skip to content

Conversation

@Jan0707
Copy link
Contributor

@Jan0707 Jan0707 commented Jan 20, 2026

This PR adds a new feature to our website:

  • A new data model to store ratings for items (meetups, talks, etc - but for now only used for podcasts)
  • A simple component to rate podcasts
  • A middleware that creates ratings based on simple GET calls
  • An adjustment to the show notes creation in Directus (for Buzzsprout -> Spotify/iTunes) so that the rating links (handled by our middleware) are also added to the show notes.

@Jan0707 Jan0707 requested a review from Copilot January 20, 2026 13:57
@Jan0707 Jan0707 self-assigned this Jan 20, 2026
@Jan0707 Jan0707 added website Issues in relation to the website/nuxt app new feature All issues that introduce new features backend All issues related to our CMS / api backend labels Jan 20, 2026
@vercel
Copy link

vercel bot commented Jan 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
programmierbar-website Ready Ready Preview, Comment Jan 20, 2026 3:12pm

Request Review

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 podcast rating feature that allows users to provide thumbs-up or thumbs-down feedback on podcast episodes. The implementation includes a new data model for storing ratings, a UI component for collecting user feedback, and middleware to handle rating submissions via simple GET requests. The feature also integrates with Buzzsprout to add rating links to podcast show notes.

Changes:

  • Added a new ratings collection in Directus with many-to-any relationship support for rating different content types
  • Created a PodcastRating Vue component and flash message system for user feedback
  • Implemented server middleware to handle rating submissions via GET requests and redirect users
  • Updated Buzzsprout show notes to include rating links

Reviewed changes

Copilot reviewed 10 out of 13 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
nuxt-app/types/directus.ts Added DirectusRatingItem type definition
nuxt-app/services/directus.ts Added ratings collection to Collections type
nuxt-app/server/middleware/rating.ts New middleware to handle rating GET requests and create ratings
nuxt-app/server/middleware/discord.ts Removed debug console.log statement
nuxt-app/server/middleware/conference.ts Removed debug console.log statement
nuxt-app/pages/podcast/[slug].vue Added PodcastRating component to podcast page
nuxt-app/composables/useFlashMessage.ts New composable for managing flash messages via cookies
nuxt-app/composables/useDirectus.ts Added createRating function to persist ratings
nuxt-app/components/PodcastRating.vue New component for displaying rating buttons and feedback
nuxt-app/assets/icons/thumb-up.svg Thumbs up icon for positive ratings
nuxt-app/assets/icons/thumb-down.svg Thumbs down icon for negative ratings
directus-cms/schema.json Added ratings and ratings_target collections with schema definitions
directus-cms/extensions/.../buzzsprout.ts Added rating links to podcast show notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…le/src/buzzsprout/handlers/buzzsprout.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 20, 2026

@Jan0707 I've opened a new pull request, #106, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Jan 20, 2026

@Jan0707 I've opened a new pull request, #107, to work on those changes. Once the pull request is ready, I'll request review from you.

Jan0707 and others added 2 commits January 20, 2026 15:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 20, 2026

@Jan0707 I've opened a new pull request, #108, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 20, 2026 14:16
Co-authored-by: Jan0707 <1663330+Jan0707@users.noreply.github.com>
Co-authored-by: Jan0707 <1663330+Jan0707@users.noreply.github.com>
…r-one

Replace type suppression with proper type narrowing in rating middleware
@Jan0707 Jan0707 merged commit 9f9445b into main Jan 20, 2026
3 checks passed
@Jan0707 Jan0707 deleted the ratings branch January 20, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend All issues related to our CMS / api backend new feature All issues that introduce new features website Issues in relation to the website/nuxt app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants