Skip to content

feature: Add twap active, order history, fill orders table to the fe#1861

Closed
anmolagrawal345 wants to merge 7 commits intomainfrom
anmol/twap-fe
Closed

feature: Add twap active, order history, fill orders table to the fe#1861
anmolagrawal345 wants to merge 7 commits intomainfrom
anmol/twap-fe

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 Actions Updated (UTC)
v4-staging Error Error Feb 17, 2026 3:57pm
v4-testnet Error Error Feb 17, 2026 3:57pm

Request Review

return calculateOrderHistory(orders);
});

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

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
Collaborator

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Will eventually have historic TWAP orders so probably will use this selector in a couple of different places

Image

package.json Outdated
Comment on lines 221 to 222
"@injectivelabs/sdk-ts": "1.16.10",
"@injectivelabs/ts-types": "1.16.10"
Copy link
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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')

@wiz-55df730c58
Copy link

wiz-55df730c58 bot commented Feb 17, 2026

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 22 High 15 Medium 5 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 22 High 15 Medium 5 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@dankim214 dankim214 changed the title add twap active orders table to the fe feature: Add twap active, order history, fill orders table to the fe Feb 17, 2026
@dankim214
Copy link
Contributor

Created new branch based of this here #2078

@dankim214 dankim214 closed this Feb 17, 2026
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