Skip to content

Remove admin panel and clean up unused code#43

Merged
LinaBell merged 2 commits intomainfrom
dev
May 5, 2026
Merged

Remove admin panel and clean up unused code#43
LinaBell merged 2 commits intomainfrom
dev

Conversation

@LinaBell
Copy link
Copy Markdown
Contributor

Summary

  • Remove admin panel (Pick Up All Pets no longer needed)
  • Remove AdminView, AdminIconButton components and admin icon from PageContainer
  • Remove handleRemoveAllPets controller, handleGetKeyAsset controller, removeDroppedAssets util
  • Remove /remove-dropped-assets route
  • Remove SET_IS_ADMIN action and isAdmin from client state management
  • Keep individual pet pickup (handlePickupPet) as a player action

Test plan

  • Verify admin users no longer see the settings gear icon
  • Verify "Pick up Pet" button still works for individual pet pickup
  • Verify game state loads correctly without isAdmin dispatch
  • Verify no console errors on load

Generated with Claude Code (https://claude.com/claude-code)

- Remove AdminView and AdminIconButton components (Pick Up All Pets no longer needed)
- Remove admin icon from PageContainer
- Remove handleRemoveAllPets controller and /remove-dropped-assets route
- Remove handleGetKeyAsset controller (unused)
- Remove removeDroppedAssets util (no longer referenced)
- Remove SET_IS_ADMIN action and isAdmin from client state
- Keep handlePickupPet for individual pet pickup (player action)
- Clean up imports and barrel exports

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LinaBell LinaBell requested a review from cpsiaki as a code owner April 24, 2026 18:30
@LinaBell LinaBell added the minor label Apr 24, 2026
@LinaBell LinaBell requested a review from liebeskind as a code owner April 24, 2026 18:30
@LinaBell LinaBell merged commit 48e94ed into main May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant