5
11
Fork
You've already forked tomato
1

Add org logo to display on site receipts #124

Merged
edwardloveall merged 1 commit from el-org-logo-receipt into main 2026年03月24日 15:29:52 +01:00

It's nice to show a logo when we send receipts to sites. This configures active
storage to use (S3 compatible) Backblaze B2 storage to store these attachments.
Technically, active storage uses background jobs to process variants, but we
don't have a background job processor. In my experimentation, variants can also
be processed on the fly. Because we have such a tiny use case here (one logo per
org) I'm fine with that.

I picked the ENV vars based on vars AWS documents in their ruby sdk:

https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MachineLearning/Client.html#initialize-instance_method

Todo

  • create prod b2 bucket and application key
  • add env vars to prod
It's nice to show a logo when we send receipts to sites. This configures active storage to use (S3 compatible) Backblaze B2 storage to store these attachments. Technically, active storage uses background jobs to process variants, but we don't have a background job processor. In my experimentation, variants can also be processed on the fly. Because we have such a tiny use case here (one logo per org) I'm fine with that. I picked the ENV vars based on vars AWS documents in their ruby sdk: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MachineLearning/Client.html#initialize-instance_method ## Todo - [x] create prod b2 bucket and application key - [x] add env vars to prod
edwardloveall force-pushed el-org-logo-receipt from 0a3cda5144
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to fb5141527f
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年03月23日 21:26:21 +01:00
Compare
jsilasbailey left a comment
Copy link

Agree that the in process resizing is fine based on the scope of usage here, everything else seems pretty straight forward

Agree that the in process resizing is fine based on the scope of usage here, everything else seems pretty straight forward
edwardloveall force-pushed el-org-logo-receipt from fb5141527f
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 47829df46b
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年03月24日 14:53:19 +01:00
Compare
edwardloveall changed target branch from el-better-site-receipts to main 2026年03月24日 15:22:51 +01:00
edwardloveall deleted branch el-org-logo-receipt 2026年03月24日 15:29:53 +01:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!124
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-org-logo-receipt"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?