Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve validation tooltip and grouping #103

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/app/components/validationChecks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const TransactionChecks = ({
</Box>

<Box display="flex" alignItems="center" gap={0.5}>
<InfoWithTooltip info="Should you be signing this transactions?" />
<InfoWithTooltip info="Is this an unsigned transaction or is it already signed?" />
<Typography display="flex" flexDirection="column" width="45%" variant="body1" fontWeight="bold">
Transaction is unsigned?: {isUnsignedTransaction ? "✅" : "❌"}
</Typography>
Expand All @@ -54,16 +54,10 @@ export const TransactionChecks = ({
Is Intersect ICC credential?: {hasICCCredentials ? "✅" : "❌"}
</Typography>
</Box>

<Box display="flex" alignItems="center" gap={0.5}>
<InfoWithTooltip info="Does the document hosted at the provided metadata URL match the provided hash?" />
<Typography variant="body1" fontWeight="bold">
Does the metadata match the provided hash?: {isMetadataAnchorValid ? "✅" : "❌"}
</Typography>
</Box>
</Box>

<Box display="flex" flexDirection="column" gap={2} width="48%">

<Box display="flex" alignItems="center" gap={0.5}>
<InfoWithTooltip info="Does the transaction only contain one vote? multiple votes could be misleading" />
<Typography variant="body1" fontWeight="bold">
Expand All @@ -84,6 +78,14 @@ export const TransactionChecks = ({
Is voting key in plutus data?: {isInOutputPlutusData ? "✅" : "❌"}
</Typography>
</Box>

<Box display="flex" alignItems="center" gap={0.5}>
<InfoWithTooltip info="Does the document hosted at the provided metadata URL match the provided hash?" />
<Typography variant="body1" fontWeight="bold">
Does the metadata match the provided hash?: {isMetadataAnchorValid ? "✅" : "❌"}
</Typography>
</Box>

</Box>
</Box>

Expand Down