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
Add group history page #10430
base: master
Are you sure you want to change the base?
Add group history page #10430
Conversation
This also includes all groups the user can normally view, for use in a group selector
lol
ebcc04d
to
80eb4e3
Compare
&__events { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
} | ||
|
||
&__none { |
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.
those are more like modifiers rather than elements.
return ( | ||
<form className={bn} data-loading-overlay='0' onSubmit={this.onSubmit}> | ||
<div className={`${bn}__content ${bn}__content--inputs`}> | ||
<InputContainer for='group' labelKey='group_history.form.group'> |
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.
for
breaks label target
<div className={`${bn}__select-container`}> | ||
<select | ||
className={`${bn}__input`} |
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.
interleaving the block hasn't been a good idea. this also caused repeating of the styling
{trans('group_history.form.group_all')} | ||
</option> | ||
{groupStore.all.map((group) => ( | ||
<option key={group.id} value={group.identifier}> |
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.
the dropdown is unreadable with white/gray background. Also the dropdown arrow doesn't align quite right
import { action, computed, makeObservable, observable } from 'mobx'; | ||
|
||
class GroupStore { | ||
@observable byId = observable.map<number, GroupJson>(); |
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.
observable.map can just be normal object
}; | ||
|
||
if ('playmodes' in event && event.playmodes != null) { | ||
mappings.playmodes = transArray( |
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.
should probably be called ruleset
@icons: { | ||
group-add: users; | ||
group-remove: users-slash; | ||
group-rename: users-cog; | ||
user-add: user-plus; | ||
user-add-playmodes: user-tag; | ||
user-remove: user-minus; | ||
user-remove-playmodes: user-tag; | ||
user-set-default: user-cog; | ||
}; | ||
each(@icons, { | ||
.@{_top}--@{key} & { | ||
@icon-var: 'fa-var-@{value}'; | ||
--icon: @@icon-var; | ||
} | ||
}); |
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.
set at block level? Also for the message bold styling
part 4~ resolves #6216
full page screenshots
the search form is basically same as featured artists track search and the events list is basically same as user profile recent activity area. the icon BGs light up with the group's color, if it has one.
This page is now available at https://osu.ppy.sh/groups/history.