Gregorius Bima Kharisma Wicaksana c2a62804b0 fix: add feedback after successfully adding a user in admin panel (#1462)
## 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

---------

Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2025-12-16 14:43:21 +08:00
2024-04-09 12:31:03 +08:00
2022-09-27 17:59:05 +08:00
2024-08-19 15:24:15 +08:00
2025-12-11 11:47:53 +08:00
2025-06-24 14:19:20 +08:00
2023-10-26 11:11:23 +08:00
2023-10-26 11:11:23 +08:00
2023-10-26 11:11:23 +08:00
2023-09-14 17:43:58 +08:00
2025-01-07 10:39:23 +08:00

logo

Apache Answer - Build Q&A platform

A Q&A platform software for teams at any scales. Whether its a community forum, help center, or knowledge management platform, you can always count on Answer.

To learn more about the project, visit answer.apache.org.

LICENSE Language Language Go Report Card Discord

Screenshots

screenshot

Quick start

Running with docker

docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:1.7.1

For more information, see Installation.

Plugins

Answer provides a plugin system for developers to create custom plugins and expand Answers features. You can find the plugin documentation here.

We value your feedback and suggestions to improve our documentation. If you have any comments or questions, please feel free to contact us. Were excited to see what you can create using our plugin system!

You can also check out the plugins here.

Building from Source

Prerequisites

  • Golang >= 1.23
  • Node.js >= 20
  • pnpm >= 9
  • mockgen >= 0.6.0
  • wire >= 0.5.0

Build

# Install wire and mockgen for building. You can run `make check` to check if they are installed.
$ make generate
# Install frontend dependencies and build
$ make ui
# Install backend dependencies and build
$ make build

Contributing

Contributions are always welcome!

See CONTRIBUTING for ways to get started.

License

Apache License 2.0

S
Description
A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.|GitHub 镜像 15.7k · 🍴 1.4k
https://github.com/apache/answer Readme 18 MiB
Languages
Go 60.2%
TypeScript 36.3%
HTML 1.5%
SCSS 1.2%
JavaScript 0.5%
Other 0.1%