mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* feat: allow for monthly tl builds experiment * feat: add in-editor notification when rolling image has updated * feat: add in-editor notification when rolling image has updated * feat: allowing for different messages in experiment when user is optend in * feat: add a banner notification in the error logs when the user is on the rolling build * moving rolling check from context to util * Update services/web/frontend/js/features/pdf-preview/components/rolling-build-selected-reminder.tsx Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> --------- Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> GitOrigin-RevId: fb669db28a7194babb299413f20209e76dcbd351
11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import getMeta from '@/utils/meta'
|
|
const images = getMeta('ol-imageNames') || []
|
|
|
|
const rollingImages = images
|
|
.filter(img => img.rolling)
|
|
.map(img => img.imageName)
|
|
|
|
export function onRollingBuild(imageName: string | undefined) {
|
|
return Boolean(imageName && rollingImages.includes(imageName))
|
|
}
|