A local-first personal finance app
✨ Add org name to bank sync UI (#4646)
Alec Bakholdin0c85523037ea
diff --git a/packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.jsx b/packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.jsxindex 79eca69a33..b5730e0cc3 100644--- a/packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.jsx+++ b/packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.jsx@@ -4,6 +4,7 @@ import { useTranslation, Trans } from 'react-i18next';import { Button } from '@actual-app/components/button';import { Text } from '@actual-app/components/text';import { theme } from '@actual-app/components/theme';+import { Tooltip } from '@actual-app/components/tooltip';import { View } from '@actual-app/components/view';import {@@ -43,7 +44,11 @@ export function SelectLinkedAccountsModal({}) {const sortedExternalAccounts = useMemo(() => {const toSort = [...externalAccounts];- toSort.sort((a, b) => a.name.localeCompare(b.name));+ toSort.sort(+ (a, b) =>+ a.institution?.localeCompare(b.institution) ||+ a.name.localeCompare(b.name),+ );return toSort;}, [externalAccounts]);@@ -150,7 +155,7 @@ export function SelectLinkedAccountsModal({return (<Modalname="select-linked-accounts"- containerProps={{ style: { width: 800 } }}+ containerProps={{ style: { width: 1000 } }}>{({ state: { close } }) => (<>@@ -173,10 +178,11 @@ export function SelectLinkedAccountsModal({><TableHeaderheaders={[- { name: t('Bank Account To Sync'), width: 200 },+ { name: t('Institution to Sync'), width: 175 },+ { name: t('Bank Account To Sync'), width: 175 },{ name: t('Balance'), width: 80 },{ name: t('Account in Actual'), width: 'flex' },- { name: t('Actions'), width: 'flex' },+ { name: t('Actions'), width: 150 },]}/>@@ -247,12 +253,37 @@ function TableRow({return (<Row style={{ backgroundColor: theme.tableBackground }}>- <Field width={200}>{externalAccount.name}</Field>+ <Field width={175}>+ <Tooltip content={externalAccount.institution}>+ <View+ style={{+ textOverflow: 'ellipsis',+ overflow: 'hidden',+ display: 'block',+ }}+ >+ {externalAccount.institution}+ </View>+ </Tooltip>+ </Field>+ <Field width={175}>+ <Tooltip content={externalAccount.name}>+ <View+ style={{+ textOverflow: 'ellipsis',+ overflow: 'hidden',+ display: 'block',+ }}+ >+ {externalAccount.name}+ </View>+ </Tooltip>+ </Field><Field width={80}><PrivacyFilter>{externalAccount.balance}</PrivacyFilter></Field><Field- width="40%"+ width="flex"truncate={focusedField !== 'account'}onClick={() => setFocusedField('account')}>@@ -274,7 +305,7 @@ function TableRow({chosenAccount?.name)}</Field>- <Field width="20%">+ <Field width={150}>{chosenAccount ? (<ButtononPress={() => {diff --git a/upcoming-release-notes/4646.md b/upcoming-release-notes/4646.mdnew file mode 100644index 0000000000..c2962094f4--- /dev/null+++ b/upcoming-release-notes/4646.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [alecbakholdin]+---++Added institution column to link account modal account name