Commit Graph

252 Commits

Author SHA1 Message Date
Guangcong Luo
79b4d0d5e2 Preact: Support News
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2026-03-18 07:34:08 +00:00
Kris Johnson
4e82e2d6b6 Fix build 2026-03-01 14:15:40 -07:00
Kris Johnson
c0ca6cbd90 Update OM teambuilder support list
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2026-03-01 03:50:32 -07:00
Kris Johnson
e263055242 Update custom banlists in teambuilder
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2026-02-01 12:02:57 -07:00
Zachary Perlmutter
4428a1444c
Fix teambuilder support for OMs (#2598)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
* battle-dex-search.ts: Fix natdex OMs pulling from SV OMs

* Fix Teambuilder Support For OMs

* National Dex OMs merging the rulesets for their SV counterparts

* Bans via required abilities and items never being checked

* Bans via required abilities not being implemented properly
* mega rayquaza clause being wastefully checked over and over again

* Tables in natdex now omit the 'natdex' part of the format to be consistent with battle-dex-search.ts

* Synced meta tables in build-indexes and battle-dex-search.ts

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2026-01-19 01:27:52 -07:00
André Bastos Dias
3cc8574fa0
Shorten 'Restricted Legendary' to 'Restricted' (#2577) 2026-01-09 19:12:48 -07:00
iforgetwhyimhere
de8ab515f3
Fix typo (#2591)
* fix typo

* made my own typo
2026-01-09 17:25:29 -07:00
Kris Johnson
56df608ba8 Add teambuilder ban support for more formats 2026-01-09 13:38:19 -07:00
Kris Johnson
987cdc7faf Teambuilder: Add support for permaladder OM banlists 2026-01-08 22:18:20 -07:00
Kris Johnson
88c312f521 Fix lint 2025-10-20 23:06:38 -06:00
Kris Johnson
a1f3f059d1 Add teambuilder support for Legends Z-A OU 2025-10-20 23:05:31 -06:00
Kris Johnson
adb885a218 Fix build script
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-09-18 12:15:28 -06:00
Karthik99999
99c3f00133 Fix Leek showing as Illegal in Natdex
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-07-29 22:58:58 -04:00
Mia
fa99d0ee25
Add a resource page indexing all public commands (#2477)
* Add a resource page indexing all public commands

* Add preact
2025-07-22 13:51:10 -05:00
Marty-D
17bfa618f3
Mark CAP 36 alternate form as Illegal 2025-07-13 12:15:55 -04:00
skymin3
732980bcae
Remove Flying Gem from Popular Items (#2453)
https://www.smogon.com/forums/threads/gen-5-ou-gems.3706516/
2025-06-06 21:51:06 -07:00
Kris Johnson
35be5515f9 Remove banned Pokemon from DPP PU teambuilder 2025-06-02 20:25:49 -06:00
Guangcong Luo
ae69319e63 Preact minor updates batch 25
- Fix various reconnect bugs
- Move table styling to battle-log
- Fix highlighting bugs
- Bump cookie expiration another month

Trivial
- Fix rounding in build time
- Fix left border in vertical tabs dark mode
- Improve README wording
2025-06-02 15:20:48 +00:00
Kris Johnson
033472e091 Fix old gens NatDex Doubles teambuilder 2025-05-22 13:07:19 -06:00
Guangcong Luo
e4c192317f Support CompoundWordNames
Previously, compound words (for dex searching) were hardcoded into
`build-indexes`. This moves them to server's data/aliases, where it
should be easier for people to see when they're updating aliases.
2025-05-21 02:44:51 +00:00
Guangcong Luo
0990e13c2d Preact minor updates batch 21
- Fix Rooms state when pressing Enter after searching
- Fix (workaround, but still) opening popups on testclient
- Fix team menu in challenge/search
- Change "Preact Alpha" to "Preact Beta"
- Support side servers

Teambuilder
- Fix Upload button and teambuilding links leaking through focus editor
- Use `inputmode="numeric"` for better number keyboard in phones
  - You can't type `+` or `-` on EVs on phones, but oh well, the Nature
    dropdown is good enough. I think it's worth it for easier EV inputs.

Trivial
- Align main menu battle search labels to the left
- Fix flicker when searching Rooms
- Hide "Open battles in right panel" option when it doesn't do anything
- Get rid of PSTeambuilder.*packTeam/export* in favor of Teams
2025-05-17 16:19:58 +00:00
shrianshChari
3ceed77f49
Add teambuilder support for [Gen 3] ADV 200 (#2399)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
* Add teambuilder support for [Gen 3] ADV 200

* Fix tiering of Pokemon in ADV 200

* Satisfy linter
2025-05-01 10:44:33 -06:00
Kris Johnson
b0bf31074a Fix old gens LC teambuilder 2025-05-01 10:27:53 -06:00
Guangcong Luo
734ce0d71d Preact minor updates batch 16
Minor

- Light mode scrollbar in line with dark mode
  - OS default scrollbars all look ugly for some reason, unless you use
    macOS's hidden scrollbars, which are nice except they're hidden.
- Add Aurastic to credits
- Fix subtle notifications
- Fix "Copy" button and HTML popups
  - These are both for the replay upload popup.
- Fix escaping in teambuilder tables
  - They're escaped in Preact but raw HTML in old client, so using
    Unicode make them work correctly in both.
- Fix a weird issue where history.replaceState was being called too
  often
  - I don't know exactly why this is only recently became a problem,
    but it's easy enough to fix...

Trivial

- More ARIA roles (for blind users)
  - The accessibility tree looks great now.
- Fix an unnecessary closure in AvatarsPanel
- Fix non-ASCII in battle.ts
- Fix class="readmore" to work like class="details" (re: don't do
  expand/collapse hover effect if hovering over a link)
- Fix resizing from one-panel to two-panel mode
  - This was really just one bug in `focusRoom` left over from an old
    architecture where mini-rooms could be panels in vertical tab mode.
  - But I took the opportunity to refactor a bunch of panel code to be
    clearer.
- Slightly redesign open team sheets
- The yellow and black "construction" message no longer needs nested
  divs
2025-04-29 00:22:44 +00:00
Guangcong Luo
94a1876f61 Support non-full builds in testclient
Non-Preact testclients don't deal well with non-full builds anymore,
now that battledata includes data/text.js. This fixes it so that
they're usable (although no longer being able to edit battle-dex etc
without an initial full build still sucks, it's unavoidable).
2025-04-26 06:02:06 -07:00
Guangcong Luo
2ec10bc172 Preact: Improve teambuilder
- Add format chooser
- Show team name in title
- Support selecting species/item/ability/move from menu
- Clicking species/item/ability/move selects the text for easy replace
- Add Stats menu
- Add placeholder Details menu
- Add types and item icon
- "Add Pokemon" button

It's still a very long way to go, but it's starting to look properly
like the vision I have in my mind.

Minor
- Refactor
- Fix cachebuster for teambuilder CSS
- Improve teambuilder resources HTML
2025-04-25 11:38:45 +00:00
Mia
60ee938a1d Teams: Add a back button to the search/view pages
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-04-12 01:31:28 -05:00
Mia
8e378c6129 Add static website for viewing server-side teams 2025-04-09 19:36:58 -05:00
Guangcong Luo
5e5578a140 Bring back Replays build script 2025-04-02 21:17:16 +00:00
Guangcong Luo
399289a3f7 April Fool's 2025 updates
The main new joke is #2337, but I made a number of other tweaks.
In particular:

- Bringing back some text from AFD 2019, and adding some more
- Showing the Taunt and Chilly Reception jokes in `/afd sprites`
2025-04-02 04:36:17 +00:00
Guangcong Luo
b90195346c Hide ugly error when PHP is installed
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-03-24 04:23:30 -07:00
shrianshChari
bda9877190
Add teambuilder support for UUBL tiers (#2336)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
* Add support for Gen 3 UUBL (and every other UUBL tier)

* Satisfy linter
2025-03-19 13:23:16 -06:00
pyuk-bot
ec92955748
Teambuilder: Update popular items for gen 9 & add doubles support (#2321)
* Teambuilder: Customize Metronome Battle's popular items

* Teambuilder: Update popular items for gen 9 & add doubles support

* Fixes

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Apply suggestions from code review

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-02-26 13:40:49 -07:00
Guangcong Luo
a10821ab8b
Update to ESLint 9 (#2326)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This finally removes the tslint dependency and switches to eslint.

There are a lot of other changes here, too, to bring the codebase up to
server standards. TSLint never had much in the way of indentation
enforcement.

Not very happy about eslint splitting itself up over 6 dependencies,
or its documentation over three websites, nor how poorly documented the
new flat config is, but I mean, eslint's gonna eslint. Customizing
would be even harder if we tried to use Biome or something. They mostly
seem to go full Prettier.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed (except in ES3
  code). We otherwise now consistently use template strings for this.
2025-02-25 20:05:32 -08:00
Guangcong Luo
c1ced5dbe3 Update Privacy Policy for new ad company 2024-10-18 00:29:44 +00:00
Kris Johnson
95bd7974b3 Add teambuilder support for 35 Pokes 2024-10-01 10:44:06 -06:00
Alex McConnell
2cfbc35332
Add Gen 5 ZU Support (#2262)
* Attempt to add teambuilder support for Gen 5 ZU

* Add teambuilder support for Gen 5 ZU

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Update build-tools/build-indexes

* Add proper showdown filter for Gen 5 ZU

* Fix Lint issue with ZU tierset creation

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-07-22 01:22:49 -06:00
Guangcong Luo
c2ec42310c Support test configs
This adds support for test configs, to make it easier to test config
changes without affecting the live service.
2024-07-20 22:33:16 +00:00
Leonard Craft III
1019ac1b59
Convert noSketch to move flag (#2261) 2024-07-14 23:45:43 -05:00
shrianshChari
a0bab922fe
Add teambuilder support for BW 1 (#2257) 2024-07-06 21:22:31 -06:00
dot-Comfey
baf31cfe06
Properly display legal egg moves in teambuilder (#2256) 2024-07-04 15:04:02 -05:00
Karthik
442d576c31
Override Fling and Natural Gift data for items in past gens (#2252) 2024-06-19 23:44:15 -05:00
Leonard Craft III
8acf7c076b Mark more evolution items as bad 2024-05-27 17:02:27 -05:00
Kris Johnson
9434aed35b
Add SSB client support (#2245)
* ssb support

* SSB

* teehee

* poop

* more tooltip things

* Fix tooltips

* ok support

* More tooltip updates

* last changes

* Fix build
2024-05-04 12:02:01 -06:00
Karthik
17eef20bcf
Support new ability flags (#2210) 2024-01-08 18:10:58 -06:00
pyuk-bot
7d1943952c
Tooltips: Fix Tera BP minimum (#2202) 2024-01-01 00:36:27 -07:00
Kris Johnson
e0ee4e4e66 Fix National Dex Doubles teambuilder 2023-12-25 16:00:50 -07:00
Karthik
1a35b5c012
Teambuilder: Allow Tier filters on old gens (#2190) 2023-12-16 01:34:43 -07:00
Karthik
43966190c6
Teambuilder: Fix National Dex item table (#2191) 2023-12-16 01:34:10 -07:00
Kris Johnson
79970ed2d2
Add DLC2 client support (#2196)
* Add DLC2 client support

* vgc :-P
2023-12-15 21:34:41 -07:00