Skip to content

Commit

Permalink
Add an LP timeline view like the previous UI. (#171)
Browse files Browse the repository at this point in the history
* Add an LP timeline view like the previous UI.

This code is messy, but it should be merged ASAP, because not having the
ability to inspect LP positions while doing development means there's no way to
spot-check any other part of the UI, and that's not acceptable.

* Inspect design updates

* type declare css

---------

Co-authored-by: Gabe Rodriguez <[email protected]>
  • Loading branch information
hdevalence and grod220 authored Dec 8, 2024
1 parent 8f1a5a7 commit e031206
Show file tree
Hide file tree
Showing 30 changed files with 4,435 additions and 3,381 deletions.
1 change: 1 addition & 0 deletions app/api/position/timeline/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { GET } from '@/shared/api/server/position/timeline';
3 changes: 3 additions & 0 deletions app/inspect/lp/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { LpInspectResult } from '@/pages/inspect/ui/result.tsx';

export default LpInspectResult;
4 changes: 2 additions & 2 deletions app/inspect/page.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InspectPage } from '@/pages/inspect';
import { InspectSearch } from '@/pages/inspect';

export default InspectPage;
export default InspectSearch;
4 changes: 4 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.css' {
const content: Record<string, string>;
export default content;
}
105 changes: 52 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,101 +25,100 @@
},
"dependencies": {
"@bufbuild/protobuf": "^1.10.0",
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/styled-system": "^2.9.2",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@chakra-ui/icons": "^2.2.4",
"@chakra-ui/react": "^2.10.4",
"@chakra-ui/styled-system": "^2.12.0",
"@connectrpc/connect": "^1.6.1",
"@connectrpc/connect-web": "^1.6.1",
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@formkit/auto-animate": "^0.8.2",
"@grpc/proto-loader": "^0.7.13",
"@penumbra-labs/registry": "^12.0.0",
"@penumbra-zone/bech32m": "^10.0.0",
"@penumbra-zone/client": "^21.0.0",
"@penumbra-zone/crypto-web": "^29.0.1",
"@penumbra-zone/crypto-web": "^30.0.0",
"@penumbra-zone/getters": "^20.0.0",
"@penumbra-zone/perspective": "^39.0.0",
"@penumbra-zone/perspective": "^40.0.0",
"@penumbra-zone/protobuf": "^6.3.0",
"@penumbra-zone/transport-dom": "^7.5.0",
"@penumbra-zone/types": "^26.2.1",
"@penumbra-zone/ui": "^13.4.1",
"@penumbra-zone/wasm": "^33.1.0",
"@radix-ui/react-icons": "^1.3.0",
"@penumbra-zone/types": "^26.3.0",
"@penumbra-zone/ui": "^13.4.2",
"@penumbra-zone/wasm": "^34.0.0",
"@radix-ui/react-icons": "^1.3.2",
"@rehooks/component-size": "^1.0.3",
"@styled-icons/octicons": "^10.47.0",
"@tanstack/react-query": "^5.59.0",
"@tanstack/react-query": "^5.62.3",
"@textea/json-viewer": "^4.0.0",
"@tsconfig/strictest": "^2.0.5",
"@tsconfig/vite-react": "^3.0.2",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"@tsconfig/vite-react": "^3.4.0",
"@vercel/analytics": "^1.4.1",
"@vercel/speed-insights": "^1.1.0",
"bech32": "^2.0.0",
"bignumber.js": "^9.1.2",
"chart.js": "^4.4.4",
"chart.js": "^4.4.7",
"chartjs-adapter-date-fns": "^3.0.0",
"chartjs-chart-financial": "^0.2.1",
"chartjs-plugin-annotation": "^3.0.1",
"chartjs-plugin-zoom": "^2.0.1",
"chartjs-plugin-annotation": "^3.1.0",
"chartjs-plugin-zoom": "^2.2.0",
"clsx": "^2.1.1",
"configs": "https://github.com/prax-wallet/configs.git#main",
"date-fns": "^3.6.0",
"configs": "github:prax-wallet/configs#main",
"date-fns": "^4.1.0",
"echarts": "^5.5.1",
"echarts-for-react": "^3.0.2",
"framer-motion": "^11.3.31",
"framer-motion": "^11.13.1",
"grpc-tools": "^1.12.4",
"grpc_tools_node_protoc_ts": "^5.3.3",
"kysely": "^0.27.4",
"lightweight-charts": "^4.2.0",
"kysely": "^0.27.5",
"lightweight-charts": "^4.2.2",
"lodash": "^4.17.21",
"lucide-react": "^0.445.0",
"mobx": "^6.13.3",
"lucide-react": "^0.468.0",
"mobx": "^6.13.5",
"mobx-react-lite": "^4.0.7",
"next": "^14.2.7",
"pg": "^8.12.0",
"prettier": "^3.3.3",
"next": "^14.2.18",
"pg": "^8.13.1",
"prettier": "^3.4.1",
"react": "^18.3.1",
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.3.1",
"react-loader-spinner": "^6.1.6",
"react-outside-click-handler": "^1.3.0",
"react-use-size": "^3.0.3",
"sharp": "^0.33.5",
"webpack": "^5.94.0",
"webpack": "^5.97.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@chakra-ui/react-types": "^2.0.6",
"@eslint/js": "^9.10.0",
"@penumbra-zone/types": "^25.0.0",
"@eslint/js": "^9.16.0",
"@svgr/webpack": "^8.1.0",
"@types/chrome": "^0.0.278",
"@types/date-fns": "^2.6.0",
"@types/lodash": "^4.17.7",
"@types/chrome": "^0.0.287",
"@types/lodash": "^4.17.13",
"@types/milliseconds": "^0.0.33",
"@types/node": "^22.5.4",
"@types/pg": "^8.11.8",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/react-outside-click-handler": "^1.3.3",
"@types/node": "^22.10.1",
"@types/pg": "^8.11.10",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-outside-click-handler": "^1.3.4",
"autoprefixer": "^10.4.20",
"babel-loader": "^9.1.3",
"babel-loader": "^9.2.1",
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
"eslint-plugin-react": "^7.35.2",
"globals": "^15.9.0",
"eslint-plugin-react": "^7.37.2",
"globals": "^15.13.0",
"kysely-codegen": "^0.17.0",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"styled-components": "^6.1.13",
"tailwindcss": "^3.4.12",
"tailwindcss": "^3.4.16",
"ts-loader": "^9.5.1",
"tsx": "^4.19.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0",
"vitest": "^2.1.3",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0",
"vitest": "^2.1.8",
"webpack-watch-external-files-plugin": "^3.1.0"
}
}
Loading

0 comments on commit e031206

Please sign in to comment.