Skip to content

Commit 50098ce

Browse files
committed
Enhance Collaborative Treasury page: update financial metrics display and improve token information tooltips
1 parent 5556647 commit 50098ce

File tree

1 file changed

+43
-28
lines changed

1 file changed

+43
-28
lines changed

src/pages/Collaborative/Treasury.page.tsx

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -120,34 +120,11 @@ export function CollaborativeTreasury() {
120120
</Title>
121121

122122
<Title order={4} mt="md">
123-
Launch Tokens
123+
Launch Tokens Created = {collaborative.tokensCreated?.toLocaleString('en-US')}
124124
</Title>
125125

126-
<Title order={4} lts="1px" mt="sm" c="green">Financial Health Metrics</Title>
127-
<Paper p="lg" radius="md" bg="#fafafa">
128-
<SimpleGrid cols={{ base: 1, xs: 1, sm: 3 }}>
129-
<div>
130-
<Tooltip color="gray" label="(Total Token Assets) / (Total Token Liabilities)">
131-
<Text fz="md" fw={500} c="#999">Working Token Ratio</Text>
132-
</Tooltip>
133-
<Text fz="xl" fw={700} c="#444">{Math.round(workingTokenRatio)}</Text>
134-
</div>
135-
<div>
136-
<Tooltip color="gray" label="(Total Token Assets) - (Total Token Liabilities)">
137-
<Text fz="md" fw={500} c="#999">Working Token Capital</Text>
138-
</Tooltip>
139-
<Text fz="xl" fw={700} c="#444">{Math.round(totalTokenAssets - totalTokenLiabilities)}</Text>
140-
</div>
141-
<div>
142-
<Tooltip color="gray" label="(Current Token Balance) - (Total Token Liabilities)">
143-
<Text fz="md" fw={500} c="#999">Net Token Assets</Text>
144-
</Tooltip>
145-
<Text fz="xl" fw={700} c="#444">{Math.round(collaborative.tokenBalance - totalTokenLiabilities)}</Text>
146-
</div>
147-
</SimpleGrid>
148-
</Paper>
149-
150126
<Title order={4} lts="1px" mt="xl" c="green">Launch Token Release</Title>
127+
<Text c="dimmed">({collaborative.tokenReleaseRate}% of the remaining Launch Tokens are released every {collaborative.launchCyclePeriodWeeks} weeks)</Text>
151128

152129
<Paper p="lg" radius="md" bg="#fafafa">
153130
<SimpleGrid cols={{ base: 1, xs: 1, sm: 3 }}>
@@ -176,6 +153,31 @@ export function CollaborativeTreasury() {
176153
</SimpleGrid>
177154
</Paper>
178155

156+
<Title order={4} lts="1px" mt="sm" c="green">Financial Health Metrics</Title>
157+
158+
<Paper p="lg" radius="md" bg="#fafafa">
159+
<SimpleGrid cols={{ base: 1, xs: 1, sm: 3 }}>
160+
<div>
161+
<Tooltip color="gray" label="(Total Token Assets) / (Total Token Liabilities)">
162+
<Text fz="md" fw={500} c="#999">Working Token Ratio</Text>
163+
</Tooltip>
164+
<Text fz="xl" fw={700} c="#444">{Math.round(workingTokenRatio)}</Text>
165+
</div>
166+
<div>
167+
<Tooltip color="gray" label="(Total Token Assets) - (Total Token Liabilities)">
168+
<Text fz="md" fw={500} c="#999">Working Token Capital</Text>
169+
</Tooltip>
170+
<Text fz="xl" fw={700} c="#444">{Math.round(totalTokenAssets - totalTokenLiabilities)}</Text>
171+
</div>
172+
<div>
173+
<Tooltip color="gray" label="(Current Token Balance) - (Total Token Liabilities)">
174+
<Text fz="md" fw={500} c="#999">Net Token Assets</Text>
175+
</Tooltip>
176+
<Text fz="xl" fw={700} c="#444">{Math.round(collaborative.tokenBalance - totalTokenLiabilities)}</Text>
177+
</div>
178+
</SimpleGrid>
179+
</Paper>
180+
179181
<SimpleGrid cols={{ base: 1, xs: 2 }} mt="xl" mb="md" spacing="xl">
180182
<div>
181183
<Title order={4} lts="1px" c="blue">Current Token Assets</Title>
@@ -189,7 +191,7 @@ export function CollaborativeTreasury() {
189191
<Text fz="md" fw={500} c="#999">Tokens Receivable</Text>
190192
</Tooltip>
191193

192-
<Text fz="xl" fw={500} c="#444">{collaborative.tokensReceivable}</Text>
194+
<Text fz="xl" fw={500} c="#444">{(collaborative.tokensReceivable).toFixed(2)}</Text>
193195

194196
<Tooltip
195197
color="gray"
@@ -208,11 +210,24 @@ export function CollaborativeTreasury() {
208210
<Text fz="xl" fw={500} c="#444">{totalTokenAssets.toFixed(2)}</Text>
209211
</Stack>
210212
</Paper>
211-
<Text fz="md" fw={500} c="#999">Launch Token Price</Text>
213+
<Tooltip
214+
color="gray"
215+
label="Token reimbursement rate for approved cash expenditures."
216+
multiline
217+
w={220}>
218+
<Text fz="md" fw={500} c="#999">Launch Token Price</Text>
219+
</Tooltip>
212220
<Text fz="xl" fw={700} c="#444">${(collaborative.tokenValue).toFixed(2)}</Text>
213221
</div>
214222
<div>
215-
<Title order={4} lts="1px" c="blue">Current Token Liabilities</Title>
223+
<Tooltip
224+
color="gray"
225+
label="Collaborative Admin Pay + Project Work."
226+
multiline
227+
w={220}>
228+
<Title order={4} lts="1px" c="blue">Current Token Liabilities</Title>
229+
</Tooltip>
230+
216231
<Paper p="lg" withBorder radius="md" mb="sm" mt="lg">
217232
<Stack>
218233

0 commit comments

Comments
 (0)