Scrollable width is now set on `<html>` (and is inherited by `<body>`).
It's my hope that this fixes some scroll snap bugs on mobile.
We're also now looking at pointer events to decide whether to autofocus
text boxes.
Fixes#2419
- Refactor PS.send
- No longer wants the leading `|` (omitting it is a common bug),
making it work more like `room.send`.
- Intercept links to teams and replays
- Support replay fallback if battle room not found
- New CopyableURLBox (for replays and teams)
Teambuilder
- Select species/ability/item/move text when clicking into them
- (Regression from the upload button leak fix)
- Don't let nicknames stop us from detecting teams unchanged since
upload
- "Compare" button for comparing local vs uploaded team
- "Revert" button for reverting to uploaded team
- View team page
- Hide extraneous buttons from gen 1-2
- Improve right-click and left-click behavior on import/export screen
Trivial
- `readonly` -> `readOnly` on TeamEditor, to match JSX
- Refactor `connected`
- Fix "Dynamax Level 10" appearing on imported teams
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.
* Make link import change team title & format
* Also adds a placeholder msg to the team textbox.
---------
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
- Tab complete can now complete offline users
- This actually improves performance, too, because the userlist is
now cached instead of needing to be re-sorted every update.
Battles
- Add `aria-disabled` to "disabled" buttons
- Make disabled buttons look more disabled
Teambuilder
- Textbox mode: Fix inner focus location when adding first pokemon
- Fix species display in certain cases
- Consistently use Dex.resourcePrefix for icons for testclient support
- 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
Battles
- Fix render issues on mobile layout
- Fix join/leave batching
- Support disabled buttons
Teambuilder
- Redesign upload UI to be clearer
- Support scrolling tab bar for Boxes in focus editor
- Don't overwrite local team with remote team
- Improve Defensive Coverage ability support
- Support importing from pokepaste (fixes#2422)
Battles
- Fix move types in battle controls
- Warn about Gen 1 Substitute self-KOs in tooltips
- Hide controls until animations are finished
Teambuilder
- Implement uploading teams
- Fix adding pokemon in teambuilder text mode
- Uploaded team management
- Automatic Atk/Spe IVs
- IV spread chooser also has an auto button
Trivial
- Constrain teambuilder width better
- support Boxes
- add visible indicator for uploaded teams
- also add share URL
- Validate button
- new shiny icon
- readonly mode
- fix crash when deleting last time
- redesign Details panel
- show Hidden Power type in Details box when relevant
- Undo Delete button in inner focus
- support Add Folder and Add Format Folder buttons
- add hover effects
- last time, hover effects had to be removed because of HTML5 drag
bugs. hopefully this time goes better.
- redesign the clutter at the end of the team
- Team drag and drop
- use buttons rather than divs
- testing on Firefox and Chrome did not reveal any bugs so hopefully
that's just fixed now.
Minor
- Change long tap time to 500 (Fixes#2408)
- A compromise between the old 350ms and the briefly newer 1000ms
- long clicks are also back at 700ms
Teambuilder
- Redesign defensive coverage chart
- Fix in testclient
- Fix pop-outs in text editor
- Improve move selection
Teambuilder
- Show "EVs" when a set has no EVs, so it's clear what the Stats button
is for
- Fix dragging slider clearing Nature
- Fix teams not being clickable on iOS
- Minor layout tweaks
- Use four moves on compat mode exports, too
Minor
- Add a "PSIcon" component
- Update README
- Fix Team Preview in doubles/etc
- Fix move choice preview
- Fix `/avatar`
- Fix display of formats with custom rules in the format dropdown
- Support "Register" button from winning a battle
- Support "More" button from `/rank`
- Fix target choosing in multi battles
- Fix switching in more slots than unfainted pokemon (in doubles+)
- Add `/senddirect` command to bypass client command parser
- Fix notifications for mini-rooms (they should highlight the mainmenu
tab)
- Set tooltip long-tap delay to 1 second, to make it harder to
accidentally long-tap
Trivial
- move FormatResource stuff out of teamdropdown
- refactor battle-choices a little
- make team tabs less tall in teambuilder wizard individual set view
- support `/choose default` or `/choose auto`
Because commands are frequently called from buttons as well as
textboxes, passing the clicked button is useful.
The textbox is also passed if the command is typed rather than from
a button. Mostly this just lets us spawn popups closer to where users
are already looking, which I've been wanting to do for `/nick` for
a while.