-
Notifications
You must be signed in to change notification settings - Fork 384
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
Each way to update the current params (new search or "show more") now keeps its own state so that they can each abort the ongoing request and still function as expected. The disabled state of the buttons now reflect this Additionally the current params are updated immediately on starting a search, instead of when the request completes
.always(action(() => this.loading = false)); | ||
} | ||
|
||
private readonly onMore = () => { |
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.
this should reset the url if new search is in progress
either that or replace the listing with spinner (or add overlay to it) maybe
@observable private currentParams: GroupHistoryJson['params']; | ||
@observable private events: UserGroupEventJson[]; | ||
@observable private loading: 'more' | 'new' | false = false; | ||
@observable private moreParams!: MoreParams | null; |
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.
what's !
doing in there
|
||
// Update the query string of the URL when starting a new search. Remove | ||
// "sort" from the query if it's set to the default | ||
Turbolinks.controller.replaceHistory(updateQueryString(null, { |
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.
advance instead?
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.