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

Bug fix #2438, #2435 #44

Merged
merged 4 commits into from
Dec 5, 2024
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
10 changes: 10 additions & 0 deletions pdf-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ 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.

## [v0.5.4](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.4) 2024-12-05

### Added -
### Fixed -
- Fix display Stake Address and Amount in Draft [Issue #2438](https://github.com/IntersectMBO/govtool/issues/2438)
- Fix Test Id names in review form [Issue #2437](https://github.com/IntersectMBO/govtool/issues/2437)
- Fix #2357 Display only last Inactive pool [Issue #2357](https://github.com/IntersectMBO/govtool/issues/2357)
### Changed -
### Removed -

## [v0.5.3](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.3) 2024-12-04

### Added -
Expand Down
4 changes: 2 additions & 2 deletions pdf-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "0.5.3",
"version": "0.5.4",
"description": "Proposal discussion ui",
"main": "./src/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion pdf-ui/src/components/CreationGoveranceAction/Step2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Step2 = ({
const { setLoading } = useAppContext();
const [selectedGovActionName, setSelectedGovActionName] = useState(
governanceActionTypes.find(
(option) => option?.value === proposalData?.gov_action_type_id
(option) => option?.value === +proposalData?.gov_action_type_id
)?.label || ''
);

Expand Down
4 changes: 2 additions & 2 deletions pdf-ui/src/components/CreationGoveranceAction/Step3.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const Step3 = ({
<Typography
variant='body1'
gutterBottom
data-testid='receiving-address-content'
data-testid='receiving-address-${index}-content'
>
{withdrawal.prop_receiving_address}
</Typography>
Expand All @@ -213,7 +213,7 @@ const Step3 = ({
<Typography
variant='body1'
gutterBottom
data-testid='amount-content'
data-testid='amount-${index}-content'
>
{withdrawal.prop_amount}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const SingleGovernanceAction = ({ id }) => {

const fetchUnactivePolls = async () => {
try {
const query = `filters[$and][0][proposal_id][$eq]=${proposal?.id}&filters[$and][1][is_poll_active]=false&pagination[page]=1&pagination[pageSize]=25&sort[createdAt]=desc`;
const query = `filters[$and][0][proposal_id][$eq]=${proposal?.id}&filters[$and][1][is_poll_active]=false&pagination[page]=1&pagination[pageSize]=1&sort[createdAt]=desc`;
const { polls, pgCount, total } = await getPolls({ query: query });
if (!polls) return;
setUnactivePollList(polls);
Expand Down
Loading