trying to improve the filtering options for target validators (#7080)
* removing redundant word 'only' When applying a filtering option, it is obvious that the resulting list will ONLY contain items that passed the filter. The remaining filtering options don't make use of the word 'only', o why use it here?. * positive wording These filtering options contain the word 'no' and may sound negative. Changing them slightly to achieve positive wording may improve UX. * The label 'single from operator' may sound unclear, especially for new users. Maybe being a bit more descriptive with 'one validator per operator' could help.
This commit is contained in:
parent
a26547956f
commit
84cbd83d36
@ -52,7 +52,7 @@ function Filtering ({ children, className, nameFilter, setNameFilter, setWithIde
|
||||
{api.query.identity && (
|
||||
<Toggle
|
||||
className='staking--buttonToggle'
|
||||
label={t<string>('only with an identity')}
|
||||
label={t<string>('with an identity')}
|
||||
onChange={setWithIdentity}
|
||||
value={withIdentity}
|
||||
/>
|
||||
|
||||
@ -310,7 +310,7 @@ function Targets ({ className = '', isInElection, ownStashes, targets: { avgStak
|
||||
>
|
||||
<Toggle
|
||||
className='staking--buttonToggle'
|
||||
label={t<string>('single from operator')}
|
||||
label={t<string>('one validator per operator')}
|
||||
onChange={setToggle.withGroup}
|
||||
value={toggles.withGroup}
|
||||
/>
|
||||
@ -318,8 +318,8 @@ function Targets ({ className = '', isInElection, ownStashes, targets: { avgStak
|
||||
className='staking--buttonToggle'
|
||||
label={
|
||||
MAX_COMM_PERCENT > 0
|
||||
? t<string>('no {{maxComm}}%+ comm', { replace: { maxComm: MAX_COMM_PERCENT } })
|
||||
: t<string>('no median+ comm')
|
||||
? t<string>('comm. < {{maxComm}}%', { replace: { maxComm: MAX_COMM_PERCENT } })
|
||||
: t<string>('comm. < median')
|
||||
}
|
||||
onChange={setToggle.withoutComm}
|
||||
value={toggles.withoutComm}
|
||||
@ -328,8 +328,8 @@ function Targets ({ className = '', isInElection, ownStashes, targets: { avgStak
|
||||
className='staking--buttonToggle'
|
||||
label={
|
||||
MAX_CAP_PERCENT < 100
|
||||
? t<string>('no {{maxCap}}%+ capacity', { replace: { maxCap: MAX_CAP_PERCENT } })
|
||||
: t<string>('no at capacity')
|
||||
? t<string>('capacity < {{maxCap}}%', { replace: { maxCap: MAX_CAP_PERCENT } })
|
||||
: t<string>('with capacity')
|
||||
}
|
||||
onChange={setToggle.withoutOver}
|
||||
value={toggles.withoutOver}
|
||||
@ -345,7 +345,7 @@ function Targets ({ className = '', isInElection, ownStashes, targets: { avgStak
|
||||
)}
|
||||
<Toggle
|
||||
className='staking--buttonToggle'
|
||||
label={t<string>('only elected')}
|
||||
label={t<string>('currently elected')}
|
||||
onChange={setToggle.withElected}
|
||||
value={toggles.withElected}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user