From ffc722ec2e84de8e28d457bc780dfab81c53bcd8 Mon Sep 17 00:00:00 2001 From: facuzeta Date: Wed, 10 Dec 2025 14:55:59 -0300 Subject: [PATCH 1/4] Adding banner with new sites --- components/sankey/Render.tsx | 57 ++++++++++++++++++++++++++++++++++++ package-lock.json | 3 +- package.json | 2 +- 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/components/sankey/Render.tsx b/components/sankey/Render.tsx index d542264..ed362b6 100644 --- a/components/sankey/Render.tsx +++ b/components/sankey/Render.tsx @@ -12,6 +12,7 @@ import SankeyFilter from "./SankeyFilter"; import SankeyGraph from "./SankeyGraph"; import { SingleValue } from "react-select"; import { useWindowSize } from "usehooks-ts"; +import { getDateString } from "@/utils/helpers"; export default function SankeyRender() { const { height: windowHeight } = useWindowSize(); @@ -59,7 +60,63 @@ export default function SankeyRender() { return ( <> +
+

Orderflow.art was a proof of concept.

+ {rangeData?.data?.range && ( +

+ The data displayed on this site covers the period from{" "} + + {Number(rangeData.data.range.startBlock).toLocaleString("us-en", { + maximumFractionDigits: 0, + })}{" "} + ({getDateString(rangeData.data.range.startTime)}) + {" "} + to{" "} + + {Number(rangeData.data.range.endBlock).toLocaleString("us-en", { + maximumFractionDigits: 0, + })}{" "} + ({getDateString(rangeData.data.range.endTime)}) + {" "} + and is no longer being updated. +

+ )} + +

If you are interested in current data, here are the available options:

+ + +
Date: Wed, 10 Dec 2025 15:20:08 -0300 Subject: [PATCH 2/4] Adding bannter with new sites --- components/sankey/Render.tsx | 88 +++++++++++++++++++----------------- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/components/sankey/Render.tsx b/components/sankey/Render.tsx index ed362b6..13d2677 100644 --- a/components/sankey/Render.tsx +++ b/components/sankey/Render.tsx @@ -60,62 +60,66 @@ export default function SankeyRender() { return ( <> -
-

Orderflow.art was a proof of concept.

+
+ {/* Headline */} +

+ Orderflow.art was a proof of concept. +

+ + {/* Centered date paragraph */} {rangeData?.data?.range && ( -

+

The data displayed on this site covers the period from{" "} - - {Number(rangeData.data.range.startBlock).toLocaleString("us-en", { - maximumFractionDigits: 0, - })}{" "} - ({getDateString(rangeData.data.range.startTime)}) - {" "} + {getDateString(rangeData.data.range.startTime).split(" ")[0]}{" "} to{" "} - - {Number(rangeData.data.range.endBlock).toLocaleString("us-en", { - maximumFractionDigits: 0, - })}{" "} - ({getDateString(rangeData.data.range.endTime)}) - {" "} + {getDateString(rangeData.data.range.endTime).split(" ")[0]}{" "} and is no longer being updated. -

+
)} -

If you are interested in current data, here are the available options:

+ {/* LEFT-ALIGNED block */} +
+

+ If you are interested in current data, here are the available options: +

-
Date: Mon, 15 Dec 2025 13:12:31 -0300 Subject: [PATCH 3/4] Moving the banner to the bottom of the site --- components/sankey/Render.tsx | 52 ++++++++++++++++--------------- components/sankey/SankeyGraph.tsx | 9 ------ utils/clickhouse.ts | 3 +- 3 files changed, 29 insertions(+), 35 deletions(-) diff --git a/components/sankey/Render.tsx b/components/sankey/Render.tsx index 13d2677..81ac9f6 100644 --- a/components/sankey/Render.tsx +++ b/components/sankey/Render.tsx @@ -60,7 +60,29 @@ export default function SankeyRender() { return ( <> -
+
+ + +
+
{/* Headline */}

@@ -71,9 +93,9 @@ export default function SankeyRender() { {rangeData?.data?.range && (

The data displayed on this site covers the period from{" "} - {getDateString(rangeData.data.range.startTime).split(" ")[0]}{" "} + {getDateString(rangeData.data.range.startTime).split(" ")[0]} ({rangeData.data.range.startBlock}){" "} to{" "} - {getDateString(rangeData.data.range.endTime).split(" ")[0]}{" "} + {getDateString(rangeData.data.range.endTime).split(" ")[0]} ({rangeData.data.range.endBlock}){" "} and is no longer being updated.
)} @@ -121,28 +143,8 @@ export default function SankeyRender() {
-
- - -
+ + ); } diff --git a/components/sankey/SankeyGraph.tsx b/components/sankey/SankeyGraph.tsx index 31c3ca5..64f77ab 100644 --- a/components/sankey/SankeyGraph.tsx +++ b/components/sankey/SankeyGraph.tsx @@ -75,9 +75,6 @@ const SankeyGraph: FC = ({ height, txHash, isLoading, data, rangeData, er
)} -
- -
); } else if (isSmallDevice) { @@ -125,9 +122,6 @@ const SankeyGraph: FC = ({ height, txHash, isLoading, data, rangeData, er
)} -
- -
); } else { @@ -185,9 +179,6 @@ const SankeyGraph: FC = ({ height, txHash, isLoading, data, rangeData, er )} -
- -
); } diff --git a/utils/clickhouse.ts b/utils/clickhouse.ts index 52ab32e..2799688 100644 --- a/utils/clickhouse.ts +++ b/utils/clickhouse.ts @@ -4,4 +4,5 @@ export const client = createClient({ host: process.env.CLICKHOUSE_HOST ?? "http://localhost:8123", username: process.env.CLICKHOUSE_USER ?? "default", password: process.env.CLICKHOUSE_PASSWORD ?? "", -}); + database: process.env.CLICKHOUSE_DATABASE ?? "default", +}); \ No newline at end of file From ad3123c848b7002ef126039ad438d0af456ee4fe Mon Sep 17 00:00:00 2001 From: facuzeta Date: Mon, 15 Dec 2025 15:17:17 -0300 Subject: [PATCH 4/4] removing changes in packages --- package-lock.json | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1cf2fa9..479d9d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "ioredis": "^5.3.2", "lucide-react": "^0.294.0", "moment-timezone": "^0.5.43", - "next": "^14.0.4", + "next": "14.0.4", "nextjs-progressbar": "^0.0.16", "notion-client": "^6.16.0", "plotly.js": "^2.27.1", @@ -6438,7 +6438,6 @@ "version": "14.0.4", "resolved": "https://registry.npmjs.org/next/-/next-14.0.4.tgz", "integrity": "sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==", - "license": "MIT", "dependencies": { "@next/env": "14.0.4", "@swc/helpers": "0.5.2", diff --git a/package.json b/package.json index 4f8cf6f..11d5890 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "ioredis": "^5.3.2", "lucide-react": "^0.294.0", "moment-timezone": "^0.5.43", - "next": "^14.0.4", + "next": "14.0.4", "nextjs-progressbar": "^0.0.16", "notion-client": "^6.16.0", "plotly.js": "^2.27.1",