feat(web): show offer requirements, current progress and effects

This commit is contained in:
Bastian Wagner
2026-08-22 20:15:51 +02:00
parent 36adc32659
commit 00784094ab
4 changed files with 262 additions and 0 deletions

View File

@@ -222,6 +222,28 @@
<span class="shop-row__description">{{
offer.itemDescription
}}</span>
@if (offer.effectSummary) {
<span class="shop-row__effect" data-effect>{{
offer.effectSummary
}}</span>
}
@for (
requirement of offer.requirements ?? [];
track requirement.label
) {
<span
class="shop-row__requirement"
[class.shop-row__requirement--met]="requirement.met"
data-requirement
>
{{ requirement.label }}
@if (!requirement.met && requirement.current !== null) {
<span class="shop-row__current"
>· Current: {{ requirement.current }}</span
>
}
</span>
}
</div>
<span class="shop-row__price">{{ offer.price }} Silver</span>
<button