Skip to content

Commit

Permalink
Merge Master to 2.4 (#986)
Browse files Browse the repository at this point in the history
* 2.4.2 Release (#752)

* Made API keys hidden (password fields) in the query translator module

* Legend on bottom, working on scrolling

* Scrolling added, legend gets cut off. Need to set width according to content

* Set autowidth depending on length of array

* wednesday

* Added new report action type for tables: multiselect checkboxes (#664)

* Work in progress on table checkboxes

* Fix handling external updates of parameter values in parameter selector

* Improved handling of multiselector parameters for tables with checkboxes

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Added multiselect value limit

* Clean up action rule create modal

* Added docs on multiple selection with table rows and report actions

* Fix handling external updates of parameter values in parameter selector (#663)

* Fix handling external updates of parameter values in parameter selector

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Feature/new dashboard load UI (#657)

* Added sidebar prototype

* Return of the sidebar

* Add database selector to sidebar

* Iterating on the dashboard sidebar interface

* Fixed usage of hardcoded color

* Updated dashboard loading mechanism, iterating

* Updated dashboard loading mechanism, iterating

* Updated file structure for dashboard sidebar

* Improved modal/menu handling for dashboard load

* Import/export dashboards

* New dashboard sharing interface

* Removed old save/load modal

* Finalized v1 of the new multi-dashboard UI

* removing useless imports

* Removed old isLoaded in state of dashboard load screen. Updated warning buttons

---------

Co-authored-by: Alfred Rubin <[email protected]>

* monday

* Horizontal/Vertical legend switch

* Sorted graph sizing with padding

* Tuesday Afternoon

* Mapped bar chart event to standardized action event

* Wednesday Morning

* Added event handling for actions on bar charts

* Fixed styling for bar chart report action

* Bump @babel/traverse from 7.21.4 to 7.23.2 in /gallery (#670)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @babel/traverse from 7.20.13 to 7.23.2 (#669)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.13 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.23 to 8.4.31 in /gallery (#656)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.23 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.23...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.21 to 8.4.31 (#655)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* added minimum bar height

* Text hard to read on dark theme (#668)

* Hiding columns in Table does not work #374

* Revert "Hiding columns in Table does not work #374"

This reverts commit dc36d84e9cc3de2dc3f8bd093328b991b22aadbb.

* Text hard to read on Dark Theme #667

* Fixed code style

---------

Co-authored-by: Niels de Jong <[email protected]>

* Monday

* Hotfix for wrong default parameter replacement in markdown

* Add back arrow on connection modal (#675)

* fix: add back arrow on connection modal

* WIP on improved back arrow for connection modal

* Fixed dismissable connection modal based on connected state and standalone mode

---------

Co-authored-by: Niels de Jong <[email protected]>

* VULCAN-126/Override default message (#683)

* Override default message

* Refactored code

* refactored code

* Added docs

---------

Co-authored-by: Monish <[email protected]>

* Added report action functionality in bar chart when using BarComponent

* Fix/hiding columns in table (#685)

* fixed the issues with not being able to close columns in table chart

* reverted back to orignal testpass

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Fix parameters values (#641)

Co-authored-by: Niels de Jong <[email protected]>

* Removed adjustedData state for min bar height

* Added comments to BarChart.tsx

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues (#682)

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues

* Handling for dashboards in standalone mode

* cleaning code followign SonarCloud code smells

* changed migration function to reduce duplication, tested on twitter example dashboard

* changed how we fetch the latest version of the code

* changed migration function to reduce duplication, to test for applicationThunks

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Feature/gantt chart (#684)

* Added forms skeleton

* Completed form skeleton

* WIP on forms interface

* Form framework (data entry, running, success, error) added

* Added comments

* Adding fields specification interface

* UI for specifying individual parameter in a form

* changing Dockerfile to enable args during build

* fixing typo on argument in dockerfile

* reverting dockerfile to older version

* Rendering parameters inside the form component

* Added docs for forms. Improved stability on form

* Fixed warnings in console

* Finished IT test for forms report

* Added package

* added new field to disable a parameter selector (in this way it works only with actions)

* Gantt Chart Visualization

* Fixed issue where parameter values were not updated on external changes

* Fixed styling on freetext spinner

* Workaround for clipping menu selectors in Needle

* fix(rule based styling): js doing is magic with parseFloat (some strings were casted to floats event if they were just strings starting with 0

* Added save button to form create UI

* removing console logs

* Fix for needle dropdowns not showing on modals

* Sortable list for form parameters

* Improving the drag 'n drop

* Iterating on form interface

* Final version of forms

* Disabling test

* Gantt chart with live data

* Improved robustness of form / parameter select component

* Improve Gantt chart customizability. Added report action for Gantt charts

* Added wait-logic for form submission, so that all fields are debounced and set correctly

* Added multiline support for freetext parameter selector

* Added support for drilled-down parameters used in the forms component

* Fixed issues with parameter selector/forms, improve usability

* Added default advanced settings to form

* hanging if orders to prevent wrong casting to number for certain edge cases (EX: string with numbers and E : 00E1304)

* adding more options to gantt chart and adding variable calendar type

* Prototype of Frappe Gantt implementation

* Improved version of frappe gantt

* work in progress on new gantt chart

* Clean up code structure

* Clean up and documenting Gantt chart

* Gantt chart stability & arrow directions

* Handling task dependency directions in Gantt chart

* Improved styling

* More optimization & style fixes.

* Added docs for Gantt Chart

* Added rule-based styling and actions to Gantt chart

* Finalized Gantt chart docs, examples, and fallback date parsing

* removing code smells

* trying to plug quarter date format and cleaning code

* cleaning code accordingly to SonarCloud

* Fixed UI not populating correctly for rule-based styling and actions

* Gantt - fixed default width/height for bars. Visible labels. Handling quarters

* Updated label positions

* Fixed inspect modal for Gantt chart, fixed arrow spacing between tasks

* Fixed linting issues

---------

Co-authored-by: Niels de Jong <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>

* adding in advanced config for the graph viz more graph layout config … (#690)

* adding in advanced config for the graph viz more graph layout config options

* added doc about the new advanced setting

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Adding form widget as a new extension (#568)

* Added forms skeleton

* Completed form skeleton

* WIP on forms interface

* Form framework (data entry, running, success, error) added

* Added comments

* Adding fields specification interface

* UI for specifying individual parameter in a form

* changing Dockerfile to enable args during build

* fixing typo on argument in dockerfile

* reverting dockerfile to older version

* Rendering parameters inside the form component

* Added docs for forms. Improved stability on form

* Fixed warnings in console

* Finished IT test for forms report

* added new field to disable a parameter selector (in this way it works only with actions)

* Fixed issue where parameter values were not updated on external changes

* Fixed styling on freetext spinner

* Workaround for clipping menu selectors in Needle

* fix(rule based styling): js doing is magic with parseFloat (some strings were casted to floats event if they were just strings starting with 0

* Added save button to form create UI

* removing console logs

* Fix for needle dropdowns not showing on modals

* Sortable list for form parameters

* Improving the drag 'n drop

* Iterating on form interface

* Final version of forms

* Disabling test

* Improved robustness of form / parameter select component

* Updated docs, added clear form button

* removing code smells

* cleaning code followign SonarCloud code smells

* cleaning code followign SonarCloud code smells

* removing code smells

* Intelligent parameters clearing in forms

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Removed dependencies, reverted reportconfig bar chart order

* Changed BarComponent always renders now so pointer always shows on bar. Changed lamda if statement to more readable syntax, removed handleBarClick function because unused. Removed minBarHeight arg from useEffect

* moved onClick logic to handleBarClick const

* Model Examples and LLM improvements (#600)

* now when changing database in a card the query will retrigger correctly

* adding schema sampling with apoc.meta.data and changing system prompt

* cleaning code and adding examples management

* starting working on plugging examples to the model

* examples plugged to state and to the modelClient to add the example prompy

* fixed examples in modelCLient because the there was a missing edge case

* added Q&A form for AI training

* Updated styling, added validation

* validation on q&a form (to talk with Marius about UX and styling)

* watching smells on sonarqube

* Question Answer form updated with tailwind and needle styling

* WIP creating edit Q&A modal

* working on examples modal

* WIP trying to get index prop to pass for ExampleEditorModal to work properly

* fix

* WIP

* latest

* plugging modelExamples table to the state and changing folder structure

* Issue with addModelExample action call

* working on model examples and fixing prompt behaviour

* Paginated table implemented. Needs styling.

* pagination done

* Added cypher code editor. No line numbers right now - would be useful. Also no label for cypher editor

* Added loading button when saving, error message if cypher editor is empty upon submission, removed legacy code

* latest

* ready for review

* changing prompt

* Updated. Fixed editing. Ready for Review

* fixing code smells

* WIP

* WIP ExampleDisplayTable2

* styling and pagination needed

* table done with styling, pagination

* deleted old table

* code smell 2/7 check

* check smells

* Checking smells

* moving component inside const

* Table ready for review

* Added initial pageSize

* Fixed instructions on 'tweak model' screen

* Fixed instructions on 'tweak model' screen

* Got rid of show number of queries per page

* checking code smells

* removing useless row from task definition

* changing folder names and changin from lazy import to normal on in ExtensionConfig

* removing code smells

* removing code smells

* removing code smells

* Fixed double dependency on react-table

* refactoring code according to Sonarcube code smelles and fixed play button on card vie w to rerun the chatCompletion

* Improved names

* Usability improvements for LLM extension

* Updating docs

* Added docs for custom LLM examples

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* Extracted margin logic from BarChartComponent into new const

* Extracted legend logic into separate function

* extracted onChange and onInputChange to separate functions

* Issue with setting customWidth

* refactor: add explicit enum constants

* Added release notes for 2.4 + bonus feature (keyboard shortcut to run query from the editor) (#694)

* Release notes for 2.4

* Updated release notes. Added quick feature to run reports with keyboard shortcuts

* Finalized release notes

* Hotfix for not clearing disabled parameters in forms

* Finalized release notes

* Removed old gantt chart dependency

* Bump docs version to 2.4

* Fixed issue with CodeMirror editor not capturing keys in Cypress test

* Hotfix for automigrated tree layouts

* Hotfixes for Sonarqube issues

* minor fix in the forms where it wasn't getting the correct value in the settings

* Fix hiding column prefix (#695)

* fixing missing feature that was hiding columns starting with __

* removing test console log

* removing code smell

* removing code smell

* fixing test

* Bumped outdated version numbers

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* fixing merge

* Added manual legendWidth back in

* Font-color not changed in graph contextual popups when in dark mode #621

* Fixed styling of report action and moved visualisation logic to outside table elements in ARCM

* Friday

* refactor: extract unions to explicit types

* Updated documentation

* fixed most code smells

* Fix for only displaying active databases in the sidebar (#698)

* Removed checked in html file

* fixed typos, dependencies, UX

* Fix bugs in actions helper

* refactor: add value to input

* refactor: update any types

* Enabled page switch actions on bar charts

* Change on filter tooltip to avoid hide table data

* removing code smells

* Fixed bug (hopefully)

* Added comments for styles naming convention

* Bump @adobe/css-tools from 4.3.1 to 4.3.2 (#720)

* 2.4.0 update (#696)

* Made API keys hidden (password fields) in the query translator module

* Added new report action type for tables: multiselect checkboxes (#664)

* Work in progress on table checkboxes

* Fix handling external updates of parameter values in parameter selector

* Improved handling of multiselector parameters for tables with checkboxes

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Added multiselect value limit

* Clean up action rule create modal

* Added docs on multiple selection with table rows and report actions

* Fix handling external updates of parameter values in parameter selector (#663)

* Fix handling external updates of parameter values in parameter selector

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Feature/new dashboard load UI (#657)

* Added sidebar prototype

* Return of the sidebar

* Add database selector to sidebar

* Iterating on the dashboard sidebar interface

* Fixed usage of hardcoded color

* Updated dashboard loading mechanism, iterating

* Updated dashboard loading mechanism, iterating

* Updated file structure for dashboard sidebar

* Improved modal/menu handling for dashboard load

* Import/export dashboards

* New dashboard sharing interface

* Removed old save/load modal

* Finalized v1 of the new multi-dashboard UI

* removing useless imports

* Removed old isLoaded in state of dashboard load screen. Updated warning buttons

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Bump @babel/traverse from 7.21.4 to 7.23.2 in /gallery (#670)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @babel/traverse from 7.20.13 to 7.23.2 (#669)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.13 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.23 to 8.4.31 in /gallery (#656)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.23 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.23...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.21 to 8.4.31 (#655)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Text hard to read on dark theme (#668)

* Hiding columns in Table does not work #374

* Revert "Hiding columns in Table does not work #374"

This reverts commit dc36d84e9cc3de2dc3f8bd093328b991b22aadbb.

* Text hard to read on Dark Theme #667

* Fixed code style

---------

Co-authored-by: Niels de Jong <[email protected]>

* Hotfix for wrong default parameter replacement in markdown

* Add back arrow on connection modal (#675)

* fix: add back arrow on connection modal

* WIP on improved back arrow for connection modal

* Fixed dismissable connection modal based on connected state and standalone mode

---------

Co-authored-by: Niels de Jong <[email protected]>

* VULCAN-126/Override default message (#683)

* Override default message

* Refactored code

* refactored code

* Added docs

---------

Co-authored-by: Monish <[email protected]>

* Fix/hiding columns in table (#685)

* fixed the issues with not being able to close columns in table chart

* reverted back to orignal testpass

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Fix parameters values (#641)

Co-authored-by: Niels de Jong <[email protected]>

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues (#682)

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues

* Handling for dashboards in standalone mode

* cleaning code followign SonarCloud code smells

* changed migration function to reduce duplication, tested on twitter example dashboard

* changed how we fetch the latest version of the code

* changed migration function to reduce duplication, to test for applicationThunks

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Feature/gantt chart (#684)

* Added forms skeleton

* Completed form skeleton

* WIP on forms interface

* Form framework (data entry, running, success, error) added

* Added comments

* Adding fields specification interface

* UI for specifying individual parameter in a form

* changing Dockerfile to enable args during build

* fixing typo on argument in dockerfile

* reverting dockerfile to older version

* Rendering parameters inside the form component

* Added docs for forms. Improved stability on form

* Fixed warnings in console

* Finished IT test for forms report

* Added package

* added new field to disable a parameter selector (in this way it works only with actions)

* Gantt Chart Visualization

* Fixed issue where parameter values were not updated on external changes

* Fixed styling on freetext spinner

* Workaround for clipping menu selectors in Needle

* fix(rule based styling): js doing is magic with parseFloat (some strings were casted to floats event if they were just strings starting with 0

* Added save button to form create UI

* removing console logs

* Fix for needle dropdowns not showing on modals

* Sortable list for form parameters

* Improving the drag 'n drop

* Iterating on form interface

* Final version of forms

* Disabling test

* Gantt chart with live data

* Improved robustness of form / parameter select component

* Improve Gantt chart customizability. Added report action for Gantt charts

* Added wait-logic for form submission, so that all fields are debounced and set correctly

* Added multiline support for freetext parameter selector

* Added support for drilled-down parameters used in the forms component

* Fixed issues with parameter selector/forms, improve usability

* Added default advanced settings to form

* hanging if orders to prevent wrong casting to number for certain edge cases (EX: string with numbers and E : 00E1304)

* adding more options to gantt chart and adding variable calendar type

* Prototype of Frappe Gantt implementation

* Improved version of frappe gantt

* work in progress on new gantt chart

* Clean up code structure

* Clean up and documenting Gantt chart

* Gantt chart stability & arrow directions

* Handling task dependency directions in Gantt chart

* Improved styling

* More optimization & style fixes.

* Added docs for Gantt Chart

* Added rule-based styling and actions to Gantt chart

* Finalized Gantt chart docs, examples, and fallback date parsing

* removing code smells

* trying to plug quarter date format and cleaning code

* cleaning code accordingly to SonarCloud

* Fixed UI not populating correctly for rule-based styling and actions

* Gantt - fixed default width/height for bars. Visible labels. Handling quarters

* Updated label positions

* Fixed inspect modal for Gantt chart, fixed arrow spacing between tasks

* Fixed linting issues

---------

Co-authored-by: Niels de Jong <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>

* adding in advanced config for the graph viz more graph layout config … (#690)

* adding in advanced config for the graph viz more graph layout config options

* added doc about the new advanced setting

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Adding form widget as a new extension (#568)

* Added forms skeleton

* Completed form skeleton

* WIP on forms interface

* Form framework (data entry, running, success, error) added

* Added comments

* Adding fields specification interface

* UI for specifying individual parameter in a form

* changing Dockerfile to enable args during build

* fixing typo on argument in dockerfile

* reverting dockerfile to older version

* Rendering parameters inside the form component

* Added docs for forms. Improved stability on form

* Fixed warnings in console

* Finished IT test for forms report

* added new field to disable a parameter selector (in this way it works only with actions)

* Fixed issue where parameter values were not updated on external changes

* Fixed styling on freetext spinner

* Workaround for clipping menu selectors in Needle

* fix(rule based styling): js doing is magic with parseFloat (some strings were casted to floats event if they were just strings starting with 0

* Added save button to form create UI

* removing console logs

* Fix for needle dropdowns not showing on modals

* Sortable list for form parameters

* Improving the drag 'n drop

* Iterating on form interface

* Final version of forms

* Disabling test

* Improved robustness of form / parameter select component

* Updated docs, added clear form button

* removing code smells

* cleaning code followign SonarCloud code smells

* cleaning code followign SonarCloud code smells

* removing code smells

* Intelligent parameters clearing in forms

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Model Examples and LLM improvements (#600)

* now when changing database in a card the query will retrigger correctly

* adding schema sampling with apoc.meta.data and changing system prompt

* cleaning code and adding examples management

* starting working on plugging examples to the model

* examples plugged to state and to the modelClient to add the example prompy

* fixed examples in modelCLient because the there was a missing edge case

* added Q&A form for AI training

* Updated styling, added validation

* validation on q&a form (to talk with Marius about UX and styling)

* watching smells on sonarqube

* Question Answer form updated with tailwind and needle styling

* WIP creating edit Q&A modal

* working on examples modal

* WIP trying to get index prop to pass for ExampleEditorModal to work properly

* fix

* WIP

* latest

* plugging modelExamples table to the state and changing folder structure

* Issue with addModelExample action call

* working on model examples and fixing prompt behaviour

* Paginated table implemented. Needs styling.

* pagination done

* Added cypher code editor. No line numbers right now - would be useful. Also no label for cypher editor

* Added loading button when saving, error message if cypher editor is empty upon submission, removed legacy code

* latest

* ready for review

* changing prompt

* Updated. Fixed editing. Ready for Review

* fixing code smells

* WIP

* WIP ExampleDisplayTable2

* styling and pagination needed

* table done with styling, pagination

* deleted old table

* code smell 2/7 check

* check smells

* Checking smells

* moving component inside const

* Table ready for review

* Added initial pageSize

* Fixed instructions on 'tweak model' screen

* Fixed instructions on 'tweak model' screen

* Got rid of show number of queries per page

* checking code smells

* removing useless row from task definition

* changing folder names and changin from lazy import to normal on in ExtensionConfig

* removing code smells

* removing code smells

* removing code smells

* Fixed double dependency on react-table

* refactoring code according to Sonarcube code smelles and fixed play button on card vie w to rerun the chatCompletion

* Improved names

* Usability improvements for LLM extension

* Updating docs

* Added docs for custom LLM examples

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* Added release notes for 2.4 + bonus feature (keyboard shortcut to run query from the editor) (#694)

* Release notes for 2.4

* Updated release notes. Added quick feature to run reports with keyboard shortcuts

* Finalized release notes

* Hotfix for not clearing disabled parameters in forms

* Finalized release notes

* Removed old gantt chart dependency

* Bump docs version to 2.4

* Fixed issue with CodeMirror editor not capturing keys in Cypress test

* Hotfix for automigrated tree layouts

* Hotfixes for Sonarqube issues

* minor fix in the forms where it wasn't getting the correct value in the settings

* Fix hiding column prefix (#695)

* fixing missing feature that was hiding columns starting with __

* removing test console log

* removing code smell

* removing code smell

* fixing test

* Bumped outdated version numbers

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* fixing merge

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: Jon Ander Oribe <[email protected]>
Co-authored-by: Antônio Hugo <[email protected]>
Co-authored-by: Monish <[email protected]>
Co-authored-by: Aleksandar <[email protected]>
Co-authored-by: aleksandarneo4j <[email protected]>
Co-authored-by: alfredorubin96 <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>

* Bump @adobe/css-tools from 4.3.1 to 4.3.2

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: Jon Ander Oribe <[email protected]>
Co-authored-by: Antônio Hugo <[email protected]>
Co-authored-by: Monish <[email protected]>
Co-authored-by: Aleksandar <[email protected]>
Co-authored-by: aleksandarneo4j <[email protected]>
Co-authored-by: alfredorubin96 <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>

* Feature/8raven (#705)

* Title not editable in standalone mode

* standalone load v1 (working)

* load from database refinements with new conf var

* config.json reset to defaults

* first implementation - needs few refinements

* index on feature/log: ceda481c first implementation - needs few refinements

* added Tooltip for Save button in standalone mode

* polished

* fix on error notification

* minor refinement in documentation

* hide logout button in standalone mode

* man merge d137081cfde4b2d5dcf1192b8a9be675e953bd0b

* man chg 0484e44ed345e8a9008fcebc8753ddf881f038f1

* added configuration to allow multiple data DBs

* fix on config-entrypoint and reorder parameters

* bugfix on config-entrypoint.sh

* fix to update standaloneDB for standaloneMultiDB

* added useffect in card.tsx to save DB

* query modified in saveDashboardThunks

* updated config-entrypoint

* added config parameter to set cusom Header

* documentation

* fix dirt in style.config

* fix dirt in config.json

* Update ApplicationConfig.ts fix dirt

* moving logging logic to its own reducer

* fixing new selector and small refactorings

* cleaning code and testing standalone

* adding database list check

* changing version to 3.18 to address address Cve-2023-4863 and cve-2023-38039

* removing unused imports

* working on final release

* fixed dashboards sidebar error when the db doesn't contain any dashboard and tested standalone

* removing useless import

* removing change in runCypherQuery and reusing the status of the queryResult correctly to trigger db change

* removing change in runCypherQuery and reusing the status of the queryResult correctly to trigger db change

---------

Co-authored-by: BlackRaven <[email protected]>
Co-authored-by: BlackRaven <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>

* Fixed menu placement for node property selector in form modal

* Fix race condition caused by incorrect date casted from serialized dashboard format

* Parameter selector suggestions are now sorted by length

* Improved styling of dashboard header buttons, download CSV button (#729)

* Bumped version to 2.4.1 & added release notes (#731)

* Bumped version to 2.4.1

* Updated release notes

* Removed duplicate key in dependencies

* Added release note detail on bar charts

* fixing rule based styling wrong casting at number

* Hotfix for broken custom header deployments

* changing report config default options (#724)

* changing report config default options

* Minor style fixes

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* Browser tab titles (#708)

* 2.4.0 update (#696)

* Made API keys hidden (password fields) in the query translator module

* Added new report action type for tables: multiselect checkboxes (#664)

* Work in progress on table checkboxes

* Fix handling external updates of parameter values in parameter selector

* Improved handling of multiselector parameters for tables with checkboxes

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Added multiselect value limit

* Clean up action rule create modal

* Added docs on multiple selection with table rows and report actions

* Fix handling external updates of parameter values in parameter selector (#663)

* Fix handling external updates of parameter values in parameter selector

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Feature/new dashboard load UI (#657)

* Added sidebar prototype

* Return of the sidebar

* Add database selector to sidebar

* Iterating on the dashboard sidebar interface

* Fixed usage of hardcoded color

* Updated dashboard loading mechanism, iterating

* Updated dashboard loading mechanism, iterating

* Updated file structure for dashboard sidebar

* Improved modal/menu handling for dashboard load

* Import/export dashboards

* New dashboard sharing interface

* Removed old save/load modal

* Finalized v1 of the new multi-dashboard UI

* removing useless imports

* Removed old isLoaded in state of dashboard load screen. Updated warning buttons

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Bump @babel/traverse from 7.21.4 to 7.23.2 in /gallery (#670)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @babel/traverse from 7.20.13 to 7.23.2 (#669)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.13 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.23 to 8.4.31 in /gallery (#656)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.23 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.23...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.21 to 8.4.31 (#655)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Text hard to read on dark theme (#668)

* Hiding columns in Table does not work #374

* Revert "Hiding columns in Table does not work #374"

This reverts commit dc36d84e9cc3de2dc3f8bd093328b991b22aadbb.

* Text hard to read on Dark Theme #667

* Fixed code style

---------

Co-authored-by: Niels de Jong <[email protected]>

* Hotfix for wrong default parameter replacement in markdown

* Add back arrow on connection modal (#675)

* fix: add back arrow on connection modal

* WIP on improved back arrow for connection modal

* Fixed dismissable connection modal based on connected state and standalone mode

---------

Co-authored-by: Niels de Jong <[email protected]>

* VULCAN-126/Override default message (#683)

* Override default message

* Refactored code

* refactored code

* Added docs

---------

Co-authored-by: Monish <[email protected]>

* Fix/hiding columns in table (#685)

* fixed the issues with not being able to close columns in table chart

* reverted back to orignal testpass

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Fix parameters values (#641)

Co-authored-by: Niels de Jong <[email protected]>

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues (#682)

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues

* Handling for dashboards in standalone mode

* cleaning code followign SonarCloud code smells

* changed migration function to reduce duplication, tested on twitter example dashboard

* changed how we fetch the latest version of the code

* changed migration function to reduce duplication, to test for applicationThunks

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Feature/gantt chart (#684)

* Added forms skeleton

* Completed form skeleton

* WIP on forms interface

* Form framework (data entry, running, success, error) added

* Added comments

* Adding fields specification interface

* UI for specifying individual parameter in a form

* changing Dockerfile to enable args during build

* fixing typo on argument in dockerfile

* reverting dockerfile to older version

* Rendering parameters inside the form component

* Added docs for forms. Improved stability on form

* Fixed warnings in console

* Finished IT test for forms report

* Added package

* added new field to disable a parameter selector (in this way it works only with actions)

* Gantt Chart Visualization

* Fixed issue where parameter values were not updated on external changes

* Fixed styling on freetext spinner

* Workaround for clipping menu selectors in Needle

* fix(rule based styling): js doing is magic with parseFloat (some strings were casted to floats event if they were just strings starting with 0

* Added save button to form create UI

* removing console logs

* Fix for needle dropdowns not showing on modals

* Sortable list for form parameters

* Improving the drag 'n drop

* Iterating on form interface

* Final version of forms

* Disabling test

* Gantt chart with live data

* Improved robustness of form / parameter select component

* Improve Gantt chart customizability. Added report action for Gantt charts

* Added wait-logic for form submission, so that all fields are debounced and set correctly

* Added multiline support for freetext parameter selector

* Added support for drilled-down parameters used in the forms component

* Fixed issues with parameter selector/forms, improve usability

* Added default advanced settings to form

* hanging if orders to prevent wrong casting to number for certain edge cases (EX: string with numbers and E : 00E1304)

* adding more options to gantt chart and adding variable calendar type

* Prototype of Frappe Gantt implementation

* Improved version of frappe gantt

* work in progress on new gantt chart

* Clean up code structure

* Clean up and documenting Gantt chart

* Gantt chart stability & arrow directions

* Handling task dependency directions in Gantt chart

* Improved styling

* More optimization & style fixes.

* Added docs for Gantt Chart

* Added rule-based styling and actions to Gantt chart

* Finalized Gantt chart docs, examples, and fallback date parsing

* removing code smells

* trying to plug quarter date format and cleaning code

* cleaning code accordingly to SonarCloud

* Fixed UI not populating correctly for rule-based styling and actions

* Gantt - fixed default width/height for bars. Visible labels. Handling quarters

* Updated label positions

* Fixed inspect modal for Gantt chart, fixed arrow spacing between tasks

* Fixed linting issues

---------

Co-authored-by: Niels de Jong <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>

* adding in advanced config for the graph viz more graph layout config … (#690)

* adding in advanced config for the graph viz more graph layout config options

* added doc about the new advanced setting

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Adding form widget as a new extension (#568)

* Added forms skeleton

* Completed form skeleton

* WIP on forms interface

* Form framework (data entry, running, success, error) added

* Added comments

* Adding fields specification interface

* UI for specifying individual parameter in a form

* changing Dockerfile to enable args during build

* fixing typo on argument in dockerfile

* reverting dockerfile to older version

* Rendering parameters inside the form component

* Added docs for forms. Improved stability on form

* Fixed warnings in console

* Finished IT test for forms report

* added new field to disable a parameter selector (in this way it works only with actions)

* Fixed issue where parameter values were not updated on external changes

* Fixed styling on freetext spinner

* Workaround for clipping menu selectors in Needle

* fix(rule based styling): js doing is magic with parseFloat (some strings were casted to floats event if they were just strings starting with 0

* Added save button to form create UI

* removing console logs

* Fix for needle dropdowns not showing on modals

* Sortable list for form parameters

* Improving the drag 'n drop

* Iterating on form interface

* Final version of forms

* Disabling test

* Improved robustness of form / parameter select component

* Updated docs, added clear form button

* removing code smells

* cleaning code followign SonarCloud code smells

* cleaning code followign SonarCloud code smells

* removing code smells

* Intelligent parameters clearing in forms

---------

Co-authored-by: Alfred Rubin <[email protected]>

* Model Examples and LLM improvements (#600)

* now when changing database in a card the query will retrigger correctly

* adding schema sampling with apoc.meta.data and changing system prompt

* cleaning code and adding examples management

* starting working on plugging examples to the model

* examples plugged to state and to the modelClient to add the example prompy

* fixed examples in modelCLient because the there was a missing edge case

* added Q&A form for AI training

* Updated styling, added validation

* validation on q&a form (to talk with Marius about UX and styling)

* watching smells on sonarqube

* Question Answer form updated with tailwind and needle styling

* WIP creating edit Q&A modal

* working on examples modal

* WIP trying to get index prop to pass for ExampleEditorModal to work properly

* fix

* WIP

* latest

* plugging modelExamples table to the state and changing folder structure

* Issue with addModelExample action call

* working on model examples and fixing prompt behaviour

* Paginated table implemented. Needs styling.

* pagination done

* Added cypher code editor. No line numbers right now - would be useful. Also no label for cypher editor

* Added loading button when saving, error message if cypher editor is empty upon submission, removed legacy code

* latest

* ready for review

* changing prompt

* Updated. Fixed editing. Ready for Review

* fixing code smells

* WIP

* WIP ExampleDisplayTable2

* styling and pagination needed

* table done with styling, pagination

* deleted old table

* code smell 2/7 check

* check smells

* Checking smells

* moving component inside const

* Table ready for review

* Added initial pageSize

* Fixed instructions on 'tweak model' screen

* Fixed instructions on 'tweak model' screen

* Got rid of show number of queries per page

* checking code smells

* removing useless row from task definition

* changing folder names and changin from lazy import to normal on in ExtensionConfig

* removing code smells

* removing code smells

* removing code smells

* Fixed double dependency on react-table

* refactoring code according to Sonarcube code smelles and fixed play button on card vie w to rerun the chatCompletion

* Improved names

* Usability improvements for LLM extension

* Updating docs

* Added docs for custom LLM examples

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* Added release notes for 2.4 + bonus feature (keyboard shortcut to run query from the editor) (#694)

* Release notes for 2.4

* Updated release notes. Added quick feature to run reports with keyboard shortcuts

* Finalized release notes

* Hotfix for not clearing disabled parameters in forms

* Finalized release notes

* Removed old gantt chart dependency

* Bump docs version to 2.4

* Fixed issue with CodeMirror editor not capturing keys in Cypress test

* Hotfix for automigrated tree layouts

* Hotfixes for Sonarqube issues

* minor fix in the forms where it wasn't getting the correct value in the settings

* Fix hiding column prefix (#695)

* fixing missing feature that was hiding columns starting with __

* removing test console log

* removing code smell

* removing code smell

* fixing test

* Bumped outdated version numbers

---------

Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>

* fixing merge

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: Jon Ander Oribe <[email protected]>
Co-authored-by: Antônio Hugo <[email protected]>
Co-authored-by: Monish <[email protected]>
Co-authored-by: Aleksandar <[email protected]>
Co-authored-by: aleksandarneo4j <[email protected]>
Co-authored-by: alfredorubin96 <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>

* Browser Tab titles

* fix: dashboard tab title change

* Added default tab title

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Niels de Jong <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: Jon Ander Oribe <[email protected]>
Co-authored-by: Antônio Hugo <[email protected]>
Co-authored-by: Aleksandar <[email protected]>
Co-authored-by: aleksandarneo4j <[email protected]>
Co-authored-by: alfredorubin96 <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>

* Fixed linting. Added dark mode fix for graphs (#743)

* Adding in 3D graph visualization as an advanced visualization (#737)

* Multiple relationships between nodes in 3D graph & self-loops

* Refactoring graph code

* Renamed files for graph visualization interface

* Refactored 2D/3D graph to share a common base

* Enabled report actions

* Finalized 3D graph code

* Added docs for 3D graph

* Fixed non-https placeholder for advanced setting

* Actions/rule-based styling for 3d graph

* Improved handling of draft dashboards in the sidebar, allowing to distinguish between save/overwrite (#734)

* Improved handling of draft dashboards in the sidebar, allowing to distinguish between logical saves/overwrites

* Ordering dashboard list by name rather than edit date

* Added parameter select setting for autopopulating first selector value (#746)

* Added setting for autoselecting first parameter select value

* Sorting returned auto selector values

* Selecting the first value of the suggestions correctly

* 2.4.2 Release Notes (#745)

* Added 2.4.2 release notes template

* WIP on changelog

* Finalized release notes

* Collection of bug fixes for the 2.4.2 release (#744)

* Fixed issue where table action rule creation modal displayed invalid suggestions

* Add support for links in table actions, as well as improved rendering of links in markdown

* No longer rendering empty buttons for missing values in table actions

* Fix number formatting to always use en-US locale

* Fixed issue where dashboard database was not set correctly for share links without credentials

* Fixed dashboard title visibility in sidebar

* Added missing setting to pie chart configuration

* Clean up code, remove old console.log statements

* Stability and UX for table checkbox actiosn

* Handling shared dashboards in standalone mode

* Added hidden setting for hiding the plaintext password warning. Fixed issue with casting null dates

* Style tweaks for reports without footers

* Fixed styling defaults for bar chart

* Fixed fullscreen views

* Freetext parameter with manual save style fixes

* clean up graph editing modal

* Correction to release notes

* Robustness of actions rule create modal

* Improved comments

* Hotfix for typo in release notes

* Final docs for 2.4.2 release

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: jacobbleakley-neo4j <[email protected]>
Co-authored-by: Alfred Rubin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: Jon Ander Oribe <[email protected]>
Co-authored-by: Antônio Hugo <[email protected]>
Co-authored-by: Monish <[email protected]>
Co-authored-by: Aleksandar <[email protected]>
Co-authored-by: aleksandarneo4j <[email protected]>
Co-authored-by: alfredorubin96 <[email protected]>
Co-authored-by: Felipe Rodrigues de Santana Freitag <[email protected]>
Co-authored-by: BlackRaven <[email protected]>
Co-authored-by: BlackRaven <[email protected]>

* Fixed issue where dashboards were marked as draft incorrectly on selection change (#779)

* Update Configuration Docs (#777)

SSO enabled for editor mode

* Bump follow-redirects from 1.15.2 to 1.15.4 in /gallery (#747)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump follow-redirects from 1.15.2 to 1.15.4 (#749)

* Bump follow-redirects from 1.15.2 to 1.15.4

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* 2.4.2 Release (#752)

* Made API keys hidden (password fields) in the query translator module

* Legend on bottom, working on scrolling

* Scrolling added, legend gets cut off. Need to set width according to content

* Set autowidth depending on length of array

* wednesday

* Added new report action type for tables: multiselect checkboxes (#664)

* Work in progress on table checkboxes

* Fix handling external updates of parameter values in parameter selector

* Improved handling of multiselector parameters for tables with checkboxes

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Added multiselect value limit

* Clean up action rule create modal

* Added docs on multiple selection with table rows and report actions

* Fix handling external updates of parameter values in parameter selector (#663)

* Fix handling external updates of parameter values in parameter selector

* Removed console log statement. Fix invalid behaviour

* Updated comments

* Feature/new dashboard load UI (#657)

* Added sidebar prototype

* Return of the sidebar

* Add database selector to sidebar

* Iterating on the dashboard sidebar interface

* Fixed usage of hardcoded color

* Updated dashboard loading mechanism, iterating

* Updated dashboard loading mechanism, iterating

* Updated file structure for dashboard sidebar

* Improved modal/menu handling for dashboard load

* Import/export dashboards

* New dashboard sharing interface

* Removed old save/load modal

* Finalized v1 of the new multi-dashboard UI

* removing useless imports

* Removed old isLoaded in state of dashboard load screen. Updated warning buttons

---------

Co-authored-by: Alfred Rubin <[email protected]>

* monday

* Horizontal/Vertical legend switch

* Sorted graph sizing with padding

* Tuesday Afternoon

* Mapped bar chart event to standardized action event

* Wednesday Morning

* Added event handling for actions on bar charts

* Fixed styling for bar chart report action

* Bump @babel/traverse from 7.21.4 to 7.23.2 in /gallery (#670)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @babel/traverse from 7.20.13 to 7.23.2 (#669)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.13 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.23 to 8.4.31 in /gallery (#656)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.23 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.23...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* Bump postcss from 8.4.21 to 8.4.31 (#655)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Harold Agudelo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels de Jong <[email protected]>

* added minimum bar height

* Text hard to read on dark theme (#668)

* Hiding columns in Table does not work #374

* Revert "Hiding columns in Table does not work #374"

This reverts commit dc36d84e9cc3de2dc3f8bd093328b991b22aadbb.

* Text hard to read on Dark Theme #667

* Fixed code style

---------

Co-authored-by: Niels de Jong <[email protected]>

* Monday

* Hotfix for wrong default parameter replacement in markdown

* Add back arrow on connection modal (#675)

* fix: add back arrow on connection modal

* WIP on improved back arrow for connection modal

* Fixed dismissable connection modal based on connected state and standalone mode

---------

Co-authored-by: Niels de Jong <[email protected]>

* VULCAN-126/Override default message (#683)

* Override default message

* Refactored code

* refactored code

* Added docs

---------

Co-authored-by: Monish <[email protected]>

* Added report action functionality in bar chart when using BarComponent

* Fix/hiding columns in table (#685)

* fixed the issues with not being able to close columns in table chart

* reverted back to orignal testpass

---------

Co-authored-by: aleksandarneo4j <[email protected]>

* Fix parameters values (#641)

Co-authored-by: Niels de Jong <[email protected]>

* Removed adjustedData state for min bar height

* Added comments to BarChart.tsx

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues (#682)

* Updated dashboard format to 2.4. Double resolution for horizontal and vertical card placement. Fixed several small usability issues

* Handling for dashboards in standalone mode

* cleaning code followign SonarCloud code smells

* changed migration function to reduce duplication, tested on twitter exa…
  • Loading branch information
1 parent a13fd95 commit cff7445
Show file tree
Hide file tree
Showing 148 changed files with 4,506 additions and 1,307 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"extends": ["eslint:recommended", "prettier", "plugin:@typescript-eslint/recommended"], // this is optional
"env": {
"browser": true,
"node": true
"node": true,
"jest": true
},
"settings": {
"react": {
Expand Down Expand Up @@ -166,5 +167,9 @@
],
"symbol-description": "error",
"yoda": "error"
},
"globals": {
"cy": "readonly",
"Cypress": "readonly"
}
}
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
target-branch: 'develop'

- package-ecosystem: 'npm'
directory: '/gallery'
schedule:
interval: 'weekly'
target-branch: 'develop'

- package-ecosystem: 'npm'
directory: '/docs'
schedule:
interval: 'weekly'
target-branch: 'develop'
6 changes: 3 additions & 3 deletions .github/workflows/master-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
build: yarn run build
start: yarn run dev
wait-on: "http://localhost:3000"
wait-on: 'http://localhost:3000'
browser: chrome
build-s3:
needs: build-test
Expand Down 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.4.2
tags: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:2.4.9
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.4.2
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.4.9
deploy-gallery:
runs-on: neodash-runners
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target
/coverage
/.nyc_output
cypress/videos

cypress/screenshots
# production
/build
/dist
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ WORKDIR /usr/local/src/neodash

# Copy sources and install/build
COPY ./package.json /usr/local/src/neodash/package.json
COPY ./yarn.lock /usr/local/src/neodash/yarn.lock

RUN yarn install
COPY ./ /usr/local/src/neodash
Expand Down Expand Up @@ -43,4 +44,4 @@ USER nginx
EXPOSE $NGINX_PORT

HEALTHCHECK cmd curl --fail "http://localhost:$NGINX_PORT" || exit 1
LABEL version="2.4.2"
LABEL version="2.4.9"
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@

## NeoDash - Neo4j Dashboard Builder
NeoDash is an open source tool for visualizing your Neo4j data. It lets you group visualizations together as dashboards, and allow for interactions between reports.
## NeoDash Labs - Neo4j Dashboard Builder

![screenshot](public/screenshot.png)
![screenshot](evolving.png)

In September 2024 **Neo4j [announced](https://www.datanami.com/2024/09/04/neo4j-simplifies-graph-database-in-the-cloud/#:~:text=NeoDash%20is%20an%20open%20source,was%20open%20source%2C%20not%20supported) NeoDash is evolving into a fully supported dashboard builder, as part of the Neo4j product suite**.

This project (NeoDash Labs) will still be available and contain experimental features, but will **not** have official support. If you're interested to get official support for NeoDash as part of a Neo4j License agreement, please reach out to your Neo4j contact person.

## About NeoDash Labs
NeoDash is a web-based tool for visualizing your Neo4j data. It lets you group visualizations together as dashboards, and allow for interactions between reports.

Neodash supports presenting your data as tables, graphs, bar charts, line charts, maps and more. It contains a Cypher editor to directly write the Cypher queries that populate the reports. You can save dashboards to your database, and share them with others.

## Try NeoDash
## Try NeoDash Labs
You can run NeoDash in one of three ways:

1. You can install NeoDash into Neo4j Desktop from the [graph app gallery](https://install.graphapp.io). NeoDash will automatically connect to your active database.
2. You can run NeoDash from a web browser by visiting http://neodash.graphapp.io.
1. You can install NeoDash Labs into Neo4j Desktop from the [graph app gallery](https://install.graphapp.io). NeoDash will automatically connect to your active database.
> Note: never versions of Neo4j Desktop do not support adding experimental graph apps such as NeoDash.
2. You can run NeoDash Labs from a web browser by visiting http://neodash.graphapp.io.
3. For on-prem deployments, you can build the application yourself, or pull the latest Docker image from Docker Hub.
```
# Run the application on http://localhost:5005
Expand Down Expand Up @@ -79,4 +87,4 @@ If you have any questions about NeoDash, please reach out to the maintainers:
- Connect with us on the [Neo4j Discord](https://neo4j.com/developer/discord/).
- Create a post on the Neo4j [Community Forum](https://community.neo4j.com/).

> NeoDash is a free and open-source tool developed by the Neo4j community - not an official Neo4j product. If you have a need for a commercial agreement around training, custom extensions or other services, please contact the [Neo4j Professional Services](https://neo4j.com/professional-services/) team.
> NeoDash Labs is a free and open-source tool developed by the Neo4j community - not an official Neo4j product. Use at your own risk!
100 changes: 100 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,103 @@
## NeoDash 2.4.9
This release adds some minor changes to documentation and implements some community contributions.
- Added notice about project evolution: [#967](https://github.com/neo4j-labs/neodash/pull/967)
- Added community contributions and bug fixes:
[#967](https://github.com/neo4j-labs/neodash/pull/967)
[#894](https://github.com/neo4j-labs/neodash/pull/894)
[#822](https://github.com/neo4j-labs/neodash/pull/822)
[#951](https://github.com/neo4j-labs/neodash/pull/951)
[#946](https://github.com/neo4j-labs/neodash/pull/946)
[#944](https://github.com/neo4j-labs/neodash/pull/944)
[#943](https://github.com/neo4j-labs/neodash/pull/943)
[#938](https://github.com/neo4j-labs/neodash/pull/938)
[#935](https://github.com/neo4j-labs/neodash/pull/935)
[#918](https://github.com/neo4j-labs/neodash/pull/918)
[#908](https://github.com/neo4j-labs/neodash/pull/908)
[#906](https://github.com/neo4j-labs/neodash/pull/906)
[#902](https://github.com/neo4j-labs/neodash/pull/902)
[#895](https://github.com/neo4j-labs/neodash/pull/895)
[#893](https://github.com/neo4j-labs/neodash/pull/893)

## NeoDash 2.4.8
This is a minor release containing an important fix and other minor fixes:

- Fixed a bug where loading a dashboard would reset parameters to null ([887](https://github.com/neo4j-labs/neodash/pull/887)).
- Fix relationship width parameter for Graph report ([889](https://github.com/neo4j-labs/neodash/pull/889)).

Thanks to all the contributors for this release:
- [alfredorubin96](https://github.com/alfredorubin96),
- [nielsdejong](https://github.com/nielsdejong).

## NeoDash 2.4.7
This is a minor release containing a few critical fixes and general code quality improvements:

- Fix multiple parameter select ([881](https://github.com/neo4j-labs/neodash/pull/881)).
- Fix parameter casting error when loading dashboards([874](https://github.com/neo4j-labs/neodash/pull/874)).
- Fix the fraud demo in the [Example Gallery](https://neodash-gallery.graphapp.io/).

Thanks to all the contributors for this release:
- [alfredorubin96](https://github.com/alfredorubin96),
- [MariusC](https://github.com/mariusconjeaud),
- [elizarp](https://github.com/elizarp).

## NeoDash 2.4.6
This is a minor release containing a few critical fixes and some extra style customizations:

- Fix bad text wrapping for arrays in tables ([868](https://github.com/neo4j-labs/neodash/pull/868)).
- Make wrapping in table optional, disabled by default ([872](https://github.com/neo4j-labs/neodash/pull/872)).
- Fixed issues where cross database dashboard sharing always reverted back to the default database ([873](https://github.com/neo4j-labs/neodash/pull/873)).
- Added option to define style config using environment variables for the Docker image ([876](https://github.com/neo4j-labs/neodash/pull/876)).

## NeoDash 2.4.5
This is a small release containing a few fixes:
- Fixed rendering of string arrays inside tables, report titles, and report action buttons [849](https://github.com/neo4j-labs/neodash/pull/849)
- Allowed text to wrap in tables, preserving the number of rows [852](https://github.com/neo4j-labs/neodash/pull/852)
- Disabled auto-sorting of Cypher query-based Parameter Select ; use Cypher ORDER BY to control result order [857](https://github.com/neo4j-labs/neodash/pull/857)
- Updated role selector menu, and made user updates more robust [854](https://github.com/neo4j-labs/neodash/pull/854)

Thanks to all the contributors for this release:
- [MariusC](https://github.com/mariusconjeaud),
- [LiamEdwardsLamarche](https://github.com/LiamEdwardsLamarche),
- [AleSim94](https://github.com/AleSim94)

## NeoDash 2.4.4
This is a hotfix release fixing some breaking issues in the 2.4.3:
- Fixed number parsing using newer versions of the Neo4j driver. [811](https://github.com/neo4j-labs/neodash/pull/811)
- Reverted new connection handler for auto-renewed SSO sessions. [815](https://github.com/neo4j-labs/neodash/pull/815)
- Improved handling of parameters in form extension, resolved local state issues. [813](https://github.com/neo4j-labs/neodash/pull/813)
- Updated Role management extension to no longer execute queries in parallel, improved UX and error handling [813](https://github.com/neo4j-labs/neodash/pull/813)

If you are currently using NeoDash version 2.4.3, we recommend updating as soon as possible.

## NeoDash 2.4.3
This release contains several improvements and additions to multi-dashboard management, as well as a bug fixes and a variety of quality-of-life improvements:

Dashboard management and access control:
- Added a UI for handling dashboard access using RBAC, as well as a new extension to simply access control.
- Added button to sidebar to refresh the list of dashboards saved in the database.
- Improved handling and detection of draft dashboards in the dashboard sidebar.

Other improvements:
- Changed CSV export functionality for tables to use UTF-8 format.
- Various improvements / fixes to the documentation to include new images, and up-to-date functionality.
- Added logic for handling refresh tokens when connected to NeoDash via SSO.
- Incorporated tooltips for bar charts with and without custom labels.

Bug fixes and testing:
- Implemented bug fixes on type casting for numeric parameter selectors.
- Fixed issue with report actions not functioning properly on node click events.
- Extended test suite with Cypress tests for advanced settings in the bar chart.

Thanks to all the contributors for this release:
- [OskarDamkjaer](https://github.com/OskarDamkjaer)
- [alfredorubin96](https://github.com/alfredorubin96),
- [AleSim94](https://github.com/AleSim94),
- [BennuFire](https://github.com/BennuFire),
- [jacobbleakley-neo4j](https://github.com/jacobbleakley-neo4j),
- [josepmonclus](https://github.com/josepmonclus)
- [nielsdejong](https://github.com/nielsdejong)


## NeoDash 2.4.2
This is a release with a large amount of quality of life improvements, as well as some new features:

Expand Down
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineConfig({
projectId: 'a8nh14',
video: false,
e2e: {
defaultCommandTimeout: 20000,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 0,
baseUrl: 'http://localhost:3000',
Expand Down
156 changes: 156 additions & 0 deletions cypress/Page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
const DB_URL = 'localhost';
const DB_USERNAME = 'neo4j';
const DB_PASSWORD = 'test1234';

export class Page {
constructor(cardSelector) {
this.cardSelector = cardSelector;
}

init() {
cy.viewport(1920, 1080);
cy.visit('/', {
onBeforeLoad(win) {
win.localStorage.clear();
},
});
return this;
}

createNewDashboard() {
cy.get('#form-dialog-title').then(($div) => {
const text = $div.text();
if (text == 'NeoDash - Neo4j Dashboard Builder') {
cy.wait(100);
// Create new dashboard
cy.contains('New Dashboard').click();
}
});
return this;
}

connectToNeo4j() {
cy.get('#form-dialog-title', { timeout: 20000 }).should('contain', 'Connect to Neo4j');
cy.get('#url').clear().type(DB_URL);
cy.get('#dbusername').clear().type(DB_USERNAME);
cy.get('#dbpassword').type(DB_PASSWORD);
cy.get('button').contains('Connect').click();
cy.wait(100);
return this;
}

enableReportActions() {
cy.get('main button[aria-label="Extensions').should('be.visible').click();
cy.get('#checkbox-actions').scrollIntoView();
cy.get('#checkbox-actions').should('be.visible').click();
cy.get('.ndl-dialog-close').scrollIntoView().should('be.visible').click();
cy.wait(100);
return this;
}

enableAdvancedVisualizations() {
cy.get('main button[aria-label="Extensions').should('be.visible').click();
cy.get('#checkbox-advanced-charts').should('be.visible').click();
cy.get('.ndl-dialog-close').scrollIntoView().should('be.visible').click();
cy.wait(100);
return this;
}

enableFormsExtension() {
cy.get('main button[aria-label="Extensions').should('be.visible').click();
cy.get('#checkbox-forms').scrollIntoView();
cy.get('#checkbox-forms').should('be.visible').click();
cy.get('.ndl-dialog-close').scrollIntoView().should('be.visible').click();
cy.wait(100);
return this;
}

selectReportOfType(type) {
cy.get('main .react-grid-item button[aria-label="add report"]').should('be.visible').click();
cy.get('main .react-grid-item')
.contains('No query specified.')
.parentsUntil('.react-grid-item')
.find('button[aria-label="settings"]', { timeout: 2000 })
.should('be.visible')
.click();
cy.get(`${this.cardSelector} #type`, { timeout: 2000 }).should('be.visible').click();
cy.contains(type).click();
cy.wait(100);
return this;
}

createReportOfType(type, query, fast = false, run = true) {
this.selectReportOfType(type);
if (fast) {
cy.get(`${this.cardSelector} .ReactCodeMirror`).type(query, {
delay: 1,
parseSpecialCharSequences: false,
});
} else {
cy.get(`${this.cardSelector} .ReactCodeMirror`).type(query, { parseSpecialCharSequences: false });
}
cy.wait(400);

if (run) {
this.closeSettings();
}

cy.wait(100);
return this;
}

openSettings() {
cy.get(this.cardSelector).find('button[aria-label="settings"]', { WAITING_TIME: 2000 }).click();
cy.wait(100);
return this;
}

closeSettings() {
cy.get(`${this.cardSelector} button[aria-label="run"]`).click();
cy.wait(100);
return this;
}

openAdvancedSettings() {
this.openSettings();
cy.get(this.cardSelector).contains('Advanced settings').click();
cy.wait(100);
return this;
}

closeAdvancedSettings() {
cy.get(this.cardSelector).contains('Advanced settings').click();
this.closeSettings();
return this;
}

openReportActionsMenu() {
this.openSettings();
cy.get(this.cardSelector).find('button[aria-label="custom actions"]').click();
cy.wait(100);
return this;
}

updateDropdownAdvancedSetting(settingLabel, targetValue) {
this.openAdvancedSettings();
cy.get(`${this.cardSelector} .ndl-dropdown`).contains(settingLabel).siblings('div').click();
cy.contains(targetValue).click();
this.closeAdvancedSettings();
return this;
}

updateChartQuery(query) {
this.openSettings();

cy.get(this.cardSelector)
.find('.ndl-cypher-editor div[role="textbox"]')
.should('be.visible')
.click()
.clear()
.type(query);
cy.wait(100);

this.closeSettings();
return this;
}
}
Loading

0 comments on commit cff7445

Please sign in to comment.