Skip to content

Fix content generation code review issues#142

Merged
denbec merged 1 commit intodenbec/automation-reviewfrom
denbec/fix-content-gen-review
Feb 13, 2026
Merged

Fix content generation code review issues#142
denbec merged 1 commit intodenbec/automation-reviewfrom
denbec/fix-content-gen-review

Conversation

@denbec
Copy link
Collaborator

@denbec denbec commented Feb 13, 2026

Address all code review points: remove unused prompt files, extract shared LLM utilities, remove fallback prompts and dangerous environment variable fallbacks, add Slack failure notifications with Directus links, handle content unapproval, fix asset regeneration to avoid broken references, and use Directus date-created for generated_at timestamps.

Changes

  • Remove unused directus-cms/prompts/ files
  • Extract callGemini, generateImageWithGemini, extractJson to shared/gemini.ts
  • Extract renderTemplate to shared/templateRenderer.ts
  • Remove fallback prompts; throw error if CMS prompts missing
  • Remove dangerous STORAGE_LOCATIONS fallback; throw if not configured
  • Add Slack notifications for content and asset generation failures with Directus links
  • Handle content unapproval to revert podcast status
  • Fix asset regeneration to clear podcast references before deleting
  • Use Directus date-created special for generated_at timestamps instead of manual timestamps

Address all code review points: remove unused prompt files, extract shared LLM utilities, remove fallback prompts and dangerous environment variable fallbacks, add Slack failure notifications with Directus links, handle content unapproval, fix asset regeneration to avoid broken references, and use Directus date-created for generated_at timestamps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 13, 2026

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

Project Deployment Actions Updated (UTC)
programmierbar-website Ready Ready Preview, Comment Feb 13, 2026 10:14am

Request Review

@denbec denbec merged commit 4a781d5 into denbec/automation-review Feb 13, 2026
3 checks passed
@denbec denbec deleted the denbec/fix-content-gen-review branch February 13, 2026 12:41
denbec added a commit that referenced this pull request Feb 26, 2026
* Switch speaker portal admin notifications to Slack (#140)

Replace email-based admin notifications with Slack messages when speakers submit their information. This aligns with the existing pattern used across other CMS hooks (deploy, publication, transcripts, etc.) where all admin notifications go through Slack. The message includes a direct link to the speaker record in Directus for easy access.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Add Slack notifications to member matching failures (#141)

* Add Slack notifications to member matching on failures

Member matching now alerts the team when:
- No speaker names are found in a transcript (transcript format issue)
- No members can be matched to speakers (missing database entries)
- A general error occurs during matching

Also added support for triggering on podcast creation (previously only on update), ensuring member matching works even when transcript_text is included at creation time. Fixed Jest config to resolve ESM .js imports to .ts source files.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* Use .ts import extension for postSlackMessage to match codebase convention

Removes the jest.config.ts moduleNameMapper change that was only needed
because the imports used .js extensions. All other files in the codebase
import postSlackMessage with .ts, so this aligns with that convention.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>

* Fix content generation code review issues (#142)

Address all code review points: remove unused prompt files, extract shared LLM utilities, remove fallback prompts and dangerous environment variable fallbacks, add Slack failure notifications with Directus links, handle content unapproval, fix asset regeneration to avoid broken references, and use Directus date-created for generated_at timestamps.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Consolidate Directus API access and reorganize types/schemas (#143)

Merge multiple token-based approaches into a single authenticated Directus composable (useAuthenticatedDirectus) to centralize CMS operations. Unify directusAdminToken + directusTicketToken into a single directusApiToken.

Fix race condition in webhook idempotency by restoring atomic filter-based updates. Extend type definitions to include missing speaker portal and ticket fields, removing unnecessary 'as any' casts. Move ticket Directus types to directus.ts and ticket checkout types to items.ts (deleted tickets.ts). Consolidate all validation schemas into a single schema.ts file (deleted ticketSchemas.ts).

Net reduction of 266 lines of code.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Refactor conference page to use internal ticketing system (#144)

Replace external Wix.com ticket links with internal /konferenzen/[slug]/tickets
route. Remove obsolete fields (tickets, tickets_url, tickets_on_sale) from
DirectusConferenceItem. Use ticketing_enabled flag and conference end_on date
to control ticket section visibility. Enable server-side ticketing_enabled guard
in checkout endpoint.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Refactor VAT rate to centralized constants and add VAT ID field (#145)

Centralizes the VAT rate (19%) into config.ts constants (VAT_RATE and VAT_RATE_PERCENT), adds an optional VAT ID input field to company billing info with proper schema validation, and refactors the checkout endpoint into typed helper functions for better maintainability.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Fix: Return 404 instead of 500 when conference not found in checkout endpoint (#147)

* Initial plan

* Fix: Return 404 when conference not found in create-checkout endpoint

Co-authored-by: denbec <193931+denbec@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: denbec <193931+denbec@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: denbec <193931+denbec@users.noreply.github.com>
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