Skip to content

Commit

Permalink
Favorites ux refresh (#1278)
Browse files Browse the repository at this point in the history
* Refactor button components

* Improve types by removing 'any'

* Remove unused typedoc and rename files

* Fix drag and drop typing

* Basic typing of folders duck

* Update types for folder/favorites duck

* renaming works again

* Improve redux typings further

* Update folder structures

* Select working properly

* Allows renaming and removal of folders

* Remove folders touchup

* Add drag and drop

* Fix tests and bug with useEffect

* Restore dev config

* Fix project files

* Fix project files

* Avoid pre-loading all saved scripts

* Move files

* Further fixing

* Fix favorites duck test

* Removed need for fav.utils.test

* Fix saved scripts utils test

* Fix last unit tests

* Allow adding empty favorites

* Add export

Favorite saved automatically

Function to export as cypherfile

Fix issue with font lig

Implement multiselection

Nicer context menu

stay selected

Drag multiple

Fix naming bug

Improve static scripts

Cleanup

Remove unused imports

Better drag

Improve pattern check

Only missing icons

Rebase issues

Align icons

Fix text in dark mode

* Update unit tests

* Fix up tests and add bulk delete test

* Make rename clickable in context menu

* Fix review comments

* Solve bug where icons were invisible

* Use only shift for selection

* Fix icon alignment

* Add three dots to folders as well

* Don't open dialog for naming favorite

* Easy naming of folder

* UpdateTests

* UI touch ups

* Fix folder

* Work on e2e tests

* update react drag-n-drop

* Solve bug with drag and drop

* Forgot to remove it.only
  • Loading branch information
OskarDamkjaer authored Feb 22, 2021
1 parent 5800cce commit d5a47c8
Show file tree
Hide file tree
Showing 39 changed files with 910 additions and 695 deletions.
181 changes: 78 additions & 103 deletions LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,82 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-----

The following software may be included in this product: @react-dnd/asap. A copy of the source code may be downloaded from https://github.com/kriskowal/asap.git. This software contains the following license and notice below:

Copyright 2009–2014 Contributors. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

-----

The following software may be included in this product: @react-dnd/invariant, invariant, prop-types, warning. A copy of the source code may be downloaded from https://github.com/react-dnd/invariant (@react-dnd/invariant), https://github.com/zertosh/invariant (invariant), https://github.com/facebook/prop-types.git (prop-types), https://github.com/BerkeleyTrue/warning.git (warning). This software contains the following license and notice below:

MIT License

Copyright (c) 2013-present, Facebook, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-----

The following software may be included in this product: @react-dnd/shallowequal, shallowequal. A copy of the source code may be downloaded from https://github.com/react-dnd/shallowequal.git (@react-dnd/shallowequal), https://github.com/dashed/shallowequal.git (shallowequal). This software contains the following license and notice below:

MIT License

Copyright (c) 2017 Alberto Leal <mailforalberto@gmail.com> (github.com/dashed)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-----

The following software may be included in this product: @relate-by-ui/css, @relate-by-ui/relatable. A copy of the source code may be downloaded from https://github.com/neo4j-apps/relate-by-ui (@relate-by-ui/css), https://github.com/neo4j-apps/relatable (@relate-by-ui/relatable). This software contains the following license and notice below:

Apache License
Expand Down Expand Up @@ -1180,7 +1256,7 @@ SOFTWARE.

-----

The following software may be included in this product: @types/asap, @types/color-name, @types/hoist-non-react-statics, @types/long, @types/mdast, @types/parse-json, @types/prop-types, @types/shallowequal, @types/unist. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/asap), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/color-name), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hoist-non-react-statics), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/long), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/mdast), https://www.github.com/DefinitelyTyped/DefinitelyTyped.git (@types/parse-json), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/prop-types), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/shallowequal), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/unist). This software contains the following license and notice below:
The following software may be included in this product: @types/color-name, @types/hoist-non-react-statics, @types/long, @types/mdast, @types/parse-json, @types/prop-types, @types/unist. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/color-name), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hoist-non-react-statics), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/long), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/mdast), https://www.github.com/DefinitelyTyped/DefinitelyTyped.git (@types/parse-json), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/prop-types), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/unist). This software contains the following license and notice below:

MIT License

Expand All @@ -1206,7 +1282,7 @@ MIT License

-----

The following software may be included in this product: @types/hast, @types/invariant, @types/node, @types/parse5, @types/react, @types/zen-observable. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hast), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/invariant), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/node), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/parse5), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/zen-observable). This software contains the following license and notice below:
The following software may be included in this product: @types/hast, @types/node, @types/parse5, @types/react, @types/zen-observable. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hast), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/node), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/parse5), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/zen-observable). This software contains the following license and notice below:

MIT License

Expand Down Expand Up @@ -1464,30 +1540,6 @@ THE SOFTWARE.

-----

The following software may be included in this product: asap. A copy of the source code may be downloaded from https://github.com/kriskowal/asap.git. This software contains the following license and notice below:

Copyright 2009–2014 Contributors. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

-----

The following software may be included in this product: ascii-data-table. A copy of the source code may be downloaded from https://github.com/oskarhane/ascii-data-table.git. This software contains the following license and notice below:

The MIT License (MIT)
Expand Down Expand Up @@ -3171,31 +3223,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-----

The following software may be included in this product: dateformat. A copy of the source code may be downloaded from https://github.com/felixge/node-dateformat.git. This software contains the following license and notice below:

(c) 2007-2009 Steven Levithan <stevenlevithan.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-----

The following software may be included in this product: debug. A copy of the source code may be downloaded from git://github.com/visionmedia/debug.git. This software contains the following license and notice below:

(The MIT License)
Expand Down Expand Up @@ -4755,32 +4782,6 @@ PERFORMANCE OF THIS SOFTWARE.

-----

The following software may be included in this product: invariant, prop-types, warning. A copy of the source code may be downloaded from https://github.com/zertosh/invariant (invariant), https://github.com/facebook/prop-types.git (prop-types), https://github.com/BerkeleyTrue/warning.git (warning). This software contains the following license and notice below:

MIT License

Copyright (c) 2013-present, Facebook, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-----

The following software may be included in this product: is-arguments, is-negative-zero, is-regex, object-is. A copy of the source code may be downloaded from git://github.com/ljharb/is-arguments.git (is-arguments), git://github.com/ljharb/is-negative-zero.git (is-negative-zero), git://github.com/ljharb/is-regex.git (is-regex), git://github.com/es-shims/object-is.git (object-is). This software contains the following license and notice below:

The MIT License (MIT)
Expand Down Expand Up @@ -8726,32 +8727,6 @@ License, as follows:

-----

The following software may be included in this product: shallowequal. A copy of the source code may be downloaded from https://github.com/dashed/shallowequal.git. This software contains the following license and notice below:

MIT License

Copyright (c) 2017 Alberto Leal <mailforalberto@gmail.com> (github.com/dashed)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-----

The following software may be included in this product: source-map. A copy of the source code may be downloaded from http://github.com/mozilla/source-map.git. This software contains the following license and notice below:

Copyright (c) 2009-2011, Mozilla Foundation and contributors
Expand Down
31 changes: 14 additions & 17 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,15 @@ Third-party licenses
│ │ ├─ URL: https://github.com/mdx-js/mdx.git
│ │ ├─ VendorName: John Otander
│ │ └─ VendorUrl: https://mdxjs.com/
│ ├─ @react-dnd/asap@4.0.0
│ │ └─ URL: https://github.com/kriskowal/asap.git
│ ├─ @react-dnd/invariant@2.0.0
│ │ ├─ URL: https://github.com/react-dnd/invariant
│ │ └─ VendorName: Andres Suarez
│ ├─ @react-dnd/shallowequal@2.0.0
│ │ ├─ URL: https://github.com/react-dnd/shallowequal.git
│ │ ├─ VendorName: Alberto Leal
│ │ └─ VendorUrl: github.com/dashed
│ ├─ @scarf/scarf@0.1.7
│ │ ├─ URL: git+https://github.com/scarf-sh/scarf-js.git
│ │ ├─ VendorName: Scarf Systems
Expand All @@ -661,16 +670,12 @@ Third-party licenses
│ │ ├─ URL: https://github.com/stardust-ui/react.git
│ │ ├─ VendorName: Oleksandr Fediashov
│ │ └─ VendorUrl: https://github.com/stardust-ui/react/tree/master/packages/react-component-ref
│ ├─ @types/asap@2.0.0
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/color-name@1.1.1
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/hast@2.3.1
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/hoist-non-react-statics@3.3.1
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/invariant@2.2.34
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/long@4.0.1
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/mdast@3.0.3
Expand All @@ -685,9 +690,7 @@ Third-party licenses
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/prop-types@15.7.3
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/react@16.9.49
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/shallowequal@1.1.1
│ ├─ @types/react@17.0.2
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
│ ├─ @types/unist@2.0.3
│ │ └─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
Expand Down Expand Up @@ -753,8 +756,6 @@ Third-party licenses
│ │ ├─ URL: https://github.com/sindresorhus/arrify.git
│ │ ├─ VendorName: Sindre Sorhus
│ │ └─ VendorUrl: sindresorhus.com
│ ├─ asap@2.0.6
│ │ └─ URL: https://github.com/kriskowal/asap.git
│ ├─ ascii-data-table@2.1.1
│ │ ├─ URL: https://github.com/oskarhane/ascii-data-table.git
│ │ ├─ VendorName: Oskar Hane
Expand Down Expand Up @@ -913,17 +914,13 @@ Third-party licenses
│ ├─ csstype@2.6.13
│ │ ├─ URL: https://github.com/frenic/csstype
│ │ └─ VendorName: Fredrik Nicol
│ ├─ csstype@3.0.3
│ ├─ csstype@3.0.6
│ │ ├─ URL: https://github.com/frenic/csstype
│ │ └─ VendorName: Fredrik Nicol
│ ├─ dashdash@1.14.1
│ │ ├─ URL: git://github.com/trentm/node-dashdash.git
│ │ ├─ VendorName: Trent Mick
│ │ └─ VendorUrl: http://trentm.com
│ ├─ dateformat@3.0.3
│ │ ├─ URL: https://github.com/felixge/node-dateformat.git
│ │ ├─ VendorName: Steven Levithan
│ │ └─ VendorUrl: https://github.com/felixge/node-dateformat
│ ├─ debug@4.1.1
│ │ ├─ URL: git://github.com/visionmedia/debug.git
│ │ └─ VendorName: TJ Holowaychuk
Expand Down Expand Up @@ -961,7 +958,7 @@ Third-party licenses
│ │ ├─ URL: https://github.com/dtudury/discontinuous-range.git
│ │ ├─ VendorName: David Tudury
│ │ └─ VendorUrl: https://github.com/dtudury/discontinuous-range
│ ├─ dnd-core@9.5.1
│ ├─ dnd-core@11.1.3
│ │ └─ URL: https://github.com/react-dnd/react-dnd.git
│ ├─ ecc-jsbn@0.1.2
│ │ ├─ URL: https://github.com/quartzjer/ecc-jsbn.git
Expand Down Expand Up @@ -1496,9 +1493,9 @@ Third-party licenses
│ │ ├─ URL: git://github.com/fent/randexp.js.git
│ │ ├─ VendorName: Roly Fentanes
│ │ └─ VendorUrl: http://fent.github.io/randexp.js/
│ ├─ react-dnd-html5-backend@9.3.2
│ ├─ react-dnd-html5-backend@11.1.3
│ │ └─ URL: https://github.com/react-dnd/react-dnd.git
│ ├─ react-dnd@9.3.2
│ ├─ react-dnd@11.1.3
│ │ └─ URL: https://github.com/react-dnd/react-dnd.git
│ ├─ react-dom@16.13.1
│ │ ├─ URL: https://github.com/facebook/react.git
Expand Down
Loading

0 comments on commit d5a47c8

Please sign in to comment.