Skip to content

Conversation

Copy link

Copilot AI commented Nov 1, 2025

Alliance names were hardcoded as "Alliance 1", "Alliance 2", etc. during tournament participant setup. This prevents organizers from using meaningful names like "Red Alliance" or custom identifiers.

Changes

Modified /apps/web/src/apps/schedules/tournaments/round-robin.tsx:

  • Added input fields for editing allianceNameLong and allianceNameShort alongside each alliance header
  • Persist existing alliance names when loading saved alliances
  • Default to numbered names ("Alliance X", "#X") when creating new alliances

UI

<Row gutter={[8, 8]} align="middle">
  <Col>
    <Typography.Title level={4}>Alliance {i + 1}</Typography.Title>
  </Col>
  <Col flex="auto">
    <Input 
      placeholder="Alliance Name (e.g., Alliance 1)"
      value={allianceNames[i]?.long || ''}
      onChange={(e) => updateAllianceName(i, 'long', e.target.value)}
    />
  </Col>
  <Col>
    <Input 
      placeholder="Short (e.g., #1)"
      value={allianceNames[i]?.short || ''}
      onChange={(e) => updateAllianceName(i, 'short', e.target.value)}
    />
  </Col>
</Row>

Custom names are stored in the existing allianceNameLong and allianceNameShort fields when saving alliances.

Original prompt

This section details on the original issue you should resolve

<issue_title>allow for editing alliance names/numbers in tournemtns</issue_title>
<issue_description></issue_description>

<agent_instructions>fix this</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits November 1, 2025 22:52
Co-authored-by: Techno11 <15097541+Techno11@users.noreply.github.com>
Co-authored-by: Techno11 <15097541+Techno11@users.noreply.github.com>
Co-authored-by: Techno11 <15097541+Techno11@users.noreply.github.com>
Copilot AI changed the title [WIP] Allow for editing alliance names and numbers in tournaments Nov 1, 2025
Copilot AI requested a review from Techno11 November 1, 2025 23:01
Copilot finished work on behalf of Techno11 November 1, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants