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

cancel proposal feature #4750

Merged
merged 3 commits into from
Jan 30, 2024
Merged

cancel proposal feature #4750

merged 3 commits into from
Jan 30, 2024

Conversation

vrrayz
Copy link
Contributor

@vrrayz vrrayz commented Jan 29, 2024

Fixes #4694

Copy link

vercel bot commented Jan 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Jan 30, 2024 3:33pm
pioneer-2 ✅ Ready (Inspect) Visit Preview Jan 30, 2024 3:33pm
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Jan 30, 2024 3:33pm

Copy link
Collaborator

@thesan thesan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add a happy case test in app/pages/Proposals/ProposalPreview.stories.tsx just to make sure the transaction was called once and with the correct parameters

Comment on lines 122 to 123
proposal.votes.length === 0 &&
proposal.status !== 'cancelled' && <CancelProposalButton member={active} proposalId={proposal.id} />}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proposal also has to be in an active state so deciding and maybe dormant (I'm not sure if a proposal can get to the dormant state without getting voted on let's put it just in case).

Copy link
Collaborator

@thesan thesan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appart from this LGTM, but lets wait for QA before merging

packages/ui/src/app/pages/Proposals/ProposalPreview.tsx Outdated Show resolved Hide resolved
@thesan thesan merged commit 3c166ec into Joystream:dev Jan 30, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposals: Cancel proposal button missing
2 participants