Skip to content

Fix System Management tab rendering and profile avatar display issues - #238

Merged
ehsanking merged 1 commit into
mainfrom
ehsan/fix-display-errors-on-system-management-page
Apr 12, 2026
Merged

ehsanking merged 1 commit into
mainfrom
ehsan/fix-display-errors-on-system-management-page

Conversation

@ehsanking

Copy link
Copy Markdown
Owner

Motivation

  • Fix blank/missing UI in the System Management (admin) area where reports and data tabs fell through to a generic placeholder.
  • Prevent rendering failures for avatars stored as data URIs which were passed to next/image and could fail to render.

Description

  • Add a small helper isDataUri and use it to render a safe <img> fallback for data: profile photo URLs while keeping next/image for normal remote URLs, applied to profile surfaces in app/chat/profile/page.tsx and multiple avatar spots in app/chat/ChatDashboardClient.tsx.
  • Add explicit UI for the admin reports tab (list pending reports, Mark Resolved / Dismiss) and the data tab (system data export button) and wire them to existing admin actions resolveReport and exportSystemData.
  • Remove a now-stale eslint-disable for an unused-vars warning to keep linting strict; keep all changes minimal and preserve existing auth/admin action flows and checks.

Testing

  • Ran npm run lint and fixed a single warning; lint completed successfully.
  • Ran npm run build and completed a full production build; build succeeded and route generation completed.
  • No runtime/browser screenshots available in this environment; recommend manual smoke-check of the Profile page and Admin -> System Management (Reports and Data) in a browser after deployment.

Codex Task

@ehsanking
ehsanking merged commit 098e781 into main Apr 12, 2026
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant