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

fix: change user overview info #3332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adam-strzelec
Copy link
Contributor

Description

Change appearance of action overview card info
Screenshot 2024-10-15 at 11 26 15
Screenshot 2024-10-15 at 11 26 53

Testing

  • Create action with reputation
  • Finalize action

Diffs

New stuff ✨

Display date of complete action

Changes πŸ—

Change text inside cards

Resolves #31415

@adam-strzelec adam-strzelec self-assigned this Oct 15, 2024
@adam-strzelec adam-strzelec requested review from a team as code owners October 15, 2024 09:28
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


strzelec seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@rdig rdig left a comment

Choose a reason for hiding this comment

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

All good here, tested both with voting and without (just staking)

Screenshot from 2024-10-16 11-25-01
Screenshot from 2024-10-16 11-33-32
Screenshot from 2024-10-16 11-33-41

Also, a "action with reputation" is called a motion

Copy link
Collaborator

@jakubcolony jakubcolony left a comment

Choose a reason for hiding this comment

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

Thanks for your PR @adam-strzelec πŸ‘

Unfortunately, when I voted support as a user who did not stake, I got the failed message despite the motion passing:
image

@@ -116,6 +119,7 @@ export const useClaimConfig = (
actionData.motionData.motionStateHistory.hasFailedNotFinalizable;

const userStake = usersStakes.find(({ address }) => address === userAddress);
const userVote = voterRecord.some((item) => item.address === userAddress);
Copy link
Collaborator

Choose a reason for hiding this comment

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

how about hasUserVoted to indicate it's a boolean and not the vote value?

? 'motion.finalizeStep.failed.statusText'
: 'motion.finalizeStep.statusText',
id:
isMotionFailedNotFinalizable || (!userStake && userVote)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I'm following this. Why do we want to show failed status text if user did not stake but has voted?

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.

Completed state of Agreement + Motions Finalization addition
4 participants