Repository navigation
[stack] feat(sharing): use the new email blocks for share and note mails - #65220
Conversation
bd68bea to
311a3a4
Compare
311a3a4 to
2477813
Compare
98a75c8 to
4e2cfd0
Compare
4e2cfd0 to
038df60
Compare
|
|
||
| if ($note !== '') { | ||
| $emailTemplate->addBodyText(htmlspecialchars($note), $note); | ||
| $emailTemplate->addBodyNote($note, $l->t('Note from %s', [$initiatorDisplayName])); |
There was a problem hiding this comment.
It looks like every call to addBodyNote does this translation/concatenation, should it be done inside addBodyNote and it takes an author parameter instead?
Same kind of question for EmailDetails and Valid until.
There was a problem hiding this comment.
Hmm, I kept them in the callers on purpose: the template doesn't know the recipient's language (or locale for the date), the providers do. But you're right about the repetition, I'll move both into a helper in DefaultShareProvider that sharebymail reuses.
There was a problem hiding this comment.
Update: with only the label now just 'Note' (per Jan's review), the repeated part shrank to a single t('Note') call, so I skipped the helper. Happy to add it if you still want it
This comment was marked as resolved.
This comment was marked as resolved.
|
@skjnldsv ok, then do we wanna instead remove the label "Note from [Name]", or reduce it to simply "Note"? And the "and wants to add" can definitely go from the text. :) |
Both are fine to me ! |
User share mails now show the sharer, the note in a note box and a details card with the file name and its expiration date. Note mails show the sharer and the note box, and the upload reminder shows the folder and its expiration date in a details card. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
038df60 to
10ea9a1
Compare
|
Went with "Note" as the label and dropped "and wants to add", in all share mails including share by mail 👍 |
Summary
Builds on #65195 and gives the other sharing mails the same treatment as share-by-mail.
New strings: "Note", "Valid until".
Browser renders of the real code with sample data, after includes the restyle from #65194. Not checked in mail clients.
Checklist
AI (if applicable)
👾 This pull request was assisted by Claude Code, commits carry an
Assisted-bytrailer.