Commit Graph

4615 Commits

Author SHA1 Message Date
whales
e4e3798fc7 Fix roomgroup in user popup (#1304) 2019-06-19 13:25:40 +09:00
HoeenHero
bdd1bce28a Update PSPL link (#1306) 2019-06-18 17:11:17 +04:00
Kirk Scheibelhut
a9bf84ba2a Fix HEAD vs. origin dupe check
git rev-parse --short sometimes returns less than 8 characters,
meaning the dedup logic is off. One alternative is just to check
origin.startsWith instead, but making them both a uniform 8 works as
well.
2019-06-16 14:10:49 -07:00
Kirk Scheibelhut
11230b4ee3 Fix tournament notification
If a user never changes their notification settings, 'tournaments'
will be absent from showdown_prefs in localStorage, though will
appear selected in the UI. This change treats the absence of the
setting as being the same as the default ('notify').
2019-06-15 22:34:56 -07:00
Kirk Scheibelhut
a2bbae3b35 Include origin hash in Config.version if different 2019-06-15 21:51:00 -07:00
Kirk Scheibelhut
bbad2828b0 Include commit hash in client config version (#1303) 2019-06-16 13:02:38 +09:00
Kirk Scheibelhut
48762a8628 Escape roomgroup correctly 2019-06-15 20:11:33 -07:00
TheJetOU
a01f45b300 Fix userpopup not showing room rank (#1302) 2019-06-15 19:59:30 -07:00
Guangcong Luo
029b691be1 Add replay database code to version control (#1301)
This required a new architecture for serving replays from inside the
client repository, because that seems like a better call than
introducing yet another PS repository.

(Experience gives me the impression that separating repositories wasn't
a good idea, and we should be working to make PS more mono-repo-like,
rather than less.)

License for replay code is tentatively AGPLv3, although feel free to ask
for a more permissive license if you have plans to use it in an
open-source project that requires it.
2019-06-14 17:48:34 +09:00
Kirk Scheibelhut
a746edb4aa Properly handle notournaments pref migration 2019-06-13 16:43:21 -07:00
Guangcong Luo
3cd987b7dc Update licensing information 2019-06-13 11:46:30 +09:00
Guangcong Luo
b3a802341f Add warning for old toId use in extensions 2019-06-12 22:39:25 -04:00
Jacob McLemore
8d4dc632b9 Teambuilder: Fix tiers in Doubles (#1296) 2019-06-13 08:16:56 +09:00
Kirk Scheibelhut
388c19ed43 Correctly hide tournaments after #1294
Fixes #1298
2019-06-12 09:19:49 -07:00
HoeenHero
4ee001a25e Fix crash with tournament preferences (#1297) 2019-06-12 22:28:21 +09:00
Kirk Scheibelhut
a325565c17 Include user's group in battle join message (#1295) 2019-06-12 17:40:08 +09:00
Kirk Scheibelhut
5e2c565465 Allow users to ignore just the tournament notifications (#1294) 2019-06-12 08:32:18 +09:00
Marty-D
cb4db6b471 Update minisprite sheet 2019-06-11 08:59:29 -04:00
Kirk Scheibelhut
3e523bd62f Don't include the ! in away status display (#1287) 2019-06-07 23:36:50 -05:00
Guangcong Luo
d82d096d07 Fix parseNameParts 2019-06-07 21:51:51 -05:00
Guangcong Luo
8e9bc3fe1e Support groups in parseNameParts
Fixes #1287
2019-06-07 18:38:50 -05:00
Guangcong Luo
9114cb9894 Make minor tweaks to teambuilder
Most of these update the pokemon/item/etc lists to be slightly more
modern, in preparation for their use in the Preact client.

(Also update TypeScript)
2019-06-07 18:36:36 -05:00
asgdf
a9a6865bdc Fix groundedness check (#1293) 2019-06-07 12:59:10 -05:00
Kirk Scheibelhut
25087edf29 Don't override happiness for sets on import when happiness is specified 2019-06-06 20:40:57 -07:00
Kirk Scheibelhut
e235e940d4 Display 'Offline' -> '(Offline') to match /status display 2019-05-29 17:51:54 -07:00
Kirk Scheibelhut
bc4ec5d2cc Remove Config.customcolors 'color' options (#1286) 2019-05-28 15:14:11 -05:00
Konrad Borowski
3bcea69537 Remove unnecessary \B from highlight regexp 2019-05-28 09:09:31 +02:00
Marty-D
bf9c163c52 Tooltips: Fix item display when swapped using Switcheroo 2019-05-27 11:00:17 -04:00
Marty-D
bd228b1b80 Update <<suggestions>> link 2019-05-26 13:54:56 -04:00
jetou
922f82f566 Sort rooms in preact client (#1284) 2019-05-18 09:32:51 +01:00
Guangcong Luo
58cd690b7b Add keyboard shortcuts
Closes #1255
2019-05-16 12:52:24 +04:00
asgdf
5bd7017a2c Tooltips: Implement Power Trick (#1283) 2019-05-16 17:56:54 +10:00
Guangcong Luo
0757f3c1fa Update for new Dex API 2019-05-16 01:59:18 +04:00
Guangcong Luo
bb6fe7ec3e Improve teambuilder stub
This should give an idea of the direction I want to take the
teambuilder in: a text editor, but with special features.

This neatly sidesteps a lot of UI questions, especially all the export
and input buttons, because the regular editing mode can be used to
import and export without anything fancy.

This also makes way for a better way to implement team/set comments:
comments are just invalid Pokémon in a team.
2019-05-16 01:27:19 +04:00
Guangcong Luo
9d3122cf92 Distinguish "connecting" and "disconnected" states
Individual PS rooms actually consider themselves connected while
connecting, so maybe we should do that instead? Until then, this is
the approach we're going with.
2019-05-16 01:27:19 +04:00
Kirk Scheibelhut
57dfaad5e9 Make <<replay>> link to the replay.pokemonshowdown.com (#1282) 2019-05-15 03:59:28 +10:00
Kirk Scheibelhut
575bad1cf9 toId -> toID
Zarel/Pokemon-Showdown#5479
2019-05-14 09:54:18 -07:00
AlfaStorm
04598c2d87 Support Digimon Showdown cries (#1273) 2019-05-13 13:57:27 +09:30
Guangcong Luo
ef530006d1 Correctly calculate Gen 1 Special stat boosts
Fixes #1277

Not having an example replay, I'm not sure if this displays properly,
but it at least fixes the calculation aspect.
2019-05-12 22:49:24 +09:30
Kirk Scheibelhut
928f21b0bc (AFK) Escape user status (#1279) 2019-05-12 13:36:49 +09:30
Kirk Scheibelhut
a208645936 Add support for a /nonotify message type (#1280) 2019-05-12 13:33:34 +09:30
asgdf
ae52ee2414 Refactor ability display in tooltips (#1268) 2019-05-09 12:49:32 +09:30
asgdf
407e0b3863 Fix typing for move buttons in older gens (#1275) 2019-05-09 12:18:34 +09:30
Guangcong Luo
6e0ab4f11b Support not passing node.children in tournaments
This is a minor optimization to tournament bandwidth usage, by
supporting not sending `"children":[],` in leaf nodes.
2019-05-08 20:14:09 +09:30
Kirk Scheibelhut
883cd91fc8 Handle AFK '@-in-names' protocol (take 2) (#1270) 2019-05-05 22:43:54 +09:30
The Immortal
2b879e4561 Teambuilder: Add support for Trademarked OM 2019-05-01 18:44:44 +04:00
JetOU
1948e07da6 Fix guests not showing in options (#1269) 2019-04-23 02:55:03 +09:30
Guangcong Luo
5348d1312e Revert "Handle AFK '@-in-names' protocol (#1265)"
There were several major crashes arising from it.

This reverts commit ba1e6d31bf.
2019-04-22 09:38:06 +09:30
Kirk Scheibelhut
ba1e6d31bf Handle AFK '@-in-names' protocol (#1265) 2019-04-22 06:41:46 +09:30
Guangcong Luo
61ff5ae093 Turn off autocomplete in teambuilder
The teambuilder already has a built-in autocomplete function which
competes with it, and most users seem to prefer the built-in one.
2019-04-21 20:50:52 +09:30