diff --git a/.env b/.env index 3d4f1572..57130bd4 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ VUE_APP_MOCKED_DATA=true -VUE_APP_GITHUB_ORG= +VUE_APP_GITHUB_ORG=octodemo VUE_APP_GITHUB_TOKEN= \ No newline at end of file diff --git a/src/assets/copilot_metrics_response_sample.json b/src/assets/copilot_metrics_response_sample.json index 270a2ea4..93c62bc3 100644 --- a/src/assets/copilot_metrics_response_sample.json +++ b/src/assets/copilot_metrics_response_sample.json @@ -6,8 +6,8 @@ "total_lines_suggested": 35290, "total_lines_accepted": 5038, "total_active_users": 97, - "total_chat_acceptances": 174, - "total_chat_turns": 119, + "total_chat_acceptances": 157, + "total_chat_turns": 190, "total_active_chat_users": 38, "breakdown": [ { @@ -957,7 +957,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 149, + "total_chat_acceptances": 151, "total_chat_turns": 168, "total_active_chat_users": 7 }, @@ -1510,7 +1510,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 182, + "total_chat_acceptances": 12, "total_chat_turns": 43, "total_active_chat_users": 6 }, @@ -2054,7 +2054,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 57, + "total_chat_acceptances": 27, "total_chat_turns": 43, "total_active_chat_users": 187 }, @@ -2391,7 +2391,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 180, + "total_chat_acceptances": 93, "total_chat_turns": 196, "total_active_chat_users": 146 }, @@ -2755,7 +2755,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 161, + "total_chat_acceptances": 21, "total_chat_turns": 88, "total_active_chat_users": 141 }, @@ -3227,7 +3227,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 71, + "total_chat_acceptances": 142, "total_chat_turns": 159, "total_active_chat_users": 53 }, @@ -3780,7 +3780,7 @@ "active_users": 1 } ], - "total_chat_acceptances": 118, + "total_chat_acceptances": 53, "total_chat_turns": 192, "total_active_chat_users": 34 }, @@ -4387,7 +4387,7 @@ "active_users": 1 } ], - "total_chat_acceptances": 132, + "total_chat_acceptances": 16, "total_chat_turns": 36, "total_active_chat_users": 162 }, @@ -4985,7 +4985,7 @@ "active_users": 3 } ], - "total_chat_acceptances": 108, + "total_chat_acceptances": 68, "total_chat_turns": 118, "total_active_chat_users": 5 }, @@ -5286,7 +5286,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 39, + "total_chat_acceptances": 46, "total_chat_turns": 96, "total_active_chat_users": 9 }, @@ -5623,7 +5623,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 125, + "total_chat_acceptances": 14, "total_chat_turns": 19, "total_active_chat_users": 54 }, @@ -6059,7 +6059,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 42, + "total_chat_acceptances": 142, "total_chat_turns": 194, "total_active_chat_users": 44 }, @@ -6567,7 +6567,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 11, + "total_chat_acceptances": 23, "total_chat_turns": 37, "total_active_chat_users": 90 }, @@ -7030,7 +7030,7 @@ "active_users": 1 } ], - "total_chat_acceptances": 11, + "total_chat_acceptances": 27, "total_chat_turns": 160, "total_active_chat_users": 131 }, @@ -7574,7 +7574,7 @@ "active_users": 1 } ], - "total_chat_acceptances": 15, + "total_chat_acceptances": 1, "total_chat_turns": 16, "total_active_chat_users": 45 }, @@ -7893,7 +7893,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 102, + "total_chat_acceptances": 4, "total_chat_turns": 22, "total_active_chat_users": 115 }, @@ -8257,7 +8257,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 194, + "total_chat_acceptances": 123, "total_chat_turns": 140, "total_active_chat_users": 58 }, @@ -8837,7 +8837,7 @@ "active_users": 1 } ], - "total_chat_acceptances": 125, + "total_chat_acceptances": 52, "total_chat_turns": 178, "total_active_chat_users": 199 }, @@ -9453,7 +9453,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 134, + "total_chat_acceptances": 104, "total_chat_turns": 146, "total_active_chat_users": 136 }, @@ -9961,7 +9961,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 55, + "total_chat_acceptances": 24, "total_chat_turns": 108, "total_active_chat_users": 10 }, @@ -10433,7 +10433,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 7, + "total_chat_acceptances": 39, "total_chat_turns": 43, "total_active_chat_users": 99 }, @@ -10851,7 +10851,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 104, + "total_chat_acceptances": 130, "total_chat_turns": 132, "total_active_chat_users": 173 }, @@ -11053,7 +11053,7 @@ "active_users": 2 } ], - "total_chat_acceptances": 92, + "total_chat_acceptances": 102, "total_chat_turns": 143, "total_active_chat_users": 142 } diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue deleted file mode 100644 index b21c7489..00000000 --- a/src/components/AppHeader.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/components/CopilotChatViewer.vue b/src/components/CopilotChatViewer.vue index 8ba1e9dd..49ccc114 100644 --- a/src/components/CopilotChatViewer.vue +++ b/src/components/CopilotChatViewer.vue @@ -20,7 +20,7 @@
-
Cumulative Number of Lines of Code Accepted
+
Cumulative Number of Acceptances
Over the last 28 days
@@ -33,7 +33,7 @@ -

