Skip to content

Commit 5d514ee

Browse files
ryanbarlow97claude
andcommitted
feat(client): name the queue's link and drop the hero's play button
"See more" didn't say where it went or how much was behind it; it now reads "See all 16" and looks like a link. The hero's PLAY button said what the card already does on click, so it's gone. Also drops tests/server/QueueRotation.test.ts. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 92dc1bb commit 5d514ee

3 files changed

Lines changed: 4 additions & 312 deletions

File tree

resources/lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@
15131513
"connecting": "Connecting to lobby...",
15141514
"join_timeout": "You didn't enter the game in time.",
15151515
"players_per_team": "of {num}",
1516-
"see_more": "See more",
1516+
"see_all": "See all {count}",
15171517
"started": "Started",
15181518
"starting_game": "Starting…",
15191519
"starting_in": "Starting in {time}",

src/client/GameModeSelector.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,14 @@ export class GameModeSelector extends LitElement {
316316
blocked: this.blocked,
317317
heightClass: "h-56 lg:h-full lg:min-h-48",
318318
maxModifiers: PILL_LIMIT,
319-
actionLabel: translateText("main.play"),
320-
onAction: () => this.validateAndJoin(entry.lobby),
321319
onClick: () => this.validateAndJoin(entry.lobby),
322320
});
323321
}
324322

325323
/** The queue as a column beside the hero: top down, one lobby a row. */
326324
private renderQueueColumn(entries: QueueEntry[]) {
327325
if (entries.length === 0) return nothing;
326+
const total = entries.length;
328327

329328
return html`
330329
<section class="flex flex-col gap-3 min-w-0 min-h-0">
@@ -339,9 +338,9 @@ export class GameModeSelector extends LitElement {
339338
</div>
340339
<button
341340
@click=${this.openDetailed}
342-
class="shrink-0 text-xs font-bold uppercase tracking-wider text-white/45 hover:text-white transition-colors"
341+
class="shrink-0 text-xs font-bold uppercase tracking-wider text-malibu-blue hover:text-aquarius hover:underline transition-colors"
343342
>
344-
${translateText("public_lobby.see_more")}
343+
${translateText("public_lobby.see_all", { count: total })}
345344
</button>
346345
</div>
347346
<div class="flex flex-col gap-3 lg:flex-1 lg:min-h-0">

tests/server/QueueRotation.test.ts

Lines changed: 0 additions & 307 deletions
This file was deleted.

0 commit comments

Comments
 (0)