feat(web): announce offers a trade just unlocked

This commit is contained in:
Bastian Wagner
2026-08-22 20:30:36 +02:00
parent 681af334bf
commit 374926e494
4 changed files with 183 additions and 20 deletions

View File

@@ -208,6 +208,21 @@
<h2 class="merchant__panel-title">{{ shop.shopName }}</h2>
<p class="merchant__purse" data-purse>{{ shop.silver }} Silver</p>
@if (store.newlyUnlocked().length > 0) {
<p class="shop-unlocked" data-unlocked aria-live="polite">
@for (name of store.newlyUnlocked(); track name) {
<span>New merchant offer unlocked: {{ name }}</span>
}
<button
type="button"
class="merchant__link"
(click)="store.dismissUnlocked()"
>
Dismiss
</button>
</p>
}
<ul class="shop-list">
@for (offer of shop.offers; track offer.itemKey) {
<li class="shop-row" [attr.data-shop-item]="offer.itemKey">