Skip to content

Commit de65905

Browse files
authored
Merge pull request #25 from antonbricks/improved-structure
Improved structure
2 parents 2719c27 + 1eb4b76 commit de65905

File tree

21 files changed

+1294
-694
lines changed

21 files changed

+1294
-694
lines changed

dash/app.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def create_sidebar():
2929
# Define category and page order
3030
sidebar_structure = {
3131
'Tables': [
32-
'Read a table',
33-
'Edit a table'
32+
'Read a Delta table',
33+
'Edit a Delta table'
3434
],
3535
'Volumes': [
3636
'Upload a file',
@@ -39,6 +39,7 @@ def create_sidebar():
3939
'AI / ML': [
4040
'Invoke a model',
4141
'Run vector search',
42+
'Connect an MCP server',
4243
'Invoke a multi-modal LLM'
4344
],
4445
'Business Intelligence': [
@@ -53,21 +54,22 @@ def create_sidebar():
5354
'Connect'
5455
],
5556
'Authentication': [
56-
'Get current user',
57-
'Retrieve a secret'
57+
'Get current user'
5858
],
59-
'External Services': [
60-
'External Connections'
59+
'External services': [
60+
'External connections',
61+
'Retrieve a secret'
6162
]
6263
}
6364

6465
# Define page-specific icons
6566
page_icons = {
66-
'Read a table': 'material-symbols:table-view',
67-
'Edit a table': 'material-symbols:edit-document',
67+
'Read a Delta table': 'material-symbols:table-view',
68+
'Edit a Delta table': 'material-symbols:edit-document',
6869
'Upload a file': 'material-symbols:upload',
6970
'Download a file': 'material-symbols:download',
7071
'Invoke a model': 'material-symbols:model-training',
72+
'Connect an MCP server': 'material-symbols:modeling',
7173
'Invoke a multi-modal LLM': 'material-symbols:sensors',
7274
'Run vector search': 'material-symbols:search',
7375
'AI/BI Dashboard': 'material-symbols:dashboard',
@@ -77,7 +79,7 @@ def create_sidebar():
7779
'Connect': 'material-symbols:link',
7880
'Get current user': 'material-symbols:fingerprint',
7981
'Retrieve a secret': 'material-symbols:key',
80-
'External Connections': 'material-symbols:link'
82+
'External connections': 'material-symbols:link'
8183
}
8284

8385
# Group pages by category

dash/pages/book_intro.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
def create_group_cards():
11-
# Define category metadata with consistent order and grouping
1211
category_metadata = {
1312
"Tables": {
1413
"icon": "material-symbols:table",
@@ -20,7 +19,7 @@ def create_group_cards():
2019
},
2120
"AI / ML": {
2221
"icon": "material-symbols:science",
23-
"views": ["Invoke a model", "Run vector search", "Invoke a multi-modal LLM"],
22+
"views": ["Invoke a model", "Run vector search", "Connect an MCP server", "Invoke a multi-modal LLM"],
2423
},
2524
"Business Intelligence": {
2625
"icon": "material-symbols:analytics",
@@ -33,16 +32,15 @@ def create_group_cards():
3332
"Compute": {"icon": "material-symbols:computer", "views": ["Connect"]},
3433
"Authentication": {
3534
"icon": "material-symbols:lock",
36-
"views": ["Get current user", "Retrieve a secret"],
35+
"views": ["Get current user"],
3736
},
38-
"External Services": {
37+
"External services": {
3938
"icon": "material-symbols:link",
40-
"views": ["External Connections"],
39+
"views": ["External connections", "Retrieve a secret"],
4140
},
4241
}
4342

4443
cards = []
45-
# Create cards in specified order
4644
for category, metadata in category_metadata.items():
4745
category_pages = [
4846
page
@@ -118,7 +116,7 @@ def layout():
118116
dbc.Col([
119117
html.H1("📖 Databricks Apps Cookbook 🍳", className="mb-3"),
120118
html.P([
121-
"**Welcome to the Databricks Apps Cookbook!**",
119+
"Welcome to the Databricks Apps Cookbook!",
122120
html.Br(),
123121
html.Br(),
124122
"Are you ready to serve some tasty apps to your users? You're in the right place!",

0 commit comments

Comments
 (0)