Repository navigation
feat: numărul de noutăți necitite și bulina roșie pe clopoțel - #667
Merged
Merged
Conversation
…casă
Backend: coloana user.news_last_seen_at (migrarea NewsLastSeenAt1794450000000),
GET /mobile/news/unread-count ({ unread }) și POST /mobile/news/seen (204).
Numărul folosește aceleași evenimente și aceeași vizibilitate ca lista Noutăți.
Mobil: bulina .badge-n pe clopoțel (ascunsă la 0, 9+ peste 9), etichetă
„Noutăți, N necitite”, Noutăți marchează citirea la deschidere, Acasă reîncarcă
numărul la fiecare focus.
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.
Ce face
Numărul de noutăți necitite și bulina roșie de pe clopoțelul de pe Acasă, ca în prototip.
Backend
user.news_last_seen_at.1794450000000-NewsLastSeenAt. Adaugă"user".news_last_seen_at timestamptz NOT NULL DEFAULT now(), iardowno șterge. Utilizatorii existenți primesc momentul migrării, deci nimeni nu vede bulină pentru noutăți vechi.GET /mobile/news/unread-count→{ unread }: noutățile create dupănews_last_seen_at, cu aceleași evenimente și aceeași vizibilitate ca lista (am mutat filtrul într-un singur loc).POST /mobile/news/seen→ 204: marchează totul ca văzut. E un apel explicit pentru căGET /mobile/newse paginat și se reîncarcă pe fiecare tab, deci nu arată de încredere când a fost deschis ecranul.news-unread.spec.ts) și e2e (mobile-news-unread.e2e-spec.ts): vizibilitate, utilizator nou, seen → 0, 401.Mobile
CountBadgenou însrc/design/components, după.badge-ndin prototip: roșu #C8321F, inel paper, „9+” peste 9, ascuns la 0Verificat
Pe staging trebuie rulată migrarea
NewsLastSeenAt1794450000000.