A local-first personal finance app
Show sync indicator in account header (#2560)
Robert Dyerc2291d4b5d12
diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsxindex 4147a1aefd..ac611444a9 100644--- a/packages/desktop-client/src/components/accounts/Account.jsx+++ b/packages/desktop-client/src/components/accounts/Account.jsx@@ -1407,6 +1407,7 @@ class AccountInternal extends PureComponent {hideFraction,addNotification,accountsSyncing,+ failedAccounts,pushModal,replaceModal,showExtraBalances,@@ -1478,6 +1479,7 @@ class AccountInternal extends PureComponent {location={this.props.location}accountName={accountName}accountsSyncing={accountsSyncing}+ failedAccounts={failedAccounts}accounts={accounts}transactions={transactions}showBalances={showBalances}diff --git a/packages/desktop-client/src/components/accounts/Header.jsx b/packages/desktop-client/src/components/accounts/Header.jsxindex 339225a38d..21b0e64b3b 100644--- a/packages/desktop-client/src/components/accounts/Header.jsx+++ b/packages/desktop-client/src/components/accounts/Header.jsx@@ -41,6 +41,7 @@ export function AccountHeader({filterId,filtersList,accountsSyncing,+ failedAccounts,accounts,transactions,showBalances,@@ -131,7 +132,28 @@ export function AccountHeader({<Viewstyle={{ marginTop: 2, marginBottom: 10, alignItems: 'flex-start' }}>- <View>+ <View+ style={{+ flexDirection: 'row',+ alignItems: 'center',+ gap: 3,+ }}+ >+ {!!account?.bank && (+ <View+ style={{+ backgroundColor: accountsSyncing.includes(account.id)+ ? theme.sidebarItemBackgroundPending+ : failedAccounts.has(account.id)+ ? theme.sidebarItemBackgroundFailed+ : theme.sidebarItemBackgroundPositive,+ marginRight: '4px',+ width: 8,+ height: 8,+ borderRadius: 8,+ }}+ />+ )}{editingName ? (<InitialFocus><Input@@ -142,11 +164,12 @@ export function AccountHeader({style={{fontSize: 25,fontWeight: 500,- marginTop: -5,- marginBottom: -2,- marginLeft: -5,+ marginTop: -3,+ marginBottom: -4,+ marginLeft: -6,paddingTop: 2,paddingBottom: 2,+ width: Math.max(20, accountName.length) + 'ch',}}/></InitialFocus>diff --git a/upcoming-release-notes/2560.md b/upcoming-release-notes/2560.mdnew file mode 100644index 0000000000..0d28e35826--- /dev/null+++ b/upcoming-release-notes/2560.md@@ -0,0 +1,6 @@+---+category: Features+authors: [psybers]+---++Show sync indicator in account header.