forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flowinsight] add flow insight frontend and backend (#522)
* [Flowinsight] add flow insight frontend and backend Signed-off-by: sule <[email protected]> * [Flowinsight] add data flow Signed-off-by: sule <[email protected]> * [Flowinsight] use width to represent speed for data flow Signed-off-by: sule <[email protected]> --------- Signed-off-by: sule <[email protected]>
- Loading branch information
Showing
18 changed files
with
3,907 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 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 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 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
216 changes: 216 additions & 0 deletions
216
python/ray/dashboard/client/src/components/ray-visualization/ElementsPanel.css
This file contains 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,216 @@ | ||
.elements-panel { | ||
width: 300px; | ||
height: 100%; | ||
background-color: #f8f9fa; | ||
border-right: 1px solid #e1e4e8; | ||
display: flex; | ||
flex-direction: column; | ||
overflow: hidden; | ||
} | ||
|
||
.elements-header { | ||
padding: 15px; | ||
border-bottom: 1px solid #e1e4e8; | ||
} | ||
|
||
.elements-header h3 { | ||
margin: 0 0 15px 0; | ||
font-size: 16px; | ||
color: #24292e; | ||
} | ||
|
||
.search-container { | ||
width: 100%; | ||
} | ||
|
||
.search-input { | ||
width: 100%; | ||
padding: 8px 12px; | ||
border: 1px solid #d1d5da; | ||
border-radius: 4px; | ||
font-size: 14px; | ||
box-sizing: border-box; | ||
} | ||
|
||
.tab-container { | ||
display: flex; | ||
border-bottom: 1px solid #e1e4e8; | ||
} | ||
|
||
.tab { | ||
flex: 1; | ||
text-align: center; | ||
padding: 10px; | ||
cursor: pointer; | ||
font-size: 14px; | ||
color: #586069; | ||
transition: all 0.2s ease; | ||
} | ||
|
||
.tab.active { | ||
color: #0366d6; | ||
border-bottom: 2px solid #0366d6; | ||
font-weight: 600; | ||
} | ||
|
||
.tab:hover:not(.active) { | ||
background-color: #f1f2f3; | ||
} | ||
|
||
.elements-table-container { | ||
flex: 1; | ||
overflow-y: auto; | ||
padding: 0; | ||
} | ||
|
||
.elements-table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
font-size: 13px; | ||
} | ||
|
||
.elements-table th { | ||
position: sticky; | ||
top: 0; | ||
background-color: #f8f9fa; | ||
padding: 8px 16px; | ||
text-align: left; | ||
border-bottom: 1px solid #e1e4e8; | ||
color: #586069; | ||
font-weight: 600; | ||
width: 100%; | ||
} | ||
|
||
.elements-table td { | ||
padding: 8px 16px; | ||
border-bottom: 1px solid #eaecef; | ||
width: 100%; | ||
} | ||
|
||
.elements-table tbody tr { | ||
cursor: pointer; | ||
transition: all 0.2s ease; | ||
width: 100%; | ||
} | ||
|
||
.elements-table tbody tr:hover { | ||
background-color: #f1f8ff; | ||
} | ||
|
||
/* Responsive adjustments */ | ||
@media (max-width: 768px) { | ||
.elements-panel { | ||
width: 100%; | ||
height: 300px; | ||
border-right: none; | ||
border-bottom: 1px solid #e1e4e8; | ||
} | ||
} | ||
|
||
/* Actor row styles */ | ||
.actor-row { | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
padding: 0; | ||
border-bottom: 1px solid #eaecef; | ||
width: 100%; | ||
} | ||
|
||
.actor-row td { | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
padding: 8px 16px; | ||
} | ||
|
||
.actor-row td span { | ||
flex: 1; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
cursor: pointer; | ||
} | ||
|
||
/* Expand button */ | ||
.expand-button { | ||
background: none; | ||
border: none; | ||
width: 24px; | ||
height: 24px; | ||
padding: 0; | ||
margin-right: 8px; | ||
border-radius: 50%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
font-size: 16px; | ||
font-weight: bold; | ||
color: #586069; | ||
background-color: #f1f2f3; | ||
transition: all 0.2s ease; | ||
flex-shrink: 0; | ||
} | ||
|
||
.expand-button:hover { | ||
background-color: #e1e4e8; | ||
} | ||
|
||
.expand-button.expanded { | ||
background-color: #0366d6; | ||
color: white; | ||
} | ||
|
||
/* Methods container */ | ||
.methods-container { | ||
width: 100%; | ||
} | ||
|
||
.actor-methods { | ||
width: 100%; | ||
padding: 0; | ||
margin-left: 32px; | ||
} | ||
|
||
.actor-methods h4 { | ||
display: none; | ||
} | ||
|
||
/* Methods table */ | ||
.methods-table { | ||
width: calc(100% - 32px); | ||
border-collapse: separate; | ||
border-spacing: 0; | ||
font-size: 12px; | ||
margin-top: 0; | ||
} | ||
|
||
.methods-table tr { | ||
width: 100%; | ||
} | ||
|
||
.methods-table td { | ||
padding: 6px 16px; | ||
border-bottom: 1px solid #eaecef; | ||
cursor: pointer; | ||
width: 100%; | ||
} | ||
|
||
.methods-table tr:hover { | ||
background-color: #f1f8ff; | ||
} | ||
|
||
/* Selected states */ | ||
.elements-table tbody tr.selected, | ||
.actor-row.selected, | ||
.methods-table tr.selected { | ||
background-color: #e6f7ff; | ||
border-left: 3px solid #1890ff; | ||
} | ||
|
||
.elements-table tbody tr.selected:hover, | ||
.actor-row.selected:hover, | ||
.methods-table tr.selected:hover { | ||
background-color: #e6f7ff; | ||
} |
Oops, something went wrong.