File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 8
8
<div class =" spacing-25" />
9
9
<div class =" text-h6 mb-1" >Number of {{ breakdownDisplayNamePlural }}</div >
10
10
<div class =" text-caption" >
11
- Over the last 28 days
11
+ {{ dateRangeDescription }}
12
12
</div >
13
13
<p class =" text-h4" >{{ numberOfBreakdowns }}</p >
14
14
</div >
@@ -122,6 +122,10 @@ export default defineComponent({
122
122
breakdownKey: {
123
123
type: String ,
124
124
required: true
125
+ },
126
+ dateRangeDescription: {
127
+ type: String ,
128
+ default: ' Over the last 28 days'
125
129
}
126
130
},
127
131
setup(props ) {
Original file line number Diff line number Diff line change 34
34
35
35
</v-toolbar >
36
36
37
- <!-- Date Range Selector -->
37
+ <!-- Date Range Selector - Hidden for seats tab - ->
38
38
<DateRangeSelector
39
+ v-if =" tab !== 'seat analysis'"
39
40
:loading =" isLoading"
40
41
@date-range-changed =" handleDateRangeChange"
41
42
/>
43
+
44
+ <!-- Organization info for seats tab -->
45
+ <div v-if =" tab === 'seat analysis'" class =" organization-info" >
46
+ <v-card flat class =" pa-3 mb-2" >
47
+ <div class =" text-body-2 text-center" >
48
+ Displaying data for organization: <strong >{{ displayName }}</strong >
49
+ </div >
50
+ </v-card >
51
+ </div >
42
52
43
53
<!-- API Error Message -->
44
54
<div v-show =" apiError && !signInRequired" class =" error-message" v-text =" apiError" />
62
72
<v-window-item v-for =" item in tabItems" :key =" item" :value =" item" >
63
73
<v-card flat >
64
74
<MetricsViewer v-if =" item === itemName" :metrics =" metrics" :date-range-description =" dateRangeDescription" />
65
- <BreakdownComponent v-if =" item === 'languages'" :metrics =" metrics" :breakdown-key =" 'language'" />
66
- <BreakdownComponent v-if =" item === 'editors'" :metrics =" metrics" :breakdown-key =" 'editor'" />
75
+ <BreakdownComponent v-if =" item === 'languages'" :metrics =" metrics" :breakdown-key =" 'language'" :date-range-description = " dateRangeDescription " />
76
+ <BreakdownComponent v-if =" item === 'editors'" :metrics =" metrics" :breakdown-key =" 'editor'" :date-range-description = " dateRangeDescription " />
67
77
<CopilotChatViewer v-if =" item === 'copilot chat'" :metrics =" metrics" :date-range-description =" dateRangeDescription" />
68
78
<SeatsAnalysisViewer v-if =" item === 'seat analysis'" :seats =" seats" />
69
79
<ApiResponse
@@ -293,4 +303,9 @@ export default defineNuxtComponent({
293
303
margin-left : 8px ;
294
304
border : 2px solid white ;
295
305
}
306
+
307
+ .organization-info {
308
+ background-color : #f5f5f5 ;
309
+ border-left : 4px solid #1976d2 ;
310
+ }
296
311
</style >
You can’t perform that action at this time.
0 commit comments