Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d2855ebf2 | ||
|
|
acd692a441 | ||
|
|
9fa1bc11c4 |
No files matched your search
@@ -1,6 +1,10 @@
|
||||
name: Mobile Showcase Screenshots
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- t3bot/mobile-pending-card-glass
|
||||
- t3bot/mobile-pending-card-glass-before
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
platform:
|
||||
@@ -31,7 +35,7 @@ env:
|
||||
jobs:
|
||||
ios:
|
||||
name: iPhone 6.9, iPhone 6.5, and iPad 13
|
||||
if: inputs.platform == 'all' || inputs.platform == 'ios'
|
||||
if: github.event_name == 'push' || inputs.platform == 'all' || inputs.platform == 'ios'
|
||||
runs-on: blacksmith-12vcpu-macos-26
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
@@ -62,10 +66,10 @@ jobs:
|
||||
"$vp_pnpm_bin/pnpm" --version
|
||||
|
||||
- name: Capture iOS showcase
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}"
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance || 'dark' }}"
|
||||
|
||||
- name: Validate App Store Connect assets
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}" --validate-only
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance || 'dark' }}" --validate-only
|
||||
|
||||
- name: Upload iOS screenshots
|
||||
if: always()
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Pressable, View } from "react-native";
|
||||
|
||||
import { AppText as Text } from "../../components/AppText";
|
||||
import type { PendingApproval } from "../../lib/threadActivity";
|
||||
import { PendingCardSurface } from "./PendingCardSurface";
|
||||
|
||||
export interface PendingApprovalCardProps {
|
||||
readonly approval: PendingApproval;
|
||||
@@ -15,7 +16,7 @@ export interface PendingApprovalCardProps {
|
||||
|
||||
export function PendingApprovalCard(props: PendingApprovalCardProps) {
|
||||
return (
|
||||
<View className="gap-2.5 rounded-[20px] border border-neutral-200 bg-neutral-100/80 p-4 dark:border-white/6 dark:bg-neutral-900/80">
|
||||
<PendingCardSurface>
|
||||
<Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-sky-700 dark:text-sky-300">
|
||||
Approval needed
|
||||
</Text>
|
||||
@@ -52,6 +53,6 @@ export function PendingApprovalCard(props: PendingApprovalCardProps) {
|
||||
<Text className="font-t3-bold text-sm text-rose-700 dark:text-rose-300">Decline</Text>
|
||||
</Pressable>
|
||||
</View>
|
||||
</View>
|
||||
</PendingCardSurface>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { isLiquidGlassSupported, LiquidGlassView } from "@callstack/liquid-glass";
|
||||
import type { ReactNode } from "react";
|
||||
import { useColorScheme, View, type ViewStyle } from "react-native";
|
||||
|
||||
const SURFACE_STYLE: ViewStyle = {
|
||||
borderRadius: 20,
|
||||
overflow: "hidden",
|
||||
};
|
||||
|
||||
export function PendingCardSurface(props: { readonly children: ReactNode }) {
|
||||
const isDarkMode = useColorScheme() === "dark";
|
||||
const content = <View className="gap-2.5 p-4">{props.children}</View>;
|
||||
|
||||
if (isLiquidGlassSupported) {
|
||||
return (
|
||||
<LiquidGlassView
|
||||
effect="regular"
|
||||
interactive
|
||||
colorScheme={isDarkMode ? "dark" : "light"}
|
||||
style={SURFACE_STYLE}
|
||||
>
|
||||
{content}
|
||||
</LiquidGlassView>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<View
|
||||
className="rounded-[20px] border border-neutral-200 bg-neutral-100 dark:border-white/6 dark:bg-neutral-900"
|
||||
style={SURFACE_STYLE}
|
||||
>
|
||||
{content}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import { Pressable, View } from "react-native";
|
||||
import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText";
|
||||
import { cn } from "../../lib/cn";
|
||||
import type { PendingUserInput, PendingUserInputDraftAnswer } from "../../lib/threadActivity";
|
||||
import { PendingCardSurface } from "./PendingCardSurface";
|
||||
|
||||
export interface PendingUserInputCardProps {
|
||||
readonly pendingUserInput: PendingUserInput;
|
||||
@@ -25,7 +26,7 @@ export interface PendingUserInputCardProps {
|
||||
|
||||
export function PendingUserInputCard(props: PendingUserInputCardProps) {
|
||||
return (
|
||||
<View className="gap-2.5 rounded-[20px] border border-neutral-200 bg-neutral-100/80 p-4 dark:border-white/6 dark:bg-neutral-900/80">
|
||||
<PendingCardSurface>
|
||||
<Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-sky-700 dark:text-sky-300">
|
||||
User input needed
|
||||
</Text>
|
||||
@@ -100,6 +101,6 @@ export function PendingUserInputCard(props: PendingUserInputCardProps) {
|
||||
>
|
||||
<Text className="font-t3-extrabold text-sm text-white">Submit answers</Text>
|
||||
</Pressable>
|
||||
</View>
|
||||
</PendingCardSurface>
|
||||
);
|
||||
}
|
||||
@@ -571,6 +571,40 @@ function seedDatabase(
|
||||
3,
|
||||
minutesBefore(now, 4),
|
||||
);
|
||||
database
|
||||
.prepare(
|
||||
`INSERT INTO projection_thread_activities (
|
||||
activity_id, thread_id, turn_id, tone, kind, summary, payload_json, sequence, created_at
|
||||
) VALUES (?, ?, ?, 'info', 'user-input.requested', ?, ?, ?, ?)`,
|
||||
)
|
||||
.run(
|
||||
"choose-remote-environment",
|
||||
SHOWCASE_THREAD_ID,
|
||||
turnId,
|
||||
"User input requested",
|
||||
JSON.stringify({
|
||||
requestId: "showcase-user-input",
|
||||
questions: [
|
||||
{
|
||||
id: "environment",
|
||||
header: "Environment",
|
||||
question: "Which environment should receive the first remote handoff?",
|
||||
options: [
|
||||
{
|
||||
label: "Moonbase",
|
||||
description: "Use the primary T3 Code workspace.",
|
||||
},
|
||||
{
|
||||
label: "Suspense Station",
|
||||
description: "Use the React workspace.",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
4,
|
||||
minutesBefore(now, 2),
|
||||
);
|
||||
|
||||
for (const [index, projector] of PROJECTOR_NAMES.entries()) {
|
||||
database
|
||||
|
||||
Reference in new issue
Block a user