Total Suggestions Count | Total Acceptances Count

+

Total Acceptances | Total Turns Count

Total Active Copilot Chat Users

diff --git a/src/components/LanguagesBreakdown.vue b/src/components/LanguagesBreakdown.vue index 6cb50c2d..bd1223c2 100644 --- a/src/components/LanguagesBreakdown.vue +++ b/src/components/LanguagesBreakdown.vue @@ -23,25 +23,31 @@ - - - -
Top 5 languages by accepted prompts
-
- -
-
-
+ + + + + +
Top 5 languages by accepted prompts
+
+ +
+
+
+
- - - -
Top 5 languages by acceptance rate
-
- -
-
-
+ + + + +
Top 5 languages by acceptance rate
+
+ +
+
+
+
+

Languages Breakdown

@@ -112,7 +118,6 @@ }; }, setup() { - console.log('LanguagesBreakdown setup'); const metrics = ref([]); @@ -172,7 +177,6 @@ yield* [...this.entries()].sort((a, b) => b[1].acceptanceRate - a[1].acceptanceRate); } - // Get the top 5 languages by acceptance rate const top5LanguagesAcceptanceRate = new Map([...languages.value].slice(0, 5)); @@ -184,7 +188,7 @@ datasets: [ { data: Array.from(top5LanguagesAcceptanceRate.values()).map(language => language.acceptanceRate.toFixed(2)), - backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16'], + backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16', '#FFD700', '#FF69B4', '#D8BFD8', '#DDA0DD', '#EE82EE', '#DA70D6', '#BA55D3', '#9370DB', '#8A2BE2', '#9400D3'], }, ], }; @@ -199,7 +203,7 @@ datasets: [ { data: Array.from(languages.value.values()).map(language => language.acceptedPrompts), - backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16'], + backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16', '#FFD700', '#FF69B4', '#D8BFD8', '#DDA0DD', '#EE82EE', '#DA70D6', '#BA55D3', '#9370DB', '#8A2BE2', '#9400D3'], }, ], }; @@ -212,19 +216,12 @@ datasets: [ { data: Array.from(top5LanguagesAcceptedPrompts.values()).map(language => language.acceptedPrompts), - backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16'], + backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16', '#FFD700', '#FF69B4', '#D8BFD8', '#DDA0DD', '#EE82EE', '#DA70D6', '#BA55D3', '#9370DB', '#8A2BE2', '#9400D3'], }, ], }; - - numberOfLanguages.value = languages.value.size; - - console.log("Number of languages: " + numberOfLanguages.value); - - console.log("LanguagesChartData: " + JSON.stringify(languagesChartData)); - }).catch(error => { console.log(error);