diff --git a/CODEOWNERS b/CODEOWNERS index 49b6cf396..bd9a4c3df 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,2 +1,3 @@ play.pokemonshowdown.com/src/battle-animations-moves.ts @KrisXV -play.pokemonshowdown.com/src/battle-animations.ts @KrisXV \ No newline at end of file +play.pokemonshowdown.com/src/battle-animations.ts @KrisXV +teams.pokemonshowdown.com/**/* @mia-pi-git diff --git a/teams.pokemonshowdown.com/src/teams-index.tsx b/teams.pokemonshowdown.com/src/teams-index.tsx index ef89ecb95..64811331f 100644 --- a/teams.pokemonshowdown.com/src/teams-index.tsx +++ b/teams.pokemonshowdown.com/src/teams-index.tsx @@ -48,17 +48,21 @@ export class TeamIndex extends preact.Component { return
Loading...
; } const teamsByFormat: Record = {}; + let i = 0; for (const team of this.state.teams) { // this way if a category is empty it doesn't just fill space, since it doesn't // get added unless it exists if (!this.searchMatch(team)) continue; if (!teamsByFormat[team.format]) teamsByFormat[team.format] = []; teamsByFormat[team.format].push(team); + i++; } return

Hi, {this.state.loggedIn || "guest"}!

+ + Go

Go

- + this.onInput(e)} label="Search teams/formats">
{!this.state.teams.length ? diff --git a/teams.pokemonshowdown.com/src/teams.tsx b/teams.pokemonshowdown.com/src/teams.tsx index 1d7cdf20c..1e748e67b 100644 --- a/teams.pokemonshowdown.com/src/teams.tsx +++ b/teams.pokemonshowdown.com/src/teams.tsx @@ -69,5 +69,6 @@ PSRouter.setRoutes({ '/': TeamIndex, '/search/?:type/?:val': TeamSearcher, '/search': TeamSearcher, + '/browse': TeamSearcher, }); PSRouter.go();