runbox7 icon indicating copy to clipboard operation
runbox7 copied to clipboard

Use usages on Plans&Upgrades to hint at best buy options

Open castaway opened this issue 6 months ago • 4 comments

castaway avatar Jun 19 '25 16:06 castaway

Testing with Drift (more incoming email than any plan allows!)

2025-06-19 17 11 36 mallet3 scsys co uk 3aff6cffa6ef 2025-06-19 17 11 14 mallet3 scsys co uk c57f6ec5fbbe

castaway avatar Jun 19 '25 16:06 castaway

Excellent; made a couple of style related changes in https://github.com/shadow-dot-cat/runbox7/pull/10.

Couldn't get this to work yet and/or is still needed:

  • The select buttons in the Our Recommended Plans area aren't being displayed.
  • Couldn't get plan.over_quota.length to work for the buttons in the "All Main Account Price Plans" area.
  • The current_sub && current_sub.pid == plan.pid test doesn't seem to work in order to display "Your current subscription".

Buttons not showing:

Our recommended plans

All plans without plan.over_quota.length test:

All plans

All plans with plan.over_quota.length test:

All plans broken

gtandersen avatar Jun 20 '25 09:06 gtandersen

Fixed 2nd half - existing code seems to just change the theme on the button when its over quota, should it disable/disappear the button instead?

2025-06-23 16 19 57 mallet3 scsys co uk 5c2330bbe4da

castaway avatar Jun 23 '25 15:06 castaway

2025-06-23 17 04 13 mallet3 scsys co uk 6602c19e8f54 2025-06-23 17 00 44 mallet3 scsys co uk dca435599c12

I think this is better with no buttons when over quota

castaway avatar Jun 23 '25 16:06 castaway

2025-06-26-155430_1211x643_scrot

(re-) Added:

  • "Remove from cart" buttons
  • management of subscriptions - can only add one subscription at a time!
  • display of "under quota" plan columns are muted (palette changed)

Todo: [] - Disable buttons of items we can't buy, both under-quota items, and other-subscriptions (?)

castaway avatar Jun 26 '25 15:06 castaway

Radio buttons would be a more semantic way to convey to the user that only one item can be selected. It would be the accessible thing to do. Maybe a future improvement.

shadowbas avatar Jun 30 '25 11:06 shadowbas