Skip to content

fix(plans): Enable downgrade to Micro including Email Hosting#1746

Merged
castaway merged 2 commits intorunbox:masterfrom
shadow-dot-cat:castaway/222_buy_micro_and_hosting
Jan 14, 2026
Merged

fix(plans): Enable downgrade to Micro including Email Hosting#1746
castaway merged 2 commits intorunbox:masterfrom
shadow-dot-cat:castaway/222_buy_micro_and_hosting

Conversation

@castaway
Copy link
Copy Markdown
Contributor

@castaway castaway commented Nov 26, 2025

2025-11-26 11 24 43 mallet3 scsys co uk 4d612ca4cb82

Example is the "test" user on dev - they could downgrade to the micro plan, if they bought 2x email hosting. (However its still greyed out because they are using more disk quota.) Clicking the button (when enabled) adds Micro and 2x email hosting to the cart, "remove" removes both again.

Code to integrate the usage data into the product objects has been moved to the API (upgrades endpoint)

Fix for https://github.com/runbox/private-issues/issues/222

@castaway castaway requested a review from shadowbas November 26, 2025 11:40
@castaway castaway marked this pull request as ready for review November 26, 2025 11:40
@castaway castaway force-pushed the castaway/222_buy_micro_and_hosting branch 2 times, most recently from c32969b to 37f2b6c Compare November 27, 2025 12:41
@castaway
Copy link
Copy Markdown
Contributor Author

Notes for testing/thinking:

This uses the users current virtual domain usage (number of domains actually used) to indicate+add some addons to the shopping cart if selecting a product with fewer included domains.

It does not take into account if the user already has any email hosting addons - should it? what happens then?

@castaway castaway marked this pull request as draft December 2, 2025 10:42
@castaway
Copy link
Copy Markdown
Contributor Author

castaway commented Dec 2, 2025

Adding the ability to remove addons from the cart one at a time.

2025-12-01 17 07 43 mallet3 scsys co uk 9e022e1edf7c
2025-12-01 17 07 34 mallet3 scsys co uk c3350d8d216b

@castaway castaway force-pushed the castaway/222_buy_micro_and_hosting branch from 37f2b6c to 3761625 Compare December 2, 2025 15:48
@castaway
Copy link
Copy Markdown
Contributor Author

castaway commented Dec 2, 2025

2025-12-02 15 14 05 mallet3 scsys co uk dbe0103f90da

better ;)

@castaway castaway force-pushed the castaway/222_buy_micro_and_hosting branch from 3761625 to af542b0 Compare December 2, 2025 16:18
@castaway castaway force-pushed the castaway/222_buy_micro_and_hosting branch from af542b0 to ad665a7 Compare December 3, 2025 14:53
@castaway castaway marked this pull request as ready for review December 8, 2025 14:08
@castaway
Copy link
Copy Markdown
Contributor Author

castaway commented Jan 5, 2026

Adding the ability to remove addons from the cart one at a time.

2025-12-01 17 07 43 mallet3 scsys co uk 9e022e1edf7c 2025-12-01 17 07 34 mallet3 scsys co uk c3350d8d216b

(This is gone, moved to shopping cart page)

@@ -327,6 +327,9 @@ END:VCALENDAR
case '/rest/v1/account_product/available':
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we keeping this if its not used anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I thought it was still used somewhere, else I would have just changed it...

Comment thread src/app/account-app/account-product.component.html Outdated
@castaway castaway merged commit 1eeee04 into runbox:master Jan 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants