Skip to content

Commit 7e9ca23

Browse files
authored
Added Hotfix for broken map visualization (#184) (#185)
1 parent ed30e16 commit 7e9ca23

File tree

8 files changed

+49
-18
lines changed

8 files changed

+49
-18
lines changed

.github/workflows/master-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
context: .
7272
file: ./Dockerfile
7373
push: true
74-
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.1.3
74+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.1.4
7575
build-npm:
7676
needs: build-test
7777
runs-on: ubuntu-latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html/
3838
USER nginx
3939
EXPOSE 5005
4040
HEALTHCHECK cmd curl --fail http://localhost:5005 || exit 1
41-
LABEL version="2.1.3"
41+
LABEL version="2.1.4"

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## NeoDash 2.1.3
2+
The 2.1.3 release contains updates to the map visualization, as well as a new Choropleth map report type.
3+
Several usability improvements were also added, including fixing all links into the new documentation pages.
4+
5+
- Extended the map visualization with a heatmap mode & marker clustering.
6+
- Added a Choropleth map visualization report type.
7+
- Added support for auto-linking into a predefined database from https://tools.neo4jlabs.com/.
8+
- Added optional background color setting for reports.
9+
- Added a new 'resize mode' for page layout creation.
10+
- Added support for drawing dates on a time chart (in addition to existing datetime types).
11+
- Fixed broken links in the documentation portal, all in-app links now point to this portal as well.
12+
13+
114
## NeoDash 2.1.2
215
The 2.1.2 release contains some bug fixes and minor improvements to the application.
316

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neodash",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "NeoDash - Neo4j Dashboard Builder",
55
"neo4jDesktop": {
66
"apiVersion": "^1.2.0"

release-notes.history.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## NeoDash 2.1.3
2+
The 2.1.3 release contains updates to the map visualization, as well as a new Choropleth map report type.
3+
Several usability improvements were also added, including fixing all links into the new documentation pages.
4+
5+
- Extended the map visualization with a heatmap mode & marker clustering.
6+
- Added a Choropleth map visualization report type.
7+
- Added support for auto-linking into a predefined database from https://tools.neo4jlabs.com/.
8+
- Added optional background color setting for reports.
9+
- Added a new 'resize mode' for page layout creation.
10+
- Added support for drawing dates on a time chart (in addition to existing datetime types).
11+
- Fixed broken links in the documentation portal, all in-app links now point to this portal as well.
12+
13+
114
## NeoDash 2.1.2
215
The 2.1.2 release contains some bug fixes and minor improvements to the application.
316

release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## NeoDash 2.1.4
2+
Added hotfix for missing function in map visualization (https://github.com/neo4j-labs/neodash/issues/183).
3+
14
## NeoDash 2.1.3
25
The 2.1.3 release contains updates to the map visualization, as well as a new Choropleth map report type.
36
Several usability improvements were also added, including fixing all links into the new documentation pages.

src/chart/MapChart.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,7 @@ const NeoMapChart = (props: ChartProps) => {
218218

219219
if (layerType == "markers") {
220220
// Render a node label tooltip
221-
const renderNodeLabel = (node) => {
222-
const selectedProp = props.selection && props.selection[node.firstLabel];
223-
if (selectedProp == "(id)") {
224-
return node.id;
225-
}
226-
if (selectedProp == "(label)") {
227-
return node.labels;
228-
}
229-
if (selectedProp == "(no label)") {
230-
return "";
231-
}
232-
return node.properties[selectedProp] ? node.properties[selectedProp].toString() : "";
233-
}
234-
221+
235222
var markerMarginTop = "6px";
236223
switch (defaultNodeSize) {
237224
case "large":
@@ -245,6 +232,21 @@ const NeoMapChart = (props: ChartProps) => {
245232
}
246233
}
247234

235+
const renderNodeLabel = (node) => {
236+
const selectedProp = props.selection && props.selection[node.firstLabel];
237+
if (selectedProp == "(id)") {
238+
return node.id;
239+
}
240+
if (selectedProp == "(label)") {
241+
return node.labels;
242+
}
243+
if (selectedProp == "(no label)") {
244+
return "";
245+
}
246+
return node.properties[selectedProp] ? node.properties[selectedProp].toString() : "";
247+
}
248+
249+
248250
function createMarkers() {
249251
// Create markers to plot on the map
250252
let markers = data.nodes.filter(node => node.pos && !isNaN(node.pos[0]) && !isNaN(node.pos[1])).map((node, i) =>

src/modal/AboutModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import BugReportIcon from '@material-ui/icons/BugReport';
1313
export const NeoAboutModal = ({ open, handleClose, getDebugState }) => {
1414
const app = "NeoDash - Neo4j Dashboard Builder";
1515
const email = "[email protected]";
16-
const version = "2.1.3";
16+
const version = "2.1.4";
1717

1818
const downloadDebugFile = () => {
1919
const element = document.createElement("a");

0 commit comments

Comments
 (0)