Skip to content

feat(frontend): load dynamic guild profile details and derive captain status (#1349) - #1550

Open
sparkysolutions10-pixel wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
sparkysolutions10-pixel:feat/guild-profile-interactive-data-1349
Open

sparkysolutions10-pixel wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
sparkysolutions10-pixel:feat/guild-profile-interactive-data-1349

Conversation

@sparkysolutions10-pixel

Copy link
Copy Markdown

Overview

Resolves issue #1349 by connecting the Guild Profile page to backend guild data endpoints, deriving the authenticated user's isCaptain status, and introducing a clear preview indicator with interactive join states.

Key Changes

  1. Dynamic Guild Data Ingestion:
    • Adds an asynchronous loadGuild effect querying ${apiBase}/v1/guilds/${id} to populate guild name, captain handle, win rate, rank, and member roster.
    • Provides safe fallback defaults when endpoints are staging sandbox data.
  2. Authenticated Captain Role Resolution:
    • Leverages useAuth() to compare user.username against guild.captainName, dynamically enabling isCaptain permissions and conditional captain management panels.
  3. Interactive Preview Experience:
    • Displays a clean Preview Mode banner informing visitors of ongoing guild contract deployment.
    • Replaced dead placeholders with functional join submission alerts and accessible table rendering.

Local Quality Assurance & Verification

  • Tested captain detection with matched and unmatched session profiles.
  • Verified responsive table view and status notification dismissal.

Closes #1349

This branch has not been deployed

No deployments
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-108: Guild Profile Page Is Still Entirely Mock Data (Follow-Up to FE-67)

1 participant