Repository navigation
Painel não subia depois do #44 (sameShare antes de definido) - #45
Merged
Merged
Conversation
A carga dos recordes, no topo do módulo, chama sameShare() antes da linha 'const sameShare = ...' (zona morta do const). Só aparece com um recorde do mesmo worker já salvo, ou seja, em toda instalação em uso: o serviço ficava reiniciando. Vira declaração de função (içada) e ganha um teste que carrega o painel com workers.json e records.json preenchidos. Claude-Session: https://claude.ai/code/session_01XjfaWQbpm2Tv3YnJgEKrFs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Urgente: depois do merge do #44 o painel não sobe:
Causa: a carga dos recordes no topo do
painel.jschamasameShare()antes da linhaconst sameShare = ...(zona morta doconst). Só acontece quando já existe um recorde salvo do mesmo worker — ou seja, em toda instalação em uso — e o serviço fica reiniciando. Os testes não pegaram porque sempre começam comrecords.jsonvazio.Correção:
sameSharevirafunction(é içada). Teste novo carrega o painel comworkers.jsonerecords.jsonpreenchidos — falha sem a correção, passa com ela.npm test: 192 ok.Generated by Claude Code