Skip to content

Commit

Permalink
Merge pull request #636 from neo4j-labs/develop
Browse files Browse the repository at this point in the history
Release 2.3.5
  • Loading branch information
BennuFire committed Sep 25, 2023
2 parents 393aaad + a421ee9 commit ae87c21
Show file tree
Hide file tree
Showing 47 changed files with 298 additions and 203 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/develop-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: cypress-io/github-action@v4
with:
build: yarn run build
start: yarn run dev
start: yarn run prod
wait-on: "http://localhost:3000"
browser: chrome
build-s3:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/develop-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: cypress-io/github-action@v4
with:
build: yarn run build
start: yarn run dev
start: yarn run prod
wait-on: 'http://localhost:3000'
browser: chrome
- name: Upload coverage reports to Codecov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:2.3.4
tags: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:2.3.5
build-docker-legacy:
needs: build-test
runs-on: neodash-runners
Expand All @@ -103,7 +103,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.3.4
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.3.5
deploy-gallery:
runs-on: neodash-runners
strategy:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ USER nginx
EXPOSE $NGINX_PORT

HEALTHCHECK cmd curl --fail "http://localhost:$NGINX_PORT" || exit 1
LABEL version="2.3.4"
LABEL version="2.3.5"
14 changes: 14 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## NeoDash 2.3.5
This is a bugfix / stability release directly following 2.3.4.

Improvements:
- Fixed issue where orphan relationships prevented graph charts from working ([@BennuFire](https://github.com/BennuFire), [#586](https://github.com/neo4j-labs/neodash/pull/586))
- Fix issue where only one style rule was used a time on tables. ([@BennuFire](https://github.com/BennuFire), [#632](https://github.com/neo4j-labs/neodash/pull/632))
- Added information about source and target on Graph Chart information modal . ([@BennuFire](https://github.com/BennuFire), [#627](https://github.com/neo4j-labs/neodash/pull/627)) Based on [@brahmprakashMishra](https://github.com/brahmprakashMishra) PR
- Fixed issue where bar charts where displaying black bars instead of scheme colors. ([@BennuFire](https://github.com/BennuFire), [#626](https://github.com/neo4j-labs/neodash/pull/626))
- Added right subpath replacement on shared links redirection while in self deployments. ([@m-o-n-i-s-h](https://github.com/m-o-n-i-s-h), [#618](https://github.com/neo4j-labs/neodash/pull/618))
- Dark theme tweaks. ([@BennuFire](https://github.com/BennuFire), [#585](https://github.com/neo4j-labs/neodash/pull/585))
- Fixed parameter selector search where numbers were not found and sporadically displayed with decimal points. ([@BennuFire](https://github.com/BennuFire), [#633](https://github.com/neo4j-labs/neodash/pull/633))
- Added a configuration in order to list sso providers to be used whenever a database has more than one configured. ([@BennuFire](https://github.com/BennuFire), [#624](https://github.com/neo4j-labs/neodash/pull/624))
- Added 'Ignore undefined parameters' advanced setting support for optional parameters on a query. Now queries will assume a null value instead of returning the error 'Parameter not defined'. ([@BennuFire](https://github.com/BennuFire), [#625](https://github.com/neo4j-labs/neodash/pull/625))

## NeoDash 2.3.3 & 2.3.4
This is a bugfix / stability release directly following 2.3.2.

Expand Down
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
},
retries: {
runMode: 2,
openMode: 0,
openMode: 2,
},
},
env: {
Expand Down
3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/developer-guide/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ will look like this:
....
{
"ssoEnabled": false,
"ssoProviders": [],
"ssoDiscoveryUrl": "https://example.com",
"standalone": false,
"standaloneProtocol": "neo4j",
Expand All @@ -37,6 +38,8 @@ will look like this:
using SSO. This requires the app to be running in standalone mode, and a
valid ssoDiscoveryUrl to be set.

|ssoProviders |List |[] |When using multiple SSO providers on the database, you can configure the list of providers (by id) to be used on Neodash. If empty, all providers will be displayed.

|ssoDiscoveryUrl |string |https://example.com |If ssoEnabled is true &
standalone mode is enabled, the URL to retrieve SSO auth config from.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Depending on the webserver type and version, this could be different directory.
As an example - to copy the files to an nginx webserver using `scp`:

```bash
scp neodash-2.3.4 username@host:/usr/share/nginx/html
scp neodash-2.3.5 username@host:/usr/share/nginx/html
```

NeoDash should now be visible by visiting your (sub)domain in the browser.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ variables to Docker:
....
docker run -it --rm -p 5005:5005 \
-e ssoEnabled=false \
-e ssoProviders=[] \
-e ssoDiscoveryUrl="https://example.com" \
-e standalone=true \
-e standaloneProtocol="neo4j" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ standalone mode.
"standalone": false,
"oldDashboard": null,
"ssoEnabled": false,
"ssoProviders": [],
"ssoDiscoveryUrl": "https://example.com",
"standaloneProtocol": "neo4j",
"standaloneHost": "localhost",
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/quickstart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ https://neodash.graphapp.io.
App Gallery].
. Using Docker:
```
docker pull neo4jlabs/neodash:latest
docker pull neo4jlabs/neodash:latest
docker run -it --rm -p 5005:5005 neo4jlabs/neodash
```

Expand Down
8 changes: 5 additions & 3 deletions docs/modules/ROOT/pages/user-guide/reports/pie-chart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ the pie slices in order of size.
|Show Values in Slices |on/off |off |If enabled, show the category
values inside the pie slices.

|Labels font Size |Number |13 |Define the size of the font for internal and external labels on the pie.

|Show categories next to Slices |on/off |off |If enabled, show the
category values next to the pie slices.

Expand All @@ -73,13 +75,13 @@ slice.
|Margin Left (px) |number |50 |The margin in pixels on the left side of
the visualization.

|Margin Right (px) |number |24 |The margin in pixels on the right side
|Margin Right (px) |number |50 |The margin in pixels on the right side
of the visualization.

|Margin Top (px) |number |24 |The margin in pixels on the top side of
|Margin Top (px) |number |50 |The margin in pixels on the top side of
the visualization.

|Margin Bottom (px) |number |40 |The margin in pixels on the bottom side
|Margin Bottom (px) |number |50 |The margin in pixels on the bottom side
of the visualization.

|Hide Selections |on/off |off |If enabled, hides the property selector
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neodash",
"version": "2.3.4",
"version": "2.3.5",
"description": "NeoDash - Neo4j Dashboard Builder",
"neo4jDesktop": {
"apiVersion": "^1.2.0"
Expand All @@ -22,6 +22,7 @@
],
"scripts": {
"dev": "yarn webpack-dev-server --mode development",
"prod": "yarn webpack-dev-server --mode production",
"debug": "yarn --node-options='--inspect' webpack-dev-server --mode development",
"build": "yarn webpack --mode production --env production && cp -r public/* dist/",
"build-minimal": "yarn webpack --mode production --env production && cp -r public/* dist/",
Expand All @@ -43,8 +44,8 @@
"@mui/x-data-grid": "5.17.26",
"@mui/x-date-pickers": "^5.0.17",
"@neo4j-cypher/react-codemirror": "^1.0.3",
"@neo4j-ndl/base": "1.10.1",
"@neo4j-ndl/react": "1.10.2",
"@neo4j-ndl/base": "1.10.3",
"@neo4j-ndl/react": "1.10.8",
"@nivo/bar": "^0.83.0",
"@nivo/circle-packing": "^0.83.0",
"@nivo/core": "^0.83.0",
Expand All @@ -67,6 +68,7 @@
"leaflet": "^1.7.1",
"lodash.debounce": "^4.0.8",
"lodash.isequal": "^4.5.0",
"lodash.merge": "^4.6.2",
"mui-color": "^2.0.0-beta.2",
"mui-nested-menu": "^3.2.1",
"neo4j-client-sso": "^1.2.2",
Expand Down Expand Up @@ -116,7 +118,7 @@
"babel-loader": "^8.2.3",
"babel-plugin-istanbul": "^6.1.1",
"css-loader": "^3.6.0",
"cypress": "^10.11.0",
"cypress": "^12.17.4",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
Expand Down
1 change: 1 addition & 0 deletions public/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ssoEnabled": false,
"ssoProviders": [],
"ssoDiscoveryUrl": "https://example.com",
"standalone": false,
"standaloneProtocol": "neo4j",
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</head>

<body>
<div id="overlay"></div>
<div id="root"></div>
<noscript>Please enable JavaScript to view this site.</noscript>
<script src="bundle.js"></script>
Expand Down
9 changes: 8 additions & 1 deletion public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,11 @@
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
}
}

/* Workaround for Needle not handling menu placement of dropdowns on modals */
#overlay {
z-index: 99 !important;
position: absolute;
}
/* End workaround */
20 changes: 11 additions & 9 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
## NeoDash 2.3.3 & 2.3.4
This is a bugfix / stability release directly following 2.3.2.
## NeoDash 2.3.5
This is a bugfix / stability release directly following 2.3.4.

Improvements:
- Cleaned up dependencies, add lazy loading and code splitting in the bundle file for faster loading times. ([@BennuFire](https://github.com/BennuFire), [#545](https://github.com/neo4j-labs/neodash/pull/571))
- Migrated all icons from Material UI to Needle icons. ([@BennuFire](https://github.com/BennuFire), [#545](https://github.com/neo4j-labs/neodash/pull/571))
- Improved contrast for light and dark theme. ([@nielsdejong](https://github.com/nielsdejong), [#545](https://github.com/neo4j-labs/neodash/pull/566))
- Fixed issue where dashboards were locked in read-only mode, after toggling in the dashboard settings. ([@nielsdejong](https://github.com/nielsdejong), [#545](https://github.com/neo4j-labs/neodash/pull/566))
- Fixed issue where editing the name of a non-selected page changed the wrong page data. ([@BennuFire](https://github.com/BennuFire), [#545](https://github.com/neo4j-labs/neodash/pull/571))
- Fixed issue where color picker was only working on popup selections. ([@BennuFire](https://github.com/BennuFire), [#579](https://github.com/neo4j-labs/neodash/pull/579))
- Add user agent to driver session for better logging of NeoDash queries. ([@nielsdejong](https://github.com/nielsdejong), [#545](https://github.com/neo4j-labs/neodash/pull/574))
- Fixed issue where orphan relationships prevented graph charts from working ([@BennuFire](https://github.com/BennuFire), [#586](https://github.com/neo4j-labs/neodash/pull/586))
- Fix issue where only one style rule was used a time on tables. ([@BennuFire](https://github.com/BennuFire), [#632](https://github.com/neo4j-labs/neodash/pull/632))
- Added information about source and target on Graph Chart information modal . ([@BennuFire](https://github.com/BennuFire), [#627](https://github.com/neo4j-labs/neodash/pull/627)) Based on [@brahmprakashMishra](https://github.com/brahmprakashMishra) PR
- Fixed issue where bar charts where displaying black bars instead of scheme colors. ([@BennuFire](https://github.com/BennuFire), [#626](https://github.com/neo4j-labs/neodash/pull/626))
- Added right subpath replacement on shared links redirection while in self deployments. ([@m-o-n-i-s-h](https://github.com/m-o-n-i-s-h), [#618](https://github.com/neo4j-labs/neodash/pull/618))
- Dark theme tweaks. ([@BennuFire](https://github.com/BennuFire), [#585](https://github.com/neo4j-labs/neodash/pull/585))
- Fixed parameter selector search where numbers were not found and sporadically displayed with decimal points. ([@BennuFire](https://github.com/BennuFire), [#633](https://github.com/neo4j-labs/neodash/pull/633))
- Added a configuration in order to list sso providers to be used whenever a database has more than one configured. ([@BennuFire](https://github.com/BennuFire), [#624](https://github.com/neo4j-labs/neodash/pull/624))
- Added 'Ignore undefined parameters' advanced setting support for optional parameters on a query. Now queries will assume a null value instead of returning the error 'Parameter not defined'. ([@BennuFire](https://github.com/BennuFire), [#625](https://github.com/neo4j-labs/neodash/pull/625))
1 change: 1 addition & 0 deletions scripts/config-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -e
echo " \
{ \
\"ssoEnabled\": ${ssoEnabled:=false}, \
\"ssoProviders\": ${ssoProviders:=[]}, \
\"ssoDiscoveryUrl\": \"${ssoDiscoveryUrl:='https://example.com'}\", \
\"standalone\": "${standalone:=false}", \
\"standaloneProtocol\": \"${standaloneProtocol:='neo4j+s'}\", \
Expand Down
6 changes: 6 additions & 0 deletions src/application/ApplicationActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const setSSOEnabled = (enabled: boolean, discoveryUrl: string) => ({
payload: { enabled, discoveryUrl },
});

export const SET_SSO_PROVIDERS = 'APPLICATION/SET_SSO_PROVIDERS';
export const setSSOProviders = (providers: []) => ({
type: SET_SSO_PROVIDERS,
payload: { providers },
});

export const SET_WAIT_FOR_SSO = 'APPLICATION/SET_WAIT_FOR_SSO';
export const setWaitForSSO = (wait: boolean) => ({
type: SET_WAIT_FOR_SSO,
Expand Down
6 changes: 6 additions & 0 deletions src/application/ApplicationReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
SET_SESSION_PARAMETERS,
SET_SHARE_DETAILS_FROM_URL,
SET_SSO_ENABLED,
SET_SSO_PROVIDERS,
SET_STANDALONE_DASHBOARD_DATEBASE,
SET_STANDALONE_ENABLED,
SET_STANDALONE_MODE,
Expand Down Expand Up @@ -112,6 +113,11 @@ export const applicationReducer = (state = initialState, action: { type: any; pa
state = update(state, { ssoEnabled: enabled, ssoDiscoveryUrl: discoveryUrl });
return state;
}
case SET_SSO_PROVIDERS: {
const { providers } = payload;
state = update(state, { ssoProviders: providers });
return state;
}
case SET_WAIT_FOR_SSO: {
const { wait } = payload;
state = update(state, { waitForSSO: wait });
Expand Down
1 change: 1 addition & 0 deletions src/application/ApplicationSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const applicationHasReportHelpModalOpen = (state: any) => {
export const applicationGetSsoSettings = (state: any) => {
return {
ssoEnabled: state.application.ssoEnabled,
ssoProviders: state.application.ssoProviders,
ssoDiscoveryUrl: state.application.ssoDiscoveryUrl,
cachedSSODiscoveryUrl: state.application.cachedSSODiscoveryUrl,
};
Expand Down
9 changes: 6 additions & 3 deletions src/application/ApplicationThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
clearDesktopConnectionProperties,
clearNotification,
setSSOEnabled,
setSSOProviders,
setStandaloneEnabled,
setAboutModalOpen,
setStandaloneMode,
Expand Down Expand Up @@ -124,7 +125,7 @@ export const createConnectionThunk =
query,
parameters,
1,
() => {},
() => { },
(records) => validateConnection(records)
);
} catch (e) {
Expand Down Expand Up @@ -254,7 +255,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
dispatch(onConfirmLoadSharedDashboardThunk());
}

window.history.pushState({}, document.title, '/');
window.history.pushState({}, document.title, window.location.pathname);
} else {
dispatch(setConnectionModalOpen(false));
// dispatch(setWelcomeScreenOpen(false));
Expand All @@ -273,7 +274,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
false
)
);
window.history.pushState({}, document.title, '/');
window.history.pushState({}, document.title, window.location.pathname);
}
} else {
// dispatch(resetShareDetails());
Expand Down Expand Up @@ -340,6 +341,7 @@ export const onConfirmLoadSharedDashboardThunk = () => (dispatch: any, getState:
export const loadApplicationConfigThunk = () => async (dispatch: any, getState: any) => {
let config = {
ssoEnabled: false,
ssoProviders: [],
ssoDiscoveryUrl: 'http://example.com',
standalone: false,
standaloneProtocol: 'neo4j',
Expand Down Expand Up @@ -377,6 +379,7 @@ export const loadApplicationConfigThunk = () => async (dispatch: any, getState:
}
const state = getState();
dispatch(setSSOEnabled(config.ssoEnabled, state.application.cachedSSODiscoveryUrl));
dispatch(setSSOProviders(config.ssoProviders));

const { standalone } = config;
dispatch(
Expand Down
6 changes: 5 additions & 1 deletion src/card/settings/CardSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ const NeoCardSettings = ({
);

return (
<div className={`card-view n-bg-palette-neutral-bg-weak ${expanded ? 'expanded' : ''} n-overflow-y-auto n-h-full`}>
<div
className={`card-view n-bg-palette-neutral-bg-weak n-text-palette-neutral-text-default ${
expanded ? 'expanded' : ''
} n-overflow-y-auto n-h-full`}
>
{cardSettingsHeader}
<ReportItemContainer style={{ height: reportHeight }} className='-n-mt-2'>
{cardSettingsContent}
Expand Down
4 changes: 2 additions & 2 deletions src/card/settings/CardSettingsContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const NeoCardSettingsContent = ({
label: report?.label || '',
value: report?.label || '',
},
menuPortalTarget: document.querySelector('body'),
menuPortalTarget: document.querySelector('#overlay'),
}}
fluid
style={{ marginLeft: '0px', marginRight: '10px', width: '47%', maxWidth: '200px', display: 'inline-block' }}
Expand All @@ -133,7 +133,7 @@ const NeoCardSettingsContent = ({
value: database,
})),
value: { label: databaseText, value: databaseText },
menuPortalTarget: document.querySelector('body'),
menuPortalTarget: document.querySelector('#overlay'),
}}
fluid
style={{ marginLeft: '0px', marginRight: '10px', width: '47%', maxWidth: '200px', display: 'inline-block' }}
Expand Down

0 comments on commit ae87c21

Please sign in to comment.