Skip to content

Commit 62e55fb

Browse files
nielsdejongJipSogetiNiels de Jong
authored
2.0.5 Release (#56)
* 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 Co-authored-by: JipSogeti <[email protected]> Co-authored-by: Niels de Jong <[email protected]>
1 parent e87885a commit 62e55fb

14 files changed

+379
-124
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neodash",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "NeoDash - Neo4j Dashboard Builder",
55
"neo4jDesktop": {
66
"apiVersion": "^1.2.0"
@@ -64,13 +64,16 @@
6464
},
6565
"dependencies": {
6666
"@babel/runtime": "^7.14.6",
67+
"@emotion/react": "^11.7.1",
68+
"@emotion/styled": "^11.6.0",
6769
"@material-ui/core": "^4.12.3",
6870
"@material-ui/icons": "^4.11.2",
6971
"@material-ui/lab": "^4.0.0-alpha.60",
7072
"@material-ui/styles": "^4.11.4",
7173
"@material-ui/system": "^4.12.1",
7274
"@material-ui/utils": "^4.11.2",
73-
"@mui/x-data-grid": "^4.0.1",
75+
"@mui/material": "^5.2.7",
76+
"@mui/x-data-grid": "^5.2.1",
7477
"@react-leaflet/core": "1.0.2",
7578
"codemirror": "^5.63.3",
7679
"cypher-codemirror": "^1.1.7",

public/embed-test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</head>
77

88
<body>
9-
<p>I am an iFrame of the page located at <a href="http://neodash.graphapp.io/embed-test.html" target="_blank">http://neodash.graphapp.io/embed-test.html</a></p>
9+
<p>I am an iFrame of the page located at <a href="https://neodash.graphapp.io/embed-test.html" target="_blank">https://neodash.graphapp.io/embed-test.html</a></p>
1010
<p>I'm embedded directly into a dashboard, and dynamically passed the user-made parameter selections.</p>
1111
<p>I will not refresh when selections are updated, but, I can see variables change.</p>
1212
<p>You can use me to embed external visualizations that are updated together with other charts.</p>

public/style.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
.MuiChip-root:before {
5454
border: none !important;
5555
}
56-
.MuiDataGrid-columnsContainer {
56+
/* .MuiDataGrid-columnHeaders {
5757
min-height: 32px !important;
5858
max-height: 32px !important;
5959
line-height: 32px !important;
60-
/* border-top: 1px solid rgba(224, 224, 224, 1); */
6160
}
61+
6262
.MuiDataGrid-columnSeparator{
6363
height: 32px;
6464
}
@@ -70,6 +70,9 @@
7070
overflow-y: hidden !important;
7171
overflow-x: hidden !important;
7272
}
73+
.MuiTablePagination-root{
74+
margin-top: -10px;
75+
} */
7376
.MuiTablePagination-root{
7477
margin-top: -10px;
7578
}

release-notes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
2+
## NeoDash 2.0.5
3+
Graph report:
4+
- Fixed node position after dragging nodes.
5+
- Added option to 'lock' graph views, storing the current positions of the nodes in the graph.
6+
- Added experimental graph layouts.
7+
8+
Table:
9+
- Fixed bug where the report freezes for very wide tables.
10+
- Added support for rendering native/custom Neo4j types in the table.
11+
12+
Parameter select:
13+
- Fixed issue where the dashboard crashes for slow connections.
14+
15+
Editor:
16+
- Added button to create a debug file from the 'About' screen.
17+
18+
119
## NeoDash 2.0.4
220
New features:
321
- Added option dashboard setting to let users view reports in a fullscreen pop-up.

src/application/Application.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import NeoNotificationModal from '../modal/NotificationModal';
1010
import NeoWelcomeScreenModal from '../modal/WelcomeScreenModal';
1111
import { removeReportRequest } from '../page/PageThunks';
1212
import { connect } from 'react-redux';
13-
import { applicationGetConnection, applicationGetShareDetails, applicationGetOldDashboard, applicationHasNeo4jDesktopConnection, applicationHasAboutModalOpen, applicationHasCachedDashboard, applicationHasConnectionModalOpen, applicationIsConnected, applicationHasWelcomeScreenOpen } from '../application/ApplicationSelectors';
13+
import { applicationGetConnection, applicationGetShareDetails, applicationGetOldDashboard, applicationHasNeo4jDesktopConnection, applicationHasAboutModalOpen, applicationHasCachedDashboard, applicationHasConnectionModalOpen, applicationIsConnected, applicationHasWelcomeScreenOpen, applicationGetDebugState } from '../application/ApplicationSelectors';
1414
import { createConnectionThunk, createConnectionFromDesktopIntegrationThunk, setDatabaseFromNeo4jDesktopIntegrationThunk, handleSharedDashboardsThunk, onConfirmLoadSharedDashboardThunk } from '../application/ApplicationThunks';
1515
import { clearDesktopConnectionProperties, clearNotification, resetShareDetails, setAboutModalOpen, setConnected, setConnectionModalOpen, setDashboardToLoadAfterConnecting, setOldDashboard, setStandAloneMode, setWelcomeScreenOpen } from '../application/ApplicationActions';
1616
import { resetDashboardState } from '../dashboard/DashboardActions';
@@ -29,7 +29,7 @@ import { NeoLoadSharedDashboardModal } from '../modal/LoadSharedDashboardModal';
2929
const Application = ({ connection, connected, hasCachedDashboard, oldDashboard, clearOldDashboard,
3030
connectionModalOpen, aboutModalOpen, loadDashboard, hasNeo4jDesktopConnection, shareDetails,
3131
createConnection, createConnectionFromDesktopIntegration, onResetShareDetails, onConfirmLoadSharedDashboard,
32-
initializeApplication, resetDashboard, onAboutModalOpen, onAboutModalClose,
32+
initializeApplication, resetDashboard, onAboutModalOpen, onAboutModalClose, getDebugState,
3333
welcomeScreenOpen, setWelcomeScreenOpen, onConnectionModalOpen, onConnectionModalClose }) => {
3434

3535
const [initialized, setInitialized] = React.useState(false);
@@ -48,7 +48,8 @@ const Application = ({ connection, connected, hasCachedDashboard, oldDashboard,
4848
{(connected) ? <Dashboard></Dashboard> : <></>}
4949
<NeoAboutModal
5050
open={aboutModalOpen}
51-
handleClose={onAboutModalClose}>
51+
handleClose={onAboutModalClose}
52+
getDebugState={getDebugState}>
5253
</NeoAboutModal>
5354
<NeoConnectionModal
5455
open={connectionModalOpen}
@@ -90,6 +91,7 @@ const mapStateToProps = state => ({
9091
aboutModalOpen: applicationHasAboutModalOpen(state),
9192
welcomeScreenOpen: applicationHasWelcomeScreenOpen(state),
9293
hasCachedDashboard: applicationHasCachedDashboard(state),
94+
getDebugState: () => {return applicationGetDebugState(state)},
9395
hasNeo4jDesktopConnection: applicationHasNeo4jDesktopConnection(state),
9496
});
9597

src/application/ApplicationSelectors.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,16 @@ export const applicationHasCachedDashboard = (state: any) => {
5555
return false;
5656
}
5757
return !_.isEqual(state.dashboard, initialState);
58+
}
59+
60+
/**
61+
* Deep-copy the current state, and remove the password.
62+
*/
63+
export const applicationGetDebugState = (state: any) => {
64+
const copy = JSON.parse(JSON.stringify(state));
65+
copy.application.connection.password = "************";
66+
if(copy.application.desktopConnection){
67+
copy.application.desktopConnection.password = "************";
68+
}
69+
return copy;
5870
}

0 commit comments

Comments
 (0)