Skip to content

Commit d62337b

Browse files
nielsdejongJipSogetiNiels de JongNiels de Jong
authored
2.10 (#75)
* Updated version number * Expandable charts when not in edit mode * Apply global parameter value to selection chart All other charts apply the current global parameter value in their Cypher queries. To keep consistent also apply the state to the parameter selection chart. * Get parameter value earlier to apply as default state * Minor fixes to chart interface, reorganized code to be able to avoid uninitialized variables * Added example on how to use maps when returning dictionaries * Made connection modal dismissable when connected to Neo4j * Made fullscreen reports work for maps and lines, now optionally available through dashboard settings * Fixed load dashboard functionality to automatically pick up the selection stored in the dashboard * Added button for returning to main menu screen * Fixed z-index for fullscreen mode * Revert some changes and add more comments * Resolved rendering issues when loading parameter selection reports with prepopulated parameters * Show placeholder when no query is specified * Reset extra parameters on page load for parameter select report * Pass Parameter Select value via hash to iframe without re-rendering (#49) * Pass Parameter Select value via hash to iframe without re-rendering * Pass all global variables to iframe via hash parameter Configurable via advanced settings on iframe chart. * Added example iFrame to documentation modal Co-authored-by: Niels de Jong <[email protected]> * Cleanup of global dashboard settings menu * Improved user interface and examples * Graph modal (#51) * Show modal when clicking node/relation in graph with its properties * Made node property hover & inspection of elements optional through advanced report settings Co-authored-by: Niels de Jong <[email protected]> * Resolved bug in rendering graphs with node pairs that have relationships in two directions between them * Added option to manually specify node labels/property names in selection reports (for large databases) * Updated release notes * Added debug report button. Fixed table size issues by upgrading to latest datagrid version * Fixed custom column width issue * Fixed example documentation with new styling * Support rendering native and custom types in Data Grid (#54) * Support rendering native and custom types in Data Grid * Update TableChart.tsx * Resolved error with slow queries for single value reports * Graph nodes stick after dragging, added option to store fixed graph layouts in dashboards * Added experimental graph layouts * Started adding manual timeout config, property selection for rel types, fixed alignment for graph inspect modal * Finalized config for custom timeouts * Fixed invalid lowercasing of share URL generation * Added new types of parameter selection reports (relationship/free text) * Updated all dependencies to latest version, made project work with node 17 * Fixed typo * Updated README * Clean up of dependencies, removed merge artifacts * Default fullscreen option for reports, graphs fit to canvas automatically, saving dashboards is now checked * Added tiny report sizes * Fixed graph hover to match other app styling * Resolved merge artifacts * Added maximizing of card settings * Added transposing option for tables * Optimized cypher editor * Updated dockerfile and bash scripts * Fixed incorrect pagesizes for tables * Added pie charts. Improved styling for graph inspection modals * Updated release notes and README. Fixed deploy to AWS script * Fixed npm publish script to match new code structure * Added time chart support for line charts. Minor styling tweaks for the default graph visualization * WIP on SSO framework. Added auto-run disabled reports. Fixed bug when rendering zero value floats * Fixed autorun setting for reports, rendering values in transposed columns * Changed base image to node * Updated dockerfile to create a smaller, security-vetted image * Added docker file for creating ad-hoc standalone deployments * cleaned up docker build/run files * Changed example values for docker run scripts * Changed example values for docker run scripts * Updated README, clean up docker scripts * Fixed docker files, line chart views * Added drilldown FAB to graph view * Updated default font size for single number reports * Added saving/loading dashboards to/from different databases * Enabled loading/saving/sharing dashboards from other databases * Fixed merge artifacts that broke collection rendering in tables * updated release notes, permissions on bash files * Hotfix for config reading in Neo4j Desktop * Hotfix for missing config in Neo4j Desktop * 2.0.8 hotfix * Hotfix for broken custom values in transposed table views * Hotfixes for 2.0.10 Co-authored-by: JipSogeti <[email protected]> Co-authored-by: Niels de Jong <[email protected]> Co-authored-by: Niels de Jong <[email protected]>
1 parent 0909e46 commit d62337b

File tree

6 files changed

+15
-28
lines changed

6 files changed

+15
-28
lines changed

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.0.9",
3+
"version": "2.0.10",
44
"description": "NeoDash - Neo4j Dashboard Builder",
55
"neo4jDesktop": {
66
"apiVersion": "^1.2.0"

release-notes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
## NeoDash 2.0.8 / 2.0.9
1+
## NeoDash 2.0.8 / 2.0.9 / 2.0.10
2+
Fixed to supplement 2.0.7:
23
- Hotfix for missing config file in Neo4j Desktop causing startup issue.
34
- Hotfix for application crashes caused by rendering custom data types in transposed table views.
5+
- Hotfix for object rendering in tables & line-chart type detection.
46

57
## NeoDash 2.0.7
68
Application functionality:

src/chart/TableChart.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
11
import React from 'react';
22
import { DataGrid } from '@mui/x-data-grid';
33
import { ChartProps } from './Chart';
4-
import { getRecordType, getRendererForValue, RenderSubValue, valueIsNode, valueIsRelationship } from '../report/RecordProcessing';
5-
import { Chip, Tooltip, withStyles } from '@material-ui/core';
6-
7-
function addDirection(relationship, start) {
8-
relationship.direction = (relationship.start.low == start.identity.low);
9-
return relationship;
10-
}
11-
12-
const rightRelationship = "polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, 100% calc(100% - 50%), calc(100% - 10px) 100%, 0px 100%, 0% calc(100% - 0px), 0% 0px)"
13-
const leftRelationship = "polygon(10px 0%, calc(100% - 0%) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 0%) 100%, 10px 100%, 0% calc(100% - 50%), 0% 50%)"
14-
15-
const HtmlTooltip = withStyles((theme) => ({
16-
tooltip: {
17-
color: 'white',
18-
fontSize: theme.typography.pxToRem(12),
19-
border: '1px solid #fcfffa',
20-
},
21-
}))(Tooltip);
4+
import { getRecordType, getRendererForValue, rendererForType, RenderSubValue, valueIsNode, valueIsRelationship } from '../report/RecordProcessing';
225

236

247
function ApplyColumnType(column, value) {
258
const renderer = getRendererForValue(value);
26-
const columnProperties = (renderer ? {type:renderer.type, renderCell: renderer.renderValue} : customColumnProperties["string"]);
9+
const columnProperties = (renderer ? {type:renderer.type, renderCell: renderer.renderValue} : rendererForType["string"]);
2710

2811
if (columnProperties) {
2912
column = { ...column, ...columnProperties }

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.0.9";
16+
const version = "2.0.10";
1717

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

src/report/RecordProcessing.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ export function mapSingleRecord(record, fieldLookup, keys, defaultKey,
120120

121121
numericOrDatetimeFieldNames.forEach(numericOrDatetimeFieldName => {
122122
const value = record._fields[record._fieldLookup[numericOrDatetimeFieldName]];
123-
const className = value && value.__proto__.constructor.name;
124-
if (className == "DateTime") {
123+
const className = getRecordType(value);
124+
if (className == "dateTime") {
125125
record._fields[record._fieldLookup[numericOrDatetimeFieldName]] = value.toString();
126-
}else if (className !== "Integer" && className !== "Number"){
126+
}else if (className !== "integer" && className !== "number"){
127127
record = null;
128128
}
129129
})
@@ -254,6 +254,7 @@ export function valueIsPath(value) {
254254
}
255255

256256
export function valueIsObject(value) {
257+
// TODO - this will not work in production builds. Need alternative.
257258
const className = value.__proto__.constructor.name;
258259
return className == "Object";
259260
}
@@ -375,7 +376,7 @@ export function RenderSubValue(value, key = 0) {
375376
return RenderString(value);
376377
}
377378

378-
const rendererForType: any = {
379+
export const rendererForType: any = {
379380
"node": {
380381
type: 'string',
381382
renderValue: (c) => RenderNode(c.value),

tools/push-docker-image.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
docker build --no-cache . -t neodash
12
docker image tag neodash nielsdejong/neodash
2-
docker image tag neodash nielsdejong/neodash:2.0.8
3+
docker image tag neodash nielsdejong/neodash:2.0.10
34
docker push nielsdejong/neodash:latest
4-
docker push nielsdejong/neodash:2.0.8
5+
docker push nielsdejong/neodash:2.0.10

0 commit comments

Comments
 (0)