Skip to content

feat(fe): admin panel UI (FE-003)#199

Merged
devEunicee merged 1 commit into
devEunicee:mainfrom
Sammy-Samy:fe/admin-panel-ui
Jun 2, 2026
Merged

feat(fe): admin panel UI (FE-003)#199
devEunicee merged 1 commit into
devEunicee:mainfrom
Sammy-Samy:fe/admin-panel-ui

Conversation

@Sammy-Samy
Copy link
Copy Markdown
Contributor

Closes #91

Changes

  • AdminPanel: three-tab UI — Stats dashboard, Merchant list, Audit log
  • useAdminAuth: Freighter wallet connection; isAdmin verified against the on-chain admin address prop
  • useAuditLog: records every admin action in-session with timestamp and detail
  • Stats tab: global stats display + cleanup trigger button
  • Merchants tab: list with active/inactive status and per-row deactivation control
  • All contract calls use useContractCall for loading / error / success states

Acceptance Criteria

  • Global stats dashboard
  • Merchant list with deactivation controls
  • Cleanup trigger
  • Protected by wallet-based admin auth
  • Audit log of admin actions displayed

- AdminPanel component: stats dashboard, merchant list with deactivation, cleanup trigger
- useAdminAuth hook: Freighter wallet-based auth, verified against on-chain admin address
- useAuditLog hook: in-session audit log of all admin actions
- Three tabs: Stats, Merchants, Audit Log
- All contract calls use useContractCall for loading/error/success states
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Sammy-Samy 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

@devEunicee devEunicee merged commit 28a5206 into devEunicee:main Jun 2, 2026
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.

FE-003 · No admin panel UI

2 participants