Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class DailyActivityChartComponent implements OnInit, OnChanges {
'IDE Accepts': this.targets?.user.dailyAcceptances.target || 0,
'IDE Chats': this.targets?.user.dailyChatTurns.target || 0,
'.COM Chats': this.targets?.user.dailyDotComChats.target || 0,
'IDE Acceptance Rate': 100 * ( this.targets?.user.dailyAcceptances.target || 0) / (this.targets?.user.dailySuggestions.target || 0), // NEW
'Pull Requests': this.targets?.user.weeklyPRSummaries.target || 0 / 5 // 5 days in a week
};

Expand All @@ -46,7 +45,6 @@ export class DailyActivityChartComponent implements OnInit, OnChanges {
'IDE Accepts': [15, 40],
'IDE Chats': [25, 40],
'.COM Chats': [4, 8],
'IDE Acceptance Rate': [20, 40], // NEW – percentage range (example)
'Pull Requests': [1, 3] // NEW example range
};

Expand Down Expand Up @@ -143,7 +141,6 @@ export class DailyActivityChartComponent implements OnInit, OnChanges {
series: [
{ name: 'IDE Suggestions', type: 'spline', data: [], zIndex: 5 },
{ name: 'IDE Accepts', type: 'spline', data: [], zIndex: 4 },
{ name: 'IDE Acceptance Rate', type: 'spline', data: [], zIndex: 3 },
{ name: 'IDE Chats', type: 'spline', data: [], color: '#00E676', zIndex: 5 },
{ name: '.COM Chats', type: 'spline', data: [], color: '#E91E63', zIndex: 4 },
{ name: 'Pull Requests', type: 'spline', data: [], color: '#9C27B0', zIndex: 3 }
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/app/services/highcharts.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,6 @@ export class HighchartsService {
name: 'IDE Accepts',
data: [] as CustomHighchartsPointOptions[]
};
// NEW: acceptance-rate (% of suggestions accepted)
const dailyActiveIdeAcceptanceRateSeries = {
...initialSeries,
name: 'IDE Acceptance Rate',
data: [] as CustomHighchartsPointOptions[]
};
const dailyActiveIdeChatSeries = {
...initialSeries,
name: 'IDE Chats',
Expand Down Expand Up @@ -607,17 +601,6 @@ export class HighchartsService {
currentMetrics.copilot_ide_code_completions.total_engaged_users),
raw: date
});

// NEW: acceptance-rate (%)
const sugg = currentMetrics.copilot_ide_code_completions.total_code_suggestions;
const acc = currentMetrics.copilot_ide_code_completions.total_code_acceptances;
if (sugg > 0) {
(dailyActiveIdeAcceptanceRateSeries.data).push({
x: new Date(date).getTime(),
y: +(acc / sugg * 100).toFixed(2),
raw: date
});
}
}
if (currentMetrics?.copilot_ide_chat) {
(dailyActiveIdeChatSeries.data).push({
Expand Down Expand Up @@ -646,7 +629,6 @@ export class HighchartsService {
series: [
dailyActiveIdeCompletionsSeries,
dailyActiveIdeAcceptsSeries,
dailyActiveIdeAcceptanceRateSeries, // NEW series added to output
dailyActiveIdeChatSeries,
dailyActiveDotcomChatSeries,
dailyActiveDotcomPrSeries // ← was commented out
Expand Down