Skip to content

Commit

Permalink
Nabla/feat export csv v2 (#3)
Browse files Browse the repository at this point in the history
* feat: ➕ add export-to-csv dep

* feat: ✨ add download icon

* feat: ✨ add navigation menu slots

* feat: ✨ add csv utility

* feat: 🏷️ improve dropdown menu types

* refactor: ♻️ refactor Output component

refactored Output component to export formatting utils.

* feat: ✨ add ExportHistoryDropdown component

* feat: ✨ add export inside History page

added ExportHistoryDropdown component inside History page layout.

* feat: 🚸 disable csv export on empty data

* feat: 📈 add export history analytics

* fix: 🐛 fix export history download

* fix: 🐛 fix post merge errors

* feat: ✨ add reusable format number function

* refactor: ♻️ add better style declaration

* fix: 🐛 fix post merge errors

* fix: 🐛 fix react errors

* fix: 🐛 fix empty export

* feat: ⬆️ upgrade @dydxprotocol/v4-client-js

* feat: ✨ add history export all services

* feat: ✨ add export loading states

* refactor: 🎨 improve format of the code

* style: 🚨 fix lint errors

* style: 🚨 add default case

* feat: ✨ add export sorting in decreasing order

* feat: ✨ add price column inside csv

* fix: add back precision to earned by stakers (dydxprotocol#692)

* fix(sparklines): bump abacus and fix output component (dydxprotocol#695)

* feat(staking): ui of validator selection (dydxprotocol#691)

* chore: replace spread row with mid market price row (dydxprotocol#696)

* chore(hide-gasToggle): temp hide gas toggle (dydxprotocol#700)

* chore: improve order statuses (dydxprotocol#693)

* fix(subaccount-transfer): enforce senderAddress matches localWallet (dydxprotocol#703)

* feat: update to use proxy for staking apr (dydxprotocol#702)

* chore: remove deprecated params [OTE-353] (dydxprotocol#698)

* feat: add ZK, ZRO, NCAT to the widget (dydxprotocol#704)

* feat(staking): polishes (dydxprotocol#701)

* feat: improve markets page style (dydxprotocol#699)

* feat: ⬆️ upgrade @dydxprotocol/v4-client-js

* feat: ✨ add parentSubaccount export

* feat: ✨ disable export on disconnection state

* feat(staking): add staking live notif (dydxprotocol#708)

* feat(new market): have other market validation run on diff only (dydxprotocol#705)

* feat: redirect other reward pages after staking is turned on (dydxprotocol#711)

* docs: 📝 improve comment format

* fix: 🐛 fix merge error

* style: 🚨 fix lint errors

* feat: fix invert tag for certain raydium markets (dydxprotocol#709)

Co-authored-by: jaredvu <[email protected]>

* chore(default-page): change default page to /markets (dydxprotocol#713)

* chore(staking): remove last faq question (dydxprotocol#712)

* feat: add tracking to staking (dydxprotocol#710)

* fix: polishes for staking (dydxprotocol#716)

* fix: nonzero rewards (dydxprotocol#653)

* chore: fully type dialogs, fix some more any types, redo analytics (dydxprotocol#671)

* fix: fix validator url icon (dydxprotocol#720)

* chore(new-market): update header copy (dydxprotocol#718)

* feat(mobile-download): Add mobile app store download links (dydxprotocol#717)

* feat: preload metadata for all markets in otherMarketData.json (dydxprotocol#646)

Co-authored-by: jaredvu <[email protected]>

* fix: isolated positions bug fixes + auto-open (dydxprotocol#721)

* feat: orderbook refresh + updates (dydxprotocol#647)

* chore: install-local-l10n command (dydxprotocol#697)

* chore: use FormMaxInputToggleButton in transfer/deposit/withdraw forms (dydxprotocol#715)

* fix: fix updated terms of use link (dydxprotocol#724)

* fix: orderbook bugs (dydxprotocol#725)

* style(nits): update exchange billboards and stats, assetIcons (dydxprotocol#726)

* feat: update zk logo and zro zk logo data (dydxprotocol#727)

* feat: skip track/status endpoints [OTE-354] (dydxprotocol#719)

* fix(disconnect-cleanup): set localWallet and hdKey to undefined when disconnecting (dydxprotocol#728)

* fix: analytics property names (dydxprotocol#730)

* style(tables): update table header styling (dydxprotocol#729)

* feat: ✨ add new analytics api

---------

Co-authored-by: moo-onthelawn <[email protected]>
Co-authored-by: Jared Vu <[email protected]>
Co-authored-by: aleka <[email protected]>
Co-authored-by: Bill <[email protected]>
Co-authored-by: Jeremy Lee <[email protected]>
Co-authored-by: yujin512 <[email protected]>
Co-authored-by: Tian <[email protected]>
Co-authored-by: tyleroooo <[email protected]>
  • Loading branch information
9 people authored Jun 26, 2024
1 parent e619a01 commit 4365635
Show file tree
Hide file tree
Showing 786 changed files with 47,305 additions and 40,073 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/validate-other-market-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ jobs:
make build
echo "Starting localnet..."
DOCKER_BUILDKIT=1 make localnet-startd
- name: Get diff of otherMarketData.json
run: |
git fetch origin
git diff remotes/origin/main -- public/configs/otherMarketData.json > otherMarketDiff.txt
- name: Validate other market data
env:
DIFF: otherMarketDiff.txt
run: pnpx tsx scripts/validate-other-market-data.ts
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,37 @@ Then run `pnpm install`

**Remember to revert to remote abacus before making a PR.**

# Local Localization (l10n) Development

## Directory structure

Our tooling assumes that the [v4-localization repo](https://github.com/dydxprotocol/v4-localization) is checked out alongside v4-web:

```
--- parent folder
|___ v4-web
|___ v4-localization
```

## Using your local v4-localization repo

When you want to begin developing in v4-localization:
**kill your dev server first** then use the following command:

```
pnpm run install-local-l10n
```

## Reverting to remote localization

You'll need to unlink your local localization package with the following command:

```
pnpm run remove-local-l10n
```

Unlike with abacus, you will need to **restart your dev server** to see the revert take effect.

# Deployments

## Deploying with Vercel
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"clean-install": "rm -rf node_modules/ && pnpm i",
"preview": "vite preview",
"install-local-abacus": "node scripts/install-local-abacus",
"install-local-l10n": "pnpm link ../v4-localization && echo Linking... please remember to restart your dev server",
"remove-local-l10n": "pnpm unlink ../v4-localization && echo Unlinking... please remember to restart your dev server",
"ladle": "ladle serve",
"ladle-b": "ladle build",
"ladle-p": "ladle preview",
Expand All @@ -47,9 +49,9 @@
"@cosmjs/proto-signing": "^0.32.1",
"@cosmjs/stargate": "^0.32.1",
"@cosmjs/tendermint-rpc": "^0.32.1",
"@dydxprotocol/v4-abacus": "1.7.85",
"@dydxprotocol/v4-client-js": "^1.1.20",
"@dydxprotocol/v4-localization": "^1.1.127",
"@dydxprotocol/v4-abacus": "1.8.6",
"@dydxprotocol/v4-client-js": "^1.1.24",
"@dydxprotocol/v4-localization": "^1.1.138",
"@ethersproject/providers": "^5.7.2",
"@hugocxl/react-to-image": "^0.0.9",
"@js-joda/core": "^5.5.3",
Expand Down Expand Up @@ -84,6 +86,7 @@
"@reduxjs/toolkit": "^2.2.5",
"@scure/bip32": "^1.3.0",
"@scure/bip39": "^1.2.0",
"@skip-router/core": "^5.1.0",
"@tanstack/react-query": "^5.37.1",
"@types/lodash": "^4.14.195",
"@types/styled-components": "^5.1.26",
Expand All @@ -108,7 +111,9 @@
"cosmjs-types": "^0.9.0",
"crypto-js": "^4.1.1",
"ethers": "^6.6.1",
"export-to-csv": "^1.2.3",
"graz": "^0.0.43",
"jsdom": "^24.1.0",
"lodash": "^4.17.21",
"long": "^5.2.3",
"luxon": "^3.3.0",
Expand All @@ -124,6 +129,7 @@
"react-stately": "^3.23.0",
"reselect": "^5.1.0",
"styled-components": "^5.3.11",
"unionize": "^3.1.0",
"use-latest": "^1.2.1",
"viem": "^1.20.0",
"wagmi": "^1.4.12"
Expand Down
Loading

0 comments on commit 4365635

Please sign in to comment.