Skip to content

fix(ui): live speed/online indicators lost in #88 squash merge - #98

Open
leonidorlov-hash wants to merge 2 commits into
PRVTPRO:mainfrom
leonidorlov-hash:fix/live-ui-call-sites
Open

fix(ui): live speed/online indicators lost in #88 squash merge#98
leonidorlov-hash wants to merge 2 commits into
PRVTPRO:mainfrom
leonidorlov-hash:fix/live-ui-call-sites

Conversation

@leonidorlov-hash

Copy link
Copy Markdown
Contributor

Проблема

При squash-мерже #88 в main попали хелперы (parseHandshakeAgo, formatHandshakeCompact, computeRates) и CSS (.meta-online, .speed-badge, .avatar-online), но цикл рендера их не вызывает: _online = true не выставляется нигде, бейдж скорости не создаётся, handshake показывается длинной строкой.

Итог: пульсирующей точки онлайна и живой скорости в v1.6.0 нет, хотя весь код для них лежит мёртвым грузом.

Решение

Возвращаю вызовы в цикл рендера — ровно то, что было в оригинальном #88:

  • 🤝 в компактном виде (2h 29m ago) с классом meta-online при handshake < 3 мин;
  • client._online = true → зелёная пульсирующая точка на аватаре;
  • бейдж ↓X/s ↑Y/s из дельт счётчиков между опросами.

…squash merge

The squash merge of PRVTPRO#88 kept the helpers (parseHandshakeAgo,
formatHandshakeCompact, computeRates) and the CSS (.meta-online,
.speed-badge, .avatar-online), but the render loop never called them,
so the online pulse, compact handshake and live speed badge never
appeared. This wires the render loop back to the helpers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant