Skip to content

feat: Add Overview page for empty pages - person version#7091

Open
hjpalpha wants to merge 13 commits intomainfrom
empty-page-person-stuff
Open

feat: Add Overview page for empty pages - person version#7091
hjpalpha wants to merge 13 commits intomainfrom
empty-page-person-stuff

Conversation

@hjpalpha
Copy link
Collaborator

@hjpalpha hjpalpha commented Feb 14, 2026

Summary

similar to #5966, just adding person specific version plus the wrapper which decides which of the 2 is called

How did you test this change?

dev

@hjpalpha hjpalpha requested review from a team February 14, 2026 18:22
@hjpalpha hjpalpha marked this pull request as ready for review February 14, 2026 18:22
Comment on lines +258 to +260
if DateExt.isDefaultTimestamp(squadEntry.leavedate) and DateExt.isDefaultTimestamp(squadEntry.inactivedate) then
infoboxArgs.team = squadEntry.pagename
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

could this be added directly to LPDB query condition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, we want the last squad entry for the player indep if still active or not
only the team value is depending on the squad entry still being active
id, name, flag, faction are not

Comment on lines +95 to +102
function EmptyPersonPagePreview:_getWiki()
if Logic.isNotEmpty(self.props.wiki) then
return self.props.wiki
end
if Logic.isNotEmpty(self.props.game) then
return Game.toIdentifier{game = self.props.game} or self.props.game
end
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this needed? Infobox/Basic defaults to Info.wikiName for no input, which should be sufficient

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes for sc2

Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the difference on SC2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sc2 has infoboxes in different colors on the wiki
wol, hots, lotv, indicating the expansion of the game
this is used for infobox league, unit, building, ...

for players and teams it is always set to wol, but that is not the same as the fallback, which would be starcraft2

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't see a visual difference between wol and starcraft2 for player infoboxes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is a different blue:
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

TBH that's not worth the extra code here, it's only quickview pages after all.
Or you move the hardcoded wol setting into the /custom for player infoboxes instead of setting it in the template.

Copy link
Collaborator

Choose a reason for hiding this comment

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

(Also, i'd question why players need the WOL color at all)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hjpalpha and others added 4 commits February 15, 2026 17:53
Co-authored-by: SyntacticSalt <mail@mbergen.de>
Co-authored-by: SyntacticSalt <mail@mbergen.de>
Co-authored-by: SyntacticSalt <mail@mbergen.de>
@hjpalpha hjpalpha requested a review from mbergen February 15, 2026 17:03
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.

3 participants