6
6
Card ,
7
7
Tabs ,
8
8
Button ,
9
- Breadcrumb ,
10
9
Space ,
11
10
Tag ,
12
11
Switch ,
@@ -32,6 +31,7 @@ import { workspaceConfig } from "./config/workspace.config";
32
31
import AppsTab from "./components/AppsTab" ;
33
32
import DataSourcesTab from "./components/DataSourcesTab" ;
34
33
import QueriesTab from "./components/QueriesTab" ;
34
+ import ModernBreadcrumbs from "./components/ModernBreadcrumbs" ;
35
35
36
36
const { Title, Text } = Typography ;
37
37
const { TabPane } = Tabs ;
@@ -79,25 +79,35 @@ const WorkspaceDetail: React.FC = () => {
79
79
) ;
80
80
}
81
81
82
+ const breadcrumbItems = [
83
+ {
84
+ key : 'environments' ,
85
+ title : (
86
+ < span >
87
+ < HomeOutlined /> Environments
88
+ </ span >
89
+ ) ,
90
+ onClick : ( ) => history . push ( "/setting/environments" )
91
+ } ,
92
+ {
93
+ key : 'environment' ,
94
+ title : (
95
+ < span >
96
+ < TeamOutlined /> { environment . environmentName }
97
+ </ span >
98
+ ) ,
99
+ onClick : ( ) => history . push ( `/setting/environments/${ environment . environmentId } ` )
100
+ } ,
101
+ {
102
+ key : 'workspace' ,
103
+ title : workspace . name
104
+ }
105
+ ] ;
106
+
82
107
return (
83
108
< div className = "workspace-detail-container" style = { { padding : "24px" , flex : 1 } } >
84
- { /* Breadcrumb navigation */ }
85
- < Breadcrumb style = { { marginBottom : "16px" } } >
86
- < Breadcrumb . Item >
87
- < span style = { { cursor : "pointer" } } onClick = { ( ) => history . push ( "/setting/environments" ) } >
88
- < HomeOutlined /> Environments
89
- </ span >
90
- </ Breadcrumb . Item >
91
- < Breadcrumb . Item >
92
- < span
93
- style = { { cursor : "pointer" } }
94
- onClick = { ( ) => history . push ( `/setting/environments/${ environment . environmentId } ` ) }
95
- >
96
- < TeamOutlined /> { environment . environmentName }
97
- </ span >
98
- </ Breadcrumb . Item >
99
- < Breadcrumb . Item > { workspace . name } </ Breadcrumb . Item >
100
- </ Breadcrumb >
109
+ { /* Modern Breadcrumbs navigation */ }
110
+ < ModernBreadcrumbs items = { breadcrumbItems } />
101
111
102
112
{ /* Workspace header with details and actions */ }
103
113
< Card style = { { marginBottom : "24px" } } bodyStyle = { { padding : "16px 24px" } } >
@@ -158,14 +168,13 @@ const WorkspaceDetail: React.FC = () => {
158
168
</ Card >
159
169
160
170
{ /* Tabs for Apps, Data Sources, and Queries */ }
161
- < Tabs defaultActiveKey = "apps" >
162
- // Replace the Apps TabPane in WorkspaceDetail.tsx with this:
163
- < TabPane tab = { < span > < AppstoreOutlined /> Apps</ span > } key = "apps" >
164
- < AppsTab
165
- environment = { environment }
166
- workspace = { workspace }
167
- />
168
- </ TabPane >
171
+ < Tabs defaultActiveKey = "apps" className = "modern-tabs" type = "card" >
172
+ < TabPane tab = { < span > < AppstoreOutlined /> Apps</ span > } key = "apps" >
173
+ < AppsTab
174
+ environment = { environment }
175
+ workspace = { workspace }
176
+ />
177
+ </ TabPane >
169
178
170
179
< TabPane tab = { < span > < DatabaseOutlined /> Data Sources</ span > } key = "dataSources" >
171
180
< DataSourcesTab
0 commit comments