Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(web): motion and fluidity polish pass (#1407)

Andrej63e44ccff707
diff --git a/apps/web/package.json b/apps/web/package.json
index 552cf366e..cc92a9f6c 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -91,9 +91,7 @@
"react-use-websocket": "^4.11.1",
"shiki": "^4.0.2",
"sonner": "^2.0.6",
- "tailwind-animate": "^0.2.10",
"tailwind-merge": "^3.5.0",
- "tailwindcss-animate": "^1.0.7",
"tippy.js": "^6.3.7",
"turndown": "^7.2.2",
"turndown-plugin-gfm": "^1.0.2",
@@ -113,7 +111,6 @@
"jsdom": "^29.1.1",
"postcss": "^8.5.11",
"tailwindcss": "^4.2.1",
- "tw-animate-css": "^1.4.0",
"typescript": "~5.8.3",
"vite": "^7.3.5",
"vitest": "^4.1.5"
diff --git a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx b/apps/web/src/components/backlog-list-view/backlog-task-row.tsx
index 812cbf2ac..e888b743e 100644
--- a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx
+++ b/apps/web/src/components/backlog-list-view/backlog-task-row.tsx
@@ -77,8 +77,7 @@ export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {
const style: CSSProperties = {
transform: CSS.Transform.toString(transform),
- transition:
- transition || "transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",
+ transition: transition || "transform 200ms cubic-bezier(0.23, 1, 0.32, 1)",
touchAction: isDragging ? "none" : "auto",
};
@@ -134,7 +133,7 @@ export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {
ref={setNodeRef}
style={style}
className={cn(
- "border-b border-border/50 transition-all duration-200",
+ "border-b border-border/50 transition-colors duration-150",
isDragging && "opacity-50",
isTaskSelected &&
"bg-accent/60 shadow-sm ring-1 ring-inset ring-ring/30",
diff --git a/apps/web/src/components/backlog-list-view/index.tsx b/apps/web/src/components/backlog-list-view/index.tsx
index 220f7b2bf..754969af2 100644
--- a/apps/web/src/components/backlog-list-view/index.tsx
+++ b/apps/web/src/components/backlog-list-view/index.tsx
@@ -19,6 +19,7 @@ import {
verticalListSortingStrategy,
} from "@dnd-kit/sortable";
import { useNavigate } from "@tanstack/react-router";
+import { AnimatePresence, motion } from "framer-motion";
import { produce } from "immer";
import { Archive, ChevronRight, Clock, Flag, Plus } from "lucide-react";
import { useEffect, useState } from "react";
@@ -313,7 +314,7 @@ function BacklogListView({
return (
<div
className={cn(
- "border-b border-border/50 transition-all duration-200 overflow-auto",
+ "border-b border-border/50 transition-colors duration-150 overflow-auto",
showDropIndicator && "border-l-4 border-l-ring bg-accent/35",
)}
>
@@ -362,14 +363,27 @@ function BacklogListView({
</div>
{expandedSections[sectionId] && (
- <div ref={setNodeRef} className="bg-card">
+ <div
+ ref={setNodeRef}
+ className="bg-card transition-[translate,opacity] duration-150 ease-out starting:-translate-y-1 starting:opacity-0 motion-reduce:starting:translate-y-0"
+ >
<SortableContext
items={tasks}
strategy={verticalListSortingStrategy}
>
- {tasks.map((task) => (
- <BacklogTaskRow key={task.id} task={task} />
- ))}
+ <AnimatePresence initial={false} mode="popLayout">
+ {tasks.map((task) => (
+ <motion.div
+ key={task.id}
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.15, ease: [0.23, 1, 0.32, 1] }}
+ >
+ <BacklogTaskRow task={task} />
+ </motion.div>
+ ))}
+ </AnimatePresence>
</SortableContext>
{tasks.length === 0 && (
diff --git a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx
index f920a12e6..b45e5d155 100644
--- a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx
+++ b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx
@@ -363,7 +363,7 @@ function BacklogBulkToolbar() {
if (!canEdit && !canAssign) return null;
return (
- <div className="fixed bottom-6 left-1/2 transform -translate-x-1/2 z-50">
+ <div className="-translate-x-1/2 fixed bottom-6 left-1/2 z-50 transition-[translate,opacity] duration-200 ease-out starting:translate-y-3 starting:opacity-0 motion-reduce:starting:translate-y-0">
<Toolbar className="items-center gap-1 rounded-xl border-border/80 bg-background px-1.5 py-1 shadow-lg/8">
<ToolbarGroup className="px-1.5">
<span className="text-sm font-medium text-foreground">
diff --git a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/bulk-toolbar.tsx
index 9e0fcf253..a431fc221 100644
--- a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx
+++ b/apps/web/src/components/bulk-selection/bulk-toolbar.tsx
@@ -383,7 +383,7 @@ function BulkToolbar() {
if (!canEdit && !canAssign) return null;
return (
- <div className="fixed bottom-6 left-1/2 transform -translate-x-1/2 z-50">
+ <div className="-translate-x-1/2 fixed bottom-6 left-1/2 z-50 transition-[translate,opacity] duration-200 ease-out starting:translate-y-3 starting:opacity-0 motion-reduce:starting:translate-y-0">
<Toolbar className="items-center gap-1 rounded-xl border-border/80 bg-background px-1.5 py-1 shadow-lg/8">
<ToolbarGroup className="px-1.5">
<span className="text-sm font-medium text-foreground">
@@ -462,7 +462,7 @@ function BulkToolbar() {
</Toolbar>
<CommandDialog open={isActionsOpen} onOpenChange={setIsActionsOpen}>
- <CommandDialogPopup>
+ <CommandDialogPopup instant>
<Command items={groupedItems}>
<CommandInput placeholder={t("tasks:bulk.searchActions")} />
<CommandPanel>
diff --git a/apps/web/src/components/command-palette/index.tsx b/apps/web/src/components/command-palette/index.tsx
index 75e646f90..9c49de146 100644
--- a/apps/web/src/components/command-palette/index.tsx
+++ b/apps/web/src/components/command-palette/index.tsx
@@ -65,7 +65,7 @@ function CommandPalette() {
modifierShortcuts: {
[shortcuts.palette.prefix]: {
[shortcuts.palette.open]: () => {
- setOpen(true);
+ setOpen((prev) => !prev);
},
},
},
@@ -245,7 +245,7 @@ function CommandPalette() {
return (
<>
<CommandDialog open={open} onOpenChange={setOpen}>
- <CommandDialogPopup>
+ <CommandDialogPopup instant>
<Command items={groupedItems}>
<CommandInput
placeholder={t("navigation:commandPalette.inputPlaceholder")}
diff --git a/apps/web/src/components/common/layout.tsx b/apps/web/src/components/common/layout.tsx
index f11c13543..3bfd8898a 100644
--- a/apps/web/src/components/common/layout.tsx
+++ b/apps/web/src/components/common/layout.tsx
@@ -27,7 +27,7 @@ function LayoutHeader({ children, className }: HeaderProps) {
return (
<header
className={cn(
- "flex h-10 shrink-0 gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-8 border-b border-border bg-card p-2",
+ "flex h-10 shrink-0 gap-2 transition-[width,height] ease-in-out group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-8 border-b border-border bg-card p-2",
className,
)}
>
diff --git a/apps/web/src/components/kanban-board/column/column-dropzone.tsx b/apps/web/src/components/kanban-board/column/column-dropzone.tsx
index 4b22130b8..12a98b611 100644
--- a/apps/web/src/components/kanban-board/column/column-dropzone.tsx
+++ b/apps/web/src/components/kanban-board/column/column-dropzone.tsx
@@ -3,6 +3,7 @@ import {
SortableContext,
verticalListSortingStrategy,
} from "@dnd-kit/sortable";
+import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import { useEffect } from "react";
import type { ProjectWithTasks } from "@/types/project";
import TaskCard from "../task-card";
@@ -30,6 +31,8 @@ export function ColumnDropzone({
onIsOverChange?.(isOver);
}, [isOver, onIsOverChange]);
+ const reduceMotion = useReducedMotion();
+
return (
<div ref={setNodeRef} className="flex-1 min-h-0">
<SortableContext
@@ -37,13 +40,25 @@ export function ColumnDropzone({
strategy={verticalListSortingStrategy}
>
<div className="flex flex-col gap-2">
- {column.tasks.map((task) => (
- <TaskCard
- key={task.id}
- task={task}
- disableDragDrop={disableDragDrop}
- />
- ))}
+ <AnimatePresence initial={false} mode="popLayout">
+ {column.tasks.map((task) => (
+ <motion.div
+ key={task.id}
+ initial={
+ reduceMotion ? { opacity: 0 } : { opacity: 0, scale: 0.98 }
+ }
+ animate={
+ reduceMotion ? { opacity: 1 } : { opacity: 1, scale: 1 }
+ }
+ exit={
+ reduceMotion ? { opacity: 0 } : { opacity: 0, scale: 0.98 }
+ }
+ transition={{ type: "spring", duration: 0.35, bounce: 0.15 }}
+ >
+ <TaskCard task={task} disableDragDrop={disableDragDrop} />
+ </motion.div>
+ ))}
+ </AnimatePresence>
</div>
</SortableContext>
</div>
diff --git a/apps/web/src/components/kanban-board/column/column-header.tsx b/apps/web/src/components/kanban-board/column/column-header.tsx
index b09358d67..58aeb71dd 100644
--- a/apps/web/src/components/kanban-board/column/column-header.tsx
+++ b/apps/web/src/components/kanban-board/column/column-header.tsx
@@ -69,7 +69,7 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {
<button
type="button"
onClick={() => setIsArchiveModalOpen(true)}
- className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-all hover:bg-accent/50"
+ className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-colors hover:bg-accent/50"
title={t("tasks:listView.archiveAllTooltip")}
>
<Archive className="w-4 h-4 text-muted-foreground" />
@@ -79,7 +79,7 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {
<button
type="button"
onClick={() => setIsTaskModalOpen(true)}
- className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-all hover:bg-accent/50"
+ className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-colors hover:bg-accent/50"
title={t("tasks:kanban.addTask")}
>
<Plus className="w-4 h-4 text-muted-foreground" />
diff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsx
index ebab107be..0a5b9de24 100644
--- a/apps/web/src/components/kanban-board/column/index.tsx
+++ b/apps/web/src/components/kanban-board/column/index.tsx
@@ -13,7 +13,7 @@ function Column({ column, disableDragDrop = false }: ColumnProps) {
return (
<div
- className={`group relative flex h-full min-h-0 w-full flex-col rounded-xl border transition-all duration-300 ease-out ${
+ className={`group relative flex h-full min-h-0 w-full flex-col rounded-xl border transition-colors duration-150 ${
isDropzoneOver
? "border-ring/40 bg-accent/60 shadow-md ring-2 ring-ring/30"
: "border-border/70 bg-muted/40 shadow-xs/5 hover:border-border/90 dark:bg-card/90"
diff --git a/apps/web/src/components/kanban-board/index.tsx b/apps/web/src/components/kanban-board/index.tsx
index 8a9cb2950..19fbf2ebb 100644
--- a/apps/web/src/components/kanban-board/index.tsx
+++ b/apps/web/src/components/kanban-board/index.tsx
@@ -111,7 +111,7 @@ function KanbanBoard({ project, disableDragDrop = false }: KanbanBoardProps) {
},
}),
duration: 300,
- easing: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
+ easing: "cubic-bezier(0.23, 1, 0.32, 1)",
};
const handleDragStart = (event: DragStartEvent) => {
@@ -247,7 +247,7 @@ function KanbanBoard({ project, disableDragDrop = false }: KanbanBoardProps) {
>
<div className="flex h-full w-full flex-col bg-linear-to-b from-muted/20 to-background">
<div className="min-h-0 flex-1 overflow-x-auto [-webkit-overflow-scrolling:touch]">
- <div className="flex h-full min-w-max gap-4 px-4 py-4 transition-all duration-200 ease-out md:px-5">
+ <div className="flex h-full min-w-max gap-4 px-4 py-4 md:px-5">
{project.columns?.map((column) => (
<div
key={column.id}
diff --git a/apps/web/src/components/kanban-board/task-card.tsx b/apps/web/src/components/kanban-board/task-card.tsx
index 3694f90e4..2ecfc3f27 100644
--- a/apps/web/src/components/kanban-board/task-card.tsx
+++ b/apps/web/src/components/kanban-board/task-card.tsx
@@ -181,7 +181,7 @@ function TaskCard({ task, disableDragDrop = false }: TaskCardProps) {
{/** biome-ignore lint/a11y/noStaticElementInteractions: false positive for onClick and onKeyDown */}
<div
onClick={handleTaskCardClick}
- className={`group relative rounded-lg border bg-background p-3 shadow-xs/5 transition-all duration-200 ease-out ${
+ className={`group relative rounded-lg border bg-background p-3 shadow-xs/5 transition-[background-color,border-color,box-shadow,scale] duration-150 ease-out active:scale-[0.98] ${
disableDragDrop ? "cursor-default" : "cursor-move"
} ${
isDragging
diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsx
index d46ee59f8..c1f9ef85b 100644
--- a/apps/web/src/components/list-view/index.tsx
+++ b/apps/web/src/components/list-view/index.tsx
@@ -19,6 +19,7 @@ import {
verticalListSortingStrategy,
} from "@dnd-kit/sortable";
import { useNavigate } from "@tanstack/react-router";
+import { AnimatePresence, motion } from "framer-motion";
import { produce } from "immer";
import { Archive, ChevronRight, Flag, Plus } from "lucide-react";
import { useEffect, useState } from "react";
@@ -293,7 +294,7 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {
return (
<div
className={cn(
- "border-b border-border/50 transition-all duration-200 overflow-auto",
+ "border-b border-border/50 transition-colors duration-150 overflow-auto",
showDropIndicator && "border-l-4 border-l-ring bg-accent/35",
)}
>
@@ -347,18 +348,27 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {
</div>
{expandedSections[column.id] && (
- <div ref={setNodeRef} className="bg-card">
+ <div
+ ref={setNodeRef}
+ className="bg-card transition-[translate,opacity] duration-150 ease-out starting:-translate-y-1 starting:opacity-0 motion-reduce:starting:translate-y-0"
+ >
<SortableContext
items={column.tasks}
strategy={verticalListSortingStrategy}
>
- {column.tasks.map((task) => (
- <TaskRow
- key={task.id}
- task={task}
- projectSlug={project?.slug ?? ""}
- />
- ))}
+ <AnimatePresence initial={false} mode="popLayout">
+ {column.tasks.map((task) => (
+ <motion.div
+ key={task.id}
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.15, ease: [0.23, 1, 0.32, 1] }}
+ >
+ <TaskRow task={task} projectSlug={project?.slug ?? ""} />
+ </motion.div>
+ ))}
+ </AnimatePresence>
</SortableContext>
{column.tasks.length === 0 && (
diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsx
index b62246640..39b312049 100644
--- a/apps/web/src/components/list-view/task-row.tsx
+++ b/apps/web/src/components/list-view/task-row.tsx
@@ -122,8 +122,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
const style: CSSProperties = {
transform: CSS.Transform.toString(transform),
- transition:
- transition || "transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",
+ transition: transition || "transform 200ms cubic-bezier(0.23, 1, 0.32, 1)",
touchAction: isDragging ? "none" : "auto",
};
@@ -179,7 +178,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
ref={setNodeRef}
style={style}
className={cn(
- "border-b border-border/50 transition-all duration-200",
+ "border-b border-border/50 transition-colors duration-150",
isDragging && "opacity-50",
isTaskSelected &&
"bg-accent/60 shadow-sm ring-1 ring-inset ring-ring/30",
diff --git a/apps/web/src/components/notification/notification-dropdown.tsx b/apps/web/src/components/notification/notification-dropdown.tsx
index ff6432962..dc6a2419b 100644
--- a/apps/web/src/components/notification/notification-dropdown.tsx
+++ b/apps/web/src/components/notification/notification-dropdown.tsx
@@ -11,7 +11,6 @@ import {
AlertDialogHeader,
AlertDialogTitle,
} from "@/components/ui/alert-dialog";
-import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { KbdSequence } from "@/components/ui/kbd";
import {
@@ -264,14 +263,10 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(
<Tooltip>
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
- <Button
- variant="ghost"
- size="sm"
- className="relative h-9 w-9 p-0"
- >
+ <Button variant="ghost" size="icon" className="relative">
<Bell className="h-4 w-4" />
{unreadNotifications.length > 0 && (
- <span className="absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-0.5 text-[10px] font-bold leading-none text-white">
+ <span className="absolute -top-0.5 -right-0.5 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-destructive px-1 text-[9px] font-semibold leading-none text-white ring-2 ring-sidebar transition-[scale,opacity] duration-200 ease-out starting:scale-75 starting:opacity-0 motion-reduce:starting:scale-100">
{unreadNotifications.length > 99
? "99+"
: unreadNotifications.length}
@@ -297,83 +292,88 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(
</Tooltip>
</TooltipProvider>
- <DropdownMenuContent align="end" className="w-80 p-0">
- <div className="-m-1 overflow-hidden rounded-lg">
- <div className="flex items-center justify-between px-3 py-2 border-b">
+ <DropdownMenuContent align="end" className="w-88 p-0">
+ <div className="overflow-hidden rounded-lg">
+ <div className="flex h-10 items-center justify-between border-border/50 border-b pr-2 pl-3">
<h3 className="font-medium text-sm">
{t("notifications:title")}
</h3>
{unreadNotifications.length > 0 && (
- <Badge variant="secondary" className="text-xs">
- {t("notifications:newCount", {
- count: unreadNotifications.length,
- })}
- </Badge>
+ <DropdownMenuItem
+ closeOnClick={false}
+ onClick={() => markAllAsRead()}
+ className="min-h-0 w-auto cursor-pointer rounded-md px-1.5 py-1 text-muted-foreground text-xs sm:min-h-0 sm:text-xs data-highlighted:text-foreground"
+ >
+ {t("common:actions.markAllRead")}
+ </DropdownMenuItem>
)}
</div>
- <div className="relative max-h-96 overflow-y-auto">
+ <div className="relative max-h-80 overflow-y-auto p-1">
{!hasNotifications ? (
- <div className="p-6 text-center text-sm text-muted-foreground">
- <Bell className="mx-auto h-12 w-12 opacity-50 mb-2" />
- <p>{t("notifications:emptyTitle")}</p>
- <p className="text-xs mt-1">
+ <div className="flex flex-col items-center gap-1 py-10 text-center">
+ <Bell className="mb-1 size-5 text-muted-foreground/40" />
+ <p className="text-muted-foreground text-sm">
+ {t("notifications:emptyTitle")}
+ </p>
+ <p className="text-muted-foreground/60 text-xs">
{t("notifications:emptySubtitle")}
</p>
</div>
) : (
- notifications.map((notification) => (
- <DropdownMenuItem
- key={notification.id}
- onClick={() => handleNotificationClick(notification)}
- className={cn(
- "px-3 py-3 border-b border-border/50 rounded-none cursor-pointer",
- !notification.isRead && "bg-accent/20",
- )}
- >
- <div className="flex items-start gap-3">
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-2 mb-1">
- <h4 className="text-sm font-medium text-foreground">
+ notifications.map((notification) => {
+ const content = getNotificationContent(notification, t);
+ return (
+ <DropdownMenuItem
+ key={notification.id}
+ onClick={() => handleNotificationClick(notification)}
+ className="cursor-pointer items-start rounded-md px-2.5 py-2"
+ >
+ <div className="min-w-0 flex-1">
+ <div className="flex items-center gap-2">
+ <span
+ className={cn(
+ "truncate text-sm transition-colors duration-150",
+ notification.isRead
+ ? "text-muted-foreground"
+ : "font-medium text-foreground",
+ )}
+ >
{getNotificationTitle(notification, t)}
- </h4>
+ </span>
+ <span className="ml-auto shrink-0 text-[11px] text-muted-foreground/70">
+ {formatRelativeTime(notification.createdAt)}
+ </span>
{!notification.isRead && (
- <div className="w-2 h-2 bg-primary rounded-full flex-shrink-0" />
+ <span className="size-1.5 shrink-0 rounded-full bg-info" />
)}
</div>
- {getNotificationContent(notification, t) && (
- <p className="text-xs text-muted-foreground line-clamp-2">
- {getNotificationContent(notification, t)}
+ {content && (
+ <p
+ className={cn(
+ "mt-0.5 line-clamp-1 text-xs transition-colors duration-150",
+ notification.isRead
+ ? "text-muted-foreground/60"
+ : "text-muted-foreground",
+ )}
+ >
+ {content}
</p>
)}
- <p className="text-xs text-muted-foreground mt-2">
- {formatRelativeTime(notification.createdAt)}
- </p>
</div>
- </div>
- </DropdownMenuItem>
- ))
+ </DropdownMenuItem>
+ );
+ })
)}
</div>
{hasNotifications && (
- <div className="border-t border-border p-2 flex gap-1">
- <Button
- variant="ghost"
- size="sm"
- onClick={() => markAllAsRead()}
- disabled={unreadNotifications.length === 0}
- className="flex-1 text-xs"
- >
- {t("common:actions.markAllRead")}
- </Button>
- <Button
- variant="ghost"
- size="sm"
+ <div className="border-border/50 border-t p-1">
+ <DropdownMenuItem
onClick={() => setShowClearDialog(true)}
- className="flex-1 text-xs text-destructive hover:text-destructive hover:bg-destructive/10"
+ className="min-h-0 cursor-pointer justify-center rounded-md px-2 py-1 text-muted-foreground/70 text-xs sm:min-h-0 sm:text-xs data-highlighted:text-destructive"
>
{t("notifications:clearAll")}
- </Button>
+ </DropdownMenuItem>
</div>
)}
</div>
diff --git a/apps/web/src/components/onboarding/onboarding-flow.tsx b/apps/web/src/components/onboarding/onboarding-flow.tsx
index 04b76258b..fc835bd39 100644
--- a/apps/web/src/components/onboarding/onboarding-flow.tsx
+++ b/apps/web/src/components/onboarding/onboarding-flow.tsx
@@ -1,7 +1,7 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
-import { AnimatePresence, motion } from "framer-motion";
+import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import { CheckCircle2 } from "lucide-react";
import { useMemo, useState } from "react";
import { useForm } from "react-hook-form";
@@ -31,13 +31,17 @@ export type WorkspaceFormValues = {
description?: string;
};
-const fadeTransition = {
- initial: { opacity: 0, y: 20 },
- animate: { opacity: 1, y: 0 },
- exit: { opacity: 0, y: -20 },
-};
+function useFadeTransition() {
+ const reduceMotion = useReducedMotion();
+ return {
+ initial: { opacity: 0, y: reduceMotion ? 0 : 20 },
+ animate: { opacity: 1, y: 0 },
+ exit: { opacity: 0, y: reduceMotion ? 0 : -20 },
+ };
+}
export function OnboardingFlow() {
+ const fadeTransition = useFadeTransition();
const { t } = useTranslation();
const [step, setStep] = useState<OnboardingStep>("workspace");
const [createdWorkspaceName, setCreatedWorkspaceName] = useState("");
@@ -105,7 +109,7 @@ export function OnboardingFlow() {
initial="initial"
animate="animate"
exit="exit"
- transition={{ duration: 0.3 }}
+ transition={{ duration: 0.3, ease: [0.23, 1, 0.32, 1] }}
className="w-full max-w-sm mx-auto"
>
<Logo className="mx-auto mb-6 w-full flex items-end justify-center" />
@@ -185,7 +189,7 @@ export function OnboardingFlow() {
initial="initial"
animate="animate"
exit="exit"
- transition={{ duration: 0.3 }}
+ transition={{ duration: 0.3, ease: [0.23, 1, 0.32, 1] }}
className="w-full max-w-sm mx-auto"
>
<Logo className="mx-auto mb-6 w-full flex items-end justify-center" />
diff --git a/apps/web/src/components/profile-setup/profile-setup-flow.tsx b/apps/web/src/components/profile-setup/profile-setup-flow.tsx
index abb0fcccb..644efadf2 100644
--- a/apps/web/src/components/profile-setup/profile-setup-flow.tsx
+++ b/apps/web/src/components/profile-setup/profile-setup-flow.tsx
@@ -1,7 +1,7 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
-import { AnimatePresence, motion } from "framer-motion";
+import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import { CheckCircle2, User } from "lucide-react";
import { useMemo, useState } from "react";
import { useForm } from "react-hook-form";
@@ -29,13 +29,17 @@ export type ProfileFormValues = {
name: string;
};
-const fadeTransition = {
- initial: { opacity: 0, y: 20 },
- animate: { opacity: 1, y: 0 },
- exit: { opacity: 0, y: -20 },
-};
+function useFadeTransition() {
+ const reduceMotion = useReducedMotion();
+ return {
+ initial: { opacity: 0, y: reduceMotion ? 0 : 20 },
+ animate: { opacity: 1, y: 0 },
+ exit: { opacity: 0, y: reduceMotion ? 0 : -20 },
+ };
+}
export function ProfileSetupFlow() {
+ const fadeTransition = useFadeTransition();
const { t } = useTranslation();
const [step, setStep] = useState<ProfileSetupStep>("profile");
const [userName, setUserName] = useState("");
@@ -96,7 +100,7 @@ export function ProfileSetupFlow() {
initial="initial"
animate="animate"
exit="exit"
- transition={{ duration: 0.3 }}
+ transition={{ duration: 0.3, ease: [0.23, 1, 0.32, 1] }}
className="w-full max-w-sm mx-auto"
>
<Logo className="mx-auto mb-6 w-full flex items-end justify-center" />
@@ -154,7 +158,7 @@ export function ProfileSetupFlow() {
initial="initial"
animate="animate"
exit="exit"
- transition={{ duration: 0.3 }}
+ transition={{ duration: 0.3, ease: [0.23, 1, 0.32, 1] }}
className="w-full max-w-sm mx-auto"
>
<Logo className="mx-auto mb-6 w-full flex items-end justify-center" />
diff --git a/apps/web/src/components/public-project/kanban-view.tsx b/apps/web/src/components/public-project/kanban-view.tsx
index 8c6af9be9..076216199 100644
--- a/apps/web/src/components/public-project/kanban-view.tsx
+++ b/apps/web/src/components/public-project/kanban-view.tsx
@@ -16,14 +16,14 @@ export function PublicKanbanView({
return (
<div className="flex-1 min-h-0 overflow-x-auto [-webkit-overflow-scrolling:touch]">
- <div className="flex gap-3 p-3 h-full min-w-max transition-all duration-200 ease-out">
+ <div className="flex gap-3 p-3 h-full min-w-max">
{columns.map((column) => {
return (
<div
key={column.id}
className="h-full flex-1 min-w-80 max-w-96 flex-shrink-0"
>
- <div className="flex flex-col h-full w-full min-h-0 backdrop-blur-xs rounded-lg bg-sidebar border border-border/50 transition-all duration-300 ease-out hover:bg-accent/20 hover:shadow-sm">
+ <div className="flex flex-col h-full w-full min-h-0 backdrop-blur-xs rounded-lg bg-sidebar border border-border/50 transition-[background-color,box-shadow] duration-150 ease hover:bg-accent/20 hover:shadow-sm">
<div className="p-2 shrink-0">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
diff --git a/apps/web/src/components/public-project/task-card.tsx b/apps/web/src/components/public-project/task-card.tsx
index 2b8f26e5b..89b73c947 100644
--- a/apps/web/src/components/public-project/task-card.tsx
+++ b/apps/web/src/components/public-project/task-card.tsx
@@ -65,7 +65,7 @@ export function PublicTaskCard({
return (
<button
type="button"
- className="group w-full text-left p-3 bg-card border border-border rounded-lg cursor-pointer transition-all duration-200 ease-out hover:border-border/70 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"
+ className="group w-full text-left p-3 bg-card border border-border rounded-lg cursor-pointer transition-[background-color,border-color,box-shadow] duration-150 ease-out hover:border-border/70 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"
onTouchStart={handleTouchStart}
onTouchEnd={handleTouchEnd}
onClick={handleClick}
diff --git a/apps/web/src/components/public-project/task-row.tsx b/apps/web/src/components/public-project/task-row.tsx
index 3445c6f47..9ac59e477 100644
--- a/apps/web/src/components/public-project/task-row.tsx
+++ b/apps/web/src/components/public-project/task-row.tsx
@@ -31,7 +31,7 @@ export function PublicTaskRow({
return (
<button
type="button"
- className="group w-full text-left px-4 py-3 rounded-lg flex items-center gap-4 bg-card border border-border shadow-sm hover:shadow-md transition-all duration-200 ease-out hover:border-border/70 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"
+ className="group w-full text-left px-4 py-3 rounded-lg flex items-center gap-4 bg-card border border-border shadow-sm hover:shadow-md transition-[background-color,border-color,box-shadow] duration-200 ease-out hover:border-border/70 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"
onClick={() => onTaskClick(task)}
aria-label={t("publicProject:taskCard.viewDetailsAria", {
title: task.title,
diff --git a/apps/web/src/components/search-command-menu/index.tsx b/apps/web/src/components/search-command-menu/index.tsx
index d5bde9b86..ed9ce9704 100644
--- a/apps/web/src/components/search-command-menu/index.tsx
+++ b/apps/web/src/components/search-command-menu/index.tsx
@@ -192,7 +192,7 @@ function SearchCommandMenu({ open, setOpen }: SearchCommandMenuProps) {
return (
<CommandDialog open={open} onOpenChange={setOpen}>
- <CommandDialogPopup>
+ <CommandDialogPopup instant>
<Command items={groupedItems}>
<CommandInput
placeholder={t("navigation:search.inputPlaceholder")}
diff --git a/apps/web/src/components/shared/modals/create-project-modal.tsx b/apps/web/src/components/shared/modals/create-project-modal.tsx
index 7071b1b20..5aece88ed 100644
--- a/apps/web/src/components/shared/modals/create-project-modal.tsx
+++ b/apps/web/src/components/shared/modals/create-project-modal.tsx
@@ -207,7 +207,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {
onChange={(e) => setSlug(e.target.value)}
placeholder="PRO"
maxLength={8}
- className="w-20 h-8 text-center font-semibold text-sm bg-background border-border rounded-lg transition-all duration-200"
+ className="w-20 h-8 text-center font-semibold text-sm bg-background border-border rounded-lg transition-colors duration-150"
required
/>
</div>
diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsx
index 02329cda9..f3e5c0aab 100644
--- a/apps/web/src/components/shared/modals/create-task-modal.tsx
+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx
@@ -1023,7 +1023,7 @@ function CreateTaskModal({
type="checkbox"
checked={createMore}
onChange={(e) => setCreateMore(e.target.checked)}
- className="rounded border-border bg-background text-primary focus:ring-ring focus:ring-offset-0 focus:ring-2 transition-all"
+ className="rounded border-border bg-background text-primary focus:ring-ring focus:ring-offset-0 focus:ring-2 transition-[border-color,box-shadow]"
/>
{t("common:modals.createTask.createMore")}
</label>
diff --git a/apps/web/src/components/task/subtask-row.tsx b/apps/web/src/components/task/subtask-row.tsx
index e20098da5..3fd5a17c4 100644
--- a/apps/web/src/components/task/subtask-row.tsx
+++ b/apps/web/src/components/task/subtask-row.tsx
@@ -1,4 +1,4 @@
-import { motion } from "framer-motion";
+import { motion, useReducedMotion } from "framer-motion";
import { useTranslation } from "react-i18next";
import TaskCardContextMenuContent from "@/components/kanban-board/task-card-context-menu/task-card-context-menu-content";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
@@ -43,15 +43,22 @@ export default function SubtaskRow({
onNavigate,
onDeleteClick,
}: SubtaskRowProps) {
+ const reduceMotion = useReducedMotion();
const { t } = useTranslation();
return (
<motion.div
layout
- initial={{ opacity: 0, height: 0 }}
- animate={{ opacity: 1, height: "auto" }}
- exit={{ opacity: 0, height: 0 }}
- transition={{ duration: 0.2, ease: "easeOut" }}
+ initial={
+ reduceMotion ? { opacity: 0 } : { opacity: 0, height: 0, scale: 0.98 }
+ }
+ animate={
+ reduceMotion ? { opacity: 1 } : { opacity: 1, height: "auto", scale: 1 }
+ }
+ exit={
+ reduceMotion ? { opacity: 0 } : { opacity: 0, height: 0, scale: 0.98 }
+ }
+ transition={{ type: "spring", duration: 0.4, bounce: 0.15 }}
>
<ContextMenu>
<ContextMenuTrigger asChild>
diff --git a/apps/web/src/components/task/task-properties-sidebar.tsx b/apps/web/src/components/task/task-properties-sidebar.tsx
index 42e36e3d5..52b59e7c2 100644
--- a/apps/web/src/components/task/task-properties-sidebar.tsx
+++ b/apps/web/src/components/task/task-properties-sidebar.tsx
@@ -167,9 +167,6 @@ export default function TaskPropertiesSidebar({
/>
</TooltipContent>
</Tooltip>
- </TooltipProvider>
-
- <TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button
@@ -357,9 +354,6 @@ export default function TaskPropertiesSidebar({
/>
</TooltipContent>
</Tooltip>
- </TooltipProvider>
-
- <TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button
@@ -549,9 +543,6 @@ export default function TaskPropertiesSidebar({
/>
</TooltipContent>
</Tooltip>
- </TooltipProvider>
-
- <TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button
diff --git a/apps/web/src/components/theme-toggle-dropdown.tsx b/apps/web/src/components/theme-toggle-dropdown.tsx
index 340fbf46a..113ba09ee 100644
--- a/apps/web/src/components/theme-toggle-dropdown.tsx
+++ b/apps/web/src/components/theme-toggle-dropdown.tsx
@@ -18,7 +18,7 @@ export function ThemeToggleDropdown() {
<div className="relative inline-grid h-7 grid-cols-[1fr_1fr] items-center font-medium text-sm">
<Switch
checked={checked}
- className="peer absolute inset-0 h-[inherit] w-auto rounded-full bg-input/50 data-checked:bg-input/50 data-unchecked:bg-input/50 [&_[data-slot=switch-thumb]]:h-full [&_[data-slot=switch-thumb]]:w-1/2 [&_[data-slot=switch-thumb]]:rounded-full [&_[data-slot=switch-thumb]]:transition-transform [&_[data-slot=switch-thumb]]:duration-300 [&_[data-slot=switch-thumb]]:ease-[cubic-bezier(0.16,1,0.3,1)] [&_[data-slot=switch-thumb]]:data-checked:translate-x-full [&_[data-slot=switch-thumb]]:rtl:data-checked:-translate-x-full"
+ className="peer absolute inset-0 h-[inherit] w-auto rounded-full bg-input/50 data-checked:bg-input/50 data-unchecked:bg-input/50 [&_[data-slot=switch-thumb]]:h-full [&_[data-slot=switch-thumb]]:w-1/2 [&_[data-slot=switch-thumb]]:rounded-full [&_[data-slot=switch-thumb]]:transition-transform [&_[data-slot=switch-thumb]]:duration-300 [&_[data-slot=switch-thumb]]:ease-out [&_[data-slot=switch-thumb]]:data-checked:translate-x-full [&_[data-slot=switch-thumb]]:rtl:data-checked:-translate-x-full"
id={id}
onCheckedChange={handleThemeChange}
/>
diff --git a/apps/web/src/components/ui/accordion.tsx b/apps/web/src/components/ui/accordion.tsx
index 2500d28b2..060a7d266 100644
--- a/apps/web/src/components/ui/accordion.tsx
+++ b/apps/web/src/components/ui/accordion.tsx
@@ -28,7 +28,7 @@ function AccordionTrigger({
<AccordionPrimitive.Header className="flex">
<AccordionPrimitive.Trigger
className={cn(
- "flex flex-1 cursor-pointer items-start justify-between gap-4 rounded-md py-4 text-left font-medium text-sm outline-none transition-all focus-visible:ring-[3px] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 data-panel-open:*:data-[slot=accordion-indicator]:rotate-180",
+ "flex flex-1 cursor-pointer items-start justify-between gap-4 rounded-md py-4 text-left font-medium text-sm outline-none transition-colors focus-visible:ring-[3px] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 data-panel-open:*:data-[slot=accordion-indicator]:rotate-180",
className,
)}
data-slot="accordion-trigger"
diff --git a/apps/web/src/components/ui/alert-dialog.tsx b/apps/web/src/components/ui/alert-dialog.tsx
index ec416749a..1af66ad66 100644
--- a/apps/web/src/components/ui/alert-dialog.tsx
+++ b/apps/web/src/components/ui/alert-dialog.tsx
@@ -23,7 +23,7 @@ function AlertDialogBackdrop({
return (
<AlertDialogPrimitive.Backdrop
className={cn(
- "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-all duration-200 ease-out data-ending-style:opacity-0 data-starting-style:opacity-0",
+ "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 ease-out data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="alert-dialog-backdrop"
@@ -66,7 +66,7 @@ function AlertDialogPopup({
>
<AlertDialogPrimitive.Popup
className={cn(
- "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
bottomStickOnMobile &&
"max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4 max-sm:before:hidden max-sm:before:rounded-none",
className,
diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
index 58ce6d559..62f32fb2c 100644
--- a/apps/web/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -8,7 +8,7 @@ import { Spinner } from "@/components/ui/spinner";
import { cn } from "@/lib/cn";
export const buttonVariants = cva(
- "relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none data-loading:text-transparent sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0",
+ "relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-[box-shadow,scale] duration-150 ease-out active:scale-[0.97] data-pressed:scale-[0.97] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none data-loading:text-transparent sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0",
{
defaultVariants: {
size: "default",
diff --git a/apps/web/src/components/ui/checkbox.tsx b/apps/web/src/components/ui/checkbox.tsx
index 661c0ceac..b26767965 100644
--- a/apps/web/src/components/ui/checkbox.tsx
+++ b/apps/web/src/components/ui/checkbox.tsx
@@ -15,7 +15,8 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
{...props}
>
<CheckboxPrimitive.Indicator
- className="-inset-px absolute flex items-center justify-center rounded-[.25rem] text-primary-foreground data-unchecked:hidden data-checked:bg-primary data-indeterminate:text-foreground"
+ className="-inset-px absolute flex items-center justify-center rounded-[.25rem] text-primary-foreground transition-[opacity,scale] duration-150 ease-out data-unchecked:pointer-events-none data-unchecked:scale-90 data-unchecked:opacity-0 data-checked:bg-primary data-indeterminate:text-foreground motion-reduce:transition-[opacity] motion-reduce:data-unchecked:scale-100"
+ keepMounted
data-slot="checkbox-indicator"
render={(props, state) => (
<span {...props}>
diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsx
index 4b18045e2..7a6dd175c 100644
--- a/apps/web/src/components/ui/command.tsx
+++ b/apps/web/src/components/ui/command.tsx
@@ -38,7 +38,7 @@ function CommandDialogBackdrop({
return (
<CommandDialogPrimitive.Backdrop
className={cn(
- "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
+ "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="command-dialog-backdrop"
@@ -66,15 +66,23 @@ function CommandDialogViewport({
function CommandDialogPopup({
className,
children,
+ instant = false,
...props
-}: CommandDialogPrimitive.Popup.Props) {
+}: CommandDialogPrimitive.Popup.Props & { instant?: boolean }) {
return (
<CommandDialogPortal>
- <CommandDialogBackdrop />
+ <CommandDialogBackdrop
+ className={cn(
+ instant &&
+ "transition-none data-starting-style:opacity-100 data-ending-style:opacity-100",
+ )}
+ />
<CommandDialogViewport>
<CommandDialogPrimitive.Popup
className={cn(
- "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-105 min-h-0 w-full min-w-0 max-w-xl scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 outline-none transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/72 before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-105 min-h-0 w-full min-w-0 max-w-xl scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 outline-none transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/72 before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ instant &&
+ "transition-none data-starting-style:scale-100 data-starting-style:opacity-100 data-ending-style:scale-100 data-ending-style:opacity-100",
className,
)}
data-slot="command-dialog-popup"
diff --git a/apps/web/src/components/ui/context-menu.tsx b/apps/web/src/components/ui/context-menu.tsx
index fcc9a1758..534005ec0 100644
--- a/apps/web/src/components/ui/context-menu.tsx
+++ b/apps/web/src/components/ui/context-menu.tsx
@@ -59,9 +59,9 @@ function ContextMenuSub(props: ContextMenuPrimitive.SubmenuRoot.Props) {
function ContextMenuContent({
className,
- sideOffset = 4,
- align = "center",
- side = "right",
+ sideOffset = 2,
+ align = "start",
+ side = "bottom",
alignOffset = 0,
anchor,
children,
diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsx
index 9e1a33f22..c884efce4 100644
--- a/apps/web/src/components/ui/dialog.tsx
+++ b/apps/web/src/components/ui/dialog.tsx
@@ -61,7 +61,7 @@ function DialogBackdrop({
return (
<DialogPrimitive.Backdrop
className={cn(
- "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
+ "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="dialog-backdrop"
@@ -107,7 +107,7 @@ function DialogPopup({
>
<DialogPrimitive.Popup
className={cn(
- "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
bottomStickOnMobile &&
"max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4 max-sm:before:hidden max-sm:before:rounded-none",
className,
diff --git a/apps/web/src/components/ui/input-otp.tsx b/apps/web/src/components/ui/input-otp.tsx
index f271b4ce1..c84ad5a74 100644
--- a/apps/web/src/components/ui/input-otp.tsx
+++ b/apps/web/src/components/ui/input-otp.tsx
@@ -38,7 +38,7 @@ const InputOTPSlot = React.forwardRef<
<div
ref={ref}
className={cn(
- "relative flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background text-sm shadow-xs/5 transition-all",
+ "relative flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background text-sm shadow-xs/5 transition-[border-color,box-shadow]",
isActive && "z-10 ring-1 ring-ring",
className,
)}
diff --git a/apps/web/src/components/ui/meter.tsx b/apps/web/src/components/ui/meter.tsx
index db8f265bc..9180c93b1 100644
--- a/apps/web/src/components/ui/meter.tsx
+++ b/apps/web/src/components/ui/meter.tsx
@@ -47,7 +47,10 @@ function MeterIndicator({
}: MeterPrimitive.Indicator.Props) {
return (
<MeterPrimitive.Indicator
- className={cn("bg-primary transition-all duration-500", className)}
+ className={cn(
+ "bg-primary transition-[width] duration-300 ease-linear",
+ className,
+ )}
data-slot="meter-indicator"
{...props}
/>
diff --git a/apps/web/src/components/ui/progress.tsx b/apps/web/src/components/ui/progress.tsx
index e7eec6bad..7396bc483 100644
--- a/apps/web/src/components/ui/progress.tsx
+++ b/apps/web/src/components/ui/progress.tsx
@@ -55,7 +55,10 @@ function ProgressIndicator({
}: ProgressPrimitive.Indicator.Props) {
return (
<ProgressPrimitive.Indicator
- className={cn("bg-primary transition-all duration-500", className)}
+ className={cn(
+ "bg-primary transition-[width] duration-300 ease-linear",
+ className,
+ )}
data-slot="progress-indicator"
{...props}
/>
diff --git a/apps/web/src/components/ui/sheet.tsx b/apps/web/src/components/ui/sheet.tsx
index 7593733bf..2dd048f49 100644
--- a/apps/web/src/components/ui/sheet.tsx
+++ b/apps/web/src/components/ui/sheet.tsx
@@ -23,7 +23,7 @@ function SheetBackdrop({ className, ...props }: SheetPrimitive.Backdrop.Props) {
return (
<SheetPrimitive.Backdrop
className={cn(
- "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
+ "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="sheet-backdrop"
@@ -75,7 +75,7 @@ function SheetPopup({
<SheetViewport side={side} variant={variant}>
<SheetPrimitive.Popup
className={cn(
- "relative flex max-h-full min-h-0 w-full min-w-0 flex-col bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 transition-[opacity,translate] duration-200 ease-in-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:opacity-0 data-starting-style:opacity-0 max-sm:before:hidden dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative flex max-h-full min-h-0 w-full min-w-0 flex-col bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 transition-[opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:opacity-0 data-starting-style:opacity-0 max-sm:before:hidden dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
side === "bottom" &&
"row-start-2 border-t data-ending-style:translate-y-8 data-starting-style:translate-y-8",
side === "top" &&
diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx
index c920a81a6..34f55c2c0 100644
--- a/apps/web/src/components/ui/sidebar.tsx
+++ b/apps/web/src/components/ui/sidebar.tsx
@@ -237,7 +237,7 @@ function Sidebar({
{/* This is what handles the sidebar gap on desktop */}
<div
className={cn(
- "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-in-out",
"group-data-[collapsible=offcanvas]:w-0",
"group-data-[side=right]:rotate-180",
variant === "floating" || variant === "inset"
@@ -248,7 +248,7 @@ function Sidebar({
/>
<div
className={cn(
- "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-in-out md:flex",
side === "left"
? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
@@ -308,7 +308,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
<button
aria-label={t("common:a11y.toggleSidebar")}
className={cn(
- "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",
+ "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-[left,right,translate,background-color] duration-200 ease-in-out after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
"group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",
@@ -428,7 +428,7 @@ function SidebarGroupLabel({
}: useRender.ComponentProps<"div">) {
const defaultProps = {
className: cn(
- "flex h-8 shrink-0 items-center rounded-lg px-2 font-medium text-sidebar-foreground text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "flex h-8 shrink-0 items-center rounded-lg px-2 font-medium text-sidebar-foreground text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-in-out focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
className,
),
diff --git a/apps/web/src/components/ui/toast.tsx b/apps/web/src/components/ui/toast.tsx
index f73a661f2..833ed0c29 100644
--- a/apps/web/src/components/ui/toast.tsx
+++ b/apps/web/src/components/ui/toast.tsx
@@ -139,7 +139,7 @@ function Toasts({ position = "bottom-right" }: { position: ToastPosition }) {
<div className="flex flex-col gap-0.5">
<Toast.Title
- className="font-medium"
+ className="font-sans font-normal tracking-normal"
data-slot="toast-title"
/>
<Toast.Description
@@ -215,7 +215,10 @@ function AnchoredToasts() {
>
{tooltipStyle ? (
<Toast.Content className="pointer-events-auto px-2 py-1">
- <Toast.Title data-slot="toast-title" />
+ <Toast.Title
+ className="font-sans tracking-normal"
+ data-slot="toast-title"
+ />
</Toast.Content>
) : (
<Toast.Content className="pointer-events-auto flex items-center justify-between gap-1.5 overflow-hidden px-3.5 py-3 text-sm">
@@ -231,7 +234,7 @@ function AnchoredToasts() {
<div className="flex flex-col gap-0.5">
<Toast.Title
- className="font-medium"
+ className="font-sans font-normal tracking-normal"
data-slot="toast-title"
/>
<Toast.Description
diff --git a/apps/web/src/components/user-avatar.tsx b/apps/web/src/components/user-avatar.tsx
index b247a118c..599affb1f 100644
--- a/apps/web/src/components/user-avatar.tsx
+++ b/apps/web/src/components/user-avatar.tsx
@@ -61,9 +61,9 @@ export function UserAvatar() {
<Button
variant="ghost"
size="icon"
- className="h-7 w-7 rounded-full p-0 hover:bg-sidebar-accent/70"
+ className="h-8 w-8 rounded-full p-0 hover:bg-sidebar-accent/70"
>
- <Avatar className="h-7 w-7">
+ <Avatar className="h-8 w-8">
<AvatarImage src={user.image ?? ""} alt={user.name || ""} />
<AvatarFallback className="text-xs font-medium border border-border/30">
{initials}
diff --git a/apps/web/src/components/workspace-switcher.tsx b/apps/web/src/components/workspace-switcher.tsx
index 5b7d2ae82..81cfffb32 100644
--- a/apps/web/src/components/workspace-switcher.tsx
+++ b/apps/web/src/components/workspace-switcher.tsx
@@ -132,7 +132,7 @@ export function WorkspaceSwitcher() {
</span>
</div>
<ChevronDown
- className={`ml-1 size-3.5 text-foreground/70 opacity-90 group-hover:opacity-100 data-[state=open]:opacity-100 data-[state=open]:rotate-180 transition-all duration-200 ease-out ${isSwitching ? "animate-spin" : ""}`}
+ className={`ml-1 size-3.5 text-foreground/70 opacity-90 group-hover:opacity-100 data-[state=open]:opacity-100 data-[state=open]:rotate-180 transition-[rotate,opacity] duration-200 ease-out ${isSwitching ? "animate-spin" : ""}`}
data-state={isOpen ? "open" : "closed"}
/>
</DropdownMenuTrigger>
@@ -189,7 +189,7 @@ export function WorkspaceSwitcher() {
<div className="flex items-center gap-1">
<NotificationDropdown />
- <div className="h-7 w-7 shrink-0">
+ <div className="h-8 w-8 shrink-0">
<UserAvatar />
</div>
</div>
diff --git a/apps/web/src/hooks/use-keyboard-shortcuts.ts b/apps/web/src/hooks/use-keyboard-shortcuts.ts
index ce2f5b913..2e4edec7b 100644
--- a/apps/web/src/hooks/use-keyboard-shortcuts.ts
+++ b/apps/web/src/hooks/use-keyboard-shortcuts.ts
@@ -164,16 +164,22 @@ export function KeyboardShortcutsProvider({
const handleKeyPress = useCallback(
(event: KeyboardEvent) => {
const target = event.target as HTMLElement;
- if (
+ const isEditingText =
target.tagName === "INPUT" ||
target.tagName === "TEXTAREA" ||
- target.contentEditable === "true"
- ) {
+ target.contentEditable === "true";
+ if (isEditingText && !event.metaKey && !event.ctrlKey) {
return;
}
const key = event.key.toLowerCase();
+ // Editors own their chords (cmd+b bold in TipTap and friends); only
+ // the palette toggle may pass while typing.
+ if (isEditingText && (key !== "k" || event.altKey || event.shiftKey)) {
+ return;
+ }
+
if (event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) {
const modifierKey = event.metaKey
? "⌘"
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 979166550..d4be617e3 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -35,7 +35,36 @@ input:-webkit-autofill:active {
@custom-variant dark (&:is(.dark *));
+/* Reduced motion: keep opacity feedback, drop movement (scale/translate) and
+ container morphs. Tailwind v4 scale/translate utilities use the standalone
+ CSS properties, so forcing them here neutralizes entrance/exit movement
+ while transition-property keeps the fade. */
+@media (prefers-reduced-motion: reduce) {
+ [data-slot="popover-popup"],
+ [data-slot="select-popup"],
+ [data-slot="menu-popup"],
+ [data-slot="menu-sub-content"],
+ [data-slot="tooltip-popup"],
+ [data-slot="dialog-popup"],
+ [data-slot="alert-dialog-popup"],
+ [data-slot="command-dialog-popup"],
+ [data-slot="sheet-popup"],
+ [data-slot="toast-popup"] {
+ transition-property: opacity !important;
+ }
+
+ [data-slot="sidebar-gap"],
+ [data-slot="sidebar-container"],
+ [data-slot="sidebar-group-content"],
+ [data-slot="sidebar-menu-badge"] {
+ transition: none !important;
+ }
+}
+
+
@theme inline {
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--animate-skeleton: skeleton 2s -1s infinite linear;
--font-sans: var(--font-sans);
--font-heading: var(--font-heading);
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx
index fcb9ecfc6..06a8c37c6 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.tsx
@@ -397,7 +397,7 @@ function RouteComponent() {
type="button"
title={c.label}
className={cn(
- "w-8 h-8 rounded-full border-2 transition-all",
+ "w-8 h-8 rounded-full border-2 transition-[scale,border-color]",
newColor === c.value
? "border-foreground scale-110"
: "border-transparent hover:scale-110",
@@ -486,7 +486,7 @@ function RouteComponent() {
type="button"
title={c.label}
className={cn(
- "w-8 h-8 rounded-full border-2 transition-all",
+ "w-8 h-8 rounded-full border-2 transition-[scale,border-color]",
editColor === c.value
? "border-foreground scale-110"
: "border-transparent hover:scale-110",
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
index 01ca53d9a..e3c9e68d8 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
@@ -181,7 +181,7 @@ function RouteComponent() {
const boardHeaderSearch = isBoardSearchMounted ? (
<div
- className={`relative w-[240px] origin-top transition-all duration-180 ease-out ${
+ className={`relative w-[240px] origin-top transition-[translate,scale,opacity] duration-180 ease-out ${
isBoardSearchVisible
? "translate-y-0 scale-y-100 opacity-100"
: "pointer-events-none -translate-y-1 scale-y-95 opacity-0"
diff --git a/i18n/en-US.json b/i18n/en-US.json
index b19a35be1..845386f23 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -1330,7 +1330,7 @@
},
"events": {
"task_created": {
- "title": "New Task Created",
+ "title": "New task created",
"content": "Task \"{{taskTitle}}\" was created"
},
"workspace_created": {
diff --git a/plans/001-motion-tokens-and-easing.md b/plans/001-motion-tokens-and-easing.md
new file mode 100644
index 000000000..94fd8cd53
--- /dev/null
+++ b/plans/001-motion-tokens-and-easing.md
@@ -0,0 +1,42 @@
+# 001 — Establish motion tokens and easing discipline
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: HIGH
+- **Category**: Easing & duration / Cohesion & tokens
+- **Estimated scope**: 8 files, small edits
+
+## Problem
+
+No easing/duration token system exists; `apps/web/src/index.css` defines only `--animate-skeleton`. Hand-typed curves are scattered (`apps/web/src/components/kanban-board/index.tsx:114` `cubic-bezier(0.25, 0.46, 0.45, 0.94)`, `theme-toggle-dropdown.tsx:21`). Dialog-family panels enter/exit with `ease-in-out` (slow start delays the moment the user watches): `ui/dialog.tsx:110`, `ui/alert-dialog.tsx:69`, `ui/command.tsx:77`, `ui/sheet.tsx:78`, all `duration-200 ease-in-out`. The sidebar collapses with `linear` (reserved for constant motion): `ui/sidebar.tsx:240,251,431,311` and `common/layout.tsx:30` `transition-[...] duration-200 ease-linear`. Three unused animation plugins are installed: `tailwind-animate`, `tailwindcss-animate`, `tw-animate-css` (no `@plugin` load, zero class usages).
+
+## Target
+
+In `apps/web/src/index.css` inside the existing `@theme` block, override Tailwind's weak built-ins with strong curves (this upgrades every existing `ease-out`/`ease-in-out` utility app-wide, including the coss primitives):
+
+```css
+--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
+--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
+```
+
+- Dialog family panels: `ease-in-out` → `ease-out` (entrances/exits use ease-out).
+- Sidebar + layout collapse: `ease-linear` → `ease-in-out` (on-screen morph).
+- `kanban-board/index.tsx:114` dnd-kit easing string → `"cubic-bezier(0.23, 1, 0.32, 1)"`.
+- `theme-toggle-dropdown.tsx:21` hand-typed curve → `var(--ease-out)` (or the same literal if a CSS var cannot be used in that position).
+- Remove the three plugin packages from `apps/web/package.json` via `pnpm remove tailwind-animate tailwindcss-animate tw-animate-css --filter @kaneo/web`.
+
+## Repo conventions to follow
+
+- Tailwind v4 CSS-first config: tokens live in the `@theme` block of `apps/web/src/index.css`.
+- Exemplar of correct entrance easing: `ui/popover.tsx:67` (`duration-150 ease-out`).
+
+## Boundaries
+
+- Do NOT touch `ui/toast.tsx` (its 500ms `cubic-bezier(.22,1,.36,1)` swipe curve is deliberate).
+- Do NOT change `accordion.tsx`/`tabs.tsx` `ease-in-out` (genuine morphs, correct).
+- Do NOT touch the anti-autofill `5000s ease-in-out` transitions (index.css:9, input.tsx, number-field.tsx).
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build` passes; `grep -rn "tailwindcss-animate\|tw-animate-css\|\"tailwind-animate\"" apps/web` returns nothing.
+- Feel: open the create-task dialog — it should arrive fast and settle (no slow start). Collapse the sidebar — motion eases, no constant-speed feel.
diff --git a/plans/002-scope-transitions.md b/plans/002-scope-transitions.md
new file mode 100644
index 000000000..2d75fc742
--- /dev/null
+++ b/plans/002-scope-transitions.md
@@ -0,0 +1,42 @@
+# 002 — Scope transition-all to real properties on hot surfaces
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: HIGH
+- **Category**: Performance / Purpose & frequency
+- **Estimated scope**: ~10 files, one class-string edit each
+
+## Problem
+
+`transition-all` animates unintended properties off-GPU and makes keyboard feedback laggy. Confirmed hot spots (current code):
+
+- `components/kanban-board/task-card.tsx:184` — `transition-all duration-200 ease-out`; the j/k focus ring (`:194` `ring-2`) fades 200ms instead of snapping; hover shadow/border rides along.
+- `components/list-view/task-row.tsx:182` and `components/backlog-list-view/backlog-task-row.tsx:137` — `transition-all duration-200` with the same ring pattern.
+- `components/list-view/index.tsx:296`, `components/backlog-list-view/index.tsx:316` — `transition-all` on section header rows.
+- `components/kanban-board/column/index.tsx:16` — `transition-all duration-300 ease-out` (300ms at the UI ceiling for a hover/drag highlight).
+- `components/kanban-board/index.tsx:250` — `transition-all duration-200 ease-out` on the board track (nothing dynamic changes; vestigial).
+- `routes/.../project/$projectId/board.tsx:184` — find-bar `transition-all duration-180` animating scale/translate/opacity only.
+- `ui/dialog.tsx:64`, `ui/sheet.tsx:26`, `ui/command.tsx:41`, `ui/alert-dialog.tsx:26` — overlay `backdrop-blur-sm transition-all duration-200` (transitions backdrop-filter; only opacity changes).
+- `ui/progress.tsx:58`, `ui/meter.tsx:50` — `transition-all duration-500` on the fill indicator.
+- `routes/.../settings/workspace/labels.tsx:400,489` — `transition-all` next to `hover:scale-110`.
+
+## Target
+
+- Task card: `transition-[background-color,border-color,box-shadow,scale] duration-150 ease-out` (scale kept for plan 004 press feedback; ring-2 is outside → snaps instantly).
+- Task/backlog rows and section headers: `transition-colors duration-150`.
+- Column shell: `transition-colors duration-150`.
+- Board track (`kanban-board/index.tsx:250`): remove the transition classes entirely.
+- Find-bar: `transition-[translate,scale,opacity] duration-180 ease-out`.
+- Overlays: `transition-opacity duration-200`.
+- Progress/meter fill: `transition-[width] duration-300 linear` (constant-motion rule; if the fill is driven by `inset`, transition that property instead).
+- Labels page: `transition-transform` on the scale elements (Tailwind v4 `hover:` already gates on hover-capable devices).
+
+## Boundaries
+
+- Do NOT touch `ui/popover.tsx:60,67` / `ui/tooltip.tsx:53,60` positioner property lists (Base UI anchor-following; has `data-instant` opt-out).
+- Do NOT alter which visual states exist — only which properties transition.
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build`; grep confirms no `transition-all` remains in the files above.
+- Feel: press j/k on the board — the focus ring must move with zero fade. Open a dialog — overlay fade unchanged. DevTools Performance: hovering cards paints only color/shadow layers.
diff --git a/plans/003-instant-command-palette.md b/plans/003-instant-command-palette.md
new file mode 100644
index 000000000..bdcbfb93b
--- /dev/null
+++ b/plans/003-instant-command-palette.md
@@ -0,0 +1,29 @@
+# 003 — Command palette and search open instantly
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: HIGH
+- **Category**: Purpose & frequency
+- **Estimated scope**: 3 files
+
+## Problem
+
+The Cmd+K command palette and "/" search are 100+/day keyboard surfaces. Per the catalog: "No animation. Ever." (Raycast has none). Currently both render through `CommandDialogPopup` (`ui/command.tsx:77`), which animates `scale-98 + opacity` over 200ms, plus an overlay fade (`ui/command.tsx:41`). Surfaces: `components/command-palette/index.tsx:247`, `components/search-command-menu/index.tsx:194`, `components/bulk-selection/bulk-toolbar.tsx:464`.
+
+## Target
+
+Add an `instant?: boolean` prop to the command dialog popup/overlay in `ui/command.tsx`. When set, append `transition-none data-starting-style:scale-100 data-starting-style:opacity-100 data-ending-style:scale-100 data-ending-style:opacity-100` (and `transition-none data-starting-style:opacity-100 data-ending-style:opacity-100` on the overlay) so open/close is immediate. Pass `instant` from the command palette, the search menu, and the bulk-toolbar palette.
+
+## Repo conventions to follow
+
+- coss primitives compose className via `cn(...)`; extend props the way `ui/dialog.tsx` extends Base UI props.
+
+## Boundaries
+
+- Do NOT remove the animation for other `CommandDialog` consumers; only the three keyboard surfaces pass `instant`.
+- Do NOT change palette markup or focus behavior.
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build`.
+- Feel: hit Cmd+K repeatedly — the palette appears/disappears with zero transition, like Raycast. Regular dialogs (create task) still animate.
diff --git a/plans/004-press-feedback.md b/plans/004-press-feedback.md
new file mode 100644
index 000000000..8629900be
--- /dev/null
+++ b/plans/004-press-feedback.md
@@ -0,0 +1,26 @@
+# 004 — Tactile press feedback on buttons and task cards
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: MEDIUM
+- **Category**: Physicality & origin
+- **Estimated scope**: 2 files
+
+## Problem
+
+No interactive surface presses. `ui/button.tsx:34` variants change color/shadow on `:active`/`data-pressed` but never scale. `components/kanban-board/task-card.tsx:184` (the board's primary tap target) has hover styling and zero press response.
+
+## Target
+
+- Button base (the shared class string in `ui/button.tsx`): add `active:scale-[0.97] data-pressed:scale-[0.97]` and extend the base transition to include `scale` with ~150ms ease-out (base currently `transition-shadow`; becomes `transition-[box-shadow,scale] duration-150 ease-out`).
+- Task card: add `active:scale-[0.98]` (larger element, subtler per catalog 0.95–0.98). Depends on plan 002 having added `scale` to the card's transitioned properties.
+
+## Boundaries
+
+- Keep scale subtle; do NOT exceed the 0.95–0.98 band.
+- Do NOT add press scale to list rows (full-width rows look wrong scaling).
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build`.
+- Feel: click-and-hold any button — it compresses; release — it snaps back fast. Card press feels tactile, not bouncy. Keyboard activation (Enter/Space) shows the same pressed state via `data-pressed`.
diff --git a/plans/005-reduced-motion.md b/plans/005-reduced-motion.md
new file mode 100644
index 000000000..89f92c338
--- /dev/null
+++ b/plans/005-reduced-motion.md
@@ -0,0 +1,29 @@
+# 005 — prefers-reduced-motion support
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: MEDIUM (accessibility)
+- **Category**: Accessibility
+- **Estimated scope**: ~10 files, class additions + 4 framer files
+
+## Problem
+
+Zero `prefers-reduced-motion` / `useReducedMotion` occurrences app-wide. Overlays translate/scale, framer flows slide, sidebar morphs — all ungated.
+
+## Target
+
+Reduced motion = fewer and gentler, not zero: keep opacity fades, drop movement.
+
+- coss primitives (`ui/popover.tsx`, `ui/select.tsx`, `ui/menu.tsx`, `ui/tooltip.tsx`, `ui/dialog.tsx`, `ui/sheet.tsx`, `ui/command.tsx`, `ui/alert-dialog.tsx`): add `motion-reduce:` overrides neutralizing the transform deltas while keeping opacity, e.g. for a popup with `data-starting-style:scale-98 data-starting-style:-translate-y-1`: append `motion-reduce:data-starting-style:scale-100 motion-reduce:data-starting-style:translate-y-0` (mirror for `data-ending-style` and each side variant present).
+- Sidebar (`ui/sidebar.tsx` width transitions) and section reveals: `motion-reduce:transition-none` on the movement transitions.
+- Framer files (`onboarding-flow.tsx`, `profile-setup-flow.tsx`, `task-subtasks.tsx`, `subtask-row.tsx`): use `useReducedMotion()` from framer-motion; when true, zero out `y`/`height` deltas but keep opacity fades.
+- Skeleton shimmer (`--animate-skeleton`): leave as is (opacity-only, comprehension-aiding).
+
+## Boundaries
+
+- Do NOT globally disable all transitions (no `* { transition: none }` nuke) — color/opacity feedback stays.
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build`; `grep -rn "motion-reduce\|useReducedMotion" apps/web/src | wc -l` > 10.
+- Feel: DevTools Rendering panel → emulate `prefers-reduced-motion: reduce`; open popover/dialog/sidebar — things fade without sliding or scaling; onboarding steps crossfade without vertical movement.
diff --git a/plans/006-fluid-micro-moments.md b/plans/006-fluid-micro-moments.md
new file mode 100644
index 000000000..dbb752bd8
--- /dev/null
+++ b/plans/006-fluid-micro-moments.md
@@ -0,0 +1,26 @@
+# 006 — Fluid micro-moments
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: MEDIUM
+- **Category**: Missed opportunities / Interruptibility
+- **Estimated scope**: 6 files
+
+## Problem / Target (one per seam)
+
+1. **Bulk-select toolbar pops in** — `components/bulk-selection/bulk-toolbar.tsx:381-387` (and the backlog variant) `return null` → fixed bottom bar appears instantly. Target: entrance via Tailwind v4 `starting:` variant on the fixed wrapper: `transition-[translate,opacity] duration-200 ease-out starting:translate-y-3 starting:opacity-0` (dismissal stays instant — response snaps, per asymmetric-timing rule).
+2. **List sections snap while the chevron animates** — `components/list-view/index.tsx:348-351` (+ backlog `:364`) hard-mount the section body next to a `transition-transform` chevron (`:306-311`). Target: entrance softening on the body: `starting:opacity-0 starting:-translate-y-1 transition-[translate,opacity] duration-150 ease-out`. Do not wrap `SortableContext` in new interactive containers.
+3. **Checkbox check pops from nothing** — `ui/checkbox.tsx:18` indicator uses `data-unchecked:hidden`. Target: keep the indicator mounted (Base UI `keepMounted` if required) and switch to `data-unchecked:opacity-0 data-unchecked:scale-90 transition-[opacity,scale] duration-150 ease-out`; verify the indeterminate state still renders.
+4. **Notification badge teleports in** — `components/notification/notification-dropdown.tsx:273-279`. Target: on the count span: `starting:scale-75 starting:opacity-0 transition-[scale,opacity] duration-200 ease-out`.
+5. **Tooltip re-delay in the task sidebar** — `components/task/task-properties-sidebar.tsx:147,172,337,362,529,554`: six sibling `TooltipProvider`s. Target: one shared `TooltipProvider` per toolbar group so adjacent tooltips skip the delay.
+6. **Subtask rows tween without physics** — `components/task/subtask-row.tsx:51-54`. Target: `transition={{ type: "spring", duration: 0.4, bounce: 0.15 }}` and add `scale: 0.98` to the `initial`/`exit` alongside existing opacity/height.
+
+## Boundaries
+
+- Entrances only where elements conditionally mount; do not restructure conditional rendering into always-mounted DOM (except the checkbox indicator if `keepMounted` is needed).
+- Badge/toolbar/section motion must never delay interactivity.
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build`.
+- Feel: select cards — the toolbar rises from the bottom edge; deselect — gone instantly. Toggle a checkbox rapidly — the check scales in and interruption retargets (no restart flicker). New notification — badge pops in. Hover the two sidebar copy buttons in sequence — the second tooltip appears without the full delay.
diff --git a/plans/007-board-reflow.md b/plans/007-board-reflow.md
new file mode 100644
index 000000000..f347fd51b
--- /dev/null
+++ b/plans/007-board-reflow.md
@@ -0,0 +1,30 @@
+# 007 — Animate card/row enter and exit on board and lists
+
+- **Status**: DONE
+- **Commit**: 813dcb36
+- **Severity**: MEDIUM (highest fluid-UI impact, riskiest)
+- **Category**: Missed opportunities
+- **Estimated scope**: 3 files, framer-motion AnimatePresence
+
+## Problem
+
+Creating, deleting, or moving a task teleports it in/out and siblings jump to close the gap: `components/kanban-board/column/column-dropzone.tsx:39-47`, `components/list-view/index.tsx:355`, `components/backlog-list-view/index.tsx:370` render bare `tasks.map(...)`. dnd-kit only animates pointer drags. The in-repo exemplar is subtasks: `task-subtasks.tsx:356` (`AnimatePresence initial={false}`) + `subtask-row.tsx:49-54`.
+
+## Target
+
+Wrap the three map sites in `<AnimatePresence initial={false} mode="popLayout">` and each card/row in a `motion.div` with `initial={{ opacity: 0, scale: 0.98 }}`, `animate={{ opacity: 1, scale: 1 }}`, `exit={{ opacity: 0, scale: 0.98 }}`, `transition={{ type: "spring", duration: 0.35, bounce: 0.15 }}`, keyed by task id.
+
+**Hard constraint — dnd-kit coexistence**: the sortable transform must remain on the existing card element (dnd-kit's `useSortable` ref/style). The motion wrapper must NOT set `layout` (no FLIP) and must not intercept pointer events; if drag visuals glitch, fall back to CSS-only entrance (`starting:` variant) and exit-less removal, and report.
+
+`initial={false}` is mandatory so board load doesn't animate 100 cards.
+
+## Boundaries
+
+- Do NOT add `layout` props (deliberate: FLIP reflow conflicts with dnd-kit transforms; out of scope).
+- Do NOT animate during initial mount or route changes.
+- Respect `useReducedMotion` (plan 005): reduced → opacity-only.
+
+## Verification
+
+- Mechanical: `pnpm --filter @kaneo/web build`.
+- Feel: create a task — the card settles in (subtle scale+fade). Delete/move via status popover — the card fades out and the list closes up without a hard jump. Drag cards between columns — dnd-kit behavior unchanged (no double transforms, no offset jumps). Load a 50-card board — no entrance storm.
diff --git a/plans/README.md b/plans/README.md
new file mode 100644
index 000000000..987c192b0
--- /dev/null
+++ b/plans/README.md
@@ -0,0 +1,17 @@
+# Motion plans
+
+From the improve-animations audit at commit 813dcb36 (Emil Kowalski design-engineering bar).
+
+| # | Plan | Severity | Status |
+|---|------|----------|--------|
+| 001 | Motion tokens and easing discipline | HIGH | DONE |
+| 002 | Scope transition-all on hot surfaces | HIGH | DONE |
+| 003 | Instant command palette | HIGH | DONE |
+| 004 | Press feedback | MEDIUM | DONE |
+| 005 | prefers-reduced-motion | MEDIUM | DONE |
+| 006 | Fluid micro-moments | MEDIUM | DONE |
+| 007 | Board enter/exit animation | MEDIUM | DONE |
+
+Execution order: 001 → 002 → 003 → 004 (004 depends on 002's card transition property list) → 005 → 006 → 007. 007 carries the dnd-kit coexistence constraint; read its Boundaries before starting.
+
+Vetted non-findings (do not "fix"): toast 500ms swipe curve, accordion/collapsible height transitions, caret blink, Cmd+F find-bar animation, popover/tooltip positioner property lists.
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e22f795cf..8f9e7be91 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -195,7 +195,7 @@ importers:
version: 0.563.0([email protected])
next:
specifier: '>=15.5.18 <16.0.0 || >=16.2.6'
radix-ui:
specifier: ^1.4.3
@@ -476,15 +476,9 @@ importers:
sonner:
specifier: ^2.0.6
- tailwind-animate:
- specifier: ^0.2.10
- version: 0.2.10
tailwind-merge:
specifier: ^3.5.0
version: 3.5.0
- tailwindcss-animate:
- specifier: ^1.0.7
- version: 1.0.7([email protected])
tippy.js:
specifier: ^6.3.7
version: 6.3.7
@@ -537,9 +531,6 @@ importers:
tailwindcss:
specifier: ^4.2.1
version: 4.2.1
- tw-animate-css:
- specifier: ^1.4.0
- version: 1.4.0
typescript:
specifier: ~5.8.3
version: 5.8.3
@@ -7699,20 +7690,12 @@ packages:
resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}
engines: {node: '>=20'}
- resolution: {integrity: sha512-9vczT78R9O7HIrydvGJNz4/19ogjSQSFlYpwleAxcxIT1m9pvAIGQr/+f6qG9sB5gq3JLB6IRKmw9RGJUrLeXQ==}
-
resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==}
resolution: {integrity: sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==}
- resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}
- peerDependencies:
- tailwindcss: '>=3.0.0 || insiders'
-
resolution: {integrity: sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==}
@@ -13705,7 +13688,7 @@ snapshots:
obug: 2.1.1
std-env: 4.0.0
tinyrainbow: 3.1.0
'@vitest/[email protected]':
dependencies:
@@ -16027,15 +16010,15 @@ snapshots:
dependencies:
'@next/env': 15.5.18
'@swc/helpers': 0.5.15
caniuse-lite: 1.0.30001792
postcss: 8.5.11
- react: 19.1.0
- react-dom: 19.1.0([email protected])
- styled-jsx: 5.1.6(@babel/[email protected])([email protected])
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
'@next/swc-darwin-arm64': 15.5.18
'@next/swc-darwin-x64': 15.5.18
@@ -16046,20 +16029,22 @@ snapshots:
'@next/swc-win32-arm64-msvc': 15.5.18
'@next/swc-win32-x64-msvc': 15.5.18
'@opentelemetry/api': 1.9.0
+ babel-plugin-react-compiler: 19.0.0-beta-ebf51a3-20250411
sharp: 0.34.5
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
+ optional: true
dependencies:
'@next/env': 15.5.18
'@swc/helpers': 0.5.15
caniuse-lite: 1.0.30001792
postcss: 8.5.11
- react: 19.2.4
- react-dom: 19.2.4([email protected])
- styled-jsx: 5.1.6(@babel/[email protected])([email protected])
+ react: 19.1.0
+ react-dom: 19.1.0([email protected])
+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
'@next/swc-darwin-arm64': 15.5.18
'@next/swc-darwin-x64': 15.5.18
@@ -16070,12 +16055,10 @@ snapshots:
'@next/swc-win32-arm64-msvc': 15.5.18
'@next/swc-win32-x64-msvc': 15.5.18
'@opentelemetry/api': 1.9.0
- babel-plugin-react-compiler: 19.0.0-beta-ebf51a3-20250411
sharp: 0.34.5
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
- optional: true
dependencies:
@@ -17328,12 +17311,12 @@ snapshots:
dependencies:
inline-style-parser: 0.2.7
dependencies:
client-only: 0.0.1
react: 19.1.0
optionalDependencies:
- '@babel/core': 7.29.7
+ '@babel/core': 8.0.1
dependencies:
@@ -17364,16 +17347,10 @@ snapshots:
-
- dependencies:
- tailwindcss: 4.2.1
-