-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
White Label: remove OFN banner from order confirmation emails when hide_ofn_navigation
is activated for the shop
#10744
Conversation
@kirstenalarsen I added screenshots before/after. Just one feedback if it looks right ;) Thanks! 🙏 |
b9c4d7a
to
49ae06e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, a nice simple addition built on top of the previous work.
class SubscriptionMailerPreview < ActionMailer::Preview | ||
def confirmation_email | ||
SubscriptionMailer.confirmation_email(Spree::Order.complete.last) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Putting back to 'in dev' because it doesn't need further review, but will need a rebase before it can be tested. |
49ae06e
to
47e2a0d
Compare
18683de
to
106a778
Compare
Does the email footer need adjustment as well? |
106a778
to
3f044a8
Compare
Hi @jibees, This is the order confirmation email of a white labelled enterprise next to the order confirmation screen of the same order: And this is the same for an order at a not-white-labelled enterprise: For easier comparison you can see that both emails are identical in term of the banner: I have tried this on staging UK and AU to exclude some mistake of mine. Both the same. Thanks! |
I (re)tested locally and works fine for me. Looks like something happens... I redeployed the PR on staging-uk, and wanted to test the latest confirmation email sent on the browser via URL: Will investigate... |
3f044a8
to
cdec3ab
Compare
I force pushed and give another try via semaphore. I tested URL, and 404 too. Then, I decided to deploy through ansible script via
But same conclusion, URL is not accessible. |
oops, mailer previews aren't not available on staging for sure... 🤦 |
5d8c33f
to
cdec3ab
Compare
Thanks a lot @drummer83. I did not use the right mail... I used the subscription email "This order was automatically placed for you, and it has now been finalised. ...." Should we also remove OFN banner on that one too @kirstenalarsen ? |
…d order Available on: `/rails/mailers/subscription_mailer/confirmation_email`
… label + add specs that test for the presence of the footer logo which is in the header (I know it's a bit contradictory)
Available on `/rails/mailers/order_mailer/confirm_email_for_customer`
1522bac
to
2336981
Compare
yes please @jibees ! |
Back in code review then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Hi @jibees, I compared some emails of a regular shopfront with a white-labelled one. Left: regular shopfront; Right: white-labelled shopfront; Subscriptions: Order created email is not white-labelled. ❌ Subscriptions: Order confirmed email is white-labelled. ✔️ Other email, like the order confirmation emails for enterprise owners and sign up emails are not affected and still not white-labelled. ✔️ I think we can merge this one as it is a big step forward without any regressions. Probably the 'order placed' email needs to be white-labelled as well!? @kirstenalarsen |
Yes I think merge this and create another issue for the other emails. Then
let's do the custom tab and I'll check the budget re. Completing these
emails. Can you give me an estimate on the new issue please @jbees?
…On Wed, 24 May 2023, 09:14 Konrad, ***@***.***> wrote:
Merged #10744
<#10744> into
master.
—
Reply to this email directly, view it on GitHub
<#10744 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWGXSAWC3LN6X6BEDPKRKLXHVAFHANCNFSM6AAAAAAXKVJPRI>
.
You are receiving this because you were mentioned.Message ID:
<openfoodfoundation/openfoodnetwork/pull/10744/issue_event/9321483003@
github.com>
|
white_label
as we want it to be soon removed. That's why this PR should not be merge until we completely remove thewhite_label
feature toggle.But this is ready to be reviewed.What? Why?
BEFORE
AFTER
What should we test?
As a super-admin, activate white_label feature toggle for the instance/admin/enterprises/ENTERPRISE_SLUG/edit#/white_label_panel
Release notes
Changelog Category: User facing changes