Skip to content

feat(notify): mail a link for every new feedback - #74

Merged
StanBarrows merged 4 commits into
productionfrom
main
Dec 4, 2026
Merged

StanBarrows merged 4 commits into
productionfrom
main

Conversation

@StanBarrows

@StanBarrows StanBarrows commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What

Every new feedback is mailed to the addresses in FEEDBACK_NOTIFY_MAIL (comma separated): project, message, sender, page and an Open feedback button. The button is a team link, valid for 30 days, that opens the feedback page and can mark the entry as completed. Replying to the mail answers the sender.

Why

FeedbackReceived was dispatched but had no listener, so new feedback was only seen when someone ran feedback:list. One request stayed open for a month.

How

  • App\Listeners\SendFeedbackNotification builds the link inside the widget's request (public host) and queues App\Mail\FeedbackReceivedMail.
  • A notification that fails is reported and never fails the widget's request.
  • FEEDBACK_NOTIFY_MAIL defaults to info@codebar.ch; an empty value sends nothing.

Needed on production before mails arrive

  • A real mailer: production runs MAIL_MAILER=log today, so mails would only be written to the log. No Postmark transport package is installed; Postmark over SMTP (MAIL_MAILER=smtp) works without a new dependency.

Checks

Pint, Larastan and Pest (412 tests) pass locally. Coverage was not run locally (no coverage driver).

🤖 Generated with Claude Code

Sebastian BURGIN-FIX (ext) and others added 4 commits December 4, 2026 12:21
Nobody was told about new feedback: FeedbackReceived was dispatched but had
no listener, so entries were only seen when someone ran feedback:list (one
request stayed open for a month).

FEEDBACK_NOTIFY_MAIL (comma separated) now gets a queued mail per new
feedback with project, message, sender, page and a team link that is valid
for 30 days and can complete the entry. Reply-to is the sender. The link is
built inside the widget's request so it carries the public host. A failing
notification is reported and does not fail the request. Empty (the default)
sends nothing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
FEEDBACK_NOTIFY_MAIL now defaults to info@codebar.ch, so the team is told
about new feedback without setting a variable on the environment. Other
installations set their own addresses; an empty value still sends nothing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The feedback notification needs a real mailer and the fleet sends through
Postmark, but this app had no transport for it: MAIL_MAILER=postmark failed
on the missing symfony/postmark-mailer. Adds symfony/postmark-mailer ^8.2
and symfony/http-client ^8.2 (composer require, as in the other apps).

Production still runs MAIL_MAILER=log without a POSTMARK_TOKEN; both have
to be set on the environment before mails are delivered.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@StanBarrows
StanBarrows merged commit 082c057 into production Dec 4, 2026
14 checks passed
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