Commit Graph

4638 Commits

Author SHA1 Message Date
Guangcong Luo
e74e968e19 Stop versioning built wrapper.inc.php file 2019-07-06 03:51:27 -05:00
Kirk Scheibelhut
ef3d2b93bf Unify duplicated join/leave display logic 2019-07-05 18:06:07 -07:00
Kirk Scheibelhut
85a62c83bd Fix elofilter values in dropdown 2019-07-04 14:41:27 -07:00
Guangcong Luo
3ad8fb6460 Fix crash in tooltips 2019-07-04 14:12:36 -07:00
Kirk Scheibelhut
fa72dd68de Elo filter '1000' -> 'None' 2019-07-03 22:10:27 -07:00
Kirk Scheibelhut
b09a58dbe9 Allow for filtering by more than just Elo 1300+ 2019-07-03 17:10:27 -07:00
Kirk Scheibelhut
c123b0c8b4 Redo Google Analytics setup for Battle Sounds tracking 2019-07-03 17:09:48 -07:00
Kirk Scheibelhut
468c2998dd Support player count in |tournament|start (#1315) 2019-07-03 16:23:51 -07:00
Kirk Scheibelhut
be507a4cee Fix lint errors 2019-07-03 12:11:27 -07:00
Kirk Scheibelhut
585c9643f8 Allow users to opt in to 'Prompt on refresh'
Browsers don't really allow custom unload messages anymore it seems
(https://developers.google.com/web/updates/2016/04/chrome-51-deprecations?hl=en),
but e.returnValue and return '...' together seem like they
theoretically provide the most coverage.

Tested in Chrome and Firefox on Linux.
2019-07-03 10:38:09 -07:00
Kirk Scheibelhut
0fd801a581 Sort userlist by (rank, away) as opposed to (away, rank) 2019-07-02 15:40:26 -07:00
Kirk Scheibelhut
438511c7e9 Include status in user card always, defaulting to (Online) 2019-07-02 10:19:28 -07:00
Kirk Scheibelhut
766a254287 Add analytics to track battle sound preferences (#1309) 2019-07-01 15:41:42 -07:00
Kirk Scheibelhut
e56a995297 Don't override makeChallenge with acceptChallenge (#1313) 2019-07-01 14:16:13 -07:00
TheJetOU
1b7126c037 Improve teambuilder searchbox (#1311) 2019-06-30 21:27:36 -07:00
Kirk Scheibelhut
4cc4879ffc Include group in join/leave messages (#1312)
Battle join/leave was fixed to include group in #1295, but
apparently chat join/leave should show group as well.
2019-06-28 10:24:34 -07:00
Guangcong Luo
0e50de3498 Teambuilder: Don't focus team search on load
This introduces another annoyance where backspacing out of a search will
blur it, but that'll have to be fixed by a different update.
2019-06-27 14:42:01 -04:00
Guangcong Luo
065cc828d1 Build replays in ./build full
Now that the replay repo is inside the client repo, this makes sense.
2019-06-27 14:41:24 -04:00
HoeenHero
ac21fc1c77 Replays: toId -> toID (#1310) 2019-06-25 10:23:18 -07:00
Guangcong Luo
b47708efa0 Implement teambuilder dropdown selector
This took way too long to get to a presentable state.

- search.js has been refactored into battle-search.ts (search logic)
  and battle-searchresults.tsx (display)

- panel-teambuilder.tsx has been split into teambuilder (team list) and
  teambuilder-team (team editor).

- The teambuilder's text editor can now detect which line it's on,
  and show the appropriate search result panel.

- The teambuilder's text editor now detects sets dynamically, and has
  the beginnings of support for set comments.

Currently, everything here is really basic, and mostly just a tech
demo for people to play around with and understand the direction of
the new teambuilder, but it'll be improved over time.
2019-06-25 00:51:27 -07:00
littlefoot22
26fa6f71e1 Add advanced search in Teambuilder (#1133) 2019-06-25 16:25:58 +09:00
asgdf
1dc825bcaf Tooltips: Fix possible abilities display in old gens (#1305) 2019-06-21 17:12:39 +09:00
Guangcong Luo
c388688068 Add replay database schema 2019-06-21 16:27:33 +09:00
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