Commit Graph

703 Commits

Author SHA1 Message Date
Oreille
0a089af30a Fix layouts stuck at page 1 (#8766) 2021-10-13 15:56:12 -04:00
renovate[bot]
2429d30917 Update dependency typescript to v4.4.4 (#8749)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-12 16:51:36 -04:00
renovate[bot]
b9a2a3a18b Update dependency axios to v0.23.0 (#8744) 2021-10-12 14:45:16 -04:00
renovate[bot]
b2ec182493 Update typescript-eslint monorepo to v5 (major) (#8702)
* Update typescript-eslint monorepo to v5

* Fix linter warnings

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-12 11:07:46 -04:00
Oreille
9b66a77c39 Bug fixes in the new filter interface (#8696)
* Bug fixes in the new filter interface

* Removed `eq`, `neq` filter for geometry type.

* Fixed tests for getFilterOperatorForType on geometry type.

* Removed `eq`, `neq`, `in`, `nin` filter operator for json

* Added `bigInteger` and `float` support in getFilterOperatorForType and fixed tests

* Added input regex pattern for numbers and uuid in filter input component
2021-10-12 09:53:18 -04:00
Oreille
475f6349f0 Map layout and interface improvements (#8628)
* Map layout and interface improvements:
* Disable drag to rotate
* Add keyboard shortcut to delete items
* Hide unselect button when selection is empty
* Add display template setting
* Fixed fitData button behaviour

* Removed unused hoveredFeatureId

* Added translations

* Expose clearFilters to the layout.
2021-10-12 09:50:18 -04:00
Pascal Jufer
23a126b026 Fix eslint warnings and cleanup unused disable-directives (#8718)
* Fix eslint warnings

* Remove unused eslint disable-directives
2021-10-12 09:49:01 -04:00
Nicola Krumschmidt
6a06aa42a0 Use Composition API in extension templates (#8721)
This also includes a few other cleanups.
2021-10-12 09:22:49 -04:00
renovate[bot]
86861ecb8d Update dependency ts-node to v10.3.0 (#8700)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-12 10:46:18 +08:00
Rijk van Zanten
fb36ded825 Remove deprecated code (#8670)
* Remove deprecated code

Just for you @aidenfoxx

* Fix type signature
2021-10-08 18:45:17 +00:00
renovate[bot]
b4bb1071f2 Update jest monorepo to v27.2.5 (#8656)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-08 11:45:56 -04:00
rijkvanzanten
435cc0cc67 v9.0.0-rc.96 2021-10-07 18:39:54 -04:00
Rijk van Zanten
f64a5bef7e Add new advanced filters experience (#8570)
* Remove advanced filter sidebar detail

So long, and thanks for all the fish.

* Remove filter conversion logic

* Start replacing/removing old skool filters

* Add inline mode for usages in search bar

* Make filter work in header bar

* Emit empty string as null in filter

* Move shared filter types to shared

* Upgrade use-items

* Fix manual sort on tabular

* Cleanup styling in search bar usage

* Tweak styling

* Fix filtering issues

* Update cards

* Remove activeFilterCount from tabular

* Update maps to work with new filters

* Update calendar to new filter/sort structure

* Fix activity module nav/search

* Fix no-results message

* Update file library filtering

* Finalize user search

* Allow filtering in drawer-collection

* Handle cancelled responses semi-gracefully

* Add loading start state timeout

* Replace sort type in api

* Last commit before redoing a bunch

* Finish new visual style

* Remove unused rounded prop from v-menu

* Tweak sizing

* Enough size tweaking for now

* Count all filter operators instead of top

* Fix archive casting

* Fix api build

* Add merge filters util

* Split filter in user vs system

* Fix export sidebar detail

* Show field label on permissions configuration

* Add migration for filter/sort

* Use filters in insights
2021-10-07 18:06:03 -04:00
Azri Kahar
e58b7d0cc3 Turn GCS credentials from camelCase to snake_case (#8601)
* turn GCS credentials from camelCase to snake_case

* add comment for GCS credentials edge case
2021-10-07 11:43:19 -04:00
Nicola Krumschmidt
ec3832d337 Make directus:extension.hidden optional (#8593)
This field will be used in conjunction with pack extensions
to be able to hide extensions that are only usable as part of a pack.
There is no need to make the field required, though.
2021-10-06 17:52:57 +02:00
Nicola Krumschmidt
8f54c8d40d Recommend npm init directus-project to create a project (#8590)
This slightly nicer syntax was introduced back in "npm@6.1.0".
"node@12.20.0", which is the minimum version we require, ships with "npm@6.14.8".
"npm@6" versions below "6.1.0" were never actually shipped with any node version, so it should be very safe to use this syntax.
2021-10-06 09:56:48 -04:00
Nicola Krumschmidt
887c97b8c2 Fix loading pack extensions without path and source fields (#8563) 2021-10-05 15:28:29 +00:00
renovate[bot]
06a52d10e6 Update dependency @rollup/plugin-commonjs to v21 (#8494)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 12:44:49 -04:00
renovate[bot]
b8d4a24958 Update dependency axios to v0.22.0 (#8483)
* Update dependency axios to v0.22.0

* Fix shared type

* Use any type in axios

* Adjust for axios type breaking change

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-01 12:41:18 -04:00
Nicola Krumschmidt
46f00d6202 Drop support for display handler functions in favor of functional components and make the routes module config required (#8475)
* Make routes in ModuleConfig required

* Make Panel options nullable

* Clean up InterfaceConfig and LayoutConfig types

* Remove DisplayHandlerFunction and rename handler to component

* Use template interpolation when registering extensions
2021-10-01 11:52:57 -04:00
renovate[bot]
a9dd90c03d Update dependency rollup to v2.58.0 (#8484)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 11:42:32 -04:00
Jay Cammarano
2be2c36dc2 Unit tests for get-extensions.ts (#8470)
* root removed

* get extensions passing, 95% coverage

* removed root

* fixed root on listExtensionsChildren
2021-10-01 11:01:33 -04:00
Nitwel
4fd9f4c31c Add Filter interface (#7492)
* initial tests and preparation for filter interface

* get basic structure down

* improve visuals and interaction

* stop modifying props 🙃

* update logic blocks style

* clean up filter interface

* lint css

* support m2a and simplify visited relations

* allow for recursive loading of fields

* use filter interface on conditions

* Use dynamic useFilterTree instead of old one (#7569)

* use advanced field tree on field template

* update to advanced field tree

* remove old useFieldTree

* update to new design

* add border on nested nodes

* tweak styling

* Fix linter warnings

* Fix field-setup

* clean up interface

* clean up interface

* clean up and rename files

* clean up code

* use default filter structure

* fix changing fields

* Add monospace style option to tooltips

* Various small stylistic tweaks

* Add menu placement

* Cleanup "big interface" usage

* Remove seamless

* Add dropdown on add filter

* Cleanup import/export, add v-select-placeholder-co

* Fix staging issue

* Allow overriding preview slow, fix padding

* Show field path inline

* Cleanup empty state

* Use new filter-interface in permissions setup

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-30 17:17:29 -04:00
Nicola Krumschmidt
28a2f4594b Removed unused properties from ModuleConfig (#8468) 2021-09-30 14:14:14 -04:00
Jay Cammarano
1eb39b2e39 Tests for generate-joi.ts (#8437)
* exported Joi from generate-joi.ts

* all tests passing except contains, ncontains

* contains and ncontaints functions

* tests passing, covering all lines except 36+56 }

* fixed linting issue
2021-09-29 17:28:35 -04:00
Jay Cammarano
e9fb8f79a3 Tests for deep-map.ts (#8433)
* deepmap tests passing, 100% coverage

* using a valid filter for parse-filter
2021-09-29 17:06:37 +00:00
renovate[bot]
3f56a6d5f5 Update jest monorepo to v27.2.4 (#8426)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 15:57:30 +00:00
Jay Cammarano
e7b4153028 Tests for listFolders, resolvePackage (#8356)
* listFolders test passing 100% coverage

* added tmp package

* listFolders test updated to use random temp folder

* add package tmp to workspace

* tmp as dev dependency

* direct imports

* resolve-packages passing 100% coverage

* fixed tmpdir location in list-folders

* Pin tmp

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-28 19:10:08 -04:00
renovate[bot]
4e70169a72 Pin dependency tmp to v0.0.33 (#8405)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 19:05:38 -04:00
Jay Cammarano
732e631ccc Tests for validatePayload, generateExtensionsEntry, and ensureExtensionsDir (#8353)
* Passing tests

* filter operators working

* generateExtensionsEntry tests passing, 100% cov

* validatePayload tests passing, 100% coverage

* fixed typo

* changed folder to remove conflicts w/ other tests

* removed unfinished test

* remove => removeSync

* using tmp package for folder gen

* added tmp to workspace

* reset timers after use

* Update packages/shared/src/utils/node/generate-extensions-entry.test.ts

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>

* Update packages/shared/src/utils/node/generate-extensions-entry.test.ts

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>

* tmp => dev dependancy

* moved before/after into describe

* moved rootdir var into describe

* removed unused file

* explicit imports

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
2021-09-28 18:58:48 -04:00
ian
1b92d711d4 Refactor action value from authenticate to login in directus_activity (#8397)
* Refactor action value from authenticate to login in directus_activity

* Fix incorrect where clause in migration

* Add missing authenticate uses

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-28 20:59:27 +00:00
renovate[bot]
18846527c8 Update jest monorepo to v27.2.3 (#8380)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 09:51:51 -04:00
rijkvanzanten
afe7b15990 v9.0.0-rc.95 2021-09-27 18:58:22 -04:00
José Varela
3124f5387d Fix getSchema while trx on postgres (#8335)
* Fix getSchema while trx on postgres

* Only attempt to read geometry types when PostGIS is enabled

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-27 16:35:01 -04:00
Jay Cammarano
a7b0cbe69b GitHub workflow to run tests on pushes to main and PRs (#8247)
* testing workflow

* name changed

* generateHash working

* changed pendingMock() to 0 because ticks > 5000

* removed empty tests

* removed empty tests

* Update packages/sdk/tests/utils.ts

Co-authored-by: José Varela <joselcvarela@gmail.com>

* updated workflow to add build

* added npm run build

* fixed get-filter-operators

* added env to workflow

* potential fix to index.test.ts

* added env variables for index.test.ts

* added caching and node-version matrix

* added all supported node versions

* only supported node versions

* updated to only support 16

* removed duplicate workflow caching

Co-authored-by: José Varela <joselcvarela@gmail.com>
2021-09-27 15:10:29 -04:00
Rijk van Zanten
f5f68417cf Use field key instead of ID for group value (#8349)
* Add migration to replace group ID with group name

* Replace group IDs with field names

* Tweak group interfaces

* Ignore schema export
2021-09-27 15:06:19 -04:00
renovate[bot]
c3253edced Update dependency knex-schema-inspector to v1.6.2 (#8345)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 13:19:52 -04:00
renovate[bot]
2aae01a22c Update jest monorepo to v27.2.2 (#8316) 2021-09-25 11:24:19 -04:00
José Varela
ca72073de3 Fix azure storage content-type (#8294)
* fix azure storage content-type

* Use ?? instead of ||

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-24 18:06:29 +00:00
Nitwel
08097d9f79 add missing null,nnull and remove unused file (#8285) 2021-09-24 11:56:38 -04:00
Nitwel
8f8e36f99a Allow for + in $NOW (#8286)
* allow for + before number and simplify regex

* fix regex
2021-09-24 11:55:21 -04:00
Azri Kahar
0912bee30f Allow date strings gt(e)/lt(e)/between validation (#8283) 2021-09-24 11:05:43 -04:00
Jay Cammarano
bcb0ddc44b Tests for pluralize, toArray, validateExtensionManifest, and parseFilter (#8276)
* pluralize tests passing, 100% coverage

* toArray tests passing, 100% coverage

* validate-extension-manifest tests passing, 100% coverage

* parse-filter tests passing, coverage 100%

* covered line 16
2021-09-23 22:11:04 +00:00
Nitwel
f1e325ed10 Fix oas parameters (#8272) 2021-09-23 13:50:12 -04:00
Jay Cammarano
b132899e29 Tests for is-extensions.ts and move-in-array.ts (#8249)
* is-extension.test.ts passing, 100% coverage

* move-in-array tests passing, 100% coverage

* removed unfinished test
2021-09-22 21:21:15 +00:00
rijkvanzanten
7e41860cbf v9.0.0-rc.94 2021-09-22 15:53:24 -04:00
Jay Cammarano
a7228f2815 Tests are written for get-relation-type.ts (#8245)
* setup jest in shared. adjust-date tests.

* define-extensions

* filters to query

* get-fields-from-template.test.ts
base coverage

* get filter operators for type

* tests passing, 100% coverage

* formatting

* removed unneccessary tests
2021-09-22 15:22:24 -04:00
renovate[bot]
e465d3a10b Update dependency knex-schema-inspector to v1.6.1 (#8221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 18:02:04 -04:00
renovate[bot]
56f5f97465 Update dependency @rollup/plugin-node-resolve to v13.0.5 (#8220)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 22:00:07 +00:00
renovate[bot]
4615936454 Update dependency @types/fs-extra to v9.0.13 (#8218)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 19:21:01 +00:00