Skip to content

feat: Add InputStats and PlayerStats for Apex Legends#7695

Open
SlothyMan wants to merge 13 commits into
mainfrom
SlothyMan-patch-1
Open

feat: Add InputStats and PlayerStats for Apex Legends#7695
SlothyMan wants to merge 13 commits into
mainfrom
SlothyMan-patch-1

Conversation

@SlothyMan

@SlothyMan SlothyMan commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

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

Light Mode Dark Mode

SIGNLE Table

Light Mode Dark Mode

MERGED Table

Light Mode Dark Mode

How did you test this change?

live + dev console = inputstats
sandbox + dev console = playerstats

@SlothyMan SlothyMan requested a review from liquidely June 24, 2026 19:09
@SlothyMan SlothyMan requested review from a team as code owners June 24, 2026 19:09
@SlothyMan SlothyMan requested a review from Kanopedia June 24, 2026 19:18
hjpalpha

This comment was marked as resolved.

@SlothyMan SlothyMan changed the title feat: Add styles for stats summary cards feat: Add InputStats and PlayerStats for Apex Legends Jun 24, 2026
@SlothyMan

This comment was marked as resolved.

hjpalpha

This comment was marked as resolved.

hjpalpha

This comment was marked as resolved.

@ElectricalBoy

Copy link
Copy Markdown
Collaborator

ideally KDA and other match stats should be stored directly into match2 and then be fetched from there
but practically that's not happening any time soon :/

@SlothyMan SlothyMan force-pushed the SlothyMan-patch-1 branch 2 times, most recently from 9dab056 to 4222d1d Compare June 27, 2026 09:21
@SlothyMan SlothyMan force-pushed the SlothyMan-patch-1 branch from 4222d1d to 8c84168 Compare June 27, 2026 09:21
@SlothyMan

This comment was marked as resolved.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-card styling 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.

Comment thread lua/wikis/apexlegends/Widget/TournamentPlayerStats/Table.lua
border-radius: 0.5rem;
padding: 0.75rem 0.5rem;
text-align: center;
background-color: #ffffff;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants