Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Saved template overrides never reach outgoing email

オープン
#279 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
api, backend, testing

調査の方向性

まず、送信されるメールの送信経路を追跡し、apps/web/src/app/api/templates/[slug]/route.ts での永続化と比較します。apps/web/src/app/settings/templates/page.tsx と、参照されている middleware.ts のコメントを使ってユーザー向けの参照を更新し、override を使った送信とデフォルト値を使った送信をカバーするテストを追加します。保存された override が件名と本文に反映され、削除するとパッケージに含まれるデフォルト値に戻り、削除された issue 番号が apps/web またはテストスイートに残っていなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

area: product bug

Template overrides save and preview correctly — PUT /api/templates/[slug] persists through prisma.templateOverride.upsert (apps/web/src/app/api/templates/[slug]/route.ts:125), and the editor previews the unsaved draft (apps/web/src/app/settings/templates/page.tsx:96). What a saved override does not do is reach an outgoing email: the send path still renders the packaged defaults, so an author edits a template, sees the change in the preview, saves it, and every email that goes out is unchanged.

The UI is honest about it today — the save toast and the page description both say so — but they point readers at an issue that no longer exists, so the explanation dead-ends at a 404.

What to do

  • Make the email send path read TemplateOverride and fall back to the packaged default when no override exists
  • Re-point the two user-facing strings at this issue (page.tsx:138, page.tsx:177)
  • Re-point the eleven test docblocks and the middleware.ts:14 comment that reference the removed issues
  • Drop "(preview only)" from the template list badge at page.tsx:221 once sending honours overrides

Acceptance

  • A saved override changes the subject and body of the next outgoing email of that type
  • Removing the override restores the packaged default
  • A test covers override → send, and default → send
  • No string in apps/web or the test suite points at a removed issue number
主要言語
TypeScript
スター
14
フォーク
6
平均マージ
6日 15時間
マージ済み PR(30日)
6

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CopilotKit/outpost のほかの issue

CopilotKit/outpost の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。