Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scouting alliance #218

Closed
wants to merge 4 commits into from
Closed

Scouting alliance #218

wants to merge 4 commits into from

Conversation

BanEvading
Copy link
Contributor

I'm still a little rusty so I might have broken something or violated best practices somewhere.

Copy link
Contributor

@renatodellosso renatodellosso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented on specific lines, but had a few additional comments:
-Add a way to specify if the alliance is for FRC or FTC
-Fire a Google Analytics event when an alliance is created. You could use the team created event, but add a parameter for if the team is an alliance
-Add a field to Team tracking if the team is an alliance
-Make the wording on other pages change if the team is an alliance

<div className="btn btn-primary" onClick={()=>{
setSettingState(false)
setCreatingTeam(false)
}}>Create an Alliance</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to "Create an alliance" because the other option is "Create a team"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should change it to be undefined at some point though.

const [allianceNumber,setAllianceNumber] = useState<number>();
const [allianceName, setAllianceName] = useState<string>();
const [creatingTeam, setCreatingTeam] = useState<boolean>();
const [settingState, setSettingState] = useState<boolean>(true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a more descriptive name

<div className="divider"></div>
<input
className="input input-bordered md:w-1/2"
placeholder="Alliance ID (7 characters)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change Alliance ID to Alliance Number or something similar, so users know it should be a number. Also add a type attribute to the input so users can't enter letters. Entering letters breaks the page right now.

allianceName,
allianceNumber!,
session.user._id,
"none",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use NotLinkedToTba. It's a constant in ClientUtils.ts.

@renatodellosso renatodellosso linked an issue Aug 11, 2024 that may be closed by this pull request
@renatodellosso
Copy link
Contributor

I added support for custom team names and teams not linked to TBA or TOA the other day (fixing the bug 25729 ran into), so this PR is unnecessary.

Sorry about invalidating your work.

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.

Scouting Alliances
2 participants