@@ -109,81 +109,118 @@ const WorkspaceDetail: React.FC = () => {
109
109
}
110
110
111
111
return (
112
- < div className = "workspace-detail-container" style = { { padding : '24px' , flex : 1 } } >
112
+ < div
113
+ className = "workspace-detail-container"
114
+ style = { { padding : "24px" , flex : 1 } }
115
+ >
113
116
{ /* Breadcrumb navigation */ }
114
- < Breadcrumb style = { { marginBottom : '16px' } } >
115
- < Breadcrumb . Item onClick = { ( ) => history . push ( '/home/settings/environments' ) } >
117
+ < Breadcrumb style = { { marginBottom : "16px" } } >
118
+ < Breadcrumb . Item
119
+ onClick = { ( ) => history . push ( "/home/settings/environments" ) }
120
+ >
116
121
< HomeOutlined /> Environments
117
122
</ Breadcrumb . Item >
118
- < Breadcrumb . Item onClick = { ( ) => history . push ( `/home/settings/environments/${ environmentId } ` ) } >
123
+ < Breadcrumb . Item
124
+ onClick = { ( ) =>
125
+ history . push ( `/home/settings/environments/${ environmentId } ` )
126
+ }
127
+ >
119
128
< TeamOutlined /> { environment . environmentName }
120
129
</ Breadcrumb . Item >
121
- < Breadcrumb . Item >
122
- { workspace . name }
123
- </ Breadcrumb . Item >
130
+ < Breadcrumb . Item > { workspace . name } </ Breadcrumb . Item >
124
131
</ Breadcrumb >
125
-
126
- { /* Header with workspace name and controls */ }
127
- < div className = "workspace-header" style = { { marginBottom : '24px' , display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' } } >
128
- < div style = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' } } >
129
132
133
+ { /* Workspace header with details and actions */ }
134
+ < Card
135
+ style = { { marginBottom : "24px" } }
136
+ bodyStyle = { { padding : "16px 24px" } }
137
+ >
138
+ < div
139
+ style = { {
140
+ display : "flex" ,
141
+ justifyContent : "space-between" ,
142
+ alignItems : "center" ,
143
+ } }
144
+ >
145
+ { /* Left section - Workspace info */ }
130
146
< div >
131
- < Title level = { 4 } style = { { margin : 0 } } > { workspace . name } </ Title >
132
- < Tag color = { workspace . managed ? 'green' : 'default' } style = { { marginTop : '8px' } } >
133
- { workspace . managed ? 'Managed' : 'Unmanaged' }
134
- </ Tag >
147
+ < Title level = { 3 } style = { { margin : 0 } } >
148
+ { workspace . name }
149
+ </ Title >
150
+ < div
151
+ style = { {
152
+ display : "flex" ,
153
+ alignItems : "center" ,
154
+ marginTop : "8px" ,
155
+ } }
156
+ >
157
+ < Text type = "secondary" style = { { marginRight : "16px" } } >
158
+ ID: { workspace . id }
159
+ </ Text >
160
+ < Tag color = { workspace . managed ? "green" : "default" } >
161
+ { workspace . managed ? "Managed" : "Unmanaged" }
162
+ </ Tag >
163
+ </ div >
135
164
</ div >
136
-
137
- < Space >
138
- < Switch
139
- checked = { workspace . managed }
140
- onChange = { handleToggleManaged }
141
- checkedChildren = "Managed"
142
- unCheckedChildren = "Unmanaged"
143
- />
165
+
166
+ { /* Right section - Actions */ }
167
+ < Space size = "middle" >
168
+ < div style = { { display : "flex" , alignItems : "center" } } >
169
+ < Text style = { { marginRight : "8px" } } > Managed:</ Text >
170
+ < Switch
171
+ checked = { workspace . managed }
172
+ onChange = { handleToggleManaged }
173
+ checkedChildren = "Yes"
174
+ unCheckedChildren = "No"
175
+ />
176
+ </ div >
144
177
< Button
145
178
type = "primary"
146
179
icon = { < CloudUploadOutlined /> }
147
- onClick = { ( ) => openDeployModal ( workspace , workspaceConfig , environment ) }
180
+ onClick = { ( ) =>
181
+ openDeployModal ( workspace , workspaceConfig , environment )
182
+ }
148
183
disabled = { ! workspace . managed }
149
184
>
150
185
Deploy
151
186
</ Button >
187
+ < Button
188
+ icon = { < ArrowLeftOutlined /> }
189
+ onClick = { ( ) =>
190
+ history . push ( `/home/settings/environments/${ environmentId } ` )
191
+ }
192
+ >
193
+ Back
194
+ </ Button >
152
195
</ Space >
153
196
</ div >
197
+ </ Card >
154
198
155
-
156
- < div >
157
- < Button
158
- type = "link"
159
- icon = { < ArrowLeftOutlined /> }
160
- onClick = { ( ) => history . push ( `/home/settings/environments/${ environmentId } ` ) }
161
- style = { { marginLeft : - 12 , marginRight : 8 } }
162
- >
163
- Back to Environment
164
- </ Button >
165
- < Title level = { 3 } > { workspace . name } </ Title >
166
- < Text type = "secondary" > ID: { workspace . id } </ Text >
167
- </ div >
168
- </ div >
169
-
170
199
{ /* Tabs for Apps, Data Sources, and Queries */ }
171
200
< Tabs defaultActiveKey = "apps" >
172
- < TabPane
173
- tab = { < span > < AppstoreOutlined /> Apps</ span > }
201
+ < TabPane
202
+ tab = {
203
+ < span >
204
+ < AppstoreOutlined /> Apps
205
+ </ span >
206
+ }
174
207
key = "apps"
175
208
>
176
209
< DeployableItemsTab
177
210
environment = { environment }
178
211
config = { appsConfig }
179
212
additionalParams = { { workspaceId } }
180
213
title = "Apps in this Workspace"
181
- />
214
+ />
182
215
</ TabPane >
183
-
184
- { /* Update the TabPane in WorkspaceDetail.tsx */ }
185
- < TabPane
186
- tab = { < span > < DatabaseOutlined /> Data Sources</ span > }
216
+
217
+ { /* Update the TabPane in WorkspaceDetail.tsx */ }
218
+ < TabPane
219
+ tab = {
220
+ < span >
221
+ < DatabaseOutlined /> Data Sources
222
+ </ span >
223
+ }
187
224
key = "dataSources"
188
225
>
189
226
< DeployableItemsTab
@@ -193,9 +230,13 @@ const WorkspaceDetail: React.FC = () => {
193
230
title = "Data Sources in this Workspace"
194
231
/>
195
232
</ TabPane >
196
-
197
- < TabPane
198
- tab = { < span > < CodeOutlined /> Queries</ span > }
233
+
234
+ < TabPane
235
+ tab = {
236
+ < span >
237
+ < CodeOutlined /> Queries
238
+ </ span >
239
+ }
199
240
key = "queries"
200
241
>
201
242
< DeployableItemsTab
0 commit comments