chore(webui): clean up listing for rivens with pending challenges (#2969)
All checks were successful
Build / build (push) Successful in 1m30s
Build Docker image / docker (push) Successful in 2m45s

Closes #2966

Reviewed-on: #2969
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-11-02 00:17:25 -07:00 committed by Sainan
parent 00acaed62a
commit cc5682760d

View File

@ -646,7 +646,7 @@ function fetchItemList() {
if ("badReason" in item) {
if (item.badReason == "starter") {
item.name = loc("code_starter").split("|MOD|").join(item.name);
} else {
} else if (item.badReason != "notraw") {
item.name += " " + loc("code_badItem");
}
}
@ -1454,7 +1454,11 @@ function updateInventory() {
{
const td = document.createElement("td");
td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
if (itemMap[item.ItemType]?.badReason == "notraw") {
// Assuming this is a riven with a pending challenge, so rank would be N/A, but otherwise it's fine.
} else {
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
}
tr.appendChild(td);
}
{