-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Range fix and payee fix * bug fixes and UI tweaks * range options, hover UI * Select - UnSelect All Buttons * fix hidden group bug * YAxis PrivacyFilter * notes * more privacyFilter graphs * overflowY fix * Loading Indicator * Fix Filter button hover * review fixes * LoadingIndicator fixes * remove a loop * filterbuttontype * review fixes * filtersbutton * updates
- Loading branch information
Showing
34 changed files
with
531 additions
and
248 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
packages/desktop-client/src/components/filters/CompactFiltersButton.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,18 @@ | ||
import React from 'react'; | ||
|
||
import { Filter } from '../../icons/v1'; | ||
import Button from '../common/Button'; | ||
|
||
type CompactFiltersButtonProps = { | ||
onClick: (newValue) => void; | ||
}; | ||
|
||
function CompactFiltersButton({ onClick }: CompactFiltersButtonProps) { | ||
return ( | ||
<Button type="bare" onClick={onClick}> | ||
<Filter width={15} height={15} /> | ||
</Button> | ||
); | ||
} | ||
|
||
export default CompactFiltersButton; |
21 changes: 21 additions & 0 deletions
21
packages/desktop-client/src/components/filters/FiltersButton.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,21 @@ | ||
import React from 'react'; | ||
|
||
import { SettingsSliderAlternate } from '../../icons/v2'; | ||
import Button from '../common/Button'; | ||
|
||
type FiltersButtonProps = { | ||
onClick: (newValue) => void; | ||
}; | ||
|
||
function FiltersButton({ onClick }: FiltersButtonProps) { | ||
return ( | ||
<Button type="bare" onClick={onClick} title={'Filters'}> | ||
<SettingsSliderAlternate | ||
style={{ width: 16, height: 16, marginRight: 5 }} | ||
/>{' '} | ||
Filter | ||
</Button> | ||
); | ||
} | ||
|
||
export default FiltersButton; |
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
59 changes: 59 additions & 0 deletions
59
packages/desktop-client/src/components/reports/GraphButton.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,59 @@ | ||
import React, { type HTMLProps } from 'react'; | ||
|
||
import { type CSSProperties, theme } from '../../style'; | ||
import Button from '../common/Button'; | ||
import HoverTarget from '../common/HoverTarget'; | ||
import Text from '../common/Text'; | ||
import { Tooltip } from '../tooltips'; | ||
|
||
type GraphButtonProps = HTMLProps<HTMLButtonElement> & { | ||
selected?: boolean; | ||
style?: CSSProperties; | ||
onSelect?: (newValue) => void; | ||
title?: string; | ||
disabled?: boolean; | ||
}; | ||
|
||
const GraphButton = ({ | ||
selected, | ||
children, | ||
onSelect, | ||
title, | ||
style, | ||
disabled, | ||
}: GraphButtonProps) => { | ||
return ( | ||
<HoverTarget | ||
style={{ flexShrink: 0 }} | ||
renderContent={() => ( | ||
<Tooltip | ||
position="bottom-left" | ||
style={{ | ||
lineHeight: 1.5, | ||
padding: '6px 10px', | ||
backgroundColor: theme.menuAutoCompleteBackground, | ||
color: theme.menuAutoCompleteText, | ||
}} | ||
> | ||
<Text>{title}</Text> | ||
</Tooltip> | ||
)} | ||
> | ||
<Button | ||
type="bare" | ||
style={{ | ||
...(selected && { | ||
backgroundColor: theme.buttonBareBackgroundHover, | ||
}), | ||
...style, | ||
}} | ||
onClick={onSelect} | ||
disabled={disabled} | ||
> | ||
{children} | ||
</Button> | ||
</HoverTarget> | ||
); | ||
}; | ||
|
||
export default GraphButton; |
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
33 changes: 33 additions & 0 deletions
33
packages/desktop-client/src/components/reports/LoadingIndicator.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,33 @@ | ||
import React from 'react'; | ||
|
||
import AnimatedLoading from '../../icons/AnimatedLoading'; | ||
import { theme, styles } from '../../style'; | ||
import Block from '../common/Block'; | ||
import View from '../common/View'; | ||
|
||
type LoadingIndicatorProps = { | ||
message?: string; | ||
}; | ||
|
||
const LoadingIndicator = ({ message }: LoadingIndicatorProps) => { | ||
return ( | ||
<View | ||
style={{ | ||
flex: 1, | ||
gap: 20, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
...styles.delayedFadeIn, | ||
}} | ||
> | ||
{message && ( | ||
<Block style={{ marginBottom: 20, fontSize: 18 }}>{message}</Block> | ||
)} | ||
<AnimatedLoading | ||
style={{ width: 25, height: 25, color: theme.pageTextDark }} | ||
/> | ||
</View> | ||
); | ||
}; | ||
|
||
export default LoadingIndicator; |
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.