Skip to content

Commit

Permalink
Aug 2023 Maintenance (#1765)
Browse files Browse the repository at this point in the history
* maintenance

* lints
  • Loading branch information
Robinnnnn authored Aug 2, 2023
1 parent 03f7e59 commit 6c10e87
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Variant = 'default' | 'lit';
type Props = {
queryRef: GlobalBannerFragment$key;
experienceFlag: UserExperienceType;
variant: Variant;
variant?: Variant;
text: string;
title?: React.ReactNode | string;
requireAuth?: boolean;
Expand Down
21 changes: 14 additions & 7 deletions apps/web/src/contexts/globalLayout/GlobalLayoutContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import isTouchscreenDevice from '~/utils/isTouchscreenDevice';

import { FEATURED_COLLECTION_IDS } from './GlobalAnnouncementPopover/GlobalAnnouncementPopover';
// import useGlobalAnnouncementPopover from './GlobalAnnouncementPopover/useGlobalAnnouncementPopover';
import GlobalBanner, { CTAChip } from './GlobalBanner/GlobalBanner';
import GlobalBanner from './GlobalBanner/GlobalBanner';
import GlobalSidebar, { GLOBAL_SIDEBAR_DESKTOP_WIDTH } from './GlobalSidebar/GlobalSidebar';
import {
FADE_TRANSITION_TIME_MS,
Expand Down Expand Up @@ -426,14 +426,21 @@ function GlobalNavbarWithFadeEnabled({
}}
>
{isBannerVisible && (
// <GlobalBanner
// // make sure to update this flag and add to backend schema.graphql
// experienceFlag="MobileBetaUpsell"
// variant="lit"
// text="Embrace the new era of creativity at Gallery! Download the Gallery Mobile App Beta and take your collection everywhere."
// actionComponent={<CTAChip />}
// dismissOnActionComponentClick
// queryRef={query}
// requireAuth
// />
<GlobalBanner
// make sure to update this flag and add to backend schema.graphql
experienceFlag="MobileBetaUpsell"
variant="lit"
text="Embrace the new era of creativity at Gallery! Download the Gallery Mobile App Beta and take your collection everywhere."
actionComponent={<CTAChip />}
dismissOnActionComponentClick
experienceFlag="MaintenanceAug2023"
text="Gallery will be undergoing planned maintenance on **Wednesday, Aug 2nd** from **9:00 – 10:00PM EST** as we upgrade our infrastructure. The site will not be usable during this period."
queryRef={query}
dismissOnActionComponentClick
requireAuth
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/scenes/MaintenancePage/MaintenancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function MaintenancePage() {
<StyledLogo />
<StyledBaseM>
Gallery is currently undergoing planned maintenance until{' '}
<strong>Saturday Feb 25th, 3:30pm EST</strong> and is not usable at this time. Keep up to
<strong>Wednesday Aug 2nd, 10:00pm EST</strong> and is not usable at this time. Keep up to
date on our socials.
</StyledBaseM>
</VStack>
<HStack gap={8}>
<StyledFooterLink href={GALLERY_TWITTER}>Twitter</StyledFooterLink>
<StyledFooterLink href={GALLERY_TWITTER}>Xwitter</StyledFooterLink>
<BaseM>·</BaseM>
<StyledFooterLink href={GALLERY_DISCORD}>Discord</StyledFooterLink>
</HStack>
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/utils/processProjectUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ function isValidHttpsUrl(url: string): boolean {
'(\\#[-a-z\\d_]*)?$',
'i'
); // fragment locator
return !!pattern.test(url);
return Boolean(pattern.test(url));
}
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,7 @@ enum UserExperienceType {
EmailUpsell
MerchStoreUpsell
MaintenanceFeb2023
MaintenanceAug2023
TwitterConnectionOnboardingUpsell
UpsellMintMemento4
UpsellGallerySelects1
Expand Down

1 comment on commit 6c10e87

@vercel
Copy link

@vercel vercel bot commented on 6c10e87 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.