bb-plane-fork/web/core/hooks
JayashTripathy 75d81f9e95
[WEB-3781] Analytics page enhancements (#7005)
* chore: analytics endpoint

* added anlytics v2

* updated status icons

* added area chart in workitems and en translations

* active projects

* chore: created analytics chart

* chore: validation errors

* improved radar-chart , added empty states , added projects summary

* chore: added a new graph in advance analytics

* integrated priority chart

* chore: added csv exporter

* added priority dropdown

* integrated created vs resolved chart

* custom x and y axis label in bar and area chart

* added wrapper styles to legends

* added filter components

* fixed temp data imports

* integrated filters in priority charts

* added label to priority chart and updated duration filter

* refactor

* reverted to void onchange

* fixed some contant exports

* fixed type issues

* fixed some type and build issues

* chore: updated the filtering logic for analytics

* updated default value to last_30_days

* percentage value whole number and added some rules for axis options

* fixed some translations

* added - custom tick for radar, calc of insight cards, filter labels

* chore: opitmised the analytics endpoint

* replace old analytics path with new , updated labels of insight card, done some store fixes

* chore: updated the export request

* Enhanced ProjectSelect to support multi-select, improved state management, and optimized data fetching and component structure.

* fix: round completion percentage calculation in ActiveProjectItem

* added empty states in project insights

* Added loader and empty state in created/resolved chart

* added loaders

* added icons in filters

* added custom colors in customised charts

* cleaned up some code

* added some responsiveness

* updated translations

* updated serrchbar for the table

* added work item modal in project analytics

* fixed some of the layput issues in the peek view

* chore: updated the base function for viewsets

* synced tab to url

* code cleanup

* chore: updated the export logic

* fixed project_ids filter

* added icon in projectdropdown

* updated export button position

* export csv and emptystates icons

* refactor

* code refactor

* updated loaders, moved color pallete to contants, added nullish collasece operator in neccessary places

* removed uneccessary cn

* fixed formatting issues

* fixed empty project_ids in payload

* improved null checks

* optimized charts

* modified relevant variables to observable.ref

* fixed the duration type

* optimized some code

* updated query key in project-insight

* updated query key in project-insight

* updated formatting

* chore: replaced analytics route with new one and done some optimizations

* removed the old analytics

---------

Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
2025-05-12 20:50:33 +05:30
..
context chore: create/ update issue modal restructure. (#5385) 2024-08-19 19:38:28 +05:30
editor [PE-242, 243] refactor: editor file handling, image upload status (#6442) 2025-02-19 15:18:01 +05:30
store [WEB-3781] Analytics page enhancements (#7005) 2025-05-12 20:50:33 +05:30
use-app-router.tsx [WEB-1960]: chore: upgrade to plane paid plans modal. (#5149) 2024-07-18 15:45:37 +05:30
use-auto-save.tsx [WEB-1116] chore: add fallback for the live server (#5622) 2024-09-23 15:35:06 +05:30
use-auto-scroller.tsx [WEB-2442] fix: Timeline Improvements and bug fixes (#5922) 2024-10-29 13:42:14 +05:30
use-collaborative-page-actions.tsx [PE-97] refactor: pages actions (#6234) 2024-12-31 12:54:09 +05:30
use-comment-reaction.tsx fix: lock file regerated 2025-02-12 14:13:18 +05:30
use-current-time.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-debounce.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-dropdown-key-down.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-dropdown.ts chore: lint related changes and packaging fixes (#6163) 2024-12-06 14:56:49 +05:30
use-dynamic-dropdown.tsx chore: lint related changes and packaging fixes (#6163) 2024-12-06 14:56:49 +05:30
use-extended-sidebar-overview-outside-click.tsx [WEB-3291] dev: app sidebar revamp (#6578) 2025-02-17 23:46:55 +05:30
use-favorite-item-details.tsx [WEB-2508] fix: page favorite item title mutation (#7020) 2025-05-07 00:28:43 +05:30
use-group-dragndrop.ts feat: language support (#6472) 2025-02-06 20:41:31 +05:30
use-integration-popup.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-intersection-observer.ts Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-issue-layout-store.ts refactor: minor store level changes (#6500) 2025-01-29 01:04:54 +05:30
use-issue-peek-overview-redirection.tsx [WEB-3268] feat: url pattern (#6546) 2025-02-15 05:05:00 +05:30
use-issues-actions.tsx feat: language support (#6472) 2025-02-06 20:41:31 +05:30
use-keypress.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-local-storage.tsx refactor: enhance components modularity and introduce new UI componenets (#6192) 2024-12-12 21:40:57 +05:30
use-multiple-select.ts [WEB-2150] fix: issue selection redirect alert (#5406) 2024-08-23 18:00:15 +05:30
use-online-status.ts [WEB-1116] feat: pages realtime collaboration (#5493) 2024-09-02 17:54:12 +05:30
use-page-fallback.ts fix: update fallback logic for newly created pages (#6345) 2025-01-08 13:30:06 +05:30
use-page-filters.ts [PE-155] chore: floating toolbar for pages (#6482) 2025-01-28 20:21:09 +05:30
use-page-operations.ts [WIKI-320] refactor: page header actions (#6946) 2025-04-17 20:52:33 +05:30
use-parse-editor-content.ts [PE-93] refactor: editor mentions extension (#6178) 2024-12-20 13:41:25 +05:30
use-peek-overview-outside-click.tsx [WEB-2444] improvement: performance improvement for useOutsideClickDetector and usePeekOverviewOutsideClickDetector. (#5595) 2024-09-12 20:10:04 +05:30
use-platform-os.tsx use-platform-os hook optimization to not cause re renders (#5453) 2024-08-30 19:05:22 +05:30
use-project-issue-properties.ts Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-query-params.ts [WEB-2293] feat: pages version history (#5417) 2024-08-26 14:03:55 +05:30
use-reload-confirmation.tsx [WEB-2150] fix: issue selection redirect alert (#5406) 2024-08-23 18:00:15 +05:30
use-resolved-asset-path.tsx feat: language support (#6472) 2025-02-06 20:41:31 +05:30
use-stickies.tsx [WEB-3048] feat: added-stickies (#6339) 2025-01-07 20:30:42 +05:30
use-table-keyboard-navigation.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-timeline-chart.ts refactor timeline store for code splitting (#5926) 2024-10-29 17:57:45 +05:30
use-timer.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-timezone-converter.tsx [WEB-3681]feat: added user timezone dates for cycle (#6820) 2025-03-26 20:23:19 +05:30
use-timezone.tsx [WEB-2884] chore: Update timezone list, add new endpoint, and update timezone dropdowns (#6231) 2024-12-19 20:15:55 +05:30
use-url-hash.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-window-size.tsx Refactor folder structure (#4759) 2024-06-11 14:39:52 +05:30
use-workspace-invitation.tsx improvement: enhance workspace invitation modularity (#6594) 2025-02-12 17:05:09 +05:30
use-workspace-issue-properties.ts fix: minor refactoring changes for state dropdowns 2025-02-24 14:14:24 +05:30