bb-plane-fork/apps/web/core/components
Jayash Tripathy 2804987fe8
[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>
2025-11-24 21:29:34 +05:30
..
account fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
analytics [WEB-5358] fix: analytics enhancements (#8150) 2025-11-24 21:29:34 +05:30
api-token fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
archives [WEB-5459] feat(codemods): add function declaration transformer with tests (#8137) 2025-11-20 17:39:40 +05:30
auth-screens fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
automation fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
base-layouts fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
chart [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
comments [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
common [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
core [WEB-5430] feat: allow users to change email (#8120) 2025-11-24 21:21:52 +05:30
cycles [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
dropdowns fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
editor fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
empty-state fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
estimates fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
exporter fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
gantt-chart fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
global fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
home fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
icons [WEB-5459] feat(codemods): add function declaration transformer with tests (#8137) 2025-11-20 17:39:40 +05:30
inbox fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
instance fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
integration fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
issues [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
labels [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
license fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
modules fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
onboarding [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
pages [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
power-k fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
preferences [WEB-5459] feat(codemods): add function declaration transformer with tests (#8137) 2025-11-20 17:39:40 +05:30
profile [WEB-5430] feat: allow users to change email (#8120) 2025-11-24 21:21:52 +05:30
project fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
project-states [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
readonly fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
rich-filters [WEB-5459] feat(codemods): add function declaration transformer with tests (#8137) 2025-11-20 17:39:40 +05:30
settings fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
sidebar [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
stickies fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
ui [WEB-5478] chore: fix types (#8155) 2025-11-21 20:22:37 +05:30
user fix: eslint errors and warnings (#8149) 2025-11-20 19:31:22 +05:30
views fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
web-hooks fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
work-item-filters [WEB-5459] feat(codemods): add function declaration transformer with tests (#8137) 2025-11-20 17:39:40 +05:30
workspace fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30
workspace-notifications fix: source map warning during build (#8148) 2025-11-21 13:43:52 +05:30