Skip to content

Commit

Permalink
Service map updates (#2230)
Browse files Browse the repository at this point in the history
* adjusting service table and focus search

Signed-off-by: Adam Tackett <[email protected]>

* revert starting zoom to default behavior

Signed-off-by: Adam Tackett <[email protected]>

* add reset button, and enlarge focused node

Signed-off-by: Adam Tackett <[email protected]>

* adjust filter options, so only available are shown in flyout

Signed-off-by: Adam Tackett <[email protected]>

* handle empty items

Signed-off-by: Adam Tackett <[email protected]>

* loading state, borders, no movement, focus

Signed-off-by: Adam Tackett <[email protected]>

* refresh on filter cleared

Signed-off-by: Adam Tackett <[email protected]>

* update focus functionality to set filter, bug fixes

Signed-off-by: Adam Tackett <[email protected]>

* handle clearing focus

Signed-off-by: Adam Tackett <[email protected]>

* hide focus in the flyout

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
  • Loading branch information
TackAdam and Adam Tackett authored Nov 12, 2024
1 parent 58d58a7 commit fdebf79
Show file tree
Hide file tree
Showing 11 changed files with 2,093 additions and 776 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,12 @@ export function getServiceMapGraph(
const percent = (value - ticks[0]) / (ticks[ticks.length - 1] - ticks[0]);
const color = getServiceMapScaleColor(percent, idSelected);
styleOptions = {
borderWidth: 0,
color: relatedServices!.indexOf(service) >= 0 ? `rgba(${color}, 1)` : `rgba(${color}, 0.2)`,
borderWidth: 3,
color: {
border: '#4A4A4A',
background:
relatedServices!.indexOf(service) >= 0 ? `rgba(${color}, 1)` : `rgba(${color}, 0.2)`,
},
font: {
color:
relatedServices!.indexOf(service) >= 0
Expand All @@ -195,10 +199,10 @@ export function getServiceMapGraph(
};
} else {
styleOptions = {
borderWidth: 1.0,
borderWidth: 3,
chosen: false,
color: {
border: '#DADADC',
border: '#4A4A4A',
background: '#FFFFFF',
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ exports[`Service map component renders service map 1`] = `
buttonSize="s"
color="text"
idSelected="latency"
legend="Select metric for service map display"
onChange={[Function]}
options={
Array [
Expand All @@ -34,25 +35,70 @@ exports[`Service map component renders service map 1`] = `
<EuiHorizontalRule
margin="m"
/>
<EuiFlexGroup
justifyContent="spaceBetween"
>
<EuiFlexGroup>
<EuiFlexItem
grow={7}
>
<EuiCompressedFieldSearch
compressed={true}
fullWidth={false}
incremental={false}
isClearable={true}
isInvalid={false}
isLoading={false}
onChange={[Function]}
onSearch={[Function]}
placeholder="Service name"
prepend="Focus on"
value=""
/>
<EuiPopover
anchorPosition="downLeft"
button={
<EuiFieldSearch
append={
<EuiButtonIcon
iconType="refresh"
onClick={[Function]}
size="s"
/>
}
aria-controls="service-select-dropdown"
compressed={true}
fullWidth={false}
incremental={false}
isClearable={true}
isInvalid={false}
isLoading={false}
onChange={[Function]}
onClick={[Function]}
placeholder="Service name"
prepend="Focus on"
value=""
/>
}
closePopover={[Function]}
display="inlineBlock"
hasArrow={true}
id="service-select-dropdown"
isOpen={false}
ownFocus={false}
panelPaddingSize="none"
repositionOnScroll={true}
>
<EuiSelectable
isPreFiltered={false}
listProps={
Object {
"bordered": true,
"style": Object {
"width": "300px",
},
}
}
onChange={[Function]}
options={Array []}
searchProps={
Object {
"autoFocus": true,
"isClearable": true,
"onInput": [Function],
"value": "",
}
}
searchable={true}
singleSelection={true}
>
<Component />
</EuiSelectable>
</EuiPopover>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer />
Expand All @@ -67,7 +113,28 @@ exports[`Service map component renders service map 1`] = `
"position": "relative",
}
}
/>
>
<div
style={
Object {
"alignItems": "center",
"backgroundColor": "rgba(255, 255, 255, 0.8)",
"bottom": 0,
"display": "flex",
"justifyContent": "center",
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
"zIndex": 1000,
}
}
>
<EuiLoadingSpinner
size="xl"
/>
</div>
</div>
</EuiFlexItem>
<EuiFlexItem
grow={false}
Expand Down
Loading

0 comments on commit fdebf79

Please sign in to comment.