Skip to content

Admin Bugbash Fixes - #206

Open
jiang-h-y wants to merge 3 commits into
mainfrom
hj/admin-bugbash
Open

Admin Bugbash Fixes#206
jiang-h-y wants to merge 3 commits into
mainfrom
hj/admin-bugbash

Conversation

@jiang-h-y

@jiang-h-y jiang-h-y commented Jul 27, 2026

Copy link
Copy Markdown

ℹ️ Issue

N/A

📝 Description

  • Fixed focus trap errors on "View Order Details" in "Dashboard"
  • Fixed focus trap errors on "View Donation Details" in "Dashboard"
  • Re-fetch users after adding a new user in "User Management"

Note: the focus trap errors were intermittent, but I haven't been able to reproduce them since adding these fixes.

✔️ Verification

  • Ran through the flow again + made sure no bugs surfaced

🏕️ (Optional) Future Work / Notes

Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!

Note: At one point, I found a bug where the "Manufacturer Management" page disappeared in the navbar. I tried for a while to reproduce this bug, but I wasn't able to, so I didn't implement a fix. Not sure if it's a recurring bug or if something strange just happened that time.

@dburkhart07 dburkhart07 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

just one small comment.

while we are at it, for adding a new user, can you also change "Please fill in all fields. " to not have the "" anymore?

import { useAlert } from '../hooks/alert';
import { getInitials, USER_ICON_COLORS } from '@utils/utils';

const VolunteerManagement: React.FC = () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we just change this to UserManagement everywhere? Since its admin and volunteers, its kinda confusing like this.

@Yurika-Kan
Yurika-Kan self-requested a review July 30, 2026 08:01
@Yurika-Kan Yurika-Kan self-assigned this Jul 30, 2026

@Yurika-Kan Yurika-Kan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, one nit to address but then all good. thanks for fixing these, esp on adding the user feature :))

const [isEditing, setIsEditing] = useState(false);

const donationId = donation.donationId;
const donationId = donation?.donationId;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: when we do optional chaining, it results in Donation | undefined, which becomes inconsistent with donation's form (Donation | null). can we clean it to
const donationId = donation ? donation.donationId : null;

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.

3 participants