Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/nice-bottles-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ensembleui/react-kitchen-sink": patch
"@ensembleui/react-runtime": patch
---

Added support for nested menu items in menu
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ dist
# misc
.DS_Store
*.pem
.vscode

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
Expand All @@ -42,3 +39,7 @@ yarn-error.log*

# schemas
apps/preview/public/schema/react/*.json

.env

.env.local
3 changes: 0 additions & 3 deletions apps/kitchen-sink/src/ensemble/screens/home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ View:
console.log('>>> secret variable >>>', ensemble.secrets.dummyOauthSecret)
ensemble.storage.set('products', []);
ensemble.invokeAPI('getDummyProducts').then((res) => ensemble.storage.set('products', (res?.body?.users || []).map((i) => ({ ...i, name: i.firstName + ' ' + i.lastName }))));
const res = await ensemble.invokeAPI('getDummyNumbers')
await new Promise((resolve) => setTimeout(resolve, 5000))
return res
onComplete:
executeCode: |
console.log('API triggered', result)
Expand Down
21 changes: 17 additions & 4 deletions apps/kitchen-sink/src/ensemble/screens/menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ ViewGroup:
page: layouts
- label: Actions
icon: CodeOutlined
page: actions
children:
- label: Actions example
icon: CodeOutlined
page: actions
- label: Test Actions
icon: WidgetsOutlined
page: test_actions
- label: Forms
icon: CodeOutlined
page: forms
Expand Down Expand Up @@ -74,9 +80,16 @@ ViewGroup:
- label: Hidden Page
icon: HelpOutlineOutlined
visible: false
- label: Test Actions
icon: WidgetsOutlined
page: test_actions
- label: Actions
icon: CodeOutlined
expanded: true
children:
- label: Actions example
icon: CodeOutlined
page: actions1
- label: Test Actions
icon: WidgetsOutlined
page: test_actions1
- customItem:
widget:
Button:
Expand Down
Loading