Skip to content

Conversation

@anmolagrawal345
Copy link

@anmolagrawal345 anmolagrawal345 commented Aug 27, 2025

No description provided.

@anmolagrawal345 anmolagrawal345 requested a review from a team as a code owner August 27, 2025 18:42
@vercel
Copy link

vercel bot commented Aug 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
v4-staging Ready Ready Preview Comment Aug 27, 2025 9:36pm
v4-testnet Ready Ready Preview Comment Aug 27, 2025 9:36pm

Comment on lines +239 to +240
case IndexerOrderStatus.ERROR:
return OrderStatus.Canceled; // Treat ERROR status as canceled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this case is already handled in line 232

return calculateOrderHistory(orders);
});

export const selectTWAPOrders = createAppSelector([selectAccountOrders], (orders) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there need for selecting TWAP orders that aren't open?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can simplify 148 to just filtering TWAP from selectOpenOrders instead

Comment on lines +221 to +222
"@injectivelabs/sdk-ts": "1.16.10",
"@injectivelabs/ts-types": "1.16.10"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this

},
{
value: 'OrderHistory',
label: 'Order History',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stringGetter

const tabItems: TabItem<string>[] = [
{
value: 'Active',
label: 'Active',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stringGetter

import { Tabs, type TabItem } from '@/components/Tabs';
import { ActiveTWAPTable, ActiveTWAPTableColumnKey } from './ActiveTWAPTable';

const tabItems: TabItem<string>[] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put in the component w/ useMemo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you can localize

},
{
value: 'Fills',
label: 'Fills',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stringGetter

label: 'Order History',
content: (
<div>
<h1>Order History</h1>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stringGetter

label: 'Fills',
content: (
<div>
<h1>Fills</h1>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stringGetter


const tabItems: TabItem<string>[] = [
{
value: 'Active',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make values an enum

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or at least make it a type

type TWAPTableTabs = 'Active' | 'OrderHistory' | 'Fills';

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and use with the useState('Active')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants