Closed barrytra closed 4 months ago
Fixes in new commits
If more than one fidelity bond exists, only the <0>the most valuable one</0> will be used.
is displayed like this:
Suggestions needed
Configure additional bond
button (when bond already exists) doesn't look very attractive to me. We could possibly remove that and IMO it won't change any significance.please have a look @theborakompanioni
From our conversation:
button
element<rb.Button size="sm" ... />
)Suggested changes have been made.. Pls have a review @theborakompanioni
Pls have a review @theborakompanioni
Looks nice and exactly as discussed. :rocket:
Can you check whether some added css classes are unused and can be removed?
Also, what do you think.. can we bring the existing bond help text back somehow?
<Trans i18nKey="earn.fidelity_bond.subtitle_fidelity_bond_exists">
<a
onClick={(e) => e.stopPropagation()}
rel="noopener noreferrer"
href="https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/fidelity-bonds.md#what-amount-of-bitcoins-to-lock-up-and-for-how-long"
>
{/* i18n placeholder */}
</a>
</Trans>
Also, what do you think.. can we bring the existing bond help text back somehow?
<Trans i18nKey="earn.fidelity_bond.subtitle_fidelity_bond_exists"> <a onClick={(e) => e.stopPropagation()} rel="noopener noreferrer" href="https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/fidelity-bonds.md#what-amount-of-bitcoins-to-lock-up-and-for-how-long" > {/* i18n placeholder */} </a> </Trans>
ya my fault.. It somehow disappeared from my code. Added it back now.. and css file has also been omitted.
Also, what do you think.. can we bring the existing bond help text back somehow?
<Trans i18nKey="earn.fidelity_bond.subtitle_fidelity_bond_exists"> <a onClick={(e) => e.stopPropagation()} rel="noopener noreferrer" href="https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/fidelity-bonds.md#what-amount-of-bitcoins-to-lock-up-and-for-how-long" > {/* i18n placeholder */} </a> </Trans>
ya my fault.. It somehow disappeared from my code. Added it back now.. and css file has also been omitted.
Nice. Looks good!
There really should be little to no reason for users to have more than one active fidelity bond, so I think this message can be emphasized a bit more. But I am okay with this being tackled in a follow-up PR.
Great work @barrytra - way better than before :muscle:
This PR fixes #756 Size of the button has been reduced to look like this:
Earlier it also had a message displayed as : "If more than one fidelity bond exists, only the <0>the most valuable one0> will be used." I don't get how to use this if we reduce the button size. So for now I have just commented this portion. One Idea is simply we can add this info in settings which will be tackled in next PR. Would love to hear any other suggestion as well.
Secondly the dropdown now looks a bit weird. like this: But This eventually should not be a problem as we would have a modal instead of dropdown.