-
-
Notifications
You must be signed in to change notification settings - Fork 9
209 scatterplot on seats page that displays devs providing estimates on a grid #237
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -72,7 +72,40 @@ export class CopilotSeatComponent implements OnInit { | |||||||
| ] | ||||||||
| } | ||||||||
| } | ||||||||
| _chartOptions?: Highcharts.Options; | ||||||||
| chart2Options: Highcharts.Options = { | ||||||||
| title: { | ||||||||
| text: "Seat Activity by Editor" | ||||||||
| }, | ||||||||
| xAxis: { | ||||||||
| type: "datetime" | ||||||||
| }, | ||||||||
| legend: { | ||||||||
| enabled: false | ||||||||
| }, | ||||||||
| series: [ | ||||||||
| { | ||||||||
| name: "Seat Activity", | ||||||||
| type: "gantt", | ||||||||
| data: [] | ||||||||
| } | ||||||||
| ], | ||||||||
| plotOptions: { | ||||||||
| gantt: { | ||||||||
| borderWidth: 0, | ||||||||
| borderColor: undefined, | ||||||||
| dataLabels: { | ||||||||
| enabled: true | ||||||||
| } | ||||||||
| } | ||||||||
| }, | ||||||||
| tooltip: {}, | ||||||||
| yAxis: { | ||||||||
| categories: [ | ||||||||
| "vscode", | ||||||||
| "copilot-summarization-pr" | ||||||||
| ] | ||||||||
| } | ||||||||
| } | ||||||||
| id?: number | string; | ||||||||
| seat?: Seat; | ||||||||
| seatActivity?: Seat[]; | ||||||||
|
|
@@ -91,29 +124,20 @@ export class CopilotSeatComponent implements OnInit { | |||||||
| ) { } | ||||||||
|
|
||||||||
| ngOnInit() { | ||||||||
| // Extract the seat ID from the URL route parameters | ||||||||
| const id = this.activatedRoute.snapshot.paramMap.get('id'); | ||||||||
| if (!id) return; // Exit if no ID is found | ||||||||
| if (!id) return; | ||||||||
| this.id = id; | ||||||||
|
|
||||||||
| // Load the initial data with default timerange | ||||||||
| this.loadData(); | ||||||||
| } | ||||||||
|
|
||||||||
| /** | ||||||||
| * Loads seat activity data based on the selected time range | ||||||||
| */ | ||||||||
| loadData() { | ||||||||
| if (!this.id) return; | ||||||||
|
|
||||||||
| // Show loading indicator - SET TO TRUE at the start of data loading | ||||||||
| this.loading = true; | ||||||||
|
||||||||
| this.loading = true; | |
| this.loading = true; | |
| this.cdr.detectChanges(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The chart2Options initialization duplicates chartOptions with identical configuration (gantt type, same title, same structure). Since chart2Options is meant to display a scatter chart, this initialization should be updated to reflect scatter chart configuration or removed if the configuration will be completely replaced by the transformSeatActivityToScatter result.