Skip to content

feat: implement RoleBadge, GalleryForm, and GalleryTable admin components#226

Merged
wumibals merged 2 commits into
LadderMine:mainfrom
BigBen-7:bigben7/issues-167-166-165-163
Mar 29, 2026
Merged

feat: implement RoleBadge, GalleryForm, and GalleryTable admin components#226
wumibals merged 2 commits into
LadderMine:mainfrom
BigBen-7:bigben7/issues-167-166-165-163

Conversation

@BigBen-7
Copy link
Copy Markdown
Contributor

Summary

Files changed

  • frontend/app/components/admin/users/RoleBadge.tsx (new)
  • frontend/app/components/admin/gallery/GalleryForm.tsx (new)
  • frontend/app/components/admin/gallery/GalleryTable.tsx (new)

Test plan

  • RoleBadge renders correct color/icon for each AdminRole value
  • RoleBadge renders gray "Unknown" badge when role is undefined
  • GalleryForm validates all fields (imageUrl required, alt min 5 chars, category enum, displayOrder min 0)
  • GalleryForm shows spinner and "Saving…" while isSubmitting
  • GalleryTable renders images with thumbnails, category pills, visibility toggles
  • GalleryTable search and category filter work correctly
  • GalleryTable edit button navigates to /admin/gallery/{id}
  • GalleryTable delete opens confirmation dialog; success/error toasts fire correctly
  • GalleryTable pagination appears when pageCount > 1

Closes #163
Closes #165
Closes #166
Closes #167

…ents

Closes LadderMine#163 (Build the User Role Badge)
Closes LadderMine#165 (Build the Gallery Management Table)
Closes LadderMine#166 (Build the Gallery Image Form)

Note: ContactDetailsModal (LadderMine#167) was already implemented.
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Mar 29, 2026

@BigBen-7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@wumibals wumibals merged commit f652eb9 into LadderMine:main Mar 29, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants