fix: 7 UX bugs across dashboard, tasks, projects, calendar, settings

- Dashboard: fetch project progress from /api/projects/[id]/progress
- Tasks List: add DropdownMenuTrigger to More options button
- Projects: add New project button with CreateItemDialog integration
- Settings: use color picker value when creating domains
- Calendar: use dynamic domain options instead of hardcoded list
- Dashboard: make View all button navigate to /tasks
- Dashboard: domain names already resolved via domainMap (verified working)
This commit is contained in:
2026-07-26 01:22:41 +00:00
parent 953a947874
commit af7d05be0f
6 changed files with 72 additions and 21 deletions
+7 -7
View File
@@ -248,15 +248,15 @@ export default function CalendarPage() {
<div className="space-y-3">
<h2 className="text-sm font-semibold">Domains</h2>
<div className="space-y-2">
{['personal', 'work', 'ots'].map((domain) => (
<div key={domain} className="flex items-center space-x-2">
{(domainOptions.length > 0 ? domainOptions : []).map((domain) => (
<div key={domain.id} className="flex items-center space-x-2">
<Checkbox
id={domain}
checked={selectedDomains.includes(domain)}
onCheckedChange={() => toggleDomain(domain)}
id={domain.id}
checked={selectedDomains.includes(domain.id)}
onCheckedChange={() => toggleDomain(domain.id)}
/>
<Label htmlFor={domain}>
<Badge variant="outline">{domain}</Badge>
<Label htmlFor={domain.id}>
<Badge variant="outline">{domain.name}</Badge>
</Label>
</div>
))}