Skip to content

Commit

Permalink
Merge branch 'master' into issue2189
Browse files Browse the repository at this point in the history
  • Loading branch information
psybers authored Jul 10, 2024
2 parents b3abf68 + 259e84c commit 7f5b605
Show file tree
Hide file tree
Showing 227 changed files with 4,049 additions and 2,698 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/trafico.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ on:
- edited
- review_requested
- review_request_removed
pull_request_review:
types: [submitted, edited, dismissed]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ packages/api/dist
packages/api/@types
packages/crdt/dist
packages/desktop-electron/client-build
packages/desktop-electron/build
packages/desktop-electron/.electron-symbols
packages/desktop-electron/dist
packages/desktop-electron/loot-core
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@actual-app/api",
"version": "6.8.1",
"version": "6.8.2",
"license": "MIT",
"description": "An API for Actual",
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/desktop-client/e2e/page-models/rules-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class RulesPage {
.first()
.click();
await this.page
.getByRole('option', { exact: true, name: data.conditionsOp })
.getByRole('button', { exact: true, name: data.conditionsOp })
.click();
}

Expand Down Expand Up @@ -97,13 +97,13 @@ export class RulesPage {
if (field) {
await row.getByRole('button').first().click();
await this.page
.getByRole('option', { exact: true, name: field })
.getByRole('button', { exact: true, name: field })
.click();
}

if (op) {
await row.getByRole('button', { name: 'is' }).click();
await this.page.getByRole('option', { name: op, exact: true }).click();
await this.page.getByRole('button', { name: op, exact: true }).click();
}

if (value) {
Expand Down
4 changes: 4 additions & 0 deletions packages/desktop-client/e2e/page-models/schedules-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export class SchedulesPage {

if (data.amount) {
await this.page.getByLabel('Amount').fill(String(data.amount));
// For some readon, the input field does not trigger the change event on tests
// but it works on the browser. We can revisit this once migration to
// react aria components is complete.
await this.page.keyboard.press('Enter');
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/desktop-client/e2e/rules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test.describe('Rules', () => {
splitActions: [
[
{
field: 'a fixed percent',
field: 'a fixed percent of the remainder',
value: '90',
},
{
Expand Down Expand Up @@ -120,7 +120,7 @@ test.describe('Rules', () => {
});

const transaction = accountPage.getNthTransaction(0);
await expect(transaction.payee).toHaveText('Ikea');
await expect(transaction.payee).toHaveText('Split');
await expect(transaction.notes).toHaveText('food / entertainment');
await expect(transaction.category).toHaveText('Split');
await expect(transaction.debit).toHaveText('100.00');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/desktop-client/e2e/transactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ test.describe('Transactions', () => {
]);

const firstTransaction = accountPage.getNthTransaction(0);
await expect(firstTransaction.payee).toHaveText('Krogger');
await expect(firstTransaction.payee).toHaveText('Split');
await expect(firstTransaction.notes).toHaveText('Notes');
await expect(firstTransaction.category).toHaveText('Split');
await expect(firstTransaction.debit).toHaveText('333.33');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/desktop-client/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "@actual-app/web",
"version": "24.6.0",
"version": "24.7.0",
"license": "MIT",
"files": [
"build"
],
"devDependencies": {
"@juggle/resize-observer": "^3.4.0",
"@playwright/test": "1.41.1",
"@reach/listbox": "^0.18.0",
"@react-aria/focus": "^3.16.0",
"@react-aria/listbox": "^3.11.3",
"@react-aria/utils": "^3.23.0",
Expand Down Expand Up @@ -48,8 +47,9 @@
"memoize-one": "^6.0.0",
"pikaday": "1.8.2",
"promise-retry": "^2.0.1",
"re-resizable": "^6.9.17",
"react": "18.2.0",
"react-aria-components": "^1.1.1",
"react-aria-components": "^1.2.1",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "18.2.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/desktop-client/public/shortcut-accounts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/desktop-client/public/shortcut-reports.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/desktop-client/public/shortcut-transaction.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 39 additions & 1 deletion packages/desktop-client/public/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,44 @@
"purpose": "maskable"
}
],
"shortcuts": [
{
"name": "Add Transaction",
"short_name": "Add Transaction",
"description": "Add a new transaction",
"url": "/transactions/new",
"icons": [
{
"src": "/shortcut-transaction.svg",
"sizes": "150x150"
}
]
},
{
"name": "Accounts",
"short_name": "Accounts",
"description": "View all accounts",
"url": "/accounts",
"icons": [
{
"src": "/shortcut-accounts.svg",
"sizes": "150x150"
}
]
},
{
"name": "Reports",
"short_name": "Reports",
"description": "View reports",
"url": "/reports",
"icons": [
{
"src": "/shortcut-reports.svg",
"sizes": "150x150"
}
]
}
],
"screenshots": [
{
"src": "/screenshot_wide.png",
Expand All @@ -43,7 +81,7 @@
"type": "image/png",
"sizes": "350x600"
}
],
],
"theme_color": "#8812E1",
"background_color": "#ffffff",
"display": "standalone",
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/Modals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export function Modals() {
<ConfirmTransactionEdit
key={name}
modalProps={modalProps}
onCancel={options.onCancel}
onConfirm={options.onConfirm}
confirmReason={options.confirmReason}
/>
Expand Down Expand Up @@ -401,7 +402,6 @@ export function Modals() {
actions={actions}
transactionIds={options?.transactionIds}
getTransaction={options?.getTransaction}
pushModal={options?.pushModal}
/>
);

Expand Down
5 changes: 0 additions & 5 deletions packages/desktop-client/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,6 @@ export function Titlebar({ style }: TitlebarProps) {
sidebar.setHidden(false);
}
}}
onPointerLeave={e => {
if (e.pointerType === 'mouse') {
sidebar.setHidden(true);
}
}}
onPointerUp={e => {
if (e.pointerType !== 'mouse') {
sidebar.setHidden(!sidebar.hidden);
Expand Down
Loading

0 comments on commit 7f5b605

Please sign in to comment.