Skip to content

Improves play session loading in user admin panel - #1710

Merged
clpetersonucf merged 2 commits into
ucfopen:dev/11.0.1from
GoldenLin9:feature/admin-play-session
Apr 29, 2026
Merged

Improves play session loading in user admin panel#1710
clpetersonucf merged 2 commits into
ucfopen:dev/11.0.1from
GoldenLin9:feature/admin-play-session

Conversation

@GoldenLin9

Copy link
Copy Markdown
Collaborator

Fixes issue #1692

Problem

The user admin panel auto-fetches all play session records on page load. With include_activity enabled, page size is only 8 records, resulting in many small API requests that are slow for users with large play histories.

Solution

  • Added admin_activity query param that increases page size to 50
  • Replaced auto-fetch with manual "Show more" button
  • Added smooth scrollIntoView to keep new records in view when loading more

@clpetersonucf clpetersonucf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One really small request associated with the query params - the rest is good.

Comment thread src/util/api.js Outdated
…ad of appending to it, and is only included when true

@clpetersonucf clpetersonucf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@clpetersonucf
clpetersonucf merged commit 98bfc39 into ucfopen:dev/11.0.1 Apr 29, 2026
2 checks passed
@clpetersonucf clpetersonucf mentioned this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants