Repository navigation
feat(notify): mail a link for every new feedback - #74
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
FeedbackReceivedwas dispatched but had no listener, so new feedback was only seen when someone ranfeedback:list. One request stayed open for a month.How
App\Listeners\SendFeedbackNotificationbuilds the link inside the widget's request (public host) and queuesApp\Mail\FeedbackReceivedMail.FEEDBACK_NOTIFY_MAILdefaults toinfo@codebar.ch; an empty value sends nothing.Needed on production before mails arrive
MAIL_MAILER=logtoday, 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