generated from nhcarrigan/template
feat: poll server for exploration claimability instead of client-side check #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enhancement
Description
Currently, the client determines whether an exploration is claimable by comparing the local clock against the stored
endsAttimestamp. This can cause a desync where the "Collect Results" button appears before the server considers the exploration complete, resulting in a 400 error.Proposed Solution
Replace the client-side claimability check with server polling:
endsAtfor the countdown display timer as normaltimeRemaining <= 0, the client begins polling the server on each tick to check if the exploration is claimableThis makes the server the single source of truth for claimability and eliminates the client/server desync entirely.
Notes
timeRemaining <= 0to avoid unnecessary server requests during active countdownsRelated
User feedback: "Collect Results" button shows but clicking returns
400 — Exploration is not yet complete.✨ This issue was created with help from Hikari~ 🌸
hikari referenced this issue2026-03-24 12:15:40 -07:00