From 012d1c452b0178b3c88c985d33edb29e96c05f46 Mon Sep 17 00:00:00 2001 From: SuperComboGamer Date: Sat, 20 Dec 2025 23:46:24 -0500 Subject: [PATCH] refactor: optimize button animations and interval checks for performance This commit introduces several performance improvements across the UI components: - Updated the Button component to enhance hover animations by grouping styles for better GPU efficiency. - Adjusted the interval timing in the BoardView and WorktreePanel components from 1 second to 3 and 5 seconds respectively, reducing CPU/GPU usage. - Replaced the continuous gradient rotation animation with a subtle pulse effect in global CSS to further optimize rendering performance. These changes aim to improve the overall responsiveness and efficiency of the UI components. --- apps/ui/src/components/ui/button.tsx | 6 ++-- apps/ui/src/components/views/board-view.tsx | 2 +- .../worktree-panel/worktree-panel.tsx | 5 ++-- apps/ui/src/styles/global.css | 29 ++++++++++--------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/apps/ui/src/components/ui/button.tsx b/apps/ui/src/components/ui/button.tsx index b5ec3738..75ec9abd 100644 --- a/apps/ui/src/components/ui/button.tsx +++ b/apps/ui/src/components/ui/button.tsx @@ -72,15 +72,15 @@ function Button({