Skip to content
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

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Add group history page #10430

wants to merge 30 commits into from

Conversation

cl8n
Copy link
Member

@cl8n cl8n commented Aug 2, 2023

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.

@cl8n cl8n marked this pull request as ready for review September 22, 2023 04:00
@cl8n cl8n requested a review from nanaya September 22, 2023 04:00
resources/css/bem/group-history.less Outdated Show resolved Hide resolved
resources/js/group-history/search-form.tsx Outdated Show resolved Hide resolved
resources/js/group-history/search-form.tsx Outdated Show resolved Hide resolved
resources/js/group-history/search-form.tsx Show resolved Hide resolved
resources/js/group-history/group-store.ts Outdated Show resolved Hide resolved
resources/js/group-history/event.tsx Outdated Show resolved Hide resolved
resources/css/bem/group-history-event.less Outdated Show resolved Hide resolved
@cl8n cl8n marked this pull request as draft May 21, 2024 04:12
@cl8n cl8n marked this pull request as ready for review May 28, 2024 09:45
@cl8n cl8n requested a review from nanaya May 28, 2024 09:47
resources/css/bem/group-history-event.less Outdated Show resolved Hide resolved
resources/css/bem/group-history-event.less Outdated Show resolved Hide resolved
resources/css/bem/group-history-search-form.less Outdated Show resolved Hide resolved
resources/css/bem/group-history-event.less Outdated Show resolved Hide resolved
resources/css/bem/form-select.less Outdated Show resolved Hide resolved
resources/js/group-history/event.tsx Outdated Show resolved Hide resolved
resources/css/bem/form-select.less Outdated Show resolved Hide resolved
resources/js/group-history/search-form.tsx Outdated Show resolved Hide resolved
resources/js/group-history/main.tsx Show resolved Hide resolved
resources/js/group-history/search-form.tsx Outdated Show resolved Hide resolved
cl8n added 8 commits June 17, 2024 03:59
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
@cl8n cl8n requested a review from nanaya June 17, 2024 11:09
.always(action(() => this.loading = false));
}

private readonly onMore = () => {
Copy link
Collaborator

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;
Copy link
Collaborator

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, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

advance instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Record and show group changes
2 participants