Skip to content

[Frontend] — ENHANCEMENT: Username is hardcoded as "Alex" / "You_Arena" throughout the app #877

@Olowodarey

Description

@Olowodarey

Multiple places hardcode the username:

  • WalletContext.tsx line 132: setUser({ username: "Alex" }) — set during authenticate()
  • WalletContext.tsx line 158: setUser({ username: "Alex" }) — set during handleModalSuccess()
  • profile/page.tsx line 22: username: "You_Arena"
  • settings/page.tsx line 88: const [username, setUsername] = useState("You_Arena")

Every user sees the same username everywhere.

Fix Required

  1. Resolve the real display name from the backend (or derive a short handle from the wallet address).
  2. Until a backend-provided username exists, derive a default from the wallet address (e.g. G...${address.slice(-6)}).
  3. Remove all hardcoded "Alex" and "You_Arena" strings.

Files to change:

  • frontend/src/context/WalletContext.tsx
  • frontend/src/app/(authenticated)/profile/page.tsx
  • frontend/src/app/(authenticated)/settings/page.tsx

Summary Table

# Type Priority File(s) Description
1 🐛 Bug 🔴 High WalletContext.tsx Wallet connect redirects to /dashboard
2 🐛 Bug 🟡 Med WalletContext.tsx logout missing router dep
3 🐛 Bug 🟢 Low ConnectWalletModal.tsx Wrong success copy
4 🐛 Bug 🔴 High wallet/page.tsx Hardcoded placeholder address
5 🐛 Bug 🟡 Med wallet/page.tsx Disconnect button no-op
6 🐛 Bug 🔴 High settings/page.tsx Disconnect confirm doesn't disconnect
7 🐛 Bug 🟡 Med settings/page.tsx Sidebar active state hardcoded
8 🐛 Bug 🟡 Med events/page.tsx Search input uncontrolled
9 🐛 Bug 🟡 Med events/page.tsx Tab filter does nothing
10 🐛 Bug 🟢 Low events/page.tsx Hero buttons no-op
11 🐛 Bug 🟢 Low events/page.tsx Duplicate SVG gradient IDs
12 🐛 Bug 🔴 High app/page.tsx next/head in App Router
13 🐛 Bug 🟢 Low dashboard/page.tsx Quick Actions rendered twice
14 🐛 Bug 🟡 Med Header.tsx /leaderboard vs /leaderboards mismatch
15 🐛 Bug 🟢 Low profile/page.tsx Dead href="#" links
16 🐛 Bug 🔴 High profile/page.tsx Hardcoded Stellar address
17 🐛 Bug 🔴 High WalletContext.tsx Auth not persisted on refresh
18 🐛 Bug 🟡 Med settings/page.tsx Export data no-op
19 ✨ Enhancement 🔴 High markets/page.tsx Markets page is empty placeholder
20 ✨ Enhancement 🔴 High dashboard/page.tsx All stats hardcoded
21 ✨ Enhancement 🔴 High profile/page.tsx All profile data hardcoded
22 ✨ Enhancement 🔴 High wallet/page.tsx Transactions hardcoded
23 ✨ Enhancement 🔴 High (new) /admin Admin dashboard missing entirely
24 ✨ Enhancement 🟡 Med (new) markets/create No create market page
25 ✨ Enhancement 🟡 Med (new) markets/[id] No market detail/prediction page
26 ✨ Enhancement 🟡 Med (new) /notifications No notifications page
27 ✨ Enhancement 🟡 Med my-predictions/page.tsx No real data or filters
28 ✨ Enhancement 🟢 Low profile + wallet pages No skeleton loaders
29 ✨ Enhancement 🔴 High Context + profile + settings Username hardcoded everywhere

Last updated: 2026-05-26 — Generated from source audit of frontend/src

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions