Repository navigation
fix(mobil): bannerul de status al orelor nu mai rămâne invizibil - #718
Merged
Merged
Conversation
Deschizând o înregistrare de ore creată chiar atunci, ecranul arăta întâi copia „în așteptare” din store (pusă de crearea orelor), apoi cererea aducea „aprobată”. Schimbarea de stil în timpul animației de intrare lăsa bannerul la opacitate 0 pe iOS: textul exista (în arborele de accesibilitate), dar nu se vedea. Reprodus pe staging de două ori. Bannerul are acum cheia statusului: un status nou montează un banner nou, care apare din nou cu animația. Același lucru acoperă și reîmprospătarea la push (#711) cu ecranul deschis. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Găsit la retestul de pe staging din 19.11.2026 (iPhone 15 Pro Max, build preview).
Problema: prima deschidere a unei înregistrări de ore aprobate imediat după ce a fost creată arăta bannerul de status gol. Textul „Aprobată la 19 noiembrie 2026” era în arborele de accesibilitate, dar nu se vedea; la a doua deschidere apărea normal. Reprodus de două ori.
Cauza:
useCreateActivityLogMutationpune înregistrarea nouă (PENDING) înselectedActivityLog. Deschizând-o, ecranul arată întâi copia din store, apoiuseActivityLogQueryaduce APPROVED. Bannerul își schimbă stilul în timpul animației de intrare (Enter, Reanimatedentering), iar pe iOS rămâne la opacitate 0. Înregistrările care nu erau ultima creată nu aveau problema.Ce face: bannerul are
key={log.status}: un status nou montează un banner nou, care apare cu animația. Acoperă și reîmprospătarea la push (#711) cu ecranul deschis.Teste: în
hours.test.tsx, un test nou: pending → approved montează alt banner, cu textul aprobării; testul pică fără fix. Toată suita mobilă: 51/51 suite, 477 teste;tsc, eslint, prettier curate.De verificat pe dispozitiv la următorul build preview: adaugi ore, le aprobi pe web, le deschizi din „Aprobate”: bannerul verde apare.
🤖 Generated with Claude Code