feat(chat): support ai photo viewing

This commit is contained in:
2026-06-23 10:33:20 +08:00
parent cebc8f7443
commit d81abd6efd
16 changed files with 160 additions and 45 deletions
+16 -2
View File
@@ -54,7 +54,10 @@ export function ChatScreen() {
!isGuest &&
state.paywallTriggered &&
state.paywallReason === "daily_limit";
const showExhaustedBanner = showGuestQuotaBanner || showDailyLimitBanner;
const showPhotoPaywallBanner =
state.paywallTriggered && state.paywallReason === "photo_paywall";
const showExhaustedBanner =
showGuestQuotaBanner || showDailyLimitBanner || showPhotoPaywallBanner;
const externalBrowserPromptShownRef = useRef(false);
@@ -152,7 +155,18 @@ export function ChatScreen() {
/>
{showExhaustedBanner ? (
<ChatQuotaExhaustedBanner />
<ChatQuotaExhaustedBanner
title={
showPhotoPaywallBanner
? "Unlock VIP to view Elio's photos"
: undefined
}
ctaLabel={
showPhotoPaywallBanner
? "Activate VIP to view photos"
: undefined
}
/>
) : (
<ChatInputBar disabled={state.isReplyingAI} />
)}