Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.3 Release #181

Merged
merged 17 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/master-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.1.2
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.1.3
build-npm:
needs: build-test
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html/
USER nginx
EXPOSE 5005
HEALTHCHECK cmd curl --fail http://localhost:5005 || exit 1
LABEL version="2.1.2"
LABEL version="2.1.3"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ docker run -it --rm -p 5005:5005 nielsdejong/neodash

> Windows users may need to prefix the `docker run` command with `winpty`.

See the [Developer Guide](https://github.com/neo4j-labs/neodash/wiki/Developer%20Guide) for more on installing, building, and running the application.
See the [Developer Guide](https://neo4j.com/labs/neodash/2.1/developer-guide/) for more on installing, building, and running the application.

## User Guide
NeoDash comes with built-in examples of dashboards and reports. For more details on the types of reports and how to customize them, see the [User Guide](
https://github.com/neo4j-labs/neodash/wiki/User-Guide).
https://neo4j.com/labs/neodash/2.1/user-guide/).

## Publish Dashboards
After building a dashboard, you can chose to deploy a read-only, standalone instance for users. See [Publishing](https://github.com/neo4j-labs/neodash/wiki/Publishing) for more on publishing dashboards.
After building a dashboard, you can chose to deploy a read-only, standalone instance for users. See [Publishing](https://neo4j.com/labs/neodash/2.1/user-guide/publishing/) for more on publishing dashboards.


## Questions / Suggestions
Expand Down
17 changes: 15 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
## NeoDash 2.1
## NeoDash 2.1.2
The 2.1.2 release contains some bug fixes and minor improvements to the application.

Application changes:
- Added button to clone (duplicate) a report inside a dashboard.
- Added option to show/hide labels inside circle packing charts.
- Changed dashboard layout compaction strategy to be more natural.
- Fixed card headers not rendering correctly in read-only mode.
- Fixed rendering issues for table columns containing null values.

Operational changes:
- Added support for username/password environment variables in Docker.


## NeoDash 2.1.0, NeoDash 2.1.1
The 2.1 release is a major update to the NeoDash application.

Main updates:
Expand Down Expand Up @@ -216,4 +230,3 @@ UX improvements + bug fixes.




3 changes: 2 additions & 1 deletion cypress/integration/start_page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ describe('NeoDash E2E Tests', () => {
})

// Test load stress-test dashboard from file
it('test load dashboard from file and stress test report customizations', () => {
// TODO - this test is flaky, especially in GitHub actions environment.
it.skip('test load dashboard from file and stress test report customizations', () => {
try {
var NUMBER_OF_PAGES_IN_STRESS_TEST_DASHBOARD = 5;
const file = cy.request(loadDashboardURL).should((response) => {
Expand Down
67 changes: 0 additions & 67 deletions docs/Home.adoc

This file was deleted.

18 changes: 18 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# NeoDash Documentation

This folder contains the documentation for the NeoDash project. The pages are written in AsciiDoc, and generated into webpages by Antora.

An external workflow picks up this directory, embeds it into the Neo4j docs, and makes sure generated files are automatically deployed to:
```
https://neo4j.com/labs/neodash/{version}
```
For example: https://neo4j.com/labs/neodash/2.1

## Local Build
To compile and view the documentation locally, navigate to this (`./docs`) folder and run:
```
npm install
npm start
```

Then, open your browser and navigate to http://localhost:8000/.
18 changes: 0 additions & 18 deletions docs/User-Guide.adoc

This file was deleted.

13 changes: 13 additions & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: neodash
version: 2.1
title: NeoDash Documentation
start_page: ROOT:index.adoc
nav:
- modules/ROOT/nav.adoc

asciidoc:
attributes:
docs-version: 2.1
page-product: NeoDash
page-type: NeoDash Manual
page-canonical-root: /labs
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added docs/modules/ROOT/images/choropleth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added docs/modules/ROOT/images/map_cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/modules/ROOT/images/map_heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
34 changes: 34 additions & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
* xref:index.adoc[Introduction]
* xref:quickstart.adoc[Quickstart]
* xref:user-guide/index.adoc[User Guide]
** xref:user-guide/dashboards.adoc[Dashboards]
** xref:user-guide/pages.adoc[Pages]
** xref:user-guide/reports/index.adoc[Reports]
*** xref:user-guide/reports/table.adoc[Table]
*** xref:user-guide/reports/graph.adoc[Graph]
*** xref:user-guide/reports/bar-chart.adoc[Bar Chart]
*** xref:user-guide/reports/pie-chart.adoc[Pie Chart]
*** xref:user-guide/reports/line-chart.adoc[Line Chart]
*** xref:user-guide/reports/sunburst.adoc[Sunburst]
*** xref:user-guide/reports/circle-packing.adoc[Circle Packing]
*** xref:user-guide/reports/treemap.adoc[Treemap]
*** xref:user-guide/reports/map.adoc[Map]
*** xref:user-guide/reports/single-value.adoc[Single Value]
*** xref:user-guide/reports/raw-json.adoc[Raw JSON]
*** xref:user-guide/reports/parameter-select.adoc[Parameter Select]
*** xref:user-guide/reports/iframe.adoc[iFrame]
*** xref:user-guide/reports/markdown.adoc[Markdown]
** xref:user-guide/publishing.adoc[Publishing]
** xref:user-guide/bloom-integration.adoc[Bloom Integration]
** xref:user-guide/faq.adoc[FAQ]
* xref:developer-guide/index.adoc[Developer Guide]
** xref:developer-guide/build-and-run.adoc[Build & Run]
** xref:developer-guide/configuration.adoc[Configuration]
** xref:developer-guide/standalone-mode.adoc[Standalone Mode]
** xref:developer-guide/component-overview.adoc[Component Overview]
** xref:developer-guide/design.adoc[Design]
** xref:developer-guide/adding-visualizations.adoc[Adding Visualizations]
** xref:developer-guide/state-management.adoc[State Management]
** xref:developer-guide/testing.adoc[Testing]
** xref:developer-guide/contributing.adoc[Contributing]

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= Adding Visualizations

You can extend NeoDash with your own visualizations without diving deep
into the core application. Likewise, adding a new customization to an
existing report requires minimal changes.
Expand Down Expand Up @@ -91,5 +93,5 @@ Cypress testing.
____
After you added a visualization or a new customization, consider
contributing it to the NeoDash project by creating a
https://github.com/nielsdejong/neodash/pulls[Pull Request].
https://github.com/neo4j-labs/neodash/pulls[Pull Request].
____
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= Build & Run

To start developing the application, you’ll need to set up the
development environment.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
= Component Overview


The image below contains a high-level overview of the component
hierarchy within the application. The following conceptual building
blocks are used to create the interface:

image::./img/component-hierarchy.png[NeoDash Component Hierarchy]
image::component-hierarchy.png[NeoDash Component Hierarchy]

* *Application* - highest level in the component structure. Handles all
application-level logic (e.g. initalizing the app).
Expand Down Expand Up @@ -39,8 +42,8 @@ charts, tables, graphs, etc.

== A note on Cards v.s. Reports

Whereas a user might associate a `Card' in NeoDash to a report directly,
the application has a more nuanced seggration of responsibilities;
Whereas a user might associate a Card in NeoDash to a report directly,
the application has a more nuanced seggration of responsibilities:

* The *Card* is responsible for positioning the component in a page.
* The *Card Content* is the core element of the card (exclusive of the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
= Configuration

When using a custom NeoDash deployment, there are several settings that
can be configured. These mostly relate to
link:Standalone%20Mode[Standalone Mode] and SSO configurations.
link:../standalone-mode[Standalone Mode] and SSO configurations.

For a simple (non-Dockerized) deployment, these configuration parameters
can be changed by modifying `dist/config.json` after you have built the
application. When Docker image, these can be passed as environment
variables. See link:Standalone%20Mode[Standalone Mode] for more on
variables. See link:../standalone-mode[Standalone Mode] for more on
Docker deployments.

An example configuration for NeoDash (default, running in editor mode)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
= Contributing

Contributions to the project are highly welcomed. Please consider
creating a https://github.com/nielsdejong/neodash/pulls[Pull Request].
creating a https://github.com/neo4j-labs/neodash/pulls[Pull Request].
Ensure you start from the `develop` branch, and set the merge base to
`develop` as well.

For your feature to be accepted, ensure:

1. The component is tested (if relevant, see Testing).
2. Your code is aligned with
https://www.w3.org/wiki/JavaScript_best_practices[JS Best Practises].
https://www.w3.org/wiki/JavaScript_best_practices[JS Best Practices].
3. The component is well documented in the documentation portal (if
applicable).

== Feature Requests / Bugs

If you have a request for a feature, or have found a bug, consider
creating an https://github.com/nielsdejong/neodash/issues[issue] on
GitHub. Please include a link:./Testing#debug-report[Debug Report] if
creating an https://github.com/neo4j-labs/neodash/issues[issue] on
GitHub. Please include a link:./testing#debug-report[Debug Report] if
available.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= Design

This page contains some key guidelines for design of the application.
This entails code architecture, as well as UX/UI design.

Expand All @@ -19,7 +21,6 @@ actions)
....
conf: nginx configuration for Docker image.
dist: directory for generated webpack files.
doc: documentation (to be moved to wiki)
node_modules: downloaded dependencies
public: style files/images. Runtime app config.
scripts: utility scripts for deployment.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
The following pages will guide developers who want to dive deeper into
NeoDash, and extend it for their own needs. In case you just want to run
NeoDash, see the Quickstart page.
= Developer Guide

This guide has the following sections:
This guide contains information for developers looking to deploy NeoDash, or extend it for their own needs.

- link:Build%20&%20Run[Build & Run]
- link:Configuration[Configuration]
- link:Standalone%20Mode[Standalone Mode]
- link:Component%20Overview[Component Overview]
- link:Design[Design]
- link:Adding%20Visualizations[Adding Visualizations]
- link:State%20Management[State Management]
- link:Testing[Testing]
- link:Contributing[Contributing]
- link:build-and-run[Build & Run]
- link:configuration[Configuration]
- link:standalone-mode[Standalone Mode]
- link:component-overview[Component Overview]
- link:design[Design]
- link:adding-visualizations[Adding Visualizations]
- link:state-management[State Management]
- link:testing[Testing]
- link:contributing[Contributing]

== Prerequisites
== Prerequisites for extending NeoDash

NeoDash is a web application written in TypeScript. Knowledge of React &
Redux is also highly recommended when extending the application.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= Standalone Mode

Next to being a dashboard editor, NeoDash can be deployed in a
`standalone mode' - allowing you set up a architecture to publish and
read dashboards.
Expand All @@ -11,11 +13,11 @@ Running in standalone modec mode will:
The diagram below illustrates how NeoDash standalone mode can be
deployed next to a standard `Editor Mode' instance:

image:./img/standalone-architecture.png[image]
image:standalone-architecture.png[image]

== Option 1 - Standard Deployment (Non-Docker)

First, build NeoDash as described link:Run%20&%20Build[here]. After
First, build NeoDash as described link:../build-and-run[here]. After
building, you’ll have a `dist` directory that you can deploy to a web
server.

Expand Down Expand Up @@ -49,7 +51,7 @@ docker run -it --rm -p 5005:5005 \
....

Make sure that all of the environment variables are set to the correct
values. This is described in more detail link:Configuration[here].
values. This is described in more detail link:../configuration[here].

____
Alternatively, environment variables from docker compose or a kubernetes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= State Management

NeoDash is an application with a complex internal state. If you are
planning to extend the application state in some way, make sure you are
familiar with https://redux.js.org/[Redux] design patterns.
Expand Down
Loading