Skip to content

Commit

Permalink
Merge pull request #1456 from bancorprotocol/issue-#1448
Browse files Browse the repository at this point in the history
[Trade] History Chart
  • Loading branch information
GrandSchtroumpf authored Sep 12, 2024
2 parents 726f23b + a5c3995 commit ba81ad3
Show file tree
Hide file tree
Showing 127 changed files with 1,813 additions and 829 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ The file `common.ts` with type [`AppConfig`](src/config/types.ts) contains impor
- `tokenListOverride`: Token list override to be used in the app when fetching the token list. Tokens in the list will override any other token with the same address.
- `tokenLists`: List of token lists including the uri and the parser name to be used to parse the token list. Please update the tokenParserMap in the `src/config/utils.ts` file to include the parser name and the parser function.
- `sdk`/`cacheTTL`: When the app loads, it will ignore any cached data if it is older than the cacheTTL time in milliseconds. If set to 0, the app will always ignore the cache data and fetch new data on load.
- `ui`
- `priceChart`: use `tradingView` chart or `native` chart for token pair price history. You need to provide a backend with price history endpoint to support `native` view.

#### Gas token different than native token

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.
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.
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.
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.
Binary file modified e2e/screenshots/strategy/overlapping/Overlapping/deposit/form.png
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.
Binary file modified e2e/screenshots/strategy/overlapping/Overlapping/withdraw/form.png
5 changes: 5 additions & 0 deletions src/assets/icons/lock.svg
3 changes: 3 additions & 0 deletions src/components/activity/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export interface ActivitySearchParams extends Partial<PaginationParams> {
actions?: ActivityAction[];
start?: Date;
end?: Date;
// This is only for StrategyPageParams, but if I don't implement it here the build breaks
priceStart?: string;
priceEnd?: string;
}
export const activityActionName: Record<ActivityAction, string> = {
create: 'Create',
Expand Down
1 change: 1 addition & 0 deletions src/components/common/CarbonLogoLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const CarbonLogoLoading = ({
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={className}
aria-label="Loading"
>
<path
style={{
Expand Down
15 changes: 6 additions & 9 deletions src/components/common/NotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const NotFound: FC<Props> = ({
<section
className={cn(
'gap-30 py-50 relative flex min-h-[500px] flex-col items-center justify-center px-20 text-center',
bordered && 'border-background-800 rounded border-2'
bordered && 'border-background-800 rounded border-2',
className
)}
>
{showBackButton && (
Expand All @@ -38,14 +39,10 @@ export const NotFound: FC<Props> = ({
</button>
)}
<div
className={cn(
'rounded-full p-20',
{
'bg-primary/20': variant === 'info',
'bg-error/20': variant === 'error',
},
className
)}
className={cn('rounded-full p-20', {
'bg-primary/20': variant === 'info',
'bg-error/20': variant === 'error',
})}
>
<IconSearch
className={cn('size-32', {
Expand Down
2 changes: 1 addition & 1 deletion src/components/simulator/input/SimInputChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
ChartPrices,
D3ChartCandlesticks,
OnPriceUpdates,
} from 'components/simulator/input/d3Chart';
} from 'components/strategies/common/d3Chart';
import { useCompareTokenPrice } from 'libs/queries/extApi/tokenPrice';
import { SimulatorType } from 'libs/routing/routes/sim';
import { useCallback } from 'react';
Expand Down

This file was deleted.

60 changes: 0 additions & 60 deletions src/components/simulator/input/d3Chart/recurring/D3ChartHandle.tsx

This file was deleted.

This file was deleted.

Loading

0 comments on commit ba81ad3

Please sign in to comment.