Jason Zimdars
fdf02c8fe2
Don't allow zooming inside PWAs
2025-11-17 13:47:57 -06:00
Jason Zimdars
561542922c
Target Safari to enforce min font size
...
Prevents zooming the viewport on Mobile Safari
2025-11-17 13:47:37 -06:00
Kevin McConnell
f378f7c122
Use non-numeric user ID in JS
2025-11-17 17:00:58 +00:00
Stanko K.R.
0f7b1312eb
Fix tests broken by optimizations
2025-11-17 17:45:24 +01:00
Stanko K.R.
0b8c51c2e9
Preload cards for columns
2025-11-17 16:16:19 +01:00
Mike Dalessio
2cb050af33
Missed a few changes in a rebase somewhere
...
This changeset now matches plan-b commit 609a0041
2025-11-17 09:19:46 -05:00
Mike Dalessio
3b09a92193
rubocop: style fixes
2025-11-17 09:12:41 -05:00
Stanko K.R.
e539754e2c
Preload cards
2025-11-17 09:12:41 -05:00
Stanko K.R.
ee85c25672
Include association used to render events
2025-11-17 09:12:41 -05:00
Kevin McConnell
a764a08863
Use card number as ID when dragging
...
Because the endpoints are `CardScoped` by number, we should also use the
number here for consistency.
2025-11-17 09:12:41 -05:00
Mike Dalessio
f5305b2fe6
Use Card number as the model param
...
instead of the UUID `id`
2025-11-17 09:12:41 -05:00
Mike Dalessio
3ed36004e4
Use script_name and url helpers
...
instead of string concatenation
2025-11-17 09:12:41 -05:00
Mike Dalessio
29aa0f7fea
Make sure notifications jobs don't need Current.account set
2025-11-17 09:12:41 -05:00
Mike Dalessio
4976e4a7bb
Update Card::Entropic so its scopes work cross-accounts
...
with an eye towards making the postpone_all_due recurring job work efficiently.
2025-11-17 09:12:41 -05:00
Mike Dalessio
e3d86bb21e
Clean up some spots where "current account" is ambiguous
...
Primarily this is in tests (which were caught by temporarily
introducing acts_as_tenant and enabling safety checks), but notably
action cable connections were not working properly, and that's now
fixed.
2025-11-17 09:12:41 -05:00
Kevin McConnell
9615753e1f
Add routing header to see who served request
2025-11-17 09:12:41 -05:00
Mike Dalessio
2c765fa03f
rubocop: style fixes
2025-11-17 09:12:41 -05:00
Stanko K.R.
15eeba82f5
Scope model methods by account
2025-11-17 09:12:41 -05:00
Stanko K.R.
a0251255a7
Rename IdenityMailer to UserMailer
2025-11-17 09:12:41 -05:00
Stanko K.R.
e0693de7c3
Scope jobs and controllers by account
2025-11-17 09:12:41 -05:00
Donal McBreen
28efe28f24
Replace Search::Index with Search::Records
...
Lean on ActiveRecord models for searching and strip out the raw SQL.
Replaces the search_index_* tables with sharded search_records_* tables
as that allows us to use a Search::Record model name.
A Class is dynamically created for each record table shard so that we
and we can access it via the Search::Record.for_account(account_id)
method.
2025-11-17 09:12:40 -05:00
Mike Dalessio
fe6df7085f
Finish the rollout of account_id to all core data models
...
Schema:
- add account_id to tables it was missing from
- make account_id a required column everywhere
- add [account_id] indexes, or add `account_id` to existing indices
Models:
- add `belongs_to :account` to all models (default to using a domain
model's account whenever possible)
- add account_id in all the necessary fixtures
- add account_id to insert_all hashes
- pass account_id to a few initialize calls
Miscellaneous:
- update the import script to set account_id
Note that I'm not adding account_id to the join tables primarily
because I couldn't think of an easy way to populate it without making
it a full Join model, and that was more work than I have time to take
on right now.
2025-11-17 09:12:40 -05:00
Mike Dalessio
5a7f08067a
Move setting Current.account into the middleware
...
so that code called from the Rails controllers can use Current.account
2025-11-17 09:12:40 -05:00
Stanko K.R.
56c41d45eb
Reinstate email changes
2025-11-17 09:12:40 -05:00
Mike Dalessio
039e4a0bed
Remove dead code (after deleting Membership)
2025-11-17 09:12:40 -05:00
Stanko K.R.
4f4bf5bee1
Fix potential crash due to execution of default blocks
2025-11-17 09:12:40 -05:00
Stanko K.R.
34d83aaa7c
Fix tests after the removal of memberships
2025-11-17 09:12:40 -05:00
Stanko K.R.
8fa9566c07
Update sign up
2025-11-17 09:12:40 -05:00
Stanko K.R.
edf837fed3
Drop memberships
2025-11-17 09:12:39 -05:00
Stanko K.R.
5c6b91ef77
Fix incorrect var setting
2025-11-17 09:12:36 -05:00
Mike Dalessio
6df681991f
rubocop: fix style warnings
2025-11-17 09:12:36 -05:00
Donal McBreen
7fef6ca9b9
Use the card number in the results view
2025-11-17 09:12:36 -05:00
Donal McBreen
436d2b525b
Set creator_id as a UUID
2025-11-17 09:12:36 -05:00
Donal McBreen
b8baeadf66
Use a deterministic string hash
2025-11-17 09:12:36 -05:00
Donal McBreen
97444f2d32
Set up connects_to before id attribute
2025-11-17 09:12:35 -05:00
Donal McBreen
f4729577b6
Use uuids in the search_index tables too
2025-11-17 09:12:35 -05:00
Donal McBreen
fc56ad9d7c
Combine uuid-old and uuid branch changes
...
- Switch to binary 16 for UUID keys
- Remove AccountScopedRecord base class, all model use binary uuids now
- Fix the search sql to serialize uuids properly
- Patch the MySQL schema dumper to output binary lengths
2025-11-17 09:12:34 -05:00
Donal McBreen
05a7ec84e2
Make search tables work with UUID references
2025-11-17 09:12:31 -05:00
Kevin McConnell
a81986816f
Move test-related UUID helper
2025-11-17 09:12:31 -05:00
Kevin McConnell
e9e68646e3
Fix this test without changing app code
2025-11-17 09:12:31 -05:00
Kevin McConnell
63f8a9af78
Deterministic fixture UUIDs
2025-11-17 09:12:31 -05:00
Kevin McConnell
1959e15f7e
Fix more tests
...
These are mainly because the fixture's UUIDs are deterministic rather
than time-sortable, and more places where we need to correct the fixture
IDs as well.
2025-11-17 09:12:31 -05:00
Kevin McConnell
6c04b56f4b
Compact the UUIDs to base36
2025-11-17 09:12:31 -05:00
Mike Dalessio
e4011ef211
Update primary keys on customer data to UUIDs
...
- schema changes to primary and foreign keys
- fixture changes
- customer data models subclass AccountScopedRecord
- import script updated
2025-11-17 09:12:30 -05:00
Kevin McConnell
ab35c730d0
Scope account.cards
2025-11-17 09:12:25 -05:00
Kevin McConnell
d7fe54b7cf
Scope account
2025-11-17 09:12:24 -05:00
Stanko K.R.
71a332bb08
Remove dead code
2025-11-17 09:12:17 -05:00
Stanko K.R.
db172bae4e
Simplify authorization
2025-11-17 09:12:17 -05:00
Stanko K.R.
28a6dfce01
Simplify user deactivation
2025-11-17 09:12:17 -05:00
Stanko K.R.
6858b96619
Simplify join codes
2025-11-17 09:12:17 -05:00