Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
16ea0c2
fix: Laggy and Unresponsive Search Field in Proposal Discussion Forum
MihajlovicMilos1995 Jun 26, 2025
fc6a49b
Merge pull request #321 from IntersectMBO/fix/-🐛-Bug--Laggy-and-Unres…
MihajlovicMilos1995 Jun 26, 2025
d0e57f1
fix: Submit as Governance Action" Button Misaligned on Mobile View (3…
MihajlovicMilos1995 Jun 27, 2025
b17831d
feat: Display submission date for proposed governance actions
MihajlovicMilos1995 Jun 27, 2025
1243a95
Merge pull request #322 from IntersectMBO/fix/Submit-as-Governance-Ac…
MihajlovicMilos1995 Jun 27, 2025
be6e716
Update version
nebojsact Jun 27, 2025
26889cb
Update version
nebojsact Jun 27, 2025
04177ca
fix/ align links, return ada cost to 100000
MihajlovicMilos1995 Jun 30, 2025
ec5c4c2
Merge pull request #323 from IntersectMBO/fix/Submit-as-Governance-Ac…
MihajlovicMilos1995 Jun 30, 2025
83021a8
chore: Update changelog for version 1.0.4-beta and enhance visibility…
MihajlovicMilos1995 Jun 30, 2025
83be6ca
Merge branch 'dev' into fix/Submit-as-Governance-Action-Button-Misali…
MihajlovicMilos1995 Jun 30, 2025
4aa4967
Merge pull request #324 from IntersectMBO/fix/Submit-as-Governance-Ac…
MihajlovicMilos1995 Jun 30, 2025
e2040f7
chore: Update changelog for version 1.0.5-beta and adjust layout in S…
MihajlovicMilos1995 Jun 30, 2025
7e3f4ed
Merge pull request #325 from IntersectMBO/chore--bump-version-to-1.0.5
MihajlovicMilos1995 Jun 30, 2025
cf60155
chore: Update changelog for version 1.0.6-beta and enhance layout in …
MihajlovicMilos1995 Jun 30, 2025
e0aab08
Merge pull request #326 from IntersectMBO/chore--bump-version-to-1.0.5
MihajlovicMilos1995 Jun 30, 2025
1ad0ca3
chore: Update changelog for version 1.0.7-beta and modify SingleGover…
MihajlovicMilos1995 Jun 30, 2025
4d3a84f
Merge branch 'dev' into chore--bump-version-to-1.0.5
MihajlovicMilos1995 Jun 30, 2025
d155144
Merge pull request #327 from IntersectMBO/chore--bump-version-to-1.0.5
MihajlovicMilos1995 Jun 30, 2025
cdef144
fix: Update layout in SingleGovernanceAction for better responsiveness
MihajlovicMilos1995 Jul 1, 2025
216f007
Merge branch 'dev' into chore--bump-version-to-1.0.5
MihajlovicMilos1995 Jul 1, 2025
3f1dddf
chore: Update version to 1.0.8-beta and add changelog entry for upcom…
MihajlovicMilos1995 Jul 1, 2025
2cdfc0c
Merge pull request #328 from IntersectMBO/chore--bump-version-to-1.0.5
MihajlovicMilos1995 Jul 1, 2025
1f9b87a
fix: Remove console log from LinkManager and update URL handling in o…
MihajlovicMilos1995 Jul 2, 2025
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
45 changes: 36 additions & 9 deletions pdf-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,85 @@ 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.3-alfa](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.3-beta) 2025-06-19
- Fix Vote link visibility
## [v1.0.8-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.8-beta) 2025-06-30
- Align Vote link

## [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

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

## [v1.0.4-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.4-beta) 2025-06-30

- Align Vote link
- Add conditional statement for visibility of poll header text

## [v1.0.3-alfa](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.3-alfa) 2025-06-19

- Fix removed voting button for non drep on budget proposal

## [v1.0.2-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.2-beta) 2025-06-19
- Fix submit to ga button

- Fix submit to ga button
- Added pointer to links

## [v1.0.2-alfa](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.2-alfa) 2025-06-18

- Change login

## [v1.0.0-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.1-beta) 2025-06-18

- Change login
- Fix Invalid Link Validation Bypassed in Proposal Creation via UI and API #3715

## [v1.0.1-alfa](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.1-alfa) 2025-06-12
- Change: User verification mechanism changed to follow process

- Change: User verification mechanism changed to follow process

## [v1.0.0-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.0-beta) 2025-06-11

- Fix Hard Fork Proposal type

## [v1.0.0-alfa](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.0-alfa) 2025-06-05

- Added Hard Fork Proposal type

## [v0.7.0-beta-36](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-36) 2025-06-04

- Fix data-testIds

## [v0.7.0-beta-35](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-35) 2025-06-03

- Fix data-testIds

## [v0.7.0-beta-34](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-34) 2025-06-03

- Fix data-testIds
- Adjust link validation in proposal


## [v0.7.0-beta-33](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-33) 2025-06-02

- Remove CSS Rounded Edges on Creating Governance Action Pages on background
- Fix data-testIds



## [v0.7.0-beta-32](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-32) 2025-05-29

- fix: Update data-testid attributes for improved accessibility in form…
- Hardware Wallet warning #2575 wording updated
- Hardware Wallet warning #2575 wording updated
- fix: Refactor sorting mechanism
- fix: Fix display cards in Proposal Discussion

### Fixed

## [v0.7.0-beta-31](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-31) 2025-05-28

### Fixed

- feat: Enhanced Markdown rendering to support additional tags and styl…
- fix: Update data-testid attributes for improved accessibility in form…
- Hardware Wallet warning #2575
Expand All @@ -72,7 +99,6 @@ changes.
- Fix labeling for USD to ADA conversation rate #3692
- feat: Enhance sorting functionality in ProposalsList and ProposedGove…


## [v0.7.0-beta-28](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-30) 2025-05-26

### Fixed
Expand All @@ -85,6 +111,7 @@ changes.
- fix: Remove unnecessary optional chaining for content attribute in BudgetDiscussionReviewVersions component

### Added

- feat/ Implement Infinite Scroll for Proposal Discussion Forum Section…

## [v0.7.0-beta-28](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.7.0-beta-29) 2025-05-15
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.3-beta",
"version": "1.0.8-beta",
"description": "Proposal discussion ui",
"main": "./src/index.js",
"exports": {
Expand Down
3 changes: 2 additions & 1 deletion pdf-ui/src/components/CreateGovernanceActionDialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ const CreateGovernanceActionDialog = ({ open = false, onClose = false }) => {
linksErrors,
withdrawalsErrors,
constitutionErrors,
]); // proposalData is a dependency
]);

// useEffect(() => {
// handleIsContinueDisabled()
// },[proposalData])
Expand Down
2 changes: 0 additions & 2 deletions pdf-ui/src/components/CreationGoveranceAction/LinkManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ const LinkManager = ({
});
};

console.log('linksErrors', linksErrors);

return (
<Box>
{proposalData?.proposal_links?.map((link, index) => (
Expand Down
10 changes: 6 additions & 4 deletions pdf-ui/src/components/ProposalsList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ProposalsList = ({
const [pageCount, setPageCount] = useState(0);
const [currentPage, setCurrentPage] = useState(1);
const [mounted, setMounted] = useState(false);
const debouncedSearchValue = useDebounce(searchText.trim());
// const debouncedSearchValue = useDebounce(searchText.trim());
const [shouldRefresh, setShouldRefresh] = useState(false);
const isXs = useMediaQuery(theme.breakpoints.only('xs'));
const isSm = useMediaQuery(theme.breakpoints.only('sm'));
Expand All @@ -69,6 +69,7 @@ const ProposalsList = ({
));

const fetchProposals = async (reset = true, page) => {
console.log('Fetching proposals');
const haveSubmittedFilter = statusList?.some(
(filter) => filter === 'submitted'
);
Expand All @@ -87,14 +88,14 @@ const ProposalsList = ({
query = `filters[$and][0][gov_action_type_id]=${
governanceAction?.id
}&filters[$and][1][prop_name][$containsi]=${
debouncedSearchValue || ''
searchText || ''
}&pagination[page]=${page}&pagination[pageSize]=25&sort[${sortType.fieldId}]=${sortType.type}&populate[0]=proposal_links&populate[1]=proposal_withdrawals&populate[2]=proposal_constitution_content&populate[3]=proposal`;
} else {
const isSubmitted = haveSubmittedFilter ? 'true' : 'false';
query = `filters[$and][0][gov_action_type_id]=${
governanceAction?.id
}&filters[$and][1][prop_name][$containsi]=${
debouncedSearchValue || ''
searchText || ''
}&filters[$and][2][prop_submitted]=${isSubmitted}&pagination[page]=${page}&pagination[pageSize]=25&sort[${sortType.fieldId}]=${sortType.type}&populate[0]=proposal_links&populate[1]=proposal_withdrawals&populate[2]=proposal_constitution_content&populate[3]=proposal`;
}
}
Expand Down Expand Up @@ -128,7 +129,8 @@ const ProposalsList = ({
}
}, [
mounted,
debouncedSearchValue,
// debouncedSearchValue,
searchText,
sortTypeString,
isDraft ? null : statusListString,
showAllActivated,
Expand Down
6 changes: 4 additions & 2 deletions pdf-ui/src/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export function isValidURLLength(s) {
}

export const openInNewTab = (url) => {
if (!url.startsWith('http://') && !url.startsWith('https://')) {
if (url.startsWith('ipfs://')) {
url = url.replace('ipfs://', 'https://ipfs.io/ipfs/');
} else if (!url.startsWith('http://') && !url.startsWith('https://')) {
url = 'https://' + url;
}
const newWindow = window.open(url, '_blank', 'noopener,noreferrer');
Expand Down Expand Up @@ -177,4 +179,4 @@ export const correctVoteAdaFormat = (
});
}
return '0';
};
};
27 changes: 15 additions & 12 deletions pdf-ui/src/pages/BudgetDiscussion/SingleBudgetDiscussion/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ const SingleBudgetDiscussion = ({ id }) => {
handleOpenReviewVersions()
}
data-testid='review-version'
sx={{ cursor: 'pointer' }}
sx={{ cursor: 'pointer' }}
>
Review Versions
</Link>
Expand Down Expand Up @@ -1844,17 +1844,20 @@ const SingleBudgetDiscussion = ({ id }) => {
</CardContent>
</Card>
</Box>

<Box
mt={4}
display='flex'
alignItems='center'
justifyContent='space-between'
>
<Typography variant='h4' component='h3'>
Poll of DRep sentiment
</Typography>
</Box>
{activePoll &&
proposal?.attributes?.submitted_for_vote ===
null && (
<Box
mt={4}
display='flex'
alignItems='center'
justifyContent='space-between'
>
<Typography variant='h4' component='h3'>
Poll of DRep sentiment
</Typography>
</Box>
)}

{activePoll &&
proposal?.attributes?.submitted_for_vote ===
Expand Down
Loading