Files
supabase/apps/studio/components/interfaces/App/AppBannerWrapper.tsx
Danny White 52614926a3 feat(studio): promote Launch Week 16 in the Banner Stack (#54512)
## Problem

Launch Week 16 is promoted on www but needs the same promotion in hosted
Studio.

## Solution

Add a low-priority card to the existing bottom-right Banner Stack across
project, organisation, and account pages. It uses the shared dot artwork
from #54511, links to the Launch Week site, saves dismissal, and expires
after December 11 in San Francisco. Signed-out and self-hosted Studio do
not show it.

| After |
| --- |
| <img width="995" height="584" alt="1211"
src="https://github.com/user-attachments/assets/ff1a60a3-6a4e-4b32-a3df-7fdfe74f4afb"
/> |
| <img width="995" height="584" alt="68318"
src="https://github.com/user-attachments/assets/3a41c56a-fe59-4800-ae14-82ec42c6f260"
/> |

## Review instructions

1. Open a hosted project, organisation, or account page on the Studio
preview. If another notice is in front, expand the Banner Stack to find
**Launch Week 16**.
2. Check the artwork, copy, and **Claim your ticket** button in light
and dark mode. The button opens the Launch Week site in a new tab and
dismisses the card.
3. Close the card and reload. It should stay dismissed.
2026-12-03 10:56:14 +07:00

30 lines
1.1 KiB
TypeScript

import { useFlag } from 'common'
import { PropsWithChildren } from 'react'
import { OrganizationResourceBanner } from '../Organization/HeaderBanner'
import { ClockSkewBanner } from '@/components/layouts/AppLayout/ClockSkewBanner'
import { NoticeBanner } from '@/components/layouts/AppLayout/NoticeBanner'
import { StatusBanner } from '@/components/layouts/AppLayout/StatusBanner'
import { LaunchWeek16BannerRegistration } from '@/components/ui/BannerStack/Banners/BannerLaunchWeek16'
export const AppBannerWrapper = ({
children,
signedOut = false,
}: PropsWithChildren<{ signedOut?: boolean }>) => {
const showNoticeBanner = useFlag('showNoticeBanner')
const clockSkewBanner = useFlag('clockSkewBanner')
return (
<div className="flex flex-col">
{!signedOut && <LaunchWeek16BannerRegistration />}
<div className="shrink-0">
<StatusBanner signedOut={signedOut} />
{showNoticeBanner && <NoticeBanner />}
<OrganizationResourceBanner />
{clockSkewBanner && <ClockSkewBanner />}
</div>
{children}
</div>
)
}