app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit 69b666b2cedcf612ebe8b45e56e1bdbafedd1ef3
parent c0b60da261eab5ae956fa1e4c3d2a62318e1670d
Author: triesap <tyson@radroots.org>
Date:   Fri,  6 Feb 2026 18:57:09 +0000

app: remove payment method from config

- drop payment method from config flow draft
- stop collecting payment details in preferences ui
- default config preferences to no payment method
- keep role validation focused on required fields

Diffstat:
Mapp/src/app.rs | 18------------------
Mapp/src/config_flow.rs | 4+---
2 files changed, 1 insertion(+), 21 deletions(-)

diff --git a/app/src/app.rs b/app/src/app.rs @@ -1559,7 +1559,6 @@ fn ConfigPage() -> impl IntoView { let business_operations = RwSignal::new_local(String::new()); let notifications_orders = RwSignal::new_local(true); let notifications_messages = RwSignal::new_local(true); - let payment_method = RwSignal::new_local(String::new()); let config_saving = RwSignal::new_local(false); let config_flow = move || RadrootsAppConfigFlowDraft { step: config_step.get(), @@ -1577,7 +1576,6 @@ fn ConfigPage() -> impl IntoView { business_operations: business_operations.get(), notifications_orders: notifications_orders.get(), notifications_messages: notifications_messages.get(), - payment_method: payment_method.get(), }; let config_validation = move || app_config_flow_validate(&config_flow()); let advance_step = { @@ -2084,22 +2082,6 @@ fn ConfigPage() -> impl IntoView { </div> </div> </RadrootsAppUiFormField> - <RadrootsAppUiFormField - label="Payment method".to_string() - id="app-config-payment-method".to_string() - hint="Optional".to_string() - > - <input - id="app-config-payment-method-input" - class="input-base" - type="text" - placeholder="e.g. Cash, card, or invoice".to_string() - prop:value=move || payment_method.get() - on:input=move |ev| { - payment_method.set(event_target_value(&ev)); - } - /> - </RadrootsAppUiFormField> </section> }.into_any(), }} diff --git a/app/src/config_flow.rs b/app/src/config_flow.rs @@ -38,7 +38,6 @@ pub struct RadrootsAppConfigFlowDraft { pub business_operations: String, pub notifications_orders: bool, pub notifications_messages: bool, - pub payment_method: String, } impl Default for RadrootsAppConfigFlowDraft { @@ -59,7 +58,6 @@ impl Default for RadrootsAppConfigFlowDraft { business_operations: String::new(), notifications_orders: true, notifications_messages: true, - payment_method: String::new(), } } } @@ -169,7 +167,7 @@ pub fn app_config_flow_build_config( let preferences = RadrootsAppConfigPreferences { notifications_orders: draft.notifications_orders, notifications_messages: draft.notifications_messages, - payment_method: normalize_text(&draft.payment_method), + payment_method: None, }; match role { RadrootsAppRole::Farm => {