Skip to content

Commit c09cde3

Browse files
authored
Merge pull request #33 from Chronos2-0/chris/health-button-restructure
Chris/health button restructure
2 parents 11ef6e4 + bc5d7e3 commit c09cde3

File tree

6 files changed

+13
-3528
lines changed

6 files changed

+13
-3528
lines changed

app/components/ServiceDetails.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const ServiceDetails = (props) => {
8181
type="button"
8282
onClick={() => {
8383
// document.location.reload()
84+
console.log('should clear data');
8485
setDetails(null);
8586
}}
8687
>

app/components/ServiceOverview.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const ServiceOverview = (props) => {
158158
// Adds returned data to context.
159159
healthdata.detailData = Object.values(JSON.parse(data));
160160
// Updates state. Triggers rerender.
161-
setDetails(<ServiceDetails service={element.currentMicroservice} />);
161+
setDetails(<ServiceDetails service={element.currentMicroservice} setDetails={setDetails} />);
162162
});
163163
}}
164164
>

app/components/ServicesDashboard.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const ServicesDashboard = (props) => {
3636
return buttonStore;
3737
};
3838

39+
const tooltipWriteup = 'Please provide a different database to monitor additional microservice applications.';
40+
3941
return (
4042
<div className="servicesDashboardContainer">
4143
<div className="left">
@@ -44,6 +46,10 @@ const ServicesDashboard = (props) => {
4446
<div className="left-top">
4547
<h2 className="dashboardHeader">
4648
Your Databases
49+
<sup className="tooltip">
50+
&#9432;
51+
<div className="tooltiptext">{tooltipWriteup}</div>
52+
</sup>
4753
</h2>
4854
{renderServiceList(serviceList)}
4955
</div>

app/index.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ margin-top: -100px;
8888

8989
/* Position the tooltip */
9090
position: absolute;
91-
z-index: 1;
91+
z-index: 2;
9292
left: 105%;
9393
top: -5px;
9494
}
@@ -232,6 +232,10 @@ form {
232232
transition: 0.25s;
233233
}
234234

235+
#databsaseList {
236+
z-index: -1;
237+
}
238+
235239
.microserviceBtn {
236240
width: 80%;
237241
height: 50px;

dist/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

dist/index_bundle.js

Lines changed: 0 additions & 3514 deletions
This file was deleted.

0 commit comments

Comments
 (0)