Skip to content
Snippets Groups Projects
Unverified Commit adc5e324 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:sparkles: (nordigen) release the feature (#1135)

parent 2c6cca6b
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,9 @@ export class Navigation { ...@@ -57,6 +57,9 @@ export class Navigation {
async createAccount(data) { async createAccount(data) {
await this.page.getByRole('button', { name: 'Add account' }).click(); await this.page.getByRole('button', { name: 'Add account' }).click();
await this.page
.getByRole('button', { name: 'Create local account' })
.click();
// Fill the form // Fill the form
await this.page.getByLabel('Name:').fill(data.name); await this.page.getByLabel('Name:').fill(data.name);
...@@ -66,7 +69,9 @@ export class Navigation { ...@@ -66,7 +69,9 @@ export class Navigation {
await this.page.getByLabel('Off-budget').click(); await this.page.getByLabel('Off-budget').click();
} }
await this.page.getByRole('button', { name: 'Create' }).click(); await this.page
.getByRole('button', { name: 'Create', exact: true })
.click();
return new AccountPage(this.page); return new AccountPage(this.page);
} }
......
...@@ -10,7 +10,6 @@ import * as Platform from 'loot-core/src/client/platform'; ...@@ -10,7 +10,6 @@ import * as Platform from 'loot-core/src/client/platform';
import * as queries from 'loot-core/src/client/queries'; import * as queries from 'loot-core/src/client/queries';
import { send } from 'loot-core/src/platform/client/fetch'; import { send } from 'loot-core/src/platform/client/fetch';
import useFeatureFlag from '../hooks/useFeatureFlag';
import ExpandArrow from '../icons/v0/ExpandArrow'; import ExpandArrow from '../icons/v0/ExpandArrow';
import { styles, colors } from '../style'; import { styles, colors } from '../style';
...@@ -119,8 +118,6 @@ function SidebarWithData({ ...@@ -119,8 +118,6 @@ function SidebarWithData({
saveGlobalPrefs, saveGlobalPrefs,
getAccounts, getAccounts,
}) { }) {
const syncAccount = useFeatureFlag('syncAccount');
useEffect(() => void getAccounts(), [getAccounts]); useEffect(() => void getAccounts(), [getAccounts]);
async function onReorder(id, dropPos, targetId) { async function onReorder(id, dropPos, targetId) {
...@@ -146,9 +143,7 @@ function SidebarWithData({ ...@@ -146,9 +143,7 @@ function SidebarWithData({
getOffBudgetBalance={queries.offbudgetAccountBalance} getOffBudgetBalance={queries.offbudgetAccountBalance}
onFloat={() => saveGlobalPrefs({ floatingSidebar: !floatingSidebar })} onFloat={() => saveGlobalPrefs({ floatingSidebar: !floatingSidebar })}
onReorder={onReorder} onReorder={onReorder}
onAddAccount={() => onAddAccount={() => replaceModal('add-account')}
replaceModal(syncAccount ? 'add-account' : 'add-local-account')
}
showClosedAccounts={prefs['ui.showClosedAccounts']} showClosedAccounts={prefs['ui.showClosedAccounts']}
onToggleClosedAccounts={() => onToggleClosedAccounts={() =>
savePrefs({ savePrefs({
......
...@@ -34,7 +34,6 @@ import { ...@@ -34,7 +34,6 @@ import {
groupById, groupById,
} from 'loot-core/src/shared/util'; } from 'loot-core/src/shared/util';
import useFeatureFlag from '../../hooks/useFeatureFlag';
import { import {
SelectedProviderWithItems, SelectedProviderWithItems,
useSelectedItems, useSelectedItems,
...@@ -264,7 +263,6 @@ function MenuTooltip({ onClose, children }) { ...@@ -264,7 +263,6 @@ function MenuTooltip({ onClose, children }) {
function AccountMenu({ function AccountMenu({
account, account,
canSync, canSync,
syncEnabled,
showBalances, showBalances,
canShowBalances, canShowBalances,
showCleared, showCleared,
...@@ -302,8 +300,7 @@ function AccountMenu({ ...@@ -302,8 +300,7 @@ function AccountMenu({
}, },
{ name: 'export', text: 'Export' }, { name: 'export', text: 'Export' },
{ name: 'reconcile', text: 'Reconcile' }, { name: 'reconcile', text: 'Reconcile' },
syncEnabled && account &&
account &&
!account.closed && !account.closed &&
(canSync (canSync
? { ? {
...@@ -672,7 +669,6 @@ const AccountHeader = memo( ...@@ -672,7 +669,6 @@ const AccountHeader = memo(
accountsSyncing, accountsSyncing,
accounts, accounts,
transactions, transactions,
syncEnabled,
showBalances, showBalances,
showExtraBalances, showExtraBalances,
showCleared, showCleared,
...@@ -709,7 +705,7 @@ const AccountHeader = memo( ...@@ -709,7 +705,7 @@ const AccountHeader = memo(
let searchInput = useRef(null); let searchInput = useRef(null);
let splitsExpanded = useSplitsExpanded(); let splitsExpanded = useSplitsExpanded();
let canSync = syncEnabled && account && account.account_id; let canSync = account && account.account_id;
if (!account) { if (!account) {
// All accounts - check for any syncable account // All accounts - check for any syncable account
canSync = !!accounts.find(account => !!account.account_id); canSync = !!accounts.find(account => !!account.account_id);
...@@ -976,7 +972,6 @@ const AccountHeader = memo( ...@@ -976,7 +972,6 @@ const AccountHeader = memo(
<AccountMenu <AccountMenu
account={account} account={account}
canSync={canSync} canSync={canSync}
syncEnabled={syncEnabled}
canShowBalances={canCalculateBalance()} canShowBalances={canCalculateBalance()}
showBalances={showBalances} showBalances={showBalances}
showCleared={showCleared} showCleared={showCleared}
...@@ -1820,7 +1815,6 @@ class AccountInternal extends PureComponent { ...@@ -1820,7 +1815,6 @@ class AccountInternal extends PureComponent {
accounts, accounts,
categoryGroups, categoryGroups,
payees, payees,
syncEnabled,
dateFormat, dateFormat,
hideFraction, hideFraction,
addNotification, addNotification,
...@@ -1890,7 +1884,6 @@ class AccountInternal extends PureComponent { ...@@ -1890,7 +1884,6 @@ class AccountInternal extends PureComponent {
showCleared={showCleared} showCleared={showCleared}
showEmptyMessage={showEmptyMessage} showEmptyMessage={showEmptyMessage}
balanceQuery={balanceQuery} balanceQuery={balanceQuery}
syncEnabled={syncEnabled}
canCalculateBalance={this.canCalculateBalance} canCalculateBalance={this.canCalculateBalance}
reconcileAmount={reconcileAmount} reconcileAmount={reconcileAmount}
search={this.state.search} search={this.state.search}
...@@ -1958,11 +1951,7 @@ class AccountInternal extends PureComponent { ...@@ -1958,11 +1951,7 @@ class AccountInternal extends PureComponent {
renderEmpty={() => renderEmpty={() =>
showEmptyMessage ? ( showEmptyMessage ? (
<EmptyMessage <EmptyMessage
onAdd={() => onAdd={() => replaceModal('add-account')}
replaceModal(
syncEnabled ? 'add-account' : 'add-local-account',
)
}
/> />
) : !loading ? ( ) : !loading ? (
<View <View
...@@ -2011,7 +2000,6 @@ function AccountHack(props) { ...@@ -2011,7 +2000,6 @@ function AccountHack(props) {
} }
export default function Account() { export default function Account() {
const syncEnabled = useFeatureFlag('syncAccount');
let params = useParams(); let params = useParams();
let location = useLocation(); let location = useLocation();
let activeLocation = useActiveLocation(); let activeLocation = useActiveLocation();
...@@ -2074,7 +2062,6 @@ export default function Account() { ...@@ -2074,7 +2062,6 @@ export default function Account() {
<AccountHack <AccountHack
{...state} {...state}
{...actionCreators} {...actionCreators}
syncEnabled={syncEnabled}
modalShowing={ modalShowing={
state.modalShowing || state.modalShowing ||
!!(activeLocation.state && activeLocation.state.locationPtr) !!(activeLocation.state && activeLocation.state.locationPtr)
......
...@@ -106,7 +106,7 @@ export default function CreateAccount({ modalProps, syncServerStatus }) { ...@@ -106,7 +106,7 @@ export default function CreateAccount({ modalProps, syncServerStatus }) {
<P style={{ fontSize: 15 }}> <P style={{ fontSize: 15 }}>
Connect to an Actual server to set up{' '} Connect to an Actual server to set up{' '}
<a <a
href="https://actualbudget.org/docs/experimental/bank-sync" href="https://actualbudget.org/docs/advanced/bank-sync"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
> >
......
...@@ -41,16 +41,6 @@ export default function ExperimentalFeatures({ prefs, savePrefs }) { ...@@ -41,16 +41,6 @@ export default function ExperimentalFeatures({ prefs, savePrefs }) {
</View> </View>
</label> </label>
<label style={{ display: 'flex' }}>
<Checkbox
id="sync-account-flag"
checked={flags.syncAccount}
onChange={() => {
savePrefs({ 'flags.syncAccount': !flags.syncAccount });
}}
/>{' '}
<View>Account syncing via Nordigen</View>
</label>
<label style={{ display: 'flex' }}> <label style={{ display: 'flex' }}>
<Checkbox <Checkbox
id="goal-templates-flag" id="goal-templates-flag"
......
...@@ -2,7 +2,6 @@ import { useSelector } from 'react-redux'; ...@@ -2,7 +2,6 @@ import { useSelector } from 'react-redux';
const DEFAULT_FEATURE_FLAG_STATE: Record<string, boolean> = { const DEFAULT_FEATURE_FLAG_STATE: Record<string, boolean> = {
reportBudget: false, reportBudget: false,
syncAccount: false,
goalTemplatesEnabled: false, goalTemplatesEnabled: false,
}; };
......
---
category: Features
authors: [MatissJanis]
---
Nordigen: release as a first-party feature
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment