AI Plan Generation. Clear button sets focus

This commit is contained in:
AG
2025-12-15 22:46:04 +02:00
parent 854eda98d2
commit c275804fbc
9 changed files with 542 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ const IdleView: React.FC<IdleViewProps> = ({ tracker, lang }) => {
</button>
</div>
{plans.length > 0 && (
{plans.length > 0 ? (
<div className="w-full max-w-md mt-8">
<h3 className="text-sm text-on-surface-variant font-medium px-4 mb-3">{t('or_choose_plan', lang)}</h3>
<div className="grid grid-cols-1 gap-3">
@@ -145,6 +145,24 @@ const IdleView: React.FC<IdleViewProps> = ({ tracker, lang }) => {
))}
</div>
</div>
) : (
<div className="w-full max-w-md mt-8 text-center p-6 bg-surface-container rounded-2xl border border-outline-variant/20">
<p className="text-on-surface-variant mb-4">{t('no_plans_yet', lang)}</p>
<div className="flex flex-col gap-2">
<a
href="/plans?aiPrompt=true"
className="text-primary font-medium hover:underline"
>
{t('ask_ai_to_create', lang)}
</a>
<a
href="/plans?create=true"
className="text-primary font-medium hover:underline"
>
{t('create_manually', lang)}
</a>
</div>
</div>
)}
</div>