From 9b5358de2fc819b6585ceaaccdd1e6add2f00dc7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 07:35:45 +0000 Subject: [PATCH 1/3] Initial plan From 0bd6284542ad4374a2d4b55d2766905f9b088459 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 07:39:29 +0000 Subject: [PATCH 2/3] Add success toast notifications to billing settings components Co-authored-by: frankie567 <1144727+frankie567@users.noreply.github.com> --- .../Settings/OrganizationCurrencySettings.tsx | 12 ++++++++++++ .../Settings/OrganizationCustomerEmailSettings.tsx | 5 +++++ .../Settings/OrganizationCustomerPortalSettings.tsx | 5 +++++ .../Settings/OrganizationSubscriptionSettings.tsx | 5 +++++ 4 files changed, 27 insertions(+) diff --git a/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx b/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx index 7f0325aa28..a87768ac98 100644 --- a/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx +++ b/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx @@ -13,6 +13,7 @@ import { } from '@polar-sh/ui/components/ui/form' import React from 'react' import { useForm } from 'react-hook-form' +import { toast } from '../Toast/use-toast' import { CurrencySelector } from '../CurrencySelector' import { SettingsGroup, SettingsGroupItem } from './SettingsGroup' @@ -51,6 +52,12 @@ const OrganizationCurrencySettings: React.FC< } else { setError('root', { message: error.detail }) } + + toast({ + title: 'Currency Settings Update Failed', + description: `Error updating currency settings: ${error.detail}`, + }) + return } @@ -59,6 +66,11 @@ const OrganizationCurrencySettings: React.FC< default_presentment_currency: data.default_presentment_currency as schemas['PresentmentCurrency'], }) + + toast({ + title: 'Currency Settings Updated', + description: 'Your currency settings have been saved.', + }) } useAutoSave({ diff --git a/clients/apps/web/src/components/Settings/OrganizationCustomerEmailSettings.tsx b/clients/apps/web/src/components/Settings/OrganizationCustomerEmailSettings.tsx index 4dc2a25d86..366cad074d 100644 --- a/clients/apps/web/src/components/Settings/OrganizationCustomerEmailSettings.tsx +++ b/clients/apps/web/src/components/Settings/OrganizationCustomerEmailSettings.tsx @@ -120,6 +120,11 @@ const OrganizationCustomerEmailSettings: React.FC< } reset(data.customer_email_settings) + + toast({ + title: 'Customer Email Settings Updated', + description: 'Your customer email settings have been saved.', + }) } useAutoSave({ diff --git a/clients/apps/web/src/components/Settings/OrganizationCustomerPortalSettings.tsx b/clients/apps/web/src/components/Settings/OrganizationCustomerPortalSettings.tsx index dfb7b906ed..98e0f96183 100644 --- a/clients/apps/web/src/components/Settings/OrganizationCustomerPortalSettings.tsx +++ b/clients/apps/web/src/components/Settings/OrganizationCustomerPortalSettings.tsx @@ -54,6 +54,11 @@ const OrganizationCustomerPortalSettings: React.FC< } reset(data.customer_portal_settings) + + toast({ + title: 'Customer Portal Settings Updated', + description: 'Your customer portal settings have been saved.', + }) } useAutoSave({ diff --git a/clients/apps/web/src/components/Settings/OrganizationSubscriptionSettings.tsx b/clients/apps/web/src/components/Settings/OrganizationSubscriptionSettings.tsx index a621e45833..26dfb80736 100644 --- a/clients/apps/web/src/components/Settings/OrganizationSubscriptionSettings.tsx +++ b/clients/apps/web/src/components/Settings/OrganizationSubscriptionSettings.tsx @@ -56,6 +56,11 @@ const OrganizationSubscriptionSettings: React.FC< } reset(data.subscription_settings) + + toast({ + title: 'Subscription Settings Updated', + description: 'Your subscription settings have been saved.', + }) } useAutoSave({ From 68383f4e90cd6d715c92a6ad8765a2d7f169a46a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 08:21:16 +0000 Subject: [PATCH 3/3] Fix formatting with pnpm format Co-authored-by: frankie567 <1144727+frankie567@users.noreply.github.com> --- clients/apps/app/expo-env.d.ts | 2 +- .../src/components/Settings/OrganizationCurrencySettings.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/apps/app/expo-env.d.ts b/clients/apps/app/expo-env.d.ts index 5411fdde4f..bf3c1693a0 100644 --- a/clients/apps/app/expo-env.d.ts +++ b/clients/apps/app/expo-env.d.ts @@ -1,3 +1,3 @@ /// -// NOTE: This file should not be edited and should be in your git ignore \ No newline at end of file +// NOTE: This file should not be edited and should be in your git ignore diff --git a/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx b/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx index a87768ac98..17bdf28ed4 100644 --- a/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx +++ b/clients/apps/web/src/components/Settings/OrganizationCurrencySettings.tsx @@ -13,8 +13,8 @@ import { } from '@polar-sh/ui/components/ui/form' import React from 'react' import { useForm } from 'react-hook-form' -import { toast } from '../Toast/use-toast' import { CurrencySelector } from '../CurrencySelector' +import { toast } from '../Toast/use-toast' import { SettingsGroup, SettingsGroupItem } from './SettingsGroup' interface OrganizationCurrencySettingsProps {