From f4276e9ba1bdf5af20c2401c5c01c08de6bb17d9 Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Tue, 25 Nov 2025 21:23:44 +0545 Subject: [PATCH 01/15] update x url --- src/components/aidaos/RootDAOPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index 22aca008..9c0abdbb 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -543,7 +543,7 @@ details in next post`} // time="8:14 PM" avatarUrl="/logos/aibtcdev-avatar-250px.png" verified={true} - // link="https://x.com/aibtcdev/status/1990455534554841152" + link="https://x.com/aibtcdev/status/1993343004846047683" title="The Current Order" /> From 7a66cdcd8c79e2d44dda288c9da41ea01057bcfd Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Wed, 26 Nov 2025 18:11:13 +0545 Subject: [PATCH 02/15] fix(proposals): Increase precision of voting metrics display --- src/components/proposals/ProposalCard.tsx | 4 ++-- src/components/proposals/ProposalHeader.tsx | 4 ++-- src/components/proposals/VotesTable.tsx | 4 ++-- src/components/proposals/VotingProgressChart.tsx | 14 +++++++------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/proposals/ProposalCard.tsx b/src/components/proposals/ProposalCard.tsx index 23f598f7..e37b33d0 100644 --- a/src/components/proposals/ProposalCard.tsx +++ b/src/components/proposals/ProposalCard.tsx @@ -101,7 +101,7 @@ export default function ProposalCard({ const quorumPercentage = safeNumberFromBigInt(proposal.voting_quorum); const thresholdPercentage = safeNumberFromBigInt(proposal.voting_threshold); - // Calculate if requirements are met + // Calculate if requirements are met (using exact floating point comparison) const metQuorum = calculations.participationRate >= quorumPercentage; const metThreshold = calculations.totalVotes > 0 @@ -125,7 +125,7 @@ export default function ProposalCard({ } if (isActive) { - return percentage !== undefined ? `${percentage.toFixed(1)}%` : "0%"; + return percentage !== undefined ? `${percentage.toFixed(4)}%` : "0%"; } return met ? "Passed" : "Failed"; diff --git a/src/components/proposals/ProposalHeader.tsx b/src/components/proposals/ProposalHeader.tsx index 63614d31..bf88654a 100644 --- a/src/components/proposals/ProposalHeader.tsx +++ b/src/components/proposals/ProposalHeader.tsx @@ -51,7 +51,7 @@ export function ProposalHeader({ proposal }: ProposalHeaderProps) { const quorumPercentage = safeNumberFromBigInt(proposal.voting_quorum); const thresholdPercentage = safeNumberFromBigInt(proposal.voting_threshold); - // Calculate if requirements are met + // Calculate if requirements are met (using exact floating point comparison) const metQuorum = calculations.participationRate >= quorumPercentage; const metThreshold = calculations.totalVotes > 0 @@ -70,7 +70,7 @@ export function ProposalHeader({ proposal }: ProposalHeaderProps) { // Helper function to get status text const getStatusText = (isMet: boolean, percentage: number) => { if (isMet) return "Passed"; - return `${percentage.toFixed(1)}%`; + return `${percentage.toFixed(4)}%`; }; // Get DAO/token image - prioritize token image, fallback to DAO image if available diff --git a/src/components/proposals/VotesTable.tsx b/src/components/proposals/VotesTable.tsx index c3c35108..da323d62 100644 --- a/src/components/proposals/VotesTable.tsx +++ b/src/components/proposals/VotesTable.tsx @@ -72,7 +72,7 @@ const VotesTable = ({ proposalId, limit }: VotesTableProps) => { return ( {typeof finalScore === "number" - ? finalScore.toFixed(1) + ? finalScore.toFixed(4) : String(finalScore)} ); @@ -82,7 +82,7 @@ const VotesTable = ({ proposalId, limit }: VotesTableProps) => { return ( {typeof parsedScore === "number" - ? parsedScore.toFixed(1) + ? parsedScore.toFixed(4) : String(parsedScore)} ); diff --git a/src/components/proposals/VotingProgressChart.tsx b/src/components/proposals/VotingProgressChart.tsx index 3facf42b..44425d6a 100644 --- a/src/components/proposals/VotingProgressChart.tsx +++ b/src/components/proposals/VotingProgressChart.tsx @@ -90,7 +90,7 @@ const VotingProgressChart = ({ const quorumPercentage = safeNumberFromBigInt(proposal.voting_quorum); const thresholdPercentage = safeNumberFromBigInt(proposal.voting_threshold); - // Calculate if requirements are met + // Calculate if requirements are met (using exact floating point comparison) const metQuorum = calculations.participationRate >= quorumPercentage; const metThreshold = calculations.totalVotes > 0 @@ -127,7 +127,7 @@ const VotingProgressChart = ({ return "Met"; } return percentage !== undefined - ? `In Progress (${percentage.toFixed(1)}%)` + ? `In Progress (${percentage.toFixed(4)}%)` : "In Progress"; } @@ -492,7 +492,7 @@ const VotingProgressChart = ({ decimals={8} variant="abbreviated" />{" "} - ({enhancedCalculations.votesForPercent.toFixed(1)}%) + ({enhancedCalculations.votesForPercent.toFixed(4)}%) ) : ( Failed to fetch @@ -507,7 +507,7 @@ const VotingProgressChart = ({ decimals={8} variant="abbreviated" />{" "} - ({enhancedCalculations.votesAgainstPercent.toFixed(1)}%) + ({enhancedCalculations.votesAgainstPercent.toFixed(4)}%) ) : ( Failed to fetch @@ -592,7 +592,7 @@ const VotingProgressChart = ({
- Approval: {enhancedCalculations.approvalRate.toFixed(1)}% of votes + Approval: {enhancedCalculations.approvalRate.toFixed(4)}% of votes cast
@@ -658,7 +658,7 @@ const VotingProgressChart = ({
- {enhancedCalculations.participationRate.toFixed(1)}% of{" "} + {enhancedCalculations.participationRate.toFixed(4)}% of{" "} {enhancedCalculations.quorumPercentage}% required
@@ -715,7 +715,7 @@ const VotingProgressChart = ({
- {enhancedCalculations.approvalRate.toFixed(1)}% of{" "} + {enhancedCalculations.approvalRate.toFixed(4)}% of{" "} {enhancedCalculations.thresholdPercentage}% required
From d366e742f718d713a7d9ef168f058e917e15bf60 Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Sat, 29 Nov 2025 12:57:26 +0545 Subject: [PATCH 03/15] remove animation --- src/components/proposals/ProposalCard.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/proposals/ProposalCard.tsx b/src/components/proposals/ProposalCard.tsx index e37b33d0..f46f8fb3 100644 --- a/src/components/proposals/ProposalCard.tsx +++ b/src/components/proposals/ProposalCard.tsx @@ -15,7 +15,6 @@ import { useProposalStatus } from "@/hooks/useProposalStatus"; import { useProposalVote } from "@/hooks/useProposalVote"; import { Button } from "@/components/ui/button"; import { RefreshCw, AlertCircle } from "lucide-react"; -import { motion } from "framer-motion"; import { safeNumberFromBigInt } from "@/utils/proposal"; import { cn } from "@/lib/utils"; @@ -152,12 +151,7 @@ export default function ProposalCard({ }, [proposal]); return ( - +
- +
); } From f609b5b00e09827632e6342c34e8c8b0c3defafd Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Sat, 29 Nov 2025 13:09:01 +0545 Subject: [PATCH 04/15] update --- src/components/aidaos/RootDAOPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index 9c0abdbb..2394cf5c 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -429,7 +429,7 @@ export function RootDAOPage({ children, daoName }: RootDAOPageProps) { return (
-
+
{/*
From 7609dcef8064aaef9bd56ee04047c4b5f0075e2d Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Sat, 29 Nov 2025 13:16:38 +0545 Subject: [PATCH 05/15] update --- src/components/aidaos/RootDAOPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index 2394cf5c..70fd497a 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -428,8 +428,8 @@ export function RootDAOPage({ children, daoName }: RootDAOPageProps) { // }; return ( -
-
+
+
{/*
@@ -625,7 +625,7 @@ details in next post`}
-
+
); } From 91e6acd729bc9b9128ef6224afb36849ea8fc7ba Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Sat, 29 Nov 2025 13:23:09 +0545 Subject: [PATCH 06/15] fix(mobile): resolve scroll issue in submission history --- src/components/aidaos/DAOTabLayout.tsx | 2 +- src/components/proposals/ProposalCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/aidaos/DAOTabLayout.tsx b/src/components/aidaos/DAOTabLayout.tsx index 73b498e2..2271c540 100644 --- a/src/components/aidaos/DAOTabLayout.tsx +++ b/src/components/aidaos/DAOTabLayout.tsx @@ -73,7 +73,7 @@ export function DAOTabLayout({
) : ( -
{children}
+
{children}
)}
diff --git a/src/components/proposals/ProposalCard.tsx b/src/components/proposals/ProposalCard.tsx index f46f8fb3..bd815bbc 100644 --- a/src/components/proposals/ProposalCard.tsx +++ b/src/components/proposals/ProposalCard.tsx @@ -156,7 +156,7 @@ export default function ProposalCard({ href={`/proposals/${proposal.id}`} className="block group cursor-pointer" > -
+
{/* Header */}
From df0b38dd5c0f96ce760a54b4ca0d07fe9da898ef Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Sat, 29 Nov 2025 13:32:18 +0545 Subject: [PATCH 07/15] re-implement the scroll animation --- src/components/proposals/ProposalCard.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/proposals/ProposalCard.tsx b/src/components/proposals/ProposalCard.tsx index bd815bbc..ea074b87 100644 --- a/src/components/proposals/ProposalCard.tsx +++ b/src/components/proposals/ProposalCard.tsx @@ -17,6 +17,7 @@ import { Button } from "@/components/ui/button"; import { RefreshCw, AlertCircle } from "lucide-react"; import { safeNumberFromBigInt } from "@/utils/proposal"; import { cn } from "@/lib/utils"; +import { motion } from "framer-motion"; interface ProposalCardProps { proposal: Proposal | ProposalWithDAO; @@ -151,7 +152,12 @@ export default function ProposalCard({ }, [proposal]); return ( -
+ -
+ ); } From ad8eae95a721997c235e56ae0ee71f89529e7010 Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 1 Dec 2025 14:44:39 -0700 Subject: [PATCH 08/15] fix: update with latest order reference --- src/components/aidaos/RootDAOPage.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index 70fd497a..a4bdcb76 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -527,12 +527,12 @@ export function RootDAOPage({ children, daoName }: RootDAOPageProps) {
From e010d2dfbb2531b5e578ed2f10ac0ab935ed3988 Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 1 Dec 2025 14:49:03 -0700 Subject: [PATCH 09/15] feat: add optional image and code to display --- src/components/twitter/TwitterCard.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/twitter/TwitterCard.tsx b/src/components/twitter/TwitterCard.tsx index 11668c12..becf27f8 100644 --- a/src/components/twitter/TwitterCard.tsx +++ b/src/components/twitter/TwitterCard.tsx @@ -12,6 +12,7 @@ interface TwitterCardProps { verified?: boolean; link?: string; title?: string; + image?: string; } export const TwitterCard: React.FC = ({ @@ -24,6 +25,7 @@ export const TwitterCard: React.FC = ({ verified = false, link, title, + image, }) => { const handleClick = () => { if (link) { @@ -96,6 +98,17 @@ export const TwitterCard: React.FC = ({ {/* Tweet Content */}
{tweet} + {image && ( +
+ Tweet image +
+ )}
{/* Date and Time */} From e1ac674faccc4bef6b815b65d40e197970e659a9 Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 1 Dec 2025 14:49:12 -0700 Subject: [PATCH 10/15] fix: pass image from tweet --- src/components/aidaos/RootDAOPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index a4bdcb76..d6968474 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -538,12 +538,13 @@ quote this post with the video and neighborhood you were in approved entries earn $50 BTC -details in next post`} +click for full details`} date="Nov 25, 2025" // time="8:14 PM" avatarUrl="/logos/aibtcdev-avatar-250px.png" verified={true} link="https://x.com/aibtcdev/status/1995580321014976795" + image="https://pbs.twimg.com/media/G7G5uZ4aoAAMS9g?format=jpg&name=medium" title="AIBTC Current Order" />
From 2dcabbf486e9703d46a07a847e4c4ba006e8ffdd Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 1 Dec 2025 15:30:52 -0700 Subject: [PATCH 11/15] Revert "fix: pass image from tweet" This reverts commit e1ac674faccc4bef6b815b65d40e197970e659a9. --- src/components/aidaos/RootDAOPage.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index d6968474..a4bdcb76 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -538,13 +538,12 @@ quote this post with the video and neighborhood you were in approved entries earn $50 BTC -click for full details`} +details in next post`} date="Nov 25, 2025" // time="8:14 PM" avatarUrl="/logos/aibtcdev-avatar-250px.png" verified={true} link="https://x.com/aibtcdev/status/1995580321014976795" - image="https://pbs.twimg.com/media/G7G5uZ4aoAAMS9g?format=jpg&name=medium" title="AIBTC Current Order" />
From 7ef66d8c28f6d99f5d789c8aaf36bf331703b3ce Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 1 Dec 2025 15:30:52 -0700 Subject: [PATCH 12/15] Revert "feat: add optional image and code to display" This reverts commit e010d2dfbb2531b5e578ed2f10ac0ab935ed3988. --- src/components/twitter/TwitterCard.tsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/components/twitter/TwitterCard.tsx b/src/components/twitter/TwitterCard.tsx index becf27f8..11668c12 100644 --- a/src/components/twitter/TwitterCard.tsx +++ b/src/components/twitter/TwitterCard.tsx @@ -12,7 +12,6 @@ interface TwitterCardProps { verified?: boolean; link?: string; title?: string; - image?: string; } export const TwitterCard: React.FC = ({ @@ -25,7 +24,6 @@ export const TwitterCard: React.FC = ({ verified = false, link, title, - image, }) => { const handleClick = () => { if (link) { @@ -98,17 +96,6 @@ export const TwitterCard: React.FC = ({ {/* Tweet Content */}
{tweet} - {image && ( -
- Tweet image -
- )}
{/* Date and Time */} From b6eca5838dc98aa00af615cdf2bc9132e619a211 Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 8 Dec 2025 12:46:22 -0700 Subject: [PATCH 13/15] feat: toggle to new AIBTC-R1 dao --- src/config/features.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/features.ts b/src/config/features.ts index f55113d2..78f6b81f 100644 --- a/src/config/features.ts +++ b/src/config/features.ts @@ -1,7 +1,7 @@ // when enabled will show only a single DAO throughout the app export const enableSingleDaoMode = true; // only required when single DAO mode is enabled -export const singleDaoName = "AIBTC-LAX"; +export const singleDaoName = "AIBTC-R1"; // Reward configuration // Reward amount in USD for each passed proposal From e667363b4f1677518403277f38b811fd4d9ffa6f Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Mon, 8 Dec 2025 12:48:46 -0700 Subject: [PATCH 14/15] fix: update reward amount too --- src/config/features.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config/features.ts b/src/config/features.ts index 78f6b81f..c6a2e67a 100644 --- a/src/config/features.ts +++ b/src/config/features.ts @@ -2,7 +2,5 @@ export const enableSingleDaoMode = true; // only required when single DAO mode is enabled export const singleDaoName = "AIBTC-R1"; - -// Reward configuration -// Reward amount in USD for each passed proposal -export const rewardPerPassedProposal = 50; +// reward amount in USD for each passed proposal +export const rewardPerPassedProposal = 1; From 1a0858fd77c81a4e5eac65a8d3d085dcbdb1985a Mon Sep 17 00:00:00 2001 From: biwasbhandari Date: Tue, 9 Dec 2025 11:03:19 +0545 Subject: [PATCH 15/15] update order and date --- src/components/aidaos/RootDAOPage.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/components/aidaos/RootDAOPage.tsx b/src/components/aidaos/RootDAOPage.tsx index a4bdcb76..14b8084b 100644 --- a/src/components/aidaos/RootDAOPage.tsx +++ b/src/components/aidaos/RootDAOPage.tsx @@ -527,23 +527,22 @@ export function RootDAOPage({ children, daoName }: RootDAOPageProps) {