Add tasks setup nudge and prompt
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-16 14:41:09 +01:00
parent 9a4ece33bf
commit 1517eb8631
6 changed files with 230 additions and 4 deletions

View File

@@ -191,6 +191,8 @@ export function SkeletonCard({ height = 80 }: { height?: number }) {
export function ActionTile({
icon: IconCmp,
label,
note,
noteTone = 'muted',
color,
onPress,
disabled = false,
@@ -199,13 +201,16 @@ export function ActionTile({
}: {
icon: React.ComponentType<{ size?: number; color?: string }>;
label: string;
note?: string;
noteTone?: 'warning' | 'muted';
color: string;
onPress?: () => void;
disabled?: boolean;
variant?: 'grid' | 'cluster';
delayMs?: number;
}) {
const { textStrong, glassSurface } = useAdminTheme();
const { textStrong, glassSurface, muted, warningText } = useAdminTheme();
const noteColor = noteTone === 'warning' ? warningText : muted;
const isCluster = variant === 'cluster';
const backgroundColor = withAlpha(color, 0.12);
const borderColor = withAlpha(color, 0.4);
@@ -254,6 +259,11 @@ export function ActionTile({
<Text fontSize="$sm" fontWeight="800" color={textStrong} textAlign="center">
{label}
</Text>
{note ? (
<Text fontSize="$xs" fontWeight="700" color={noteColor} textAlign="center">
{note}
</Text>
) : null}
</YStack>
</Pressable>
);