A local-first personal finance app
Release Pluggy bank-sync integration (#5628)
Matiss Janis Aboltins6c6d8931bb57
diff --git a/packages/desktop-client/src/components/modals/CreateAccountModal.tsx b/packages/desktop-client/src/components/modals/CreateAccountModal.tsxindex 2e29489056..089627dcfc 100644--- a/packages/desktop-client/src/components/modals/CreateAccountModal.tsx+++ b/packages/desktop-client/src/components/modals/CreateAccountModal.tsx@@ -25,7 +25,6 @@ import {} from '@desktop-client/components/common/Modal';import { useMultiuserEnabled } from '@desktop-client/components/ServerContext';import { authorizeBank } from '@desktop-client/gocardless';-import { useFeatureFlag } from '@desktop-client/hooks/useFeatureFlag';import { useGoCardlessStatus } from '@desktop-client/hooks/useGoCardlessStatus';import { usePluggyAiStatus } from '@desktop-client/hooks/usePluggyAiStatus';import { useSimpleFinStatus } from '@desktop-client/hooks/useSimpleFinStatus';@@ -47,8 +46,6 @@ export function CreateAccountModal({}: CreateAccountModalProps) {const { t } = useTranslation();- const isPluggyAiEnabled = useFeatureFlag('pluggyAiBankSync');-const syncServerStatus = useSyncServerStatus();const dispatch = useDispatch();const [isGoCardlessSetupComplete, setIsGoCardlessSetupComplete] = useState<@@ -514,78 +511,74 @@ export function CreateAccountModal({hundreds of banks.</Trans></Text>- {isPluggyAiEnabled && (- <>- <View- style={{- flexDirection: 'row',- gap: 10,- alignItems: 'center',- }}- >- <ButtonWithLoading- isDisabled={syncServerStatus !== 'online'}- style={{- padding: '10px 0',- fontSize: 15,- fontWeight: 600,- flex: 1,- }}- onPress={onConnectPluggyAi}++ <View+ style={{+ flexDirection: 'row',+ gap: 10,+ alignItems: 'center',+ }}+ >+ <ButtonWithLoading+ isDisabled={syncServerStatus !== 'online'}+ style={{+ padding: '10px 0',+ fontSize: 15,+ fontWeight: 600,+ flex: 1,+ }}+ onPress={onConnectPluggyAi}+ >+ {isPluggyAiSetupComplete+ ? t('Link bank account with Pluggy.ai')+ : t('Set up Pluggy.ai for bank sync')}+ </ButtonWithLoading>+ {isPluggyAiSetupComplete && (+ <DialogTrigger>+ <Button+ variant="bare"+ aria-label={t('Pluggy.ai menu')}>- {isPluggyAiSetupComplete- ? t('Link bank account with Pluggy.ai')- : t('Set up Pluggy.ai for bank sync')}- </ButtonWithLoading>- {isPluggyAiSetupComplete && (- <DialogTrigger>- <Button- variant="bare"- aria-label={t('Pluggy.ai menu')}- >- <SvgDotsHorizontalTriple- width={15}- height={15}- style={{ transform: 'rotateZ(90deg)' }}- />- </Button>-- <Popover>- <Dialog>- <Menu- onMenuSelect={item => {- if (item === 'reconfigure') {- onPluggyAiReset();- }- }}- items={[- {- name: 'reconfigure',- text: t(- 'Reset Pluggy.ai credentials',- ),- },- ]}- />- </Dialog>- </Popover>- </DialogTrigger>- )}- </View>- <Text style={{ lineHeight: '1.4em', fontSize: 15 }}>- <Trans>- <strong>- Link a <em>Brazilian</em> bank account- </strong>{' '}- to automatically download transactions. Pluggy.ai- provides reliable, up-to-date information from- hundreds of banks.- </Trans>- </Text>- </>- )}+ <SvgDotsHorizontalTriple+ width={15}+ height={15}+ style={{ transform: 'rotateZ(90deg)' }}+ />+ </Button>++ <Popover>+ <Dialog>+ <Menu+ onMenuSelect={item => {+ if (item === 'reconfigure') {+ onPluggyAiReset();+ }+ }}+ items={[+ {+ name: 'reconfigure',+ text: t('Reset Pluggy.ai credentials'),+ },+ ]}+ />+ </Dialog>+ </Popover>+ </DialogTrigger>+ )}+ </View>+ <Text style={{ lineHeight: '1.4em', fontSize: 15 }}>+ <Trans>+ <strong>+ Link a <em>Brazilian</em> bank account+ </strong>{' '}+ to automatically download transactions. Pluggy.ai+ provides reliable, up-to-date information from+ hundreds of banks.+ </Trans>+ </Text></>)}+{(!isGoCardlessSetupComplete ||!isSimpleFinSetupComplete ||!isPluggyAiSetupComplete) &&diff --git a/packages/desktop-client/src/components/settings/Experimental.tsx b/packages/desktop-client/src/components/settings/Experimental.tsxindex 55bbc7006e..d5a5c068d2 100644--- a/packages/desktop-client/src/components/settings/Experimental.tsx+++ b/packages/desktop-client/src/components/settings/Experimental.tsx@@ -99,12 +99,6 @@ export function ExperimentalFeatures() {><Trans>Rule action templating</Trans></FeatureToggle>- <FeatureToggle- flag="pluggyAiBankSync"- feedbackLink="https://github.com/actualbudget/actual/pull/4049"- >- <Trans>Pluggy.ai Bank Sync (Brazilian banks only)</Trans>- </FeatureToggle><FeatureToggleflag="currency"feedbackLink="https://github.com/actualbudget/actual/issues/5191"diff --git a/packages/desktop-client/src/hooks/useFeatureFlag.ts b/packages/desktop-client/src/hooks/useFeatureFlag.tsindex 982451e625..4e8912cf5f 100644--- a/packages/desktop-client/src/hooks/useFeatureFlag.ts+++ b/packages/desktop-client/src/hooks/useFeatureFlag.ts@@ -6,7 +6,6 @@ const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {goalTemplatesEnabled: false,goalTemplatesUIEnabled: false,actionTemplating: false,- pluggyAiBankSync: false,currency: false,};diff --git a/packages/loot-core/src/types/prefs.ts b/packages/loot-core/src/types/prefs.tsindex e41c22f85f..291eda4946 100644--- a/packages/loot-core/src/types/prefs.ts+++ b/packages/loot-core/src/types/prefs.ts@@ -2,7 +2,6 @@ export type FeatureFlag =| 'goalTemplatesEnabled'| 'goalTemplatesUIEnabled'| 'actionTemplating'- | 'pluggyAiBankSync'| 'currency';/**diff --git a/upcoming-release-notes/5628.md b/upcoming-release-notes/5628.mdnew file mode 100644index 0000000000..df20a1593f--- /dev/null+++ b/upcoming-release-notes/5628.md@@ -0,0 +1,6 @@+---+category: Features+authors: [MatissJanis]+---++Release pluggy bank-sync integration