From 2acba2980bfe4eef9c1eb97dd3c1ef8a54f9b12d Mon Sep 17 00:00:00 2001
From: Jayash Tripathy <76092296+JayashTripathy@users.noreply.github.com>
Date: Wed, 3 Dec 2025 17:37:45 +0530
Subject: [PATCH] refactor: migrate from Headless UI Tabs to custom Tabs
component
- Replaced instances of Headless UI's Tab component with a new custom Tabs component across various components, including analytics modals, image pickers, and navigation panes.
- Updated tab handling logic to align with the new Tabs API, ensuring consistent behavior and styling.
- Removed unused Tab imports and cleaned up related code for improved maintainability.
- This refactor enhances the overall structure and consistency of tab navigation within the application.
---
.../analytics/work-items/modal/content.tsx | 14 +-
.../components/core/image-picker-popover.tsx | 167 +++++++++---------
.../analytics-sidebar/progress-stats.tsx | 42 ++---
.../modal/card/base-paid-plan-card.tsx | 41 ++---
.../license/modal/card/plan-upgrade.tsx | 7 +-
.../analytics-sidebar/issue-progress.tsx | 2 +-
.../analytics-sidebar/progress-stats.tsx | 42 ++---
.../components/pages/navigation-pane/root.tsx | 12 +-
.../pages/navigation-pane/tab-panels/root.tsx | 13 +-
.../pages/navigation-pane/tabs-list.tsx | 40 ++---
packages/ui/src/index.ts | 1 -
packages/ui/src/tabs/index.ts | 2 -
packages/ui/src/tabs/tab-list.tsx | 74 --------
packages/ui/src/tabs/tabs.tsx | 90 ----------
14 files changed, 179 insertions(+), 368 deletions(-)
delete mode 100644 packages/ui/src/tabs/index.ts
delete mode 100644 packages/ui/src/tabs/tab-list.tsx
delete mode 100644 packages/ui/src/tabs/tabs.tsx
diff --git a/apps/web/core/components/analytics/work-items/modal/content.tsx b/apps/web/core/components/analytics/work-items/modal/content.tsx
index 082b9266d4..dfaa2f8412 100644
--- a/apps/web/core/components/analytics/work-items/modal/content.tsx
+++ b/apps/web/core/components/analytics/work-items/modal/content.tsx
@@ -69,13 +69,11 @@ export const WorkItemsModalMainContent = observer(function WorkItemsModalMainCon
);
return (
-
No images found.
- ) + > +No images found.
+ ) + ) : ( +