-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[WEB-3781] Analytics page enhancements #7005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
1ed74e7
chore: analytics endpoint
NarayanBavisetti ef45ded
added anlytics v2
JayashTripathy b871ac2
Merge remote-tracking branch 'origin/chore-advance-analytics' into an…
JayashTripathy 0266a05
updated status icons
JayashTripathy d8536d1
added area chart in workitems and en translations
JayashTripathy 3b254b3
active projects
JayashTripathy a281b12
chore: created analytics chart
NarayanBavisetti c2a5e98
chore: validation errors
NarayanBavisetti 20558f9
improved radar-chart , added empty states , added projects summary
JayashTripathy faf9efc
Merge remote-tracking branch 'origin/chore-advance-analytics' into an…
JayashTripathy 74b6965
chore: added a new graph in advance analytics
NarayanBavisetti ed3ab3b
Merge remote-tracking branch 'origin/chore-advance-analytics' into an…
JayashTripathy 38bbd4e
integrated priority chart
JayashTripathy f638bf0
chore: added csv exporter
NarayanBavisetti 3fba6ef
added priority dropdown
JayashTripathy bfc4274
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy f3070fa
Merge branch 'preview' into analytics-page-enhancements
JayashTripathy 2eb71eb
integrated created vs resolved chart
JayashTripathy d7f4b15
Merge remote-tracking branch 'origin/chore-advance-analytics' into an…
JayashTripathy 657c048
custom x and y axis label in bar and area chart
JayashTripathy c4d0529
added wrapper styles to legends
JayashTripathy a18bc0d
added filter components
JayashTripathy e67809b
fixed temp data imports
JayashTripathy 1d636dd
integrated filters in priority charts
JayashTripathy fc8963d
added label to priority chart and updated duration filter
JayashTripathy deac8f1
refactor
JayashTripathy 82cf159
reverted to void onchange
JayashTripathy 2ed772d
fixed some contant exports
JayashTripathy 7597fad
Merge branch 'preview' of github.com:makeplane/plane into chore-advan…
NarayanBavisetti edaf34f
fixed type issues
JayashTripathy fcbc96b
fixed some type and build issues
JayashTripathy 5eb42d9
chore: updated the filtering logic for analytics
NarayanBavisetti f722938
updated default value to last_30_days
JayashTripathy a4c8aeb
percentage value whole number and added some rules for axis options
JayashTripathy 02fcc64
fixed some translations
JayashTripathy 59c3b99
added - custom tick for radar, calc of insight cards, filter labels
JayashTripathy c792fff
chore: opitmised the analytics endpoint
NarayanBavisetti 67a0779
Merge branch 'preview' of github.com:makeplane/plane into analytics-p…
NarayanBavisetti 725ab97
Merge branch 'chore-advance-analytics' of github.com:makeplane/plane …
NarayanBavisetti 7f02300
replace old analytics path with new , updated labels of insight card,…
JayashTripathy c8040f2
chore: updated the export request
NarayanBavisetti 4739f91
Enhanced ProjectSelect to support multi-select, improved state manage…
JayashTripathy 3da410a
Merge branch 'analytics-page-enhancements' of https://github.com/make…
JayashTripathy acd4c60
fix: round completion percentage calculation in ActiveProjectItem
JayashTripathy d7b915c
added empty states in project insights
JayashTripathy facbe70
Added loader and empty state in created/resolved chart
JayashTripathy 80d23f1
added loaders
JayashTripathy 61ab58f
added icons in filters
JayashTripathy 3521fb1
added custom colors in customised charts
JayashTripathy 060df17
cleaned up some code
JayashTripathy 7c666d6
added some responsiveness
JayashTripathy b66d773
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy 93e7747
updated translations
JayashTripathy 03316b0
updated serrchbar for the table
JayashTripathy 717d14a
added work item modal in project analytics
JayashTripathy 1894e92
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy 8010c76
fixed some of the layput issues in the peek view
JayashTripathy bdc9eb0
chore: updated the base function for viewsets
NarayanBavisetti 0afdcda
Merge branch 'chore-advance-analytics' of github.com:makeplane/plane …
NarayanBavisetti 6a775d3
synced tab to url
JayashTripathy d715691
code cleanup
JayashTripathy 2d8f286
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy 9c2877b
chore: updated the export logic
NarayanBavisetti 214f04e
fixed project_ids filter
JayashTripathy aecbb14
added icon in projectdropdown
JayashTripathy 47c6d6d
updated export button position
JayashTripathy aab102c
export csv and emptystates icons
JayashTripathy f822621
refactor
JayashTripathy b779e49
code refactor
JayashTripathy 5b9c3f4
Merge branch 'chore-advance-analytics' of github.com:makeplane/plane …
NarayanBavisetti 1c00120
Merge branch 'analytics-page-enhancements' of github.com:makeplane/pl…
NarayanBavisetti 3c1e891
updated loaders, moved color pallete to contants, added nullish colla…
JayashTripathy 458be60
removed uneccessary cn
JayashTripathy db3f85d
fixed formatting issues
JayashTripathy 073d7e3
fixed empty project_ids in payload
JayashTripathy 3b86010
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy 5d6315e
improved null checks
JayashTripathy edb6834
optimized charts
JayashTripathy 618005b
Merge branch 'analytics-page-enhancements' of github.com:makeplane/pl…
NarayanBavisetti 7933938
Merge branch 'preview' of github.com:makeplane/plane into analytics-p…
NarayanBavisetti ba62fc2
modified relevant variables to observable.ref
JayashTripathy 1db2b52
Merge branch 'analytics-page-enhancements' of https://github.com/make…
JayashTripathy 4de46e8
fixed the duration type
JayashTripathy b90792d
optimized some code
JayashTripathy ed7a9a6
updated query key in project-insight
JayashTripathy aa90854
updated query key in project-insight
JayashTripathy 97c8d79
updated formatting
JayashTripathy 56975b2
chore: replaced analytics route with new one and done some optimizations
JayashTripathy df46d1f
removed the old analytics
JayashTripathy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| import { TAnalyticsTabsV2Base } from "@plane/types"; | ||
| import { ChartXAxisProperty, ChartYAxisMetric } from "../chart"; | ||
|
|
||
JayashTripathy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| export const insightsFields: Record<TAnalyticsTabsV2Base, string[]> = { | ||
| overview: [ | ||
| "total_users", | ||
| "total_admins", | ||
| "total_members", | ||
| "total_guests", | ||
| "total_projects", | ||
| "total_work_items", | ||
| "total_cycles", | ||
| "total_intake", | ||
| ], | ||
| "work-items": [ | ||
| "total_work_items", | ||
| "started_work_items", | ||
| "backlog_work_items", | ||
| "un_started_work_items", | ||
| "completed_work_items", | ||
| ], | ||
| }; | ||
|
|
||
| export const ANALYTICS_V2_DURATION_FILTER_OPTIONS = [ | ||
| { | ||
| name: "Yesterday", | ||
| value: "yesterday", | ||
| }, | ||
| { | ||
| name: "Last 7 days", | ||
| value: "last_7_days", | ||
| }, | ||
| { | ||
| name: "Last 30 days", | ||
| value: "last_30_days", | ||
| }, | ||
| { | ||
| name: "Last 3 months", | ||
| value: "last_3_months", | ||
| }, | ||
| ]; | ||
|
|
||
| export const ANALYTICS_V2_X_AXIS_VALUES: { value: ChartXAxisProperty; label: string }[] = [ | ||
| { | ||
| value: ChartXAxisProperty.STATES, | ||
| label: "State name", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.STATE_GROUPS, | ||
| label: "State group", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.PRIORITY, | ||
| label: "Priority", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.LABELS, | ||
| label: "Label", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.ASSIGNEES, | ||
| label: "Assignee", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.ESTIMATE_POINTS, | ||
| label: "Estimate point", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.CYCLES, | ||
| label: "Cycle", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.MODULES, | ||
| label: "Module", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.COMPLETED_AT, | ||
| label: "Completed date", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.TARGET_DATE, | ||
| label: "Due date", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.START_DATE, | ||
| label: "Start date", | ||
| }, | ||
| { | ||
| value: ChartXAxisProperty.CREATED_AT, | ||
| label: "Created date", | ||
| }, | ||
| ]; | ||
|
|
||
| export const ANALYTICS_V2_Y_AXIS_VALUES: { value: ChartYAxisMetric; label: string }[] = [ | ||
| { | ||
| value: ChartYAxisMetric.WORK_ITEM_COUNT, | ||
| label: "Work item", | ||
| }, | ||
| { | ||
| value: ChartYAxisMetric.ESTIMATE_POINT_COUNT, | ||
| label: "Estimate", | ||
| }, | ||
| ]; | ||
|
|
||
| export const ANALYTICS_V2_DATE_KEYS = ["completed_at", "target_date", "start_date", "created_at"]; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from "./common" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,157 @@ | ||
| import { TChartColorScheme } from "@plane/types"; | ||
|
|
||
| export const LABEL_CLASSNAME = "uppercase text-custom-text-300/60 text-sm tracking-wide"; | ||
| export const AXIS_LABEL_CLASSNAME = "uppercase text-custom-text-300/60 text-sm tracking-wide"; | ||
|
|
||
|
|
||
| export enum ChartXAxisProperty { | ||
| STATES = "STATES", | ||
| STATE_GROUPS = "STATE_GROUPS", | ||
| LABELS = "LABELS", | ||
| ASSIGNEES = "ASSIGNEES", | ||
| ESTIMATE_POINTS = "ESTIMATE_POINTS", | ||
| CYCLES = "CYCLES", | ||
| MODULES = "MODULES", | ||
| PRIORITY = "PRIORITY", | ||
| START_DATE = "START_DATE", | ||
| TARGET_DATE = "TARGET_DATE", | ||
| CREATED_AT = "CREATED_AT", | ||
| COMPLETED_AT = "COMPLETED_AT", | ||
| CREATED_BY = "CREATED_BY", | ||
| WORK_ITEM_TYPES = "WORK_ITEM_TYPES", | ||
| PROJECTS = "PROJECTS", | ||
| EPICS = "EPICS", | ||
| } | ||
|
|
||
| export enum ChartYAxisMetric { | ||
| WORK_ITEM_COUNT = "WORK_ITEM_COUNT", | ||
| ESTIMATE_POINT_COUNT = "ESTIMATE_POINT_COUNT", | ||
| PENDING_WORK_ITEM_COUNT = "PENDING_WORK_ITEM_COUNT", | ||
| COMPLETED_WORK_ITEM_COUNT = "COMPLETED_WORK_ITEM_COUNT", | ||
| IN_PROGRESS_WORK_ITEM_COUNT = "IN_PROGRESS_WORK_ITEM_COUNT", | ||
| WORK_ITEM_DUE_THIS_WEEK_COUNT = "WORK_ITEM_DUE_THIS_WEEK_COUNT", | ||
| WORK_ITEM_DUE_TODAY_COUNT = "WORK_ITEM_DUE_TODAY_COUNT", | ||
| BLOCKED_WORK_ITEM_COUNT = "BLOCKED_WORK_ITEM_COUNT", | ||
| } | ||
|
|
||
|
|
||
| export enum ChartXAxisDateGrouping { | ||
| DAY = "DAY", | ||
| WEEK = "WEEK", | ||
| MONTH = "MONTH", | ||
| YEAR = "YEAR", | ||
| } | ||
|
|
||
| export const TO_CAPITALIZE_PROPERTIES: ChartXAxisProperty[] = [ | ||
| ChartXAxisProperty.PRIORITY, | ||
| ChartXAxisProperty.STATE_GROUPS, | ||
| ]; | ||
|
|
||
| export const CHART_X_AXIS_DATE_PROPERTIES: ChartXAxisProperty[] = [ | ||
| ChartXAxisProperty.START_DATE, | ||
| ChartXAxisProperty.TARGET_DATE, | ||
| ChartXAxisProperty.CREATED_AT, | ||
| ChartXAxisProperty.COMPLETED_AT, | ||
| ]; | ||
|
|
||
|
|
||
| export enum EChartModels { | ||
| BASIC = "BASIC", | ||
| STACKED = "STACKED", | ||
| GROUPED = "GROUPED", | ||
| MULTI_LINE = "MULTI_LINE", | ||
| COMPARISON = "COMPARISON", | ||
| PROGRESS = "PROGRESS", | ||
| } | ||
|
|
||
| export const CHART_COLOR_PALETTES: { | ||
| key: TChartColorScheme; | ||
| i18n_label: string; | ||
| light: string[]; | ||
| dark: string[]; | ||
| }[] = [ | ||
| { | ||
| key: "modern", | ||
| i18n_label: "dashboards.widget.color_palettes.modern", | ||
| light: [ | ||
| "#6172E8", | ||
| "#8B6EDB", | ||
| "#E05F99", | ||
| "#29A383", | ||
| "#CB8A37", | ||
| "#3AA7C1", | ||
| "#F1B24A", | ||
| "#E84855", | ||
| "#50C799", | ||
| "#B35F9E", | ||
| ], | ||
| dark: [ | ||
| "#6B7CDE", | ||
| "#8E9DE6", | ||
| "#D45D9E", | ||
| "#2EAF85", | ||
| "#D4A246", | ||
| "#29A7C1", | ||
| "#B89F6A", | ||
| "#D15D64", | ||
| "#4ED079", | ||
| "#A169A4", | ||
| ], | ||
| }, | ||
| { | ||
| key: "horizon", | ||
| i18n_label: "dashboards.widget.color_palettes.horizon", | ||
| light: [ | ||
| "#E76E50", | ||
| "#289D90", | ||
| "#F3A362", | ||
| "#E9C368", | ||
| "#264753", | ||
| "#8A6FA0", | ||
| "#5B9EE5", | ||
| "#7CC474", | ||
| "#BA7DB5", | ||
| "#CF8640", | ||
| ], | ||
| dark: [ | ||
| "#E05A3A", | ||
| "#1D8A7E", | ||
| "#D98B4D", | ||
| "#D1AC50", | ||
| "#3A6B7C", | ||
| "#7D6297", | ||
| "#4D8ACD", | ||
| "#569C64", | ||
| "#C16A8C", | ||
| "#B77436", | ||
| ], | ||
| }, | ||
| { | ||
| key: "earthen", | ||
| i18n_label: "dashboards.widget.color_palettes.earthen", | ||
| light: [ | ||
| "#386641", | ||
| "#6A994E", | ||
| "#A7C957", | ||
| "#E97F4E", | ||
| "#BC4749", | ||
| "#9E2A2B", | ||
| "#80CED1", | ||
| "#5C3E79", | ||
| "#526EAB", | ||
| "#6B5B95", | ||
| ], | ||
| dark: [ | ||
| "#497752", | ||
| "#7BAA5F", | ||
| "#B8DA68", | ||
| "#FA905F", | ||
| "#CD585A", | ||
| "#AF3B3C", | ||
| "#91DFE2", | ||
| "#6D4F8A", | ||
| "#637FBC", | ||
| "#7C6CA6", | ||
| ], | ||
| }, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.