Skip to content

feat(drawer): link Steam IDs to the Steam Community profile - #73

Merged
Rushaway merged 1 commit into
mainfrom
feat/drawer-steam-profile-links
Oct 20, 2026
Merged

Rushaway merged 1 commit into
mainfrom
feat/drawer-steam-profile-links

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

In the player drawer (banlist + commslist), the SteamID, Steam3 and Community values are now links to https://steamcommunity.com/profiles/<steam64>, opened in a new tab (rel="noopener noreferrer"). No more pasting the ID into Google to find the profile.

  • The URL is built only from player.community_id when it is a 17-digit Steam64 (^7\d{16}$). IP-only bans and malformed authids keep plain text.
  • The copy buttons next to each value are unchanged.
  • Styling: value keeps its color with a dotted underline; accent color + solid underline on hover / focus.

Changes

  • web/themes/default/js/theme.js: renderOverviewPane() wraps the three Steam rows in an <a data-testid="drawer-steam-profile-link">.
  • web/themes/default/css/theme.css: .drawer__id-link style.
  • web/tests/e2e/specs/responsive/drawer.spec.ts: the format-detection test asserted the Steam3 <dd> had no <a> at all; it now only forbids tel: / sms: anchors and checks the profile link href.
  • CHANGELOG 2.1.22-srcdslab, default theme version 2.0.4.

Test plan

  • ts-check passes
  • E2E responsive/drawer.spec.ts in CI
  • Open a ban in the drawer, click SteamID / Steam3 / Community, Steam profile opens in a new tab

🤖 Generated with Claude Code

The SteamID, Steam3 and Community values in the player drawer now open
https://steamcommunity.com/profiles/<steam64> in a new tab, so admins
no longer have to paste the ID into a search engine. The URL is only
built from a 17-digit Steam64, so IP-only bans and malformed authids
stay plain text. The copy buttons are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rushaway
Rushaway requested review from cmer81 and maxijabase October 20, 2026 11:32
@Rushaway
Rushaway merged commit 04d69b4 into main Oct 20, 2026
4 checks passed
@Rushaway
Rushaway deleted the feat/drawer-steam-profile-links branch October 20, 2026 12:50
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.

1 participant