From baa8dffc02496f8cf4579730a5700129be4dc244 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sat, 4 Oct 2025 12:37:32 -0400 Subject: [PATCH] Enhance payment settings UX with consistent styling and persistent state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add new payment-toggle-button CSS class derived from comment button styles - Apply consistent styling to all Stripe, Monero, and Dogecoin disable/re-enable buttons - Consolidate crypto wallet disclaimers into single always-visible section - Update help text to clarify re-enabling payments allows address updates - Implement localStorage persistence for both crypto and Stripe toggle states - Ensure graceful degradation for non-JavaScript users - Remove redundant disclaimer text from individual currency forms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- make_post_sell/static/css/common.css | 27 ++++++++++ make_post_sell/templates/shop_settings.j2 | 61 +++++++++++++++-------- 2 files changed, 67 insertions(+), 21 deletions(-) diff --git a/make_post_sell/static/css/common.css b/make_post_sell/static/css/common.css index 7441b55..f5aea46 100644 --- a/make_post_sell/static/css/common.css +++ b/make_post_sell/static/css/common.css @@ -342,6 +342,33 @@ button.mps-button-red { box-sizing: border-box; } +.payment-toggle-button { + display: inline-block; + padding: 6px 12px; + border: 1px solid #ccc; + border-radius: 4px; + background: #f9f9f9; + color: #333; + font-size: 14px; + cursor: pointer; + margin: 0; + text-decoration: none; + vertical-align: top; + box-sizing: border-box; +} + +.payment-toggle-button.enable { + background: #4a4; + color: white; + border-color: #4a4; +} + +.payment-toggle-button.disable { + background: #d44; + color: white; + border-color: #d44; +} + a.product-edit-button { background-color: #98b6fa; } diff --git a/make_post_sell/templates/shop_settings.j2 b/make_post_sell/templates/shop_settings.j2 index fa941c2..a121e4b 100644 --- a/make_post_sell/templates/shop_settings.j2 +++ b/make_post_sell/templates/shop_settings.j2 @@ -170,9 +170,9 @@ {% if request.shop.stripe_enabled %} - + {% else %} - + Enter your API keys to re-enable Stripe payments {% endif %} @@ -271,6 +271,8 @@ Note: We cannot verify you control these addresses. Please double-check they're correct! Consider sending a small test amount from another wallet to verify. +
+ Once set, cold wallet addresses cannot be removed, only replaced with new addresses.

@@ -297,7 +299,6 @@
Configure your cold wallet address where this shop's Monero funds will be swept. This is required to accept Monero payments. - {% if xmr_processor and xmr_processor.sweep_to_address %}
Note: Once set, the cold wallet address cannot be removed, only replaced with a new address.{% endif %}
{% if xmr_processor %} @@ -322,10 +323,10 @@ {% if xmr_processor %} {% if xmr_processor.enabled %} - + {% else %} - - Enter your cold wallet address to re-enable Monero payments + + Re-enable Monero payments to update your cold wallet address {% endif %} {% else %} @@ -356,7 +357,6 @@
Configure your cold wallet address where this shop's Dogecoin funds will be swept. This is required to accept Dogecoin payments. - {% if doge_processor and doge_processor.sweep_to_address %}
Note: Once set, the cold wallet address cannot be removed, only replaced with a new address.{% endif %}
{% if doge_processor %} @@ -386,10 +386,10 @@ {% if doge_processor %} {% if doge_processor.enabled %} - + {% else %} - - Enter your cold wallet address to re-enable Dogecoin payments + + Re-enable Dogecoin payments to update your cold wallet address {% endif %} {% else %} @@ -600,24 +600,23 @@ Existing sales honored for download buy purchasers. {%- endblock -%}