Skip to content

Commit ec7dc32

Browse files
V45 Gate 15: Repair route vocabulary type checks
Remove stale public navigation branches for the retired Terminal route vocabulary and align the landing preview accent check to the current Read surface labels.\n\nProof: pnpm -C uapi exec tsc --noEmit; pnpm run check:v45-gate15; pnpm -C uapi lint; pnpm -C uapi exec jest tests/publicDocsPageContent.test.tsx tests/bitcodeDocsContent.test.tsx tests/marketingLandingPage.test.tsx tests/marketingOperatorGuideCard.test.tsx tests/readPageClient.test.tsx tests/depositPageClient.test.tsx tests/packsPageClient.test.tsx --runInBand; CI-env pnpm -C uapi run build; git diff --check.
1 parent 3b1f8ba commit ec7dc32

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

uapi/app/(root)/components/landing/MarketingLandingTerminalPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const MarketingLandingTerminalPreview = memo(function MarketingLandingTer
110110
key={surface}
111111
className="inline-flex items-center gap-2 rounded-full border border-white/10 bg-black/20 px-3 py-2 text-[11px] text-white/84"
112112
>
113-
{renderOrbitalBullet('scale-100', surface === 'Deposit + Read' ? 'green' : 'purple')}
113+
{renderOrbitalBullet('scale-100', surface === 'Read' ? 'green' : 'purple')}
114114
{surface}
115115
</span>
116116
))}
@@ -174,7 +174,7 @@ export const MarketingLandingTerminalPreview = memo(function MarketingLandingTer
174174
>
175175
{renderOrbitalBullet(
176176
'scale-110 tablet:scale-[1.25] laptop:scale-100',
177-
surface === 'Deposit + Read' ? 'green' : 'purple',
177+
surface === 'Read' ? 'green' : 'purple',
178178
)}
179179
<span className="text-left text-[15px] leading-snug text-white/90 tablet:text-[17px] laptop:text-[13px]">
180180
{surface}

uapi/components/base/bitcode/layout/nav.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function shouldApplyCollapseAnimation(pathname: string | null): boolean {
5757

5858
const DISABLED_FEATURE_TOOLTIPS = {
5959
exchange:
60-
'Disabled for launch mode. When enabled, Packs opens the public Source Shares activity and pack-reading surface.',
60+
'Disabled for launch mode. When enabled, Packs opens the public activity and pack-reading surface.',
6161
terminal:
6262
'Disabled for launch mode. When enabled, Terminal opens the full deposit-to-settle ledger, proofs, and history workspace.',
6363
auxillaries:
@@ -247,7 +247,6 @@ export default function Nav() {
247247
const disableAuxillaries = Boolean(FEATURE_FLAGS.DISABLE_AUXILLARIES);
248248
const disableCreateAccount = Boolean(FEATURE_FLAGS.DISABLE_CREATE_ACCOUNT);
249249
const disableExchangeLink = Boolean(FEATURE_FLAGS.DISABLE_EXCHANGE_LINK);
250-
const disableTerminalLink = Boolean(FEATURE_FLAGS.DISABLE_TERMINAL_LINK);
251250
const containerEntranceClassName = showNavEntrance
252251
? shouldAnimateNavEntrance
253252
? 'nav-container-animated'
@@ -396,9 +395,7 @@ export default function Nav() {
396395
const isPacksRoute = href === '/packs';
397396
const isDepositRoute = href === '/deposit';
398397
const isReadRoute = href === '/read';
399-
const isDisabledRoute =
400-
(isPacksRoute && disableExchangeLink) ||
401-
(href === '/terminal' && disableTerminalLink);
398+
const isDisabledRoute = isPacksRoute && disableExchangeLink;
402399
const isActiveRoute =
403400
isPacksRoute
404401
? pathname === '/packs' || pathname?.startsWith('/packs/') || pathname === '/exchange' || pathname?.startsWith('/exchange/')
@@ -415,7 +412,7 @@ export default function Nav() {
415412
<span className="inline-flex items-center gap-1.5">
416413
{isDisabledRoute ? (
417414
<DisabledTooltipWrapper
418-
tooltip={isPacksRoute ? DISABLED_FEATURE_TOOLTIPS.exchange : DISABLED_FEATURE_TOOLTIPS.terminal}
415+
tooltip={DISABLED_FEATURE_TOOLTIPS.exchange}
419416
>
420417
<span
421418
role="link"
@@ -463,12 +460,6 @@ export default function Nav() {
463460
side="bottom"
464461
triggerClassName="h-4.5 w-4.5 border-white/10 bg-white/[0.03] text-[0.58rem] text-neutral-300 hover:border-emerald-300/30 hover:bg-emerald-400/10 hover:text-emerald-100"
465462
/>
466-
) : href === '/terminal' ? (
467-
<BitcodeInlineExplainer
468-
explainer={BITCODE_PUBLIC_EXPLAINERS.transactions}
469-
side="bottom"
470-
triggerClassName="h-4.5 w-4.5 border-white/10 bg-white/[0.03] text-[0.58rem] text-neutral-300 hover:border-emerald-300/30 hover:bg-emerald-400/10 hover:text-emerald-100"
471-
/>
472463
) : href === '/docs' ? (
473464
<BitcodeInlineExplainer
474465
explainer={BITCODE_PUBLIC_EXPLAINERS.docs}

0 commit comments

Comments
 (0)