fix: Mobile responsiveness for Focus Tools & AI chat improvements
continuous-integration/drone/push Build is passing

Mobile Responsiveness:
- Fix headers on all Focus Tools pages (responsive text sizes, proper spacing)
- Fix BodyDoublingLobby form grid (stacks on mobile)
- Add shrink-0 and min-w-0 to prevent flex overflow issues

AI Chat Improvements:
- Add labelName parameter to createTask tool for easier label assignment
- Auto-match or create labels when labelName is provided
- Improve system prompt to act immediately without confirmation
- Clearer instructions about using tools and handling labels
- Better support for Ollama models with function calling
This commit is contained in:
Paul Nothaft
2026-01-16 15:58:00 +01:00
parent 7ce4f7efdc
commit f165ae52e6
12 changed files with 3682 additions and 2219 deletions
@@ -134,13 +134,13 @@ export function BodyDoublingLobby() {
return (
<div className="space-y-6">
{/* Header */}
<div className="flex items-center justify-between">
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
<div>
<h2 className="text-2xl font-bold flex items-center gap-2">
<Users className="h-6 w-6 text-primary" />
<h2 className="text-xl sm:text-2xl font-bold flex items-center gap-2">
<Users className="h-5 w-5 sm:h-6 sm:w-6 text-primary" />
{t('adhd.bodyDoubling.title')}
</h2>
<p className="text-muted-foreground">
<p className="text-sm sm:text-base text-muted-foreground">
{t('adhd.bodyDoubling.description')}
</p>
</div>
@@ -190,7 +190,7 @@ export function BodyDoublingLobby() {
</Select>
</div>
<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div>
<Label htmlFor="startsAt">{t('adhd.bodyDoubling.startTime')}</Label>
<Input
+8 -7
View File
@@ -80,21 +80,22 @@ export default function ADHDDashboardPage() {
return (
<div className="max-w-6xl mx-auto space-y-6">
<div className="flex items-center gap-4 mb-6">
<div className="flex items-center gap-3 sm:gap-4 mb-6">
<Button
variant="ghost"
size="icon"
onClick={() => setLocation('/')}
className="shrink-0"
>
<ArrowLeft className="h-5 w-5" />
</Button>
<div className="flex items-center gap-3">
<div className="p-3 rounded-xl bg-gradient-to-br from-purple-400 to-pink-500 text-white">
<Brain className="h-6 w-6" />
<div className="flex items-center gap-2 sm:gap-3 min-w-0">
<div className="p-2 sm:p-3 rounded-xl bg-gradient-to-br from-purple-400 to-pink-500 text-white shrink-0">
<Brain className="h-5 w-5 sm:h-6 sm:w-6" />
</div>
<div>
<h1 className="text-2xl font-bold">{t('adhd.dashboard.title', 'ADHD Dashboard')}</h1>
<p className="text-muted-foreground">{t('adhd.dashboard.subtitle', 'Tools designed for how your brain works')}</p>
<div className="min-w-0">
<h1 className="text-xl sm:text-2xl font-bold truncate">{t('adhd.dashboard.title', 'ADHD Dashboard')}</h1>
<p className="text-sm sm:text-base text-muted-foreground truncate">{t('adhd.dashboard.subtitle', 'Tools designed for how your brain works')}</p>
</div>
</div>
</div>
+8 -7
View File
@@ -24,21 +24,22 @@ export default function BodyDoublingPage() {
return (
<div className="max-w-4xl mx-auto space-y-6">
<div className="flex items-center gap-4 mb-6">
<div className="flex items-center gap-3 sm:gap-4 mb-6">
<Button
variant="ghost"
size="icon"
onClick={() => setLocation('/')}
className="shrink-0"
>
<ArrowLeft className="h-5 w-5" />
</Button>
<div className="flex items-center gap-3">
<div className="p-3 rounded-xl bg-gradient-to-br from-green-400 to-teal-500 text-white">
<Users className="h-6 w-6" />
<div className="flex items-center gap-2 sm:gap-3 min-w-0">
<div className="p-2 sm:p-3 rounded-xl bg-gradient-to-br from-green-400 to-teal-500 text-white shrink-0">
<Users className="h-5 w-5 sm:h-6 sm:w-6" />
</div>
<div>
<h1 className="text-2xl font-bold">{t('adhd.bodyDoubling.title')}</h1>
<p className="text-muted-foreground">{t('adhd.bodyDoubling.description')}</p>
<div className="min-w-0">
<h1 className="text-xl sm:text-2xl font-bold">{t('adhd.bodyDoubling.title')}</h1>
<p className="text-sm sm:text-base text-muted-foreground">{t('adhd.bodyDoubling.description')}</p>
</div>
</div>
</div>
+8 -7
View File
@@ -28,21 +28,22 @@ export default function QuickWinsPage() {
return (
<div className="max-w-4xl mx-auto space-y-6">
<div className="flex items-center gap-4 mb-6">
<div className="flex items-center gap-3 sm:gap-4 mb-6">
<Button
variant="ghost"
size="icon"
onClick={() => setLocation('/')}
className="shrink-0"
>
<ArrowLeft className="h-5 w-5" />
</Button>
<div className="flex items-center gap-3">
<div className="p-3 rounded-xl bg-gradient-to-br from-yellow-400 to-orange-500 text-white">
<Zap className="h-6 w-6" />
<div className="flex items-center gap-2 sm:gap-3 min-w-0">
<div className="p-2 sm:p-3 rounded-xl bg-gradient-to-br from-yellow-400 to-orange-500 text-white shrink-0">
<Zap className="h-5 w-5 sm:h-6 sm:w-6" />
</div>
<div>
<h1 className="text-2xl font-bold">{t('adhd.quickWins.title')}</h1>
<p className="text-muted-foreground">{t('adhd.quickWins.description')}</p>
<div className="min-w-0">
<h1 className="text-xl sm:text-2xl font-bold">{t('adhd.quickWins.title')}</h1>
<p className="text-sm sm:text-base text-muted-foreground">{t('adhd.quickWins.description')}</p>
</div>
</div>
</div>
+8 -7
View File
@@ -54,21 +54,22 @@ export default function SingleTaskPage() {
return (
<div className="max-w-4xl mx-auto space-y-6">
<div className="flex items-center gap-4 mb-6">
<div className="flex items-center gap-3 sm:gap-4 mb-6">
<Button
variant="ghost"
size="icon"
onClick={() => setLocation('/')}
className="shrink-0"
>
<ArrowLeft className="h-5 w-5" />
</Button>
<div className="flex items-center gap-3">
<div className="p-3 rounded-xl bg-gradient-to-br from-blue-400 to-indigo-500 text-white">
<Focus className="h-6 w-6" />
<div className="flex items-center gap-2 sm:gap-3 min-w-0">
<div className="p-2 sm:p-3 rounded-xl bg-gradient-to-br from-blue-400 to-indigo-500 text-white shrink-0">
<Focus className="h-5 w-5 sm:h-6 sm:w-6" />
</div>
<div>
<h1 className="text-2xl font-bold">{t('adhd.singleTask.title')}</h1>
<p className="text-muted-foreground">{t('adhd.singleTask.description')}</p>
<div className="min-w-0">
<h1 className="text-xl sm:text-2xl font-bold">{t('adhd.singleTask.title')}</h1>
<p className="text-sm sm:text-base text-muted-foreground">{t('adhd.singleTask.description')}</p>
</div>
</div>
</div>