[WEB-5358] fix: analytics enhancements (#8150)
* refactor: enhance analytics page tab functionality and UI - Introduced state management for selected tabs using useState and useEffect hooks. - Updated tab handling to improve user experience with onValueChange for Tabs component. - Refactored AnalyticsFilterActions to remove unused duration selection. - Added Tooltip to project name in ActiveProjectItem for better visibility. - Minor styling adjustments in Tabs component for improved layout consistency. * refactor: improve tab layout in analytics page by adding w-fit * fix: update styling for ActiveProjectItem component * refactor: simplify analytics page and introduce useAnalyticsTabs hook - Removed unused imports and optimized the analytics page component. - Replaced getAnalyticsTabs with a new custom hook useAnalyticsTabs for better modularity. - Added useAnalyticsTabs hook to manage analytics tab logic. - Created new files for useAnalyticsTabs and analytics tabs in the 'ce' and 'ee' directories. * fix: ensure consistent export in use-analytics-tabs file * style: format code for better readability in AnalyticsPage component * fix: add missing newline at end of file in use-analytics-tabs * chore: remove unused analytics tab components --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
09f4e3d4ae
commit
2804987fe8
5 changed files with 84 additions and 45 deletions
|
|
@ -41,7 +41,7 @@ const TabsList = React.forwardRef(function TabsList(
|
|||
<TabsPrimitive.List
|
||||
data-slot="tabs-list"
|
||||
className={cn(
|
||||
"flex w-full min-w-fit items-center justify-between gap-1.5 rounded-md text-sm p-0.5 bg-custom-background-80/60 relative overflow-auto",
|
||||
"flex w-full items-center justify-between gap-1.5 rounded-md text-sm p-0.5 bg-custom-background-80/60 relative overflow-auto",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue