Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions pdf-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
As a minor extension, we also keep a semantic version for the `UNRELEASED`
changes.

## [v1.0.7-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.7-beta) 2025-06-30
- Align Vote link
- Fix: "Verify Yourself to submit" Message Displayed on Already Submitted Proposals #3857

## [v1.0.6-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.6-beta) 2025-06-30
- Align Vote link

Expand Down
2 changes: 1 addition & 1 deletion pdf-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@intersect.mbo/pdf-ui",
"version": "1.0.6-beta",
"version": "1.0.7-beta",
"description": "Proposal discussion ui",
"main": "./src/index.js",
"exports": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,15 +697,22 @@ const SingleGovernanceAction = ({ id }) => {
}
</Card>
</Box> */}
<Box display={'flex'} justifyContent={'flex-end'}>
{checkShowValidation(false, walletAPI, user) && (
<UserValidation
type='governance'
drepCheck={false}
drepRequired={false}
/>
)}
</Box>
{!proposal?.attributes?.content?.attributes
?.prop_submitted && (
<Box display={'flex'} justifyContent={'flex-end'}>
{checkShowValidation(
false,
walletAPI,
user
) && (
<UserValidation
type='governance'
drepCheck={false}
drepRequired={false}
/>
)}
</Box>
)}

<Box mt={4}>
<Card>
Expand Down Expand Up @@ -1116,8 +1123,9 @@ const SingleGovernanceAction = ({ id }) => {
mt={2}
display='flex'
alignItems='flex-end'
gap={2}
>
<Box>
<Box width={110}>
<Typography
variant='caption'
sx={{
Expand All @@ -1131,84 +1139,67 @@ const SingleGovernanceAction = ({ id }) => {
? `Submitted on:`
: `Proposed on:`}
</Typography>
<Box
style={{
display: 'flex',
alignItems: 'center',
}}
gap={2}
>
<Typography
style={{ width: '105px' }}
>
{proposal?.attributes
?.content?.attributes
?.prop_submitted
? `${formatIsoDate(proposal?.attributes?.content?.attributes?.prop_submission_date)}`
: `${formatIsoDate(
proposal
?.attributes
?.createdAt
)}`}
</Typography>
<Box>
{user &&
proposal?.attributes
?.content?.attributes
?.prop_submitted ===
false &&
//proposal?.attributes?.prop_submitted &&
user?.user?.id?.toString() ===
proposal?.attributes?.user_id?.toString() ? (
<Link
variant='outlined'
data-testid='submit-as-GA-button'
sx={{
width: 'max-content',
cursor: 'pointer',
}}
onClick={async () => {
const balance =
await fetchCurrentWalletBalance();
if (
balance >=
100000.18
) {
await loginUserToApp(
{
wallet: walletAPI,
setUser,
setOpenUsernameModal,
callBackFn:
() => {
setOpenGASubmissionDialog(
true
);
},
clearStates,
addErrorAlert,
addSuccessAlert,
addChangesSavedAlert,
}
);
} else {
setOpenAlertDialog(
true
);
}
}}
>
Submit as Governance
Action
</Link>
) : null}
</Box>
</Box>
</Box>

{proposal?.attributes?.content
?.attributes?.prop_submitted ? (
<Box gap={2}>
<Typography>
{proposal?.attributes?.content
?.attributes?.prop_submitted
? `${formatIsoDate(proposal?.attributes?.content?.attributes?.prop_submission_date)}`
: `${formatIsoDate(
proposal?.attributes
?.createdAt
)}`}
</Typography>
</Box>
<Box>
{user &&
proposal?.attributes?.content
?.attributes?.prop_submitted ===
false &&
//proposal?.attributes?.prop_submitted &&
user?.user?.id?.toString() ===
proposal?.attributes?.user_id?.toString() ? (
<Link
variant='outlined'
data-testid='submit-as-GA-button'
sx={{
width: 'max-content',
cursor: 'pointer',
}}
onClick={async () => {
const balance =
await fetchCurrentWalletBalance();
if (
balance >= 100000.18
) {
await loginUserToApp(
{
wallet: walletAPI,
setUser,
setOpenUsernameModal,
callBackFn:
() => {
setOpenGASubmissionDialog(
true
);
},
clearStates,
addErrorAlert,
addSuccessAlert,
addChangesSavedAlert,
}
);
} else {
setOpenAlertDialog(
true
);
}
}}
>
Submit as Governance Action
</Link>
) : null}
{proposal?.attributes?.content
?.attributes?.prop_submitted ? (
<Link
variant='outlined'
data-testid='review-and-vote-link'
Expand All @@ -1224,16 +1215,16 @@ const SingleGovernanceAction = ({ id }) => {
>
Vote
</Link>
</Box>
) : null}
) : null}
</Box>
</Box>
<Box
mt={2}
display='flex'
alignItems='flex-end'
gap={2}
>
<Box>
<Box width={110}>
<Typography
variant='caption'
sx={{
Expand All @@ -1244,9 +1235,7 @@ const SingleGovernanceAction = ({ id }) => {
>
Last Edit:
</Typography>
<Typography
style={{ width: '105px' }}
>
<Typography>
{formatIsoDate(
proposal?.attributes
?.content?.attributes
Expand All @@ -1258,16 +1247,6 @@ const SingleGovernanceAction = ({ id }) => {
<Box>
<Link
variant='outlined'
// startIcon={
// <IconLink
// fill={
// theme.palette
// .primary.main
// }
// width='18'
// height='18'
// />
// }
onClick={() =>
handleOpenReviewVersions()
}
Expand Down