Commit Graph

9556 Commits

Author SHA1 Message Date
Nitwel
64901d736c Fix scrolling on dialog (#15823)
* fix scrolling on dialog

* Update app/src/interfaces/input-rich-text-html/input-rich-text-html.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-15 02:36:01 +00:00
Nitwel
990b26cb78 fix non viewable items (#15824) 2022-10-14 22:27:27 -04:00
Azri Kahar
bb51d5a618 Reset junction collection/fields for field relationships with junction table (#15904)
* use `localType` to disable related collection in m2m

this is because `localType` dictates the relationship type (eg. m2m, files), but `type` was only field type (eg. alias, string)

* reset files junction when re-enabling auto fill

* prevent m2m clearing related collection

When re-enabled auto-fill, the updates only contain the autofill, not the m2o related collection value, so it was unintentionally resetting the value even when we are only toggling autofill

* fix autofill for translations

* fix m2a junction autofill toggles

* use getCurrent instead of state

* basic test for fieldDetailStore

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-15 01:56:03 +00:00
Azri Kahar
dc7c62f0ef Allow triggering manual flow without selection(s) (#15977)
* allow running manual flow without selection

* test for flows store

* update no items selected tooltip
2022-10-14 21:47:54 -04:00
Azri Kahar
67c3834783 Add search to field creation drawer (#15981)
* add search to field creation drawer

* lowercase id just in case for custom interfaces
2022-10-14 21:44:14 -04:00
Azri Kahar
37b1e99ed8 Remove handleObject default in render-template (#15999) 2022-10-14 19:29:40 -04:00
Nitwel
a0e2801501 Fix empty form info on translations (#15757)
* fix empty form info

* hide circle

* Allow setting prop icon to false in v-info

* Add inline prop to v-form to disable info icon

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-14 19:18:06 -04:00
Nitwel
413d21fe4b treat empty array as null on relational field (#15958)
* treat empty array as null on relational field

* Run prettier

* add unit test

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-14 18:38:53 +00:00
Nitwel
64f60a007a use right collection for filter (#16002) 2022-10-14 14:33:24 -04:00
ian
9edf9f9ce0 Process page only when merging with parent items (#16010) 2022-10-14 14:18:27 -04:00
Vincent Kempers
03d65e8363 Fix and improve raw value editor (#15868)
* this works in the form-field setting up for refactor

* refactored the useRaw and made form-field-raw-editor

* add defaults

* add tests for render submitting and cancelling

* add isNil

* delete the comment

* add a cancel button

* change let to const

* add the if statement when it's not a object

* delete the .raw-value and place it in the raw-editor form field

* rename submit to setRawValue

* change submit to set-raw-value

* add a possibility to add a placeholder to the system-raw-editor

* implement the system-raw-editor to the form-field-raw-editor

* update the snapshot and fix the emitted tests

* found out we can disable the gutter and line-numbers

* add a language prop to the system when it's not defined it should default to mustache

* delete style; add language and add type

* update the html in tests

* add input-code for the extended validation

* add default value

* Update form-field-raw-editor.vue language to plaintext

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* update test

Co-authored-by: Vincent Kempers <vincentkempers@vincents-mbp.lan>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-14 14:17:24 -04:00
Connor
74b60c9154 Add Bosnian to available languages (#15993)
Fixes #15963
2022-10-13 15:31:23 -04:00
Azri Kahar
b99e8f02d4 Allow removing existing link by clearing URL (#15880) 2022-10-12 16:13:16 -04:00
ian
6cdd0eead4 Fix CodeQL threadflow steps (#15873)
* Upload SARIF artifact

* Test removal of empty object

* Fix polynomial-redos

* Revert fail-fast change

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-12 16:01:13 -04:00
Brainslug
5fcb3c84c7 Update ioredis to fix connection uri options (#15876)
* updated ioredis to 5.2.3

* type fixes

* removed obsolete @types/ioredis package
2022-10-12 15:56:22 -04:00
Brainslug
040e9c240a Updated argon2 to 0.29.X for M1 support (#15928)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-12 15:40:33 -04:00
Azri Kahar
027696dd65 fix workspace size logic (#15637) 2022-10-12 14:42:39 -04:00
Nicola Krumschmidt
215a47c19b Allow usage of tupels of arbitrary length with DeepPartial (#15947) 2022-10-12 14:17:08 -04:00
Nitwel
08db8fea5d Fix translation display (#15951)
* fix translation display

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-12 17:10:21 +00:00
Rémi Peron
33d5f86937 Add support for s3 ServerSideEncryption (#15952) 2022-10-12 13:05:04 -04:00
Nitwel
fb58fd9bf2 Remove use-m2m (#15955)
* remove old composable

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-12 17:03:21 +00:00
Nitwel
d1b3bdee3d Add missing adjustFieldsForDisplays (#15959)
* add missing adjustFieldsForDisplays

* Fix linter warning

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-12 16:56:54 +00:00
Azri Kahar
a06bb0eefc Check for M2A with single related collection in useFieldTree composable (#15957)
* check for m2a in use-field-tree

* add test for use-field-tree

* fix test with filter
2022-10-12 12:55:07 -04:00
Nitwel
d5a161fb72 add alias to always have the same name (#15960) 2022-10-12 11:47:29 -04:00
Andrey Trubay
50859f852c Fix thumbnails not displaying in Files interface (#15736)
* Fix thumbs displaying in Files interface

* Use default field value if field exists but its value is undefined

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-10-12 11:49:10 +02:00
Nicola Krumschmidt
1a5d635efb Move key to component where v-for is defined (#15944) 2022-10-11 17:57:54 -04:00
Brainslug
3c2125f646 public_url_file in .env causes server start error (#15898)
* allow *_FILE environment vars to overwrite default values

* added test

* added mock for fs

* removed test
2022-10-11 16:47:33 -04:00
Rijk van Zanten
b28633d597 Upgrade vite (#15943)
* Upgrade vite

* Update snapshots for updated vite plugin
2022-10-11 16:06:09 -04:00
Nicola Krumschmidt
fcdf235b7d Allow extensions to be symlinks when running the App in dev mode (#15793) 2022-10-11 16:05:11 -04:00
Brainslug
af8eabf271 Insights dashboard - List panels link to listed collection items. (#15930)
* extra checks for valid input

* re-introducing the item drawer for list-items

* making list panel drawer optional

* Cleanup for consistency

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-11 17:40:45 +00:00
Nicola Krumschmidt
acb40ffee1 Make the repo usable with Node v18 (#15939)
`openid-client` previously had an `engine` field inside its package.json which prevented it from being used with Node v18.
2022-10-11 11:08:20 -04:00
Brainslug
4904c3bba1 change trigger flow interface to dropdown using the local store (#15764) 2022-10-10 11:58:31 +02:00
Azri Kahar
fd47923706 Fix special characters in translation strings (#15872)
* Fix special characters in translation strings

* unit test

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-10-10 11:49:37 +02:00
Andreas Bernhard
8e128fecc2 fix (display-filesize): adjust handler argument to be read as value (#15840)
* fix (display-filesize): adjust handler argument to be read as `value`

rel: https://github.com/directus/directus/issues/15837

* reformatting (display-filesize): ran prettier on file

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-10-04 16:22:38 +02:00
Andreas Bernhard
0a5ff6d12a fix (display-filesize): wrap component value in span node (#15841)
* fix (display-filesize): wrap component value in `span` node

rel: https://github.com/directus/directus/issues/15838

* reformatting (display-filesize): ran prettier on file
2022-10-03 16:11:57 +02:00
Nicola Krumschmidt
cbe1e7fbc6 Ignore pnpm-lock.yaml when running prettier on the repo (#15786) 2022-09-28 13:21:16 -04:00
Roger Stringer
3761abf1f0 adds missing graphQL operators (#15760)
* missing icontains for strings, missing eq, neq for geo, missing in, nin for dates

* fix unit test

* fix unit test part 2

* Update packages/shared/src/utils/get-filter-operators-for-type.ts

Co-authored-by: ian <licitdev@gmail.com>

* fix tests?

* fix tests?

Co-authored-by: ian <licitdev@gmail.com>
2022-09-27 10:16:37 -07:00
Gerard Lamusse
aea55faa46 Change to autocomplete interface (#15585)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-09-26 13:26:01 +02:00
Brainslug
69797776f1 Add fallback message when no fields are visible in a form (#14778)
* Add fallback page when no fields are visible in a form

* fixed spacing for the linter

* properly show empty form message for relational drawer items

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-24 18:53:34 +00:00
Nitwel
324b549d9d fix image alt being null (#15709) 2022-09-22 23:23:48 -04:00
rijkvanzanten
cb3d775c4e v9.18.1 v9.18.1 2022-09-22 17:12:51 -04:00
rijkvanzanten
6404258b3a Update docs 2022-09-22 17:11:59 -04:00
Rijk van Zanten
8110f81941 New Crowdin updates (#15649)
* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Turkish)
2022-09-22 23:15:16 +08:00
José Varela
fae5ed1c08 Graphql: Fix required PK on create / update (#15693)
* Do not require primary key on data on create / update

* Do not put fields non nullable if they have default value

* Handle manually entered primary keys (don't have default value)

* Allow uuid PK to be nullable

Co-authored-by: ian <licitdev@gmail.com>
2022-09-22 22:57:40 +08:00
Maxim
efdeded18a Implemented an option to filter m2a fields using graphql. (#15162)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-22 13:00:52 +02:00
mtgerb
d6fce8d92a Add support for <collection>.items.query filter hook (#15611)
* fix items.query filtering for a collection

* fix linter error

Co-authored-by: Matthias Gerbershagen <m_gerbersh09@informatik.uni-kl.de>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-09-20 14:40:55 +02:00
rijkvanzanten
0f39a80354 v9.18.0 2022-09-19 09:44:26 -04:00
rijkvanzanten
8f5750c5c1 v9.18.0 v9.18.0 2022-09-19 09:39:58 -04:00
rijkvanzanten
8d7000ddb4 Update docs 2022-09-19 09:37:15 -04:00
Rijk van Zanten
24e8749c7d New Crowdin updates (#15427)
* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Spanish, Mexico)

* Update source file en-US.yaml

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Arabic)
2022-09-19 09:34:32 -04:00