fix: show membership date for stores without pickups

Treat Foodsharing's zero lastFetch value as no pickup, store memberSince, and
show compact, visible mobile status information without hover tooltips.
This commit is contained in:
2026-08-05 20:22:18 +02:00
parent a64bfe2d3f
commit 61c2488a1e
8 changed files with 121 additions and 35 deletions

View File

@@ -1515,7 +1515,8 @@ async function checkDormantMembers(sessionId, options = {}) {
const lastFetchRaw = memberEntry.lastFetch ?? memberEntry.last_fetch ?? null;
const lastFetchMs = parseLastFetchTimestamp(lastFetchRaw);
const configEntry = configEntryMap.get(storeId)?.entry;
if (updateLastPickupInfo(configEntry, lastFetchRaw)) {
const memberSinceRaw = memberEntry.memberSince ?? memberEntry.member_since ?? null;
if (updateLastPickupInfo(configEntry, lastFetchRaw, memberSinceRaw)) {
configChanged = true;
}
if (sendWarnings && !skipMap.get(storeId) && (!lastFetchMs || lastFetchMs < fourMonthsAgo)) {