feat: Add InputStats and PlayerStats for Apex Legends#7695
Open
SlothyMan wants to merge 13 commits into
Open
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Collaborator
|
ideally KDA and other match stats should be stored directly into match2 and then be fetched from there |
9dab056 to
4222d1d
Compare
4222d1d to
8c84168
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds new Apex Legends tournament statistics modules to render Input Statistics and Player Statistics tables, including shared “summary card” UI above the tables.
Changes:
- Adds shared
.stats-summary-cards/.stats-summary-cardstyling for summary boxes used by the new stats tables. - Introduces a new TournamentPlayerStats pipeline (LPDB datapoint storage + calculator + display + table widget).
- Adds a TournamentInputStats module that aggregates player input types from placement/player LPDB data with a manual fallback for redlinks, plus a copy/paste helper module.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| stylesheets/commons/Miscellaneous.scss | Adds shared summary-card styling used above the new stats tables. |
| lua/wikis/apexlegends/Widget/TournamentPlayerStats/Table.lua | New table widget for player stats, including “top performer” summary cards. |
| lua/wikis/apexlegends/TournamentPlayerStats/Display.lua | Template entry point that renders the player stats table from calculated data. |
| lua/wikis/apexlegends/TournamentPlayerStats/Calculator.lua | Stores/fetches LPDB datapoints and computes/merges player statistics across ids. |
| lua/wikis/apexlegends/TournamentInputStats.lua | Builds the input stats table and summary boxes using placement/player LPDB data with fallback inputs. |
| lua/wikis/apexlegends/GetTournamentPlayerStatsCopyPaste.lua | Generates copy/paste wikitext scaffolding for TournamentPlayerStats storage input. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| border-radius: 0.5rem; | ||
| padding: 0.75rem 0.5rem; | ||
| text-align: center; | ||
| background-color: #ffffff; |
Collaborator
Author
There was a problem hiding this comment.
I think I would need advice from css master here as I am unsure about it. I think its not problem to have it without surface?
Refactor player data processing and improve type checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adding 2 statistics modules for apex legends.
Input is live: https://liquipedia.net/apexlegends/Apex_Legends_Global_Series/2026/Split_1/Playoffs#Input_Statistics (old cards using navigation card class)
Player stats:
https://liquipedia.net/apexlegends/ZZZZZTESTZZZZZ - test page. also currently using navigation card class
Storage:
https://liquipedia.net/apexlegends/ZZZZZTESTZZZZZ/Storage
https://liquipedia.net/apexlegends/CCCCCTESCCCCC/Storage
new cards were tested via dev console. Were using navigation cards before
Note: The form is just fallback for smaller tournaments as we fetching data only for major tournaments.
https://liquipedia.net/apexlegends/Special:RunQuery/TournamentPlayerStatsCopyPaste
SIGNLE Cards
SIGNLE Table
MERGED Table
How did you test this change?
live + dev console = inputstats
sandbox + dev console = playerstats