From 3f5e0fbfa17ab1c5c12f7149c8f81daeb1197b06 Mon Sep 17 00:00:00 2001 From: Brahm Prakash Mishra <134035157+brahmprakashMishra@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:29:25 +0530 Subject: [PATCH 1/7] Hotfix for v2.4 label in dashboards (#86) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Renamed docs portal * Release 2.3.4 (#580) * Improved contrast for light and dark theme interfaces * Improve styling for actions model. Improved robustness of card settings content * First draft * Fix editing * Clean console * Clean drawer * Fixed issue where users cannot return to edit mode after turning off editing. Make extensions a seperate FAB. Improved styling for rule-based styling creation modal * circular dependencies * circular dependencies 2 * circular dependencies 3 * circular dependencies 4 * circular dependencies 5 * Last clean * Deleting Sidebar and Workflow * Final touch * Icons migration 1 * Icons material free * Reducing duplication * Smells * uuid migration * Added user agent to driver object * Bumped version * Added better version format * Moving circular to dev dep * Smells * Adding release notes * Updated Github runners * Fixed IT test for advanced settings * remove luma + markers pin * Selector options * Fixed double scroll bar * Tooltips nivo contrast * Runs on non drafts * Color picker selection * Version bump and release notes * Fix on Nivo Canvas * Fixing unused import * Fix version 2.3.4 (#581) * Hotfix for outdated version config on some components --------- Co-authored-by: Niels de Jong * Fix axis color on non canvas * Moving Header Text color up * Adjusting to default Pie Margins default https://github.com/neo4j-labs/neodash/issues/486 * Bump @adobe/css-tools from 4.1.0 to 4.3.1 Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.1.0 to 4.3.1. - [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] * Removed hardcoded subpath Signed off: monish.nandakumaran@mercedes-benz.com * Fix multiple providers * Update quickstart.adoc change docker pull to use neo4jlabs repo instead of Niels * Fix if * Base config * Docs on ssoProviders * Optional Params * Fix bar colors * Cherry Cleaned * Extra colors * Fix * Improve robustness for edge header title * Fix locale and link prep * Clean logs * Changelog * Version bumps * Tests * Change start to prod * back to dev * back to prod * Version package * bump cypress * bump cypress * Font on pies * FIxes * FIxes * 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 * 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] Co-authored-by: Harold Agudelo 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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 * 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 * VULCAN-126/Override default message (#683) * Override default message * Refactored code * refactored code * Added docs --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> * 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 * Fix parameters values (#641) Co-authored-by: Niels de Jong * 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 * 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 Co-authored-by: Alfred Rubin * 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 * 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 * 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 Co-authored-by: jacobbleakley-neo4j Co-authored-by: Niels de Jong * 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 * 2.4 Release (#688) * 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 * 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] Co-authored-by: Harold Agudelo 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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 * 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 * VULCAN-126/Override default message (#683) * Override default message * Refactored code * refactored code * Added docs --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> * 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 * Fix parameters values (#641) Co-authored-by: Niels de Jong * 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 * 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 Co-authored-by: Alfred Rubin * 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 * 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 * 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 Co-authored-by: jacobbleakley-neo4j Co-authored-by: Niels de Jong * 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 --------- Signed-off-by: dependabot[bot] Co-authored-by: Alfred Rubin Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Harold Agudelo Co-authored-by: Jon Ander Oribe Co-authored-by: Antônio Hugo Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Co-authored-by: Aleksandar Co-authored-by: aleksandarneo4j Co-authored-by: alfredorubin96 <103421036+alfredorubin96@users.noreply.github.com> Co-authored-by: jacobbleakley-neo4j * 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 Co-authored-by: Niels de Jong * fixing merge * Dynamic height report * Refactored * Wrapping NeoDashboardSidebar in a div to prevent rendering issues * Neodash Bug Fixes * opens landing page in new url * Added landing page link to logo * Removed obsolete code * Bug Fixes (#82) * Changed dockerfile version (#85) * v2.4 changes (#87) --------- Signed-off-by: dependabot[bot] Co-authored-by: Niels de Jong Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Co-authored-by: davidlrosenblum Co-authored-by: Aleksandar Co-authored-by: Alfred Rubin Co-authored-by: Jon Ander Oribe Co-authored-by: Antônio Hugo Co-authored-by: aleksandarneo4j Co-authored-by: alfredorubin96 <103421036+alfredorubin96@users.noreply.github.com> Co-authored-by: jacobbleakley-neo4j --- Dockerfile | 2 +- src/chart/graph/component/GraphChartInspectModal.tsx | 4 ++-- src/chart/graph/util/NodeUtils.ts | 2 +- src/dashboard/Dashboard.tsx | 4 ++-- src/page/Page.tsx | 1 + src/report/Report.tsx | 2 +- src/utils/parameterUtils.ts | 4 ++-- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index d21b12b56..2d7f48b48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,4 @@ EXPOSE 5005 ## Launch webserver as non-root user. CMD ["nginx", "-g", "daemon off;"] HEALTHCHECK cmd curl --fail http://localhost:5005 || exit 1 -LABEL version="2.3.0" \ No newline at end of file +LABEL version="2.4.0" \ No newline at end of file diff --git a/src/chart/graph/component/GraphChartInspectModal.tsx b/src/chart/graph/component/GraphChartInspectModal.tsx index 0bf53c7f7..030a8ebd4 100644 --- a/src/chart/graph/component/GraphChartInspectModal.tsx +++ b/src/chart/graph/component/GraphChartInspectModal.tsx @@ -9,7 +9,7 @@ import GraphEntityInspectionTable from './GraphEntityInspectionTable'; */ export const NeoGraphChartInspectModal = (props: GraphChartVisualizationProps) => { let headerName = ''; - const selectedEntity = props.interactivity?.selectedEntity; + const selectedEntity: any = props.interactivity?.selectedEntity; const propertySelections = props?.engine.selection ? props.engine.selection : {}; const customTablePropertiesOfModal = props.interactivity?.customTablePropertiesOfModal; const entityName = selectedEntity @@ -30,7 +30,7 @@ export const NeoGraphChartInspectModal = (props: GraphChartVisualizationProps) = * @returns custom settings of selected node/edge from settings if specified. */ const getSettingsByEntityType = (properties: any[]) => - properties.find((setting) => setting.entityType === entityName); + properties.find((setting) => setting.entityType === headerName); /** * check if customTablePropertiesOfModal is an array or else return empty object. diff --git a/src/chart/graph/util/NodeUtils.ts b/src/chart/graph/util/NodeUtils.ts index a96770c87..b48860652 100644 --- a/src/chart/graph/util/NodeUtils.ts +++ b/src/chart/graph/util/NodeUtils.ts @@ -94,4 +94,4 @@ export const getEntityHeaderForEdge = (entity: any, propertySelections: any) => (entity?.labels && `${sourceTitle} >> ${entity.labels.join(', ')} >> ${targetTitle}`) || `${entity.type} (${sourceTitle} --> ${targetTitle})` ); -}; \ No newline at end of file +}; diff --git a/src/dashboard/Dashboard.tsx b/src/dashboard/Dashboard.tsx index 9a3026a39..24761ce7e 100644 --- a/src/dashboard/Dashboard.tsx +++ b/src/dashboard/Dashboard.tsx @@ -47,7 +47,7 @@ const Dashboard = ({ {/* Navigation Bar */}
-
+
diff --git a/src/page/Page.tsx b/src/page/Page.tsx index eaad5b933..3ee123791 100644 --- a/src/page/Page.tsx +++ b/src/page/Page.tsx @@ -242,6 +242,7 @@ export const NeoPage = ({ cols={{ lg: 24, md: 20, sm: 12, xs: 8, xxs: 4 }} rowHeight={100} compactType={GRID_COMPACTION_TYPE} + style={{ marginBottom: 100 }} onDrag={() => { if (!isDragging) { setAnimated(true); diff --git a/src/report/Report.tsx b/src/report/Report.tsx index a330767d8..cd263fa7c 100644 --- a/src/report/Report.tsx +++ b/src/report/Report.tsx @@ -199,7 +199,7 @@ export const NeoReport = ({ // If the compactCanvas=true setting is enabled then the report height is set to 210 if (el && settings?.compactCanvas) { if (type === 'table') { - el.style.height = `${height * 210}px`; + el.style.height = `${height * 100}px`; } } }; diff --git a/src/utils/parameterUtils.ts b/src/utils/parameterUtils.ts index 16ebadc97..69d726e4c 100644 --- a/src/utils/parameterUtils.ts +++ b/src/utils/parameterUtils.ts @@ -12,9 +12,9 @@ export const extractAllParameterNames = (cypherQuery) => { return parameterNames; } -export const checkParametersNameInGlobalParameter = (parameterNames: string[], globalParameterNames: any,) => { +export const checkParametersNameInGlobalParameter = (parameterNames: string[], globalParameterNames: any): boolean => { for (const key of parameterNames) { - if (typeof globalParameterNames[key] === 'undefined' || globalParameterNames[key] === '') { + if (typeof globalParameterNames[key] === 'undefined' || globalParameterNames[key] === null || globalParameterNames[key] === '') { return true; } } From 2bba9e3459a9627797a1d1bcf201ed4873ec6874 Mon Sep 17 00:00:00 2001 From: Brahm Prakash Mishra <134035157+brahmprakashMishra@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:43:39 +0530 Subject: [PATCH 2/7] Develop Merge to Production (#88) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Renamed docs portal * Release 2.3.4 (#580) * Improved contrast for light and dark theme interfaces * Improve styling for actions model. Improved robustness of card settings content * First draft * Fix editing * Clean console * Clean drawer * Fixed issue where users cannot return to edit mode after turning off editing. Make extensions a seperate FAB. Improved styling for rule-based styling creation modal * circular dependencies * circular dependencies 2 * circular dependencies 3 * circular dependencies 4 * circular dependencies 5 * Last clean * Deleting Sidebar and Workflow * Final touch * Icons migration 1 * Icons material free * Reducing duplication * Smells * uuid migration * Added user agent to driver object * Bumped version * Added better version format * Moving circular to dev dep * Smells * Adding release notes * Updated Github runners * Fixed IT test for advanced settings * remove luma + markers pin * Selector options * Fixed double scroll bar * Tooltips nivo contrast * Runs on non drafts * Color picker selection * Version bump and release notes * Fix on Nivo Canvas * Fixing unused import * Fix version 2.3.4 (#581) * Hotfix for outdated version config on some components --------- Co-authored-by: Niels de Jong * Fix axis color on non canvas * Moving Header Text color up * Adjusting to default Pie Margins default https://github.com/neo4j-labs/neodash/issues/486 * Bump @adobe/css-tools from 4.1.0 to 4.3.1 Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.1.0 to 4.3.1. - [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] * Removed hardcoded subpath Signed off: monish.nandakumaran@mercedes-benz.com * Fix multiple providers * Update quickstart.adoc change docker pull to use neo4jlabs repo instead of Niels * Fix if * Base config * Docs on ssoProviders * Optional Params * Fix bar colors * Cherry Cleaned * Extra colors * Fix * Improve robustness for edge header title * Fix locale and link prep * Clean logs * Changelog * Version bumps * Tests * Change start to prod * back to dev * back to prod * Version package * bump cypress * bump cypress * Font on pies * FIxes * FIxes * 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 * 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] Co-authored-by: Harold Agudelo 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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 * 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 * VULCAN-126/Override default message (#683) * Override default message * Refactored code * refactored code * Added docs --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> * 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 * Fix parameters values (#641) Co-authored-by: Niels de Jong * 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 * 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 Co-authored-by: Alfred Rubin * 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 * 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 * 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 Co-authored-by: jacobbleakley-neo4j Co-authored-by: Niels de Jong * 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 * 2.4 Release (#688) * 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 * 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] Co-authored-by: Harold Agudelo 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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 * 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 * VULCAN-126/Override default message (#683) * Override default message * Refactored code * refactored code * Added docs --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> * 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 * Fix parameters values (#641) Co-authored-by: Niels de Jong * 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 * 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 Co-authored-by: Alfred Rubin * 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 * 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 * 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 Co-authored-by: jacobbleakley-neo4j Co-authored-by: Niels de Jong * 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 --------- Signed-off-by: dependabot[bot] Co-authored-by: Alfred Rubin Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Harold Agudelo Co-authored-by: Jon Ander Oribe Co-authored-by: Antônio Hugo Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Co-authored-by: Aleksandar Co-authored-by: aleksandarneo4j Co-authored-by: alfredorubin96 <103421036+alfredorubin96@users.noreply.github.com> Co-authored-by: jacobbleakley-neo4j * 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 Co-authored-by: Niels de Jong * fixing merge * Dynamic height report * Refactored * Wrapping NeoDashboardSidebar in a div to prevent rendering issues * Neodash Bug Fixes * opens landing page in new url * Added landing page link to logo * Removed obsolete code * Bug Fixes (#82) * Changed dockerfile version (#85) * v2.4 changes (#87) --------- Signed-off-by: dependabot[bot] Co-authored-by: Niels de Jong Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Co-authored-by: davidlrosenblum Co-authored-by: Aleksandar Co-authored-by: Alfred Rubin Co-authored-by: Jon Ander Oribe Co-authored-by: Antônio Hugo Co-authored-by: aleksandarneo4j Co-authored-by: alfredorubin96 <103421036+alfredorubin96@users.noreply.github.com> Co-authored-by: jacobbleakley-neo4j From 29c05e5ab5399ba82c787d040335a22d281a92eb Mon Sep 17 00:00:00 2001 From: Brahm Prakash Mishra <134035157+brahmprakashMishra@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:10:35 +0530 Subject: [PATCH 3/7] OUPT Sprint 19 Release (#92) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Renamed docs portal * Release 2.3.4 (#580) * Improved contrast for light and dark theme interfaces * Improve styling for actions model. Improved robustness of card settings content * First draft * Fix editing * Clean console * Clean drawer * Fixed issue where users cannot return to edit mode after turning off editing. Make extensions a seperate FAB. Improved styling for rule-based styling creation modal * circular dependencies * circular dependencies 2 * circular dependencies 3 * circular dependencies 4 * circular dependencies 5 * Last clean * Deleting Sidebar and Workflow * Final touch * Icons migration 1 * Icons material free * Reducing duplication * Smells * uuid migration * Added user agent to driver object * Bumped version * Added better version format * Moving circular to dev dep * Smells * Adding release notes * Updated Github runners * Fixed IT test for advanced settings * remove luma + markers pin * Selector options * Fixed double scroll bar * Tooltips nivo contrast * Runs on non drafts * Color picker selection * Version bump and release notes * Fix on Nivo Canvas * Fixing unused import * Fix version 2.3.4 (#581) * Hotfix for outdated version config on some components --------- Co-authored-by: Niels de Jong * Fix axis color on non canvas * Moving Header Text color up * Adjusting to default Pie Margins default https://github.com/neo4j-labs/neodash/issues/486 * Bump @adobe/css-tools from 4.1.0 to 4.3.1 Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.1.0 to 4.3.1. - [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] * Removed hardcoded subpath Signed off: monish.nandakumaran@mercedes-benz.com * Fix multiple providers * Update quickstart.adoc change docker pull to use neo4jlabs repo instead of Niels * Fix if * Base config * Docs on ssoProviders * Optional Params * Fix bar colors * Cherry Cleaned * Extra colors * Fix * Improve robustness for edge header title * Fix locale and link prep * Clean logs * Changelog * Version bumps * Tests * Change start to prod * back to dev * back to prod * Version package * bump cypress * bump cypress * Font on pies * FIxes * FIxes * 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 * 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] Co-authored-by: Harold Agudelo 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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 * 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 * VULCAN-126/Override default message (#683) * Override default message * Refactored code * refactored code * Added docs --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> * 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 * Fix parameters values (#641) Co-authored-by: Niels de Jong * 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 * 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 Co-authored-by: Alfred Rubin * 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 * 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 * 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 Co-authored-by: jacobbleakley-neo4j Co-authored-by: Niels de Jong * 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 * 2.4 Release (#688) * 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 * 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] Co-authored-by: Harold Agudelo 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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] Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong * 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 * 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 * VULCAN-126/Override default message (#683) * Override default message * Refactored code * refactored code * Added docs --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> * 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 * Fix parameters values (#641) Co-authored-by: Niels de Jong * 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 * 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 Co-authored-by: Alfred Rubin * 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 * 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 * 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 Co-authored-by: jacobbleakley-neo4j Co-authored-by: Niels de Jong * 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 --------- Signed-off-by: dependabot[bot] Co-authored-by: Alfred Rubin Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Harold Agudelo Co-authored-by: Jon Ander Oribe Co-authored-by: Antônio Hugo Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Co-authored-by: Aleksandar Co-authored-by: aleksandarneo4j Co-authored-by: alfredorubin96 <103421036+alfredorubin96@users.noreply.github.com> Co-authored-by: jacobbleakley-neo4j * 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 Co-authored-by: Niels de Jong * fixing merge * Dynamic height report * Refactored * Wrapping NeoDashboardSidebar in a div to prevent rendering issues * Neodash Bug Fixes * opens landing page in new url * Added landing page link to logo * Removed obsolete code * Bug Fixes (#82) * Changed dockerfile version (#85) * v2.4 changes (#87) * fix: tab titles (#90) * Vulcan 488/compact canvas bug (#91) * fix: tab titles * fix: change the report height back to 210 --------- Signed-off-by: dependabot[bot] Co-authored-by: Niels de Jong Co-authored-by: Harold Agudelo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Co-authored-by: davidlrosenblum Co-authored-by: Aleksandar Co-authored-by: Alfred Rubin Co-authored-by: Jon Ander Oribe Co-authored-by: Antônio Hugo Co-authored-by: aleksandarneo4j Co-authored-by: alfredorubin96 <103421036+alfredorubin96@users.noreply.github.com> Co-authored-by: jacobbleakley-neo4j --- package.json | 3 +-- src/component/page/PageHeader.tsx | 10 ---------- src/dashboard/header/DashboardHeader.tsx | 2 ++ src/index.tsx | 5 +---- yarn.lock | 20 +------------------- 5 files changed, 5 insertions(+), 35 deletions(-) delete mode 100644 src/component/page/PageHeader.tsx diff --git a/package.json b/package.json index d83a5e455..e2fa67bc6 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,6 @@ "react-force-graph-2d": "^1.23.8", "react-gauge-chart": "^0.4.1", "react-grid-layout": "^1.3.4", - "react-helmet-async": "^1.3.0", "react-leaflet": "^3.2.5", "react-leaflet-cluster": "^1.0.4", "react-leaflet-enhanced-marker": "^1.0.21", @@ -141,4 +140,4 @@ "webpack-cli": "^4.9.1", "webpack-dev-server": "^4.7.3" } -} +} \ No newline at end of file diff --git a/src/component/page/PageHeader.tsx b/src/component/page/PageHeader.tsx deleted file mode 100644 index 108125cf7..000000000 --- a/src/component/page/PageHeader.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import { Helmet } from 'react-helmet-async'; - -export default function PageHeader({ title = 'NeoDash - Neo4j Dashboard Builder' }) { - return ( - - {title} - - ); -} diff --git a/src/dashboard/header/DashboardHeader.tsx b/src/dashboard/header/DashboardHeader.tsx index d280c7ace..71a5b737a 100644 --- a/src/dashboard/header/DashboardHeader.tsx +++ b/src/dashboard/header/DashboardHeader.tsx @@ -35,6 +35,8 @@ export const NeoDashboardHeader = ({ }; useEffect(() => { + document.title = dashboardTitleText; + // Reset text to the dashboard state when the page gets reorganized. if (dashboardTitle !== dashboardTitleText) { setDashboardTitleText(dashboardTitle); diff --git a/src/index.tsx b/src/index.tsx index 6a4a310c8..75c85d607 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,7 +10,6 @@ import '/node_modules/react-resizable/css/styles.css'; import './index.pcss'; import StyleConfig from './config/StyleConfig'; import * as Sentry from '@sentry/react'; -import { HelmetProvider } from 'react-helmet-async'; if (window.location.href.includes('//neodash.graphapp.io/')) { Sentry.init({ @@ -46,9 +45,7 @@ await StyleConfig.getInstance(); const provider = ( Loading NeoDash...
}> - - - + ); diff --git a/yarn.lock b/yarn.lock index 24879a4fe..b4143044d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8731,13 +8731,6 @@ intl-messageformat@^10.1.0: "@formatjs/icu-messageformat-parser" "2.6.0" tslib "^2.4.0" -invariant@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - ipaddr.js@1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" @@ -11622,7 +11615,7 @@ react-dropzone@^14.0.0: file-selector "^0.6.0" prop-types "^15.8.1" -react-fast-compare@^3.0.1, react-fast-compare@^3.2.0: +react-fast-compare@^3.0.1: version "3.2.2" resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.2.tgz#929a97a532304ce9fee4bcae44234f1ce2c21d49" integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ== @@ -11666,17 +11659,6 @@ react-grid-layout@^1.3.4: react-draggable "^4.0.0" react-resizable "^3.0.4" -react-helmet-async@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/react-helmet-async/-/react-helmet-async-1.3.0.tgz#7bd5bf8c5c69ea9f02f6083f14ce33ef545c222e" - integrity sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg== - dependencies: - "@babel/runtime" "^7.12.5" - invariant "^2.2.4" - prop-types "^15.7.2" - react-fast-compare "^3.2.0" - shallowequal "^1.1.0" - react-is@^16.13.1, react-is@^16.7.0: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" From 7658d652cc002769d300a92c7b129c424d3f0551 Mon Sep 17 00:00:00 2001 From: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Date: Thu, 18 Jan 2024 15:53:19 +0530 Subject: [PATCH 4/7] fixed merge issue --- src/chart/graph/component/GraphChartInspectModal.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/chart/graph/component/GraphChartInspectModal.tsx b/src/chart/graph/component/GraphChartInspectModal.tsx index add48395f..e6701d4de 100644 --- a/src/chart/graph/component/GraphChartInspectModal.tsx +++ b/src/chart/graph/component/GraphChartInspectModal.tsx @@ -27,7 +27,6 @@ export const NeoGraphChartInspectModal = (props: GraphChartVisualizationProps) = */ const getSettingsByEntityType = (properties: any[]) => properties.find((setting) => setting.entityType === headerName); - properties.find((setting) => setting.entityType === headerName); /** * check if customTablePropertiesOfModal is an array or else return empty object. From 915a61f8771f933708e6d8211f8ec24918b2033f Mon Sep 17 00:00:00 2001 From: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> Date: Thu, 18 Jan 2024 16:39:59 +0530 Subject: [PATCH 5/7] Fix card height --- src/report/Report.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report/Report.tsx b/src/report/Report.tsx index cd263fa7c..a330767d8 100644 --- a/src/report/Report.tsx +++ b/src/report/Report.tsx @@ -199,7 +199,7 @@ export const NeoReport = ({ // If the compactCanvas=true setting is enabled then the report height is set to 210 if (el && settings?.compactCanvas) { if (type === 'table') { - el.style.height = `${height * 100}px`; + el.style.height = `${height * 210}px`; } } }; From 72bbfcfa317297ff39c028c61f6fcc7b6eea89fa Mon Sep 17 00:00:00 2001 From: Brahm Prakash Mishra <134035157+brahmprakashMishra@users.noreply.github.com> Date: Tue, 12 Mar 2024 19:09:22 +0530 Subject: [PATCH 6/7] Sprint Release #23 (#107) * change resolution to 24 from 12 (#103) * fix: changed line height to normal * Button changes done (#104) * Vulcan-578/Grayout forms button (#105) * disable forms button * fix added type to avoid issues * refactored --------- Co-authored-by: Monish <139316519+m-o-n-i-s-h@users.noreply.github.com> --- public/style.css | 38 ++++++++++++----------- src/card/view/CardView.tsx | 16 ++++------ src/component/groupreport/GroupReport.tsx | 4 +-- src/extensions/forms/chart/NeoForm.tsx | 11 ++++++- src/utils/parameterUtils.ts | 2 +- 5 files changed, 39 insertions(+), 32 deletions(-) diff --git a/public/style.css b/public/style.css index e670a0ef3..53c556932 100644 --- a/public/style.css +++ b/public/style.css @@ -86,6 +86,10 @@ border: none !important; } +.MuiBox-root { + line-height: normal; +} + .MuiDataGrid-footerContainer > div { margin-top: -40px; } @@ -129,8 +133,8 @@ } .MuiCard-root { - box-shadow: 0 0 #0000,0 0 #0000,var(--tw-shadow) !important; - box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow) !important; + box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow) !important; + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important; } .white-text { @@ -183,7 +187,6 @@ text-align: center; } - .card-view.expanded { position: absolute; top: 0; @@ -213,24 +216,23 @@ .card-view .MuiTablePagination-root { margin-top: -40px; - } @keyframes pulse { - 0% { - transform: scale(0.95); - box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); - } + 0% { + transform: scale(0.95); + box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); + } - 70% { - transform: scale(1); - box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); - } + 70% { + transform: scale(1); + box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); + } - 100% { - transform: scale(0.95); - box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); - } + 100% { + transform: scale(0.95); + box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); + } } /* Workaround for Needle not handling menu placement of dropdowns on modals */ @@ -242,10 +244,10 @@ /* End workaround */ /* Workaround for cleaning the Gantt chart UI */ -.gantt-wrapper > div > div:first-child > div:first-child > div:first-child > div> div:not(:first-child) { +.gantt-wrapper > div > div:first-child > div:first-child > div:first-child > div > div:not(:first-child) { display: none; } -.gantt-wrapper > div > div > div > div> div> div> div:not(:first-child) { +.gantt-wrapper > div > div > div > div > div > div > div:not(:first-child) { display: none; } /* End Gantt chart workaround */ diff --git a/src/card/view/CardView.tsx b/src/card/view/CardView.tsx index 89810d3a5..6e00ba684 100644 --- a/src/card/view/CardView.tsx +++ b/src/card/view/CardView.tsx @@ -2,17 +2,16 @@ import React, { useEffect, useState } from 'react'; import { ReportItemContainer } from '../CardStyle'; import NeoCardViewHeader from './CardViewHeader'; import NeoCardViewFooter from './CardViewFooter'; -import { CardContent, Fab } from '@mui/material'; +import { CardContent } from '@mui/material'; import NeoCodeEditorComponent from '../../component/editor/CodeEditorComponent'; import { CARD_FOOTER_HEIGHT, CARD_HEADER_HEIGHT } from '../../config/CardConfig'; import { getReportTypes } from '../../extensions/ExtensionUtils'; import NeoCodeViewerComponent from '../../component/editor/CodeViewerComponent'; import { NeoReportWrapper } from '../../report/ReportWrapper'; import { identifyStyleRuleParameters } from '../../extensions/styling/StyleRuleEvaluator'; -import { IconButton } from '@neo4j-ndl/react'; -import { PlayCircleIconSolid } from '@neo4j-ndl/react/icons'; +import { Button, IconButton } from '@neo4j-ndl/react'; +import { PlayCircleIconSolid, PlayIconSolid } from '@neo4j-ndl/react/icons'; import { extensionEnabled } from '../../utils/ReportUtils'; -import { PlayArrowOutlined } from '@mui/icons-material'; import { checkParametersNameInGlobalParameter, extractAllParameterNames } from '../../utils/parameterUtils'; import { objMerge } from '../../utils/ObjectManipulation'; import { REPORT_TYPES } from '../../config/ReportConfig'; @@ -203,18 +202,15 @@ const NeoCardView = ({ const executeButton = (
- { setActive(true); }} - color='success' - size='small' > - {settings.executeButtonName ?? 'Execute'} - + +
); diff --git a/src/component/groupreport/GroupReport.tsx b/src/component/groupreport/GroupReport.tsx index 0dca05af4..60bca3a0f 100644 --- a/src/component/groupreport/GroupReport.tsx +++ b/src/component/groupreport/GroupReport.tsx @@ -15,13 +15,13 @@ export default function GroupReport({ onClonePressed, }) { return groupedReports[groupId].length > 0 ? ( - + {groupedReports[groupId] .sort((a: any, b: any) => a.groupOrder - b.groupOrder) .map((report: { id: any; width: any; height: any }) => { const { id, width: w, height: h } = report; return ( - + { }); } + const isParametersDefined = (cypherQuery: string | undefined) => { + const parameterNames = extractAllParameterNames(cypherQuery); + if (props.parameters) { + return checkParametersNameInGlobalParameter(parameterNames, props.parameters); + } + return false; + }; + useEffect(() => { // If the parameters change after the form is completed, reset it, as there might be another submission. if (status == FormStatus.SUBMITTED) { @@ -77,7 +86,7 @@ const NeoForm = (props: ChartProps) => {