Stanko K.R.
46d80f2ca2
Serve system user avatar as an asset
2025-11-24 13:16:14 +01:00
Stanko K.R.
e85c5736c9
Render system user avatars using redirects
2025-11-24 12:05:32 +01:00
Mike Dalessio
4dc28943da
Don't let cloudflare cache avatars
...
The issue here is that anyone else who views my avatar will cause it
to be cached, and then I can't easily bust the cache if I change my
avatar.
2025-11-22 09:48:28 -05:00
Mike Dalessio
64bac96545
User avatar responses have cache-control "public"
...
ref: https://app.fizzy.do/5986089/cards/3125
2025-11-21 16:11:39 -05:00
Mike Dalessio
bcb43305b6
Improve avatar image handling
...
- redirect avatar image requests to the rails_blob_url, instead of
streaming them through the web app
- use a thumbnail variant for avatar images
- only put avatar initials behind the stale? check (not the image
redirect, which would result in browsers rendering broken images when
an avatar is changed, until max-age expires)
2025-11-21 15:16:46 -05:00
Stanko K.R.
fe909d6dc5
Disable stale while revalidate for own avatar
...
Locally, having stale_while_revalidate works great, but in production when we are behind CloudFlare, this results in an old image being shown after you upload a new one
See: https://app.fizzy.do/5986089/cards/2978
2025-11-21 19:26:38 +01:00
Stanko K.R.
e0693de7c3
Scope jobs and controllers by account
2025-11-17 09:12:41 -05:00
Stanko K.R.
56c41d45eb
Reinstate email changes
2025-11-17 09:12:40 -05:00
Stanko K.R.
6858b96619
Simplify join codes
2025-11-17 09:12:17 -05:00
Mike Dalessio
905cf759d8
test: fixing or skipping more tests
2025-11-17 09:11:47 -05:00
Jorge Manrubia
2bb90eab13
Use the sole collection as the root for a better onboarding experience for new accounts
2025-11-04 17:09:35 +01:00
David Heinemeier Hansson
c25fcc087a
Test avatars controller
2025-11-03 14:21:53 +01:00
David Heinemeier Hansson
43069b1ea4
Extract Users::JoinsController from overloaded UsersController
...
Good code smell is when the before_action callbacks stack up but can't
be shared across actions
2025-11-02 17:49:25 +01:00
David Heinemeier Hansson
bced7405df
Extract events loading from overloaded UsersController
2025-11-02 17:31:28 +01:00
Jason Zimdars
f6d8d3021d
Add controller test
2025-07-21 20:06:41 -05:00
David Heinemeier Hansson
dbf61f4fc3
Use _path in all cases where we are not potentially changing the domain
2025-04-13 08:17:36 +02:00
David Heinemeier Hansson
a106b1b6a7
Join the two users controllers but split out role setting
2025-04-12 20:30:47 +02:00