Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

October 28, 2023: Merge with PS part 2 #13

Merged
merged 31 commits into from
Oct 28, 2023
Merged

October 28, 2023: Merge with PS part 2 #13

merged 31 commits into from
Oct 28, 2023

Conversation

Rezzo64
Copy link
Collaborator

@Rezzo64 Rezzo64 commented Oct 28, 2023

No description provided.

Karthik99999 and others added 30 commits October 17, 2023 21:15
This should help differentiate local teams and remote-loaded teams. When they're initially requested, the client now compares each new team against all the existing teams - if they appear to be similar, it doesn't add it to the builder (so that dupe teams don't show up). It considers them similar if they have the same mons, title, and format. Otherwise, if it finds one that's close, it'll add it but marked as (server version) so people can tell which is which.
* Overhaul the format selector to be more easily used

* Update js/client-mainmenu.js

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Lower search pop open limit

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
This bug hasn't been noticed because the two main uses of battle
frames (the sim itself, and Replays) both absolutely position
battle frames, so they have nothing "below" them.

But on downloaded replays, on screens smaller than 640px across,
they took up an incorrect height. This is also relevant to New
Replays. This commit fixes that.
Unfortunately, the my computer crashed, and took with it the PSD
for this updated logo. But fortunately, I managed to upload all
the important versions (like the orange version for "you have a
notification").
By default, buttons on mobile wait 300ms (to see if you're double
tapping) before they register as pressed.

Adding `touch-action: manipulation` prevents this delay, at the
cost of not being able to zoom in when double-tapping a button,
which I'm sure no one has ever tried to do.
Now that fc00e68 has made the Seeking screen more common,
it's worth making it more readable.
They now support small windows/screens and dark mode.
It's cluttering this code a lot for no reason.
In the distant past, Lobby was open by default, so people linking
to Lobby usually meant to link to PS itself, so links to Lobby
would just open PS.

This is no longer necessary, now that we no longer open Lobby by
default.

This commit also cleans up a bunch of other .htaccess entries,
for style/readability.
This has been sitting around uncommitted in the client. I'm sure
someone knows what's up with this, but I don't.
New Replays isn't done yet but I've done a lot of work on it and
probably it deserves a commit.

Why rewrite Replays:

- I redesigned pokemonshowdown.com to look more modern and support
  dark mode, and rejiggering Old Replays would be a lot of work
  anyway.

- It'd be nice to actually deploy some of PS's whole Preact
  infrastructure somewhere, instead of it just being in development
  hell.

- Nice to get a second look at the relevant code, leading to fixes
  like fc00e68 and f28b1e9.

- Replays is due for a migration from JS/PHP to TS anyway.

Anyway, feel free to try out New Replays, it's live in:

https://pokemonshowdown.com/replays/

Old Replays will stick around until we hit feature parity, but
that shouldn't be too long (I know, famous last words).
The main difference is that the main search screen should look
much nicer now.

https://pokemonshowdown.com/replays/

Putting search/featured/recent in separate sections makes the new
design look much nicer. And dark mode is now fully supported.
@Rezzo64 Rezzo64 merged commit a6ca204 into scoopapa:main Oct 28, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants