-
Notifications
You must be signed in to change notification settings - Fork 14
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
Balance Module: Update latest movement message when not effective #355
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/aragon/court-dashboard/evggngb04 |
{convertToString(activity.type, activity.direction)} | ||
{activity.isImmediate && !activity.isEffective | ||
? 'Effective next term' | ||
: convertToString(activity.type, activity.direction)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we should have a tooltip for the Active
part of the balance module when it's Effective next term
.
I can still see a user being confused about their "immediate" active balance vs. their "effective" active balance at the moment, as we only show one value in the module.
@@ -218,7 +218,9 @@ const LatestActivity = ({ activity, distribution }) => { | |||
color: ${theme.content}; | |||
`} | |||
> | |||
{convertToString(activity.type, activity.direction)} | |||
{activity.isImmediate && !activity.isEffective | |||
? 'Effective next term' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should have different text for the Inactive
part of the balance module to clarify where the inactive portion has moved (to be withdrawal or activated).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm yeah perhaps doesn't make sense to show the effective next term
message there since is not something that is relevant for that balance and we can just return the Activated
.
|
It is included already in the balance yes.
The Regarding the message, the intention of it is to show the reason of why the balance increased/decreased and in this the inactive balance decreased by Do you see that a little confusing? Regarding the wallet balance movement, in our local environment we run a script which does two txs to initiate balances, first moves the amount from the wallet balance to the inactive balance(and that's why it's showing the withdrawal) before moving it to the active balance. (In production this would not occur) since the dashboard only allows moving from wallet balance to active balance in one tx. |
I think the ANJ should only be included in the active balance once it is "effective".
It is a bit confusing but perhaps only because I lacked context for why the ANJ was being deducted from the Inactive column. We can leave this part as-is for now. |
fixes #340
Shows a
Effective next term
message when the movement is immediate and not yet effective.By immediate we mean that the movement had an immediate impact on the total balance.
E.g for activating tokens, the active balance is already increased, the increased amount is not yet effective in that is not going to be taken into account for drafting.
Was not totally sure of using the sandglass icon as suggested by @john-light #340 (comment) since it wouldn't give you an idea of whether the movement is positive or not. For example, another immediate movement that can be not yet effective is slashing.
Preview
Not effective
Effective