Skip to content

Conversation

@bimakw
Copy link

@bimakw bimakw commented Dec 15, 2025

Summary

  • Show success toast notification after user is added
  • Refresh user list and navigate to 'normal' filter on page 1 to display the newly added user

Problem

When adding a user in Admin -> Users, the page had no feedback after submission (as reported in #1457).

Root cause: The code only refreshed the user list if the current filter was "all" or "staff", but the default filter is "normal". Additionally, there was no success toast notification.

Solution

  1. Added toast notification to confirm successful user creation
  2. After adding user, navigate to "normal" filter page 1 and refresh the list so the new user is visible

Test plan

  1. Go to Admin -> Users
  2. Click "Add User"
  3. Submit user information
  4. ✅ Success toast should appear
  5. ✅ Page should navigate to "normal" filter
  6. ✅ Newly added user should be visible in the list

Fixes #1457

LinkinStars and others added 2 commits December 15, 2025 15:48
- Show success toast notification after user is added
- Refresh user list and navigate to 'normal' filter page 1

Fixes apache#1457
@shuashuai shuashuai self-requested a review December 16, 2025 01:51
@shuashuai shuashuai self-assigned this Dec 16, 2025
Copy link
Member

@shuashuai shuashuai left a comment

Choose a reason for hiding this comment

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

Great, thanks for the contribution!

@shuashuai shuashuai changed the base branch from main to dev December 16, 2025 06:42
@shuashuai shuashuai merged commit c2a6280 into apache:dev Dec 16, 2025
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.

Add user in the Admin, no result prompt after submission

3 participants