diff --git a/client/pages/Activity.tsx b/client/pages/Activity.tsx index 1c8a8019..8798776e 100644 --- a/client/pages/Activity.tsx +++ b/client/pages/Activity.tsx @@ -75,14 +75,90 @@ export default function Activity() { ); } - if (!isActivity) { - return null; + // Not in Discord Activity - show informational message + if (!isActivity && !isLoading) { + return ( +
+
+

+ 🎮 Discord Activity +

+

+ This page is designed to run as a Discord Activity. Open it within Discord to get started! +

+

+ Not in Discord? Visit the main app at{" "} + + aethex.dev + +

+
+
+ ); } - if (user) { + if (isLoading) { + return ( + + ); + } + + if (error) { + return ( +
+
+

+ ❌ Activity Error +

+

{error}

+ +
+

+ Troubleshooting Steps: +

+
    +
  1. Clear your browser cache (Ctrl+Shift+Delete)
  2. +
  3. Close Discord completely
  4. +
  5. Reopen Discord
  6. +
  7. Try opening the Activity again
  8. +
+
+ +
+

+ 💡 Open Discord DevTools (Ctrl+Shift+I) and check the console for messages starting with{" "} + + [Discord Activity] + +

+
+ + +
+
+ ); + } + + if (user && showContent) { + const appBaseUrl = "https://aethex.dev"; + return (
-
+

Welcome to AeThex, {user.full_name || user.username}! 🎉 @@ -127,48 +203,48 @@ export default function Activity() { Your primary realm determines your Discord role and access to realm-specific features.

-

-
+

🚀 Quick Actions

-
-

- 💡 Tip: Use Discord commands like{" "} - /profile,{" "} - /set-realm, - and{" "} - - /verify-role - {" "} - to manage your account within Discord. +

+

+ 💡 Discord Commands: Use{" "} + /profile,{" "} + /set-realm, and{" "} + /verify-role{" "} + to manage your account directly in Discord.

@@ -176,6 +252,7 @@ export default function Activity() { ); } + // Still loading return (