Jorge Manrubia
766cde4775
Tidy up test
2025-12-19 15:15:00 +01:00
Mike Dalessio
28250b340c
Move the :fatal log setting into the SaaS config
...
This should only be set if the app is using the
rails-structured-logging gem, which means it should only be set in the
SAAS config. I think this is just something we missed in one of the
decoupling exercises we did.
2025-12-19 09:09:40 -05:00
Jorge Manrubia
5ab6b1299e
Restoring kamal secrets we lost when moving back to Fizzy
2025-12-19 10:49:16 +01:00
Jason Zimdars
dd59771c94
Use current plan because you might be on the extra storage plan
2025-12-18 07:25:20 -06:00
Jorge Manrubia
b44b7ba992
Add method to locate plans by the stripe price id
2025-12-18 10:05:13 +01:00
Jorge Manrubia
d9ce1577c0
Fix upgrade/downgrade buttons
...
- Remove old buttons I had added before the UI work.
- Fix: make new upgrade button use the dedicated action.
- Add symmetric downgrade button.
2025-12-18 10:05:13 +01:00
Jorge Manrubia
7bf701095c
Fix tests after the UI/copy changes
2025-12-18 10:05:13 +01:00
Jorge Manrubia
0f9d1df31b
Format
2025-12-18 10:05:13 +01:00
Jason Zimdars
8bb59f507b
Cherry-pick changes in b87ae1494a
2025-12-18 10:05:13 +01:00
Jason Zimdars
d8b3485812
Copy edits for limit notices
2025-12-18 10:04:15 +01:00
Jason Zimdars
b1a65bd698
Consistency
2025-12-18 10:04:15 +01:00
Jason Zimdars
cfd2033d15
Design paid plan screen
2025-12-18 10:04:15 +01:00
Jason Zimdars
95bfc40392
Tweak plan name
2025-12-18 10:04:15 +01:00
Jason Zimdars
5f4330cbcc
Update free plan partial to include storage limits
2025-12-18 10:04:15 +01:00
Jorge Manrubia
b326f78d02
More idiomatic
2025-12-18 10:04:15 +01:00
Jorge Manrubia
3b99aa5dcf
Remove unused method
2025-12-18 10:04:15 +01:00
Jorge Manrubia
00cab8ad7a
Add tests for subscription-related messaging
2025-12-18 10:04:15 +01:00
Jorge Manrubia
4e6274d59a
Consider storage when preventing backend card creation and publishing too
2025-12-18 10:04:15 +01:00
Jorge Manrubia
68cec74436
Extract parent class, validate plans can be downgraded/upgraded
2025-12-18 10:04:15 +01:00
Jorge Manrubia
c56dbb5f1e
Add upgrade/downgrade options
2025-12-18 10:04:15 +01:00
Jorge Manrubia
9c8c56cdb8
Comped plans use the extra storage variant
2025-12-18 10:04:15 +01:00
Jorge Manrubia
61c2277362
Place nearing variant above for consistency
2025-12-18 10:04:15 +01:00
Jorge Manrubia
fc2848ea89
Initial storage notices
2025-12-18 10:04:15 +01:00
Jorge Manrubia
823cf9fbb9
Add some methods to deal with storage limits
2025-12-18 10:04:15 +01:00
Jorge Manrubia
8205823588
Add button to buy extra-storage subscriptions
2025-12-18 10:04:15 +01:00
Jorge Manrubia
a1a67c65f5
Extract partials
2025-12-18 10:04:15 +01:00
Jorge Manrubia
611e1cc97e
Add additional plan for extra storage
2025-12-18 10:04:15 +01:00
Mike Dalessio
605f4ed2a4
Move deploy broadcast to the saas gem
2025-12-17 12:46:00 -05:00
Andy Smith
caefa72748
Remove testing logic
2025-12-17 11:26:59 -06:00
Andy Smith
b87ae1494a
Better upgrde footer on mobile
2025-12-17 11:26:37 -06:00
Andy Smith
2956ea3f90
Fix divider above subscription footer
2025-12-17 11:07:38 -06:00
Jeremy Daer
c691d39ecf
Integrate fizzy-saas as vendored gem at saas/
...
- Update Gemfile.saas to use path: "saas" instead of GitHub source
- Update config/database.yml to reference local saas/ directory
- Update bin/setup to source saas/bin/setup directly
- Remove redundant dotfiles (ruby-version, gitignore, rubocop, github workflows)
- Add saas/db exclusions to root rubocop config
2025-12-16 12:25:22 -08:00
Jorge Manrubia
3c197debd2
Format
2025-12-16 12:00:46 +01:00
Jorge Manrubia
5b2fa6b74a
Remove nested if
2025-12-16 12:00:23 +01:00
Jorge Manrubia
2671e52821
Move presentation method to a regular view helper
2025-12-16 12:00:23 +01:00
Jorge Manrubia
bf045b9907
Format
2025-12-16 12:00:23 +01:00
Jorge Manrubia
8d11c62b7c
Rename to stripe_session to avoid confusions
2025-12-16 12:00:23 +01:00
Jorge Manrubia
71369de38d
Extract method
2025-12-16 12:00:23 +01:00
Jorge Manrubia
b39a9ecab4
Make active_subscription a private method
2025-12-16 12:00:23 +01:00
Jorge Manrubia
e47657759f
More concise
2025-12-16 12:00:23 +01:00
Jorge Manrubia
20b5e57dd3
Prefer if/else over early return
2025-12-16 12:00:23 +01:00
Jorge Manrubia
973b4e4aed
Rename param to remove redundant bit
...
Co-authored-by: Matt Almeida <matt7@hey.com >
2025-12-16 12:00:23 +01:00
Jorge Manrubia
c0050415f5
This is needed for vat id collection
2025-12-16 12:00:23 +01:00
Jorge Manrubia
f68aa0d947
Enable tax id collection
2025-12-16 12:00:23 +01:00
Jorge Manrubia
3395b8d6ed
Grab and show the next amount to pay from Stripe
2025-12-16 12:00:23 +01:00
Jorge Manrubia
8dd31e3635
Add system to comp accounts
2025-12-16 12:00:23 +01:00
Jorge Manrubia
3ef5e4eeef
Add record to track overridden limits
...
Before, we were relying on just changing the cards_count in account, but this
could create problems where the system to calculate the next card number fails due
to the unique constraint.
2025-12-16 12:00:23 +01:00
Jorge Manrubia
725e850802
Enable automatic taxes and calculate based on mandatory billing address
...
https://app.fizzy.do/5986089/cards/3465
2025-12-16 12:00:23 +01:00
Jorge Manrubia
f4184e5a61
Remove redundant condition
2025-12-16 12:00:23 +01:00
Jorge Manrubia
c8330a7be8
Don't prevent creating drafts, or you won't get to see the upgrade banner
...
Instead:
- Always let you create drafts when pressing "Add card"
- Prevent creations of published cards via API
- Prevent publication of cards in all cases when the limit is exceeded
2025-12-16 12:00:23 +01:00