Empty New users page shows two create-user buttons
🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:
- Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
- Confirm that you’ve read the guidelines in your comment.
Overview
When there are no new users, the New users page shows both a New user button in the header and a Create new user button under the empty-state image. Only the empty-state button should show.
Complexity: Low Target branch: develop
Context
NewUsersPage.vue#L38-L45renders New user in the toolbar'sheaderActionsslot regardless of state.NewUsersPage.vue#L159-L185renders the empty state with Create new user whenshowUsersTableis false.
The Change
The header New user button should be hidden while the page shows its empty state.
How to Get There
- As a facility admin on a facility with no users created in the last 30 days, open Facility > Users.
- Click Options, then View new users.
Acceptance Criteria
General
- [ ] With no new users, the page shows only the Create new user button under the empty-state image.
- [ ] With new users listed, or with a search or filter applied, the header New user button still shows.
Testing
- [ ] A new
NewUsersPagespec using Vue Testing Library confirms that with no users only Create new user shows, and with users only the header New user shows.
AI usage
@nucleogenesis reported the duplicate and chose which button stays; Claude Code located both buttons and drafted this revision.
@nucleogenesis please assign this to me !
Hlo @nucleogenesis ,if it is fine i would love to work on this issue,I have already handled some issue in this repo and would love to contribute in this lovely organisation.PLease do tell if i can work on it
Hi! 👋
Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
Hi! 👋
This issue is available for contribution and supports self-assignment. Here's how to get started:
- Comment
/assignto assign yourself to this issue - You can have up to 2 issues assigned at a time across all community repos
- Dropping an issue has a 7-day cooldown before the slot opens up
- Link your pull request to this issue when you submit it
📖 Read the Contributing guidelines before starting.
Are you preparing for Google Summer of Code? See our GSoC guidelines.
Hi! I’d like to work on this issue. I’ve read the contributing guidelines and I’m interested in implementing the fix and the requested tests. /assign
Hi! 👋
You've been assigned to this issue. Here's what to do next:
- Read the issue description carefully and make sure you understand the requirements
- Link your pull request to this issue when you submit it
- If you can no longer work on this, unassign yourself so others can pick it up
Good luck! 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
Hi! I've submitted PR #15565 with the fix and the requested tests. Thanks!