Skip to content

fix(dashboard): keep Profile XP and level consistent - #11604

Merged
diegosouzapw merged 3 commits into
diegosouzapw:release/v3.8.51from
pacocartones:fix/profile-xp-consistency
Aug 26, 2026
Merged

diegosouzapw merged 3 commits into
diegosouzapw:release/v3.8.51from
pacocartones:fix/profile-xp-consistency

Conversation

@pacocartones

@pacocartones pacocartones commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • reconcile level estimates against exact cumulative XP thresholds
  • derive the operator profile level from the same aggregate XP it displays
  • reject non-finite XP safely and bound finite inputs above JavaScript's safe integer range
  • lock exact boundaries, multi-key aggregation and extreme inputs with regression tests

TDD and verification

  • RED: aggregate XP produced an inconsistent level under the approximate calculation
  • RED: NaN returned NaN; Infinity did not terminate within the bounded reproduction
  • GREEN: focused node:test 34/34
  • typecheck:core
  • changed-file ESLint and Prettier
  • changelog integrity and diff checks

⚠️ base-red inherited: #11449. Shared docs, quality and unit-shard failures are outside the files changed by this PR.

@pacocartones
pacocartones marked this pull request as ready for review August 26, 2026 04:34
@pacocartones pacocartones changed the title fix(gamification): keep profile XP and level consistent fix(dashboard): keep Profile XP and level consistent Aug 26, 2026
@diegosouzapw
diegosouzapw merged commit c4d149c into diegosouzapw:release/v3.8.51 Aug 26, 2026
10 of 16 checks passed
diegosouzapw pushed a commit that referenced this pull request Aug 26, 2026
#11676)

Merged via /merge-batch (2026-08-26, v3.8.51). Boarded no worktree combinado; validação única: typecheck/complexity/cognitive-complexity/file-size/changelog verdes, lint nos mesmos 228 achados pré-existentes confirmados contra o tip puro, testes focados passando. Obrigado pela contribuição.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
)

Merged via /merge-batch (lote 2026-08-26 batch 2, v3.8.51). Boarded no worktree combinado junto com outras ~20 PRs; validação única: typecheck/complexity/cognitive-complexity/changelog-integrity verdes, file-size rebaseado onde necessário (crescimento legítimo), lint com os mesmos 228 achados pré-existentes confirmados via sonda contra o tip puro (não introduzidos por este lote), e 292 testes focados (unit) + 18 (vitest) passando. Obrigado pela contribuição.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…ved semantics (diegosouzapw#11676)

Merged via /merge-batch (2026-08-26, v3.8.51). Boarded no worktree combinado; validação única: typecheck/complexity/cognitive-complexity/file-size/changelog verdes, lint nos mesmos 228 achados pré-existentes confirmados contra o tip puro, testes focados passando. Obrigado pela contribuição.
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.

2 participants