Merge pull request #20371 from overleaf/mf-us-gov-banner

[web] Add US gov banner based on inclusion and exclusion criteria

GitOrigin-RevId: c45ed280c8ef2dbdf9f3b84488e767c06fcc1ae1
This commit is contained in:
M Fahru
2024-10-14 11:02:15 +00:00
committed by Copybot
parent f3cb79c12f
commit 16ba4b0ddf
12 changed files with 211 additions and 11 deletions
@@ -1687,6 +1687,8 @@
"upload_project": "",
"upload_zipped_project": "",
"url_to_fetch_the_file_from": "",
"us_gov_banner_government_purchasing": "",
"us_gov_banner_small_business_reseller": "",
"use_a_different_password": "",
"use_saml_metadata_to_configure_sso_with_idp": "",
"use_your_own_machine": "",
@@ -17,6 +17,8 @@ const [enrollmentNotificationModule] = importOverleafModules(
'managedGroupSubscriptionEnrollmentNotification'
)
const [usGovBannerModule] = importOverleafModules('usGovBanner')
const moduleNotifications = importOverleafModules('userNotifications') as {
import: { default: ElementType }
path: string
@@ -27,6 +29,9 @@ const EnrollmentNotification: JSXElementConstructor<{
groupName: string
}> = enrollmentNotificationModule?.import.default
const USGovBanner: JSXElementConstructor<Record<string, never>> =
usGovBannerModule?.import.default
function UserNotifications() {
const groupSubscriptionsPendingEnrollment =
getMeta('ol-groupSubscriptionsPendingEnrollment') || []
@@ -75,6 +80,7 @@ function UserNotifications() {
<ReconfirmationInfo />
<GeoBanners />
{!showWritefull && !dismissedWritefull && <GroupsAndEnterpriseBanner />}
<USGovBanner />
<AccessibilitySurveyBanner />
+3
View File
@@ -20,6 +20,7 @@ import {
Institution as InstitutionType,
Notification as NotificationType,
PendingGroupSubscriptionEnrollment,
USGovBannerVariant,
} from '../../../types/project/dashboard/notification'
import { Survey } from '../../../types/project/dashboard/survey'
import { GetProjectsResponseBody } from '../../../types/project/dashboard/api'
@@ -180,6 +181,7 @@ export interface Meta {
'ol-showSupport': boolean
'ol-showSymbolPalette': boolean
'ol-showTemplatesServerPro': boolean
'ol-showUSGovBanner': boolean
'ol-showUpgradePrompt': boolean
'ol-skipUrl': string
'ol-splitTestInfo': { [name: string]: SplitTestInfo }
@@ -198,6 +200,7 @@ export interface Meta {
'ol-translationLoadErrorMessage': string
'ol-translationMaintenance': string
'ol-translationUnableToJoin': string
'ol-usGovBannerVariant': USGovBannerVariant
'ol-useShareJsHash': boolean
'ol-usedLatex': 'never' | 'occasionally' | 'often' | undefined
'ol-user': User