Skip to content

Commit

Permalink
Override tournament bracket destination (#1985)
Browse files Browse the repository at this point in the history
* Initial

* Progress

* Done?

* Update seeding nth
  • Loading branch information
Sendouc authored Dec 15, 2024
1 parent d34782e commit d3a825b
Show file tree
Hide file tree
Showing 18 changed files with 8,378 additions and 329 deletions.
1 change: 1 addition & 0 deletions app/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function Button(props: ButtonProps) {
{icon &&
React.cloneElement(icon, {
className: clsx("button-icon", { lonely: !children }),
title: rest.title,
})}
{loading && loadingText ? loadingText : children}
</button>
Expand Down
7 changes: 5 additions & 2 deletions app/components/icons/Edit.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
export function EditIcon({ className }: { className?: string }) {
export function EditIcon({
className,
title,
}: { className?: string; title?: string }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
className={className}
viewBox="0 0 20 20"
fill="currentColor"
>
<title>Edit Icon</title>
<title>{title ?? "Edit Icon"}</title>
<path d="M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z" />
<path
fillRule="evenodd"
Expand Down
8 changes: 8 additions & 0 deletions app/db/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,13 @@ export interface TournamentOrganizationSeries {
showLeaderboard: Generated<number>;
}

export interface TournamentBracketProgressionOverride {
sourceBracketIdx: number;
destinationBracketIdx: number;
tournamentTeamId: number;
tournamentId: number;
}

export interface TrustRelationship {
trustGiverUserId: number;
trustReceiverUserId: number;
Expand Down Expand Up @@ -923,6 +930,7 @@ export interface DB {
TournamentOrganizationMember: TournamentOrganizationMember;
TournamentOrganizationBadge: TournamentOrganizationBadge;
TournamentOrganizationSeries: TournamentOrganizationSeries;
TournamentBracketProgressionOverride: TournamentBracketProgressionOverride;
TrustRelationship: TrustRelationship;
UnvalidatedUserSubmittedImage: UnvalidatedUserSubmittedImage;
UnvalidatedVideo: UnvalidatedVideo;
Expand Down
Loading

0 comments on commit d3a825b

Please sign in to comment.