File tree Expand file tree Collapse file tree 6 files changed +24
-170
lines changed Expand file tree Collapse file tree 6 files changed +24
-170
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -102,23 +102,26 @@ const sortedInstallations = computed(() => {
102
102
})
103
103
104
104
// Methods
105
- const getStatusVariant = (status : McpInstallation [' status' ]) => {
106
- switch (status ) {
107
- case ' active' :
108
- return ' default'
109
- case ' error' :
110
- return ' destructive'
111
- case ' installing' :
112
- return ' secondary'
113
- case ' stopped' :
114
- return ' outline'
105
+ const getStatusVariant = (installationType : string ) => {
106
+ switch (installationType ) {
107
+ case ' local' :
108
+ return ' default' // Green/success for local (ready)
109
+ case ' cloud' :
110
+ return ' secondary' // Gray for cloud
115
111
default :
116
112
return ' secondary'
117
113
}
118
114
}
119
115
120
- const getStatusText = (status : McpInstallation [' status' ]) => {
121
- return t (` mcpInstallations.status.${status } ` )
116
+ const getStatusText = (installationType : string ) => {
117
+ switch (installationType ) {
118
+ case ' local' :
119
+ return t (' mcpInstallations.status.ready' )
120
+ case ' cloud' :
121
+ return t (' mcpInstallations.status.cloud' )
122
+ default :
123
+ return t (' mcpInstallations.status.unknown' )
124
+ }
122
125
}
123
126
124
127
const formatDate = (dateString : string ) => {
@@ -252,8 +255,8 @@ const handleInstallServer = () => {
252
255
<p class =" text-sm font-medium leading-none truncate" >
253
256
{{ installation.installation_name }}
254
257
</p >
255
- <Badge :variant =" getStatusVariant(installation.status )" class =" text-xs" >
256
- {{ getStatusText(installation.status ) }}
258
+ <Badge :variant =" getStatusVariant(installation.installation_type )" class =" text-xs" >
259
+ {{ getStatusText(installation.installation_type ) }}
257
260
</Badge >
258
261
</div >
259
262
<p class =" text-sm text-muted-foreground truncate mb-1" >
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ export default {
13
13
installing : 'Installing' ,
14
14
stopped : 'Stopped' ,
15
15
deprecated : 'Deprecated' ,
16
- maintenance : 'Maintenance'
16
+ maintenance : 'Maintenance' ,
17
+ ready : 'Ready' ,
18
+ cloud : 'Cloud' ,
19
+ unknown : 'Unknown'
17
20
} ,
18
21
19
22
table : {
Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ export interface McpInstallation {
26
26
installation_name : string
27
27
server_id : string
28
28
server : McpServer
29
- status : 'active ' | 'error' | 'installing' | 'stopped '
29
+ installation_type : 'local ' | 'cloud '
30
30
user_environment_variables : Record < string , string >
31
31
team_id : string
32
- created_by : string
32
+ user_id : string
33
33
created_at : string
34
34
updated_at : string
35
+ last_used_at : string | null
35
36
}
36
37
37
38
export interface InstallServerRequest {
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ const sortedTeams = computed(() => {
30
30
return [... props .teams ].sort ((a , b ) => a .name .localeCompare (b .name ))
31
31
})
32
32
33
- // Helper function to check if user can manage a specific team
34
- const canManageTeam = (team : TeamWithRole ): boolean => {
35
- return props .userPermissions .includes (' teams.edit' ) && team .role === ' team_admin'
36
- }
37
-
38
33
// Helper function to format date
39
34
const formatDate = (date : Date | string ): string => {
40
35
const dateObj = typeof date === ' string' ? new Date (date ) : date
Original file line number Diff line number Diff line change @@ -70,10 +70,6 @@ const canDeleteTeam = computed(() => {
70
70
! team .value ?.is_default
71
71
})
72
72
73
- const isTeamOwner = computed (() => {
74
- return team .value ?.is_owner === true
75
- })
76
-
77
73
const hasChanges = computed (() => {
78
74
if (! team .value ) return false
79
75
return formData .value .name !== team .value .name ||
You can’t perform that action at this time.
0 commit comments