Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into enhancement/context…
Browse files Browse the repository at this point in the history
…_menu

# Conflicts:
#	packages/desktop-client/src/components/payees/PayeeTable.tsx
  • Loading branch information
UnderKoen committed Nov 3, 2024
2 parents 16367fb + 6666014 commit a0502ef
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 49 deletions.
19 changes: 9 additions & 10 deletions packages/desktop-client/src/components/payees/PayeeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { type PayeeEntity } from 'loot-core/src/types/models';

import { useSelectedItems } from '../../hooks/useSelected';
import { View } from '../common/View';
import { Table } from '../table';
import { useTableNavigator, Table } from '../table';

import { PayeeTableRow } from './PayeeTableRow';

Expand All @@ -33,15 +33,7 @@ export const PayeeTable = forwardRef<
PayeeTableProps
>(
(
{
payees,
ruleCounts,

onUpdate,
onDelete,
onViewRules,
onCreateRule,
},
{ payees, ruleCounts, onUpdate, onDelete, onViewRules, onCreateRule },
ref,
) => {
const [hovered, setHovered] = useState(null);
Expand All @@ -58,9 +50,16 @@ export const PayeeTable = forwardRef<
setHovered(id);
}, []);

const tableNavigator = useTableNavigator(payees, item =>
item.transfer_acct == null
? ['select', 'name', 'rule-count']
: ['rule-count'],
);

return (
<View style={{ flex: 1 }} onMouseLeave={() => setHovered(null)}>
<Table
navigator={tableNavigator}
ref={ref}
items={payees}
renderItem={({ item, editing, focusedField, onEdit }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ export const PayeeTableRow = memo(
focused={focusedField === 'select'}
selected={selected}
onSelect={e => {
if (payee.transfer_acct != null) {
return;
}
dispatchSelected({
type: 'select',
id: payee.id,
Expand Down
39 changes: 0 additions & 39 deletions packages/loot-core/init-node.js

This file was deleted.

6 changes: 6 additions & 0 deletions upcoming-release-notes/3756.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [MikesGlitch]
---

Remove unneeded node test file
6 changes: 6 additions & 0 deletions upcoming-release-notes/3768.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [jfdoming]
---

Fix bugs on payee management page

0 comments on commit a0502ef

Please sign in to comment.