Skip to content

Staleness

Vocino edited this page Aug 20, 2026 · 5 revisions

staleness

site per-char dot + hover. freshness per-section inside payload not on d1 row, because bundle pasted this minute can carry 9-day-old bank.

thresholds mirroring addon ns.dot() in Init.lua

from src/lib/warband-import.ts same numbers both sides. if move, move both.

  • green fresh under 6h
  • yellow aging under 3d
  • red stale beyond 3d
  • grey never (stamp absent)

character_addon_cache.fetched_at_ms is "when user last pasted". section dot is "how current is this section".

seenAt.{lastSeen,bag,bank,warbank,currency,instance,vault,mail,auctions,profession} unix seconds wow time() / GetServerTime(). web converts ms. mistake seconds as ms -> 1970 all stale. ms as seconds -> year 56000 all fresh forever. tests assert both.

ui

  • site inspector "addon import" section
  • hover "bags 2h ago, bank 5d (open bank to refresh), warbank 14d"
  • tonight plan
    • 0 phials fresh 20m -> hard block "hit ah before raid"
    • 0 phials 5d old -> grey "per last import 5d ago verify?" not block
  • preview table import keeps old snapshot if char missing -> aging red, never deleted. missing not gone.

unknown vs zero

  • bank never opened -> omit -> ui "not opened" not "0 free" (0 free reads full, sends to clear space you have)
  • consumables unknown until id table filled -> absent not zero (tonight plan would hard block on 0)

data never deletes, stale lowers confidence.

warband bank trust

  • warbank seen 1h ago by vocnar still present if you exported from voctara who didnt open bank -> shared account-wide tabs.
  • dots "warbank 1h (by vocnar)" credit.
  • tabs acct-wide warband_bank_cache one row per user, char seenAt.warbank per char for who last stood at banker.

freshness line why sink matters

top-right [ sync / import ] bottom small api 12m · addon 2h · warbank 1d (by vocnar) immediate trust signal.

addon panel freshness

export header 6 chars · freshest 12m · warbank 1h (by vocnar) so you know before copying not stale.

sync consideration

bnet side $ sync refreshes roster/vitals/lockouts and reloads (deliberate rail $ sync server rendered, in-place would leave freshwater readout lying). addon import never reloads, only line stamped.

tested

  • vectors v1-min.json sanity
  • manual open bank -> export -> paste -> hover shows bank now fresh green

Warband.pro Companion

Home

Start

Integration

Internals

Clone this wiki locally