-
Notifications
You must be signed in to change notification settings - Fork 17
feat: UI dashboard #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: UI dashboard #176
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
762457b
WIP: UI dashboard
mattrunyon a885eb2
WIP kludge
mattrunyon 28c879d
Loading dashboard from redux
mattrunyon 56293c4
Cleanup
mattrunyon 6a80699
Address review comments
mattrunyon b87f4c4
Fix render update issue
mattrunyon 970b0e8
Change ref to memo
mattrunyon bb80605
Add detecting mixed dashboards and other types
mattrunyon 07ea71c
Add JS unit tests
mattrunyon 3232ff3
Address review comments
mattrunyon 99c9717
Fix dashboard loading with new web-client-ui packages
mattrunyon 12e9dde
Merge remote-tracking branch 'upstream/main' into ui-dashboard
mattrunyon 8f20055
Fix package-lock
mattrunyon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
| from ..elements import BaseElement | ||
|
|
||
|
|
||
| def column(*children: Any, width: float | None = None, **kwargs: Any): | ||
| """ | ||
| A column is a container that can be used to group elements. | ||
| Each element will be placed below its prior sibling. | ||
|
|
||
| Args: | ||
| children: Elements to render in the column. | ||
| width: The percent width of the column relative to other children of its parent. If not provided, the column will be sized automatically. | ||
| """ | ||
| return BaseElement( | ||
| "deephaven.ui.components.Column", *children, width=width, **kwargs | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
| from ..elements import DashboardElement | ||
|
|
||
|
|
||
| def dashboard(*children: Any, **kwargs: Any): | ||
| """ | ||
| A dashboard is the container for an entire layout. | ||
|
|
||
| Args: | ||
| children: Elements to render in the dashboard. Must have only 1 root element. | ||
| """ | ||
| return DashboardElement(*children, **kwargs) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
| from ..elements import BaseElement | ||
|
|
||
|
|
||
| def row(*children: Any, height: float | None = None, **kwargs: Any): | ||
| """ | ||
| A row is a container that can be used to group elements. | ||
| Each element will be placed to the right of its prior sibling. | ||
|
|
||
| Args: | ||
| children: Elements to render in the row. | ||
| height: The percent height of the row relative to other children of its parent. If not provided, the row will be sized automatically. | ||
| """ | ||
| return BaseElement( | ||
| "deephaven.ui.components.Row", *children, height=height, **kwargs | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.