-
Notifications
You must be signed in to change notification settings - Fork 3
feat(docs): added "new" section badge in sidenav (#DS-3386) #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Visit the preview URL for this PR (updated for commit 8aa65a5): https://koobiq-next--prs-662-ccht1fmw.web.app (expires Wed, 23 Apr 2025 10:23:15 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
мб упростим это все, и будем управлять элементами навигации из одного места ( import { DateTime } from 'luxon';
{
id: 'core',
...
isNew: DateTime.now().diff(DateTime.fromISO('2025-04-17'), 'days') < N, // N = 30?
} по поводу CI не уверен, нужно нам или нет, пока сложно сказать |
@artembelik вынес в функцию |
@rmnturov actions panel, breadcrumbs и тд уже не считаем за new? |
Summary
Добавил бейдж и логику скрытия через время (expirationDate), чтобы неактуальные бейджи не отображались.