-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into api-hidden
- Loading branch information
Showing
82 changed files
with
738 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-142 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-12 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-168 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-189 Bytes
(100%)
...es-a-new-account-and-views-the-initial-balance-transaction-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10 Bytes
(100%)
...es-a-new-account-and-views-the-initial-balance-transaction-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-95 Bytes
(100%)
...tion-available-funds-overspent-budgeted-and-for-next-month-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-214 Bytes
(100%)
...tion-available-funds-overspent-budgeted-and-for-next-month-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-102 Bytes
(100%)
...est.js-snapshots/Budget-transfer-funds-to-another-category-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-215 Bytes
(100%)
...est.js-snapshots/Budget-transfer-funds-to-another-category-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-9 Bytes
(100%)
...s-snapshots/Mobile-checks-that-settings-page-can-be-opened-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-175 Bytes
(100%)
...snapshots/Reports-loads-cash-flow-graph-and-checks-visuals-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11 Bytes
(100%)
...snapshots/Reports-loads-cash-flow-graph-and-checks-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-185 Bytes
(100%)
...js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-168 Bytes
(100%)
...snapshots/Reports-loads-net-worth-graph-and-checks-visuals-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6 Bytes
(100%)
...snapshots/Reports-loads-net-worth-graph-and-checks-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-159 Bytes
(100%)
.../e2e/rules.test.js-snapshots/Rules-checks-the-page-visuals-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
.../e2e/rules.test.js-snapshots/Rules-checks-the-page-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-173 Bytes
(100%)
...e-and-makes-sure-it-is-applied-when-creating-a-transaction-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
...e-and-makes-sure-it-is-applied-when-creating-a-transaction-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-165 Bytes
(100%)
...e-and-makes-sure-it-is-applied-when-creating-a-transaction-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
...e-and-makes-sure-it-is-applied-when-creating-a-transaction-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-175 Bytes
(100%)
...edules.test.js-snapshots/Schedules-checks-the-page-visuals-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...edules.test.js-snapshots/Schedules-checks-the-page-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-169 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+6 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-151 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-3-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+28 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-4-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-185 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-5-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+57 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-6-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-185 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-7-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+34 Bytes
(100%)
...-new-schedule-posts-the-transaction-and-later-completes-it-8-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-164 Bytes
(100%)
...ettings.test.js-snapshots/Settings-checks-the-page-visuals-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...ettings.test.js-snapshots/Settings-checks-the-page-visuals-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-176 Bytes
(100%)
...ons.test.js-snapshots/Transactions-checks-the-page-visuals-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
...ons.test.js-snapshots/Transactions-checks-the-page-visuals-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-178 Bytes
(100%)
...js-snapshots/Transactions-creates-a-split-test-transaction-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+33 Bytes
(100%)
...js-snapshots/Transactions-creates-a-split-test-transaction-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-169 Bytes
(100%)
....test.js-snapshots/Transactions-creates-a-test-transaction-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
....test.js-snapshots/Transactions-creates-a-test-transaction-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-169 Bytes
(100%)
...js-snapshots/Transactions-filters-transactions-by-category-5-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
...js-snapshots/Transactions-filters-transactions-by-category-6-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-187 Bytes
(100%)
...est.js-snapshots/Transactions-filters-transactions-by-date-5-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10 Bytes
(100%)
...est.js-snapshots/Transactions-filters-transactions-by-date-6-chromium-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/desktop-client/src/components/reports/ModeButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React, { type MouseEventHandler, type ReactNode } from 'react'; | ||
|
||
import { type CSSProperties, theme } from '../../style'; | ||
import Button from '../common/Button'; | ||
|
||
type ModeButtonProps = { | ||
selected: boolean; | ||
children: ReactNode; | ||
style: CSSProperties; | ||
onSelect: MouseEventHandler<HTMLButtonElement>; | ||
}; | ||
|
||
function ModeButton({ selected, children, style, onSelect }: ModeButtonProps) { | ||
return ( | ||
<Button | ||
type="bare" | ||
style={{ | ||
padding: '5px 10px', | ||
backgroundColor: theme.menuBackground, | ||
marginRight: 5, | ||
fontSize: 'inherit', | ||
...(selected && { | ||
backgroundColor: theme.buttonPrimaryBackground, | ||
color: theme.buttonPrimaryText, | ||
':hover': { | ||
backgroundColor: theme.buttonPrimaryBackgroundHover, | ||
color: theme.buttonPrimaryTextHover, | ||
}, | ||
}), | ||
...style, | ||
}} | ||
onClick={onSelect} | ||
> | ||
{children} | ||
</Button> | ||
); | ||
} | ||
|
||
export default ModeButton; |
70 changes: 70 additions & 0 deletions
70
packages/desktop-client/src/components/reports/ReportLegend.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React from 'react'; | ||
|
||
import { theme, styles } from '../../style'; | ||
import Text from '../common/Text'; | ||
import View from '../common/View'; | ||
|
||
type ReportLegendProps = { | ||
legend: Array<{ name: string; color: string }>; | ||
groupBy: string; | ||
}; | ||
|
||
function ReportLegend({ legend, groupBy }: ReportLegendProps) { | ||
return ( | ||
<View | ||
style={{ | ||
backgroundColor: theme.pageBackground, | ||
alignItems: 'center', | ||
flex: 1, | ||
overflowY: 'auto', | ||
}} | ||
> | ||
<Text | ||
style={{ | ||
...styles.largeText, | ||
alignItems: 'center', | ||
marginBottom: 2, | ||
fontWeight: 400, | ||
paddingTop: 10, | ||
}} | ||
> | ||
{groupBy} | ||
</Text> | ||
<View> | ||
{legend.map(item => { | ||
return ( | ||
<View | ||
key={item.name} | ||
style={{ | ||
padding: 10, | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<View | ||
style={{ | ||
marginRight: 5, | ||
borderRadius: 1000, | ||
width: 14, | ||
height: 14, | ||
backgroundColor: item.color, | ||
}} | ||
/> | ||
<Text | ||
style={{ | ||
whiteSpace: 'nowrap', | ||
textOverflow: 'ellipsis', | ||
flexShrink: 0, | ||
}} | ||
> | ||
{item.name} | ||
</Text> | ||
</View> | ||
); | ||
})} | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
export default ReportLegend; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.