68 Commits

Author SHA1 Message Date
rijkvanzanten
703c5d9c69 v10.1.0 2023-05-11 17:22:00 -04:00
Pascal Jufer
7d72d5545b Add release notes generator for changeset (#18564)
* Add release notes generator for changeset

* Fix ref / user logic

* Enhance logic again

* Extend from shared ESM tsconfig

* Rename to @directus/release-notes-generator

* Make versions title a constant

* Rename function

* Filter out 'directus' package

* Final final

* Reset new pressure & random packages

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-11 17:20:05 -04:00
Azri Kahar
de290c31c3 Move in block editor exclusive extension (#18525)
* move in block editor

* make lodash import consistent with core

* add translations

* add preview svg

* add changeset

* change interface id

* Update .changeset/ten-wasps-relate.md

* removed unneeded property definitions.

* address couple of warnings

* tweak checkbox color

* Check if file has been selected

* Update style overrides

* Override slightly blue background

* Add red background for delete confirmation

* Fix table add row and column button background color

* override checklist color when hovered

* override color of ripple effect for checkbox

* Fix config being undefined

* tweak popover style

* fix attaches tool

* Revert fix

* fix attaches styling

* Fix inline selection active color

* fix attaches download button

* tweak attaches file styling

* Fix alignment icons font colour

* remove nullable prop

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

* tiny code style tweak

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-05-11 16:50:41 -04:00
Pascal Jufer
68da9f9b09 Add folder navigation to files / image selector interfaces (#18320)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-05-11 20:39:19 +00:00
Brainslug
110413e473 clear item cache when permissions change (#18526)
* clear item cache when permissions change

* Create slow-timers-fold.md

* Add tests

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-05-12 01:18:40 +08:00
Hannes Küttner
51ec0b1453 Fix unexpected modelValue emit if no checkbox value is set (#18552)
* Fix unexpected modelValue emit if no checkbox value is set

* Add changeset
2023-05-11 12:54:42 -04:00
Hannes Küttner
1a4d4b8b78 Fix useCustomSelectionMultiple #18553 (#18554)
* Fix `useCustomSelectionMultiple` when modifying a previously unselected custom value

* Add changeset
2023-05-11 12:51:12 -04:00
Azri Kahar
7c4556c8af Move in panels exclusive extensions (#18522)
* move in bar chart

* move in pie chart

* fix color generator

* move in line chart

* fix line chart when color is unset

* move in meter

* fix meter panel when color is unset

* fix insights initial refresh interval

* add changeset

* watch data in pie chart panel

* Update app/src/panels/pie-chart/panel-pie-chart.vue

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* unify function prop type for relevant panels

based on existing type in time series panel

* abstract type for panel function prop

* abstract conditional fill operators

* tweak and add comment in monoThemeGenerator

* Update app/src/panels/pie-chart/panel-pie-chart.vue

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Update app/src/panels/meter/panel-meter.vue

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* add comment for some magic numbers

* use past tense in changeset

* removed cloud exclusive banner from docs

* updated changeset

* fixed console error "[Vue warn]: Missing required prop"

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-05-10 11:37:42 -04:00
Azri Kahar
9d6b3e573d Move in kanban layout exclusive extension (#18516)
* port & refactor kanban layout from extensions

* add danger styling to delete group

* remove todos

* add changeset

* remove misleading active styling on group

* allow non-relational editing of group

* only show delete group when relational

* fix group sorting

* tweak changeGroupSort code style

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Update app/src/layouts/kanban/index.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Update app/src/layouts/kanban/index.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Update app/src/layouts/kanban/index.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Update app/src/layouts/kanban/index.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* remove redundant changeGroupTitle function

as it was actually superseded by editGroup function

* remove optional chaining for prop functions

* tweak isRelational logic

* use past tense in changeset

* remove cloud exclusive banner from docs

* Changed group background color

* disabled add group dialog

* hide add button in groups for now

* allow group sorting for choices

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-05-10 11:34:10 -04:00
Rijk van Zanten
b56fc107a5 Add Pressure-based rate limiter (#17873)
* Start setting up @directus/pressure

* Build pressure middleware

* Add basic readme

* Install @directus/pressure

* Fix this binding

* Experiment

* Add defaults util

* Cleanup

* Fix export

* Use directus defaults

* Start tests

* Add random-utils package

* Finish testing for monitor

* Add prod deployment

* Stop building test files in prod

* My favorite

* Integrate pressure handler

* Add decent defaults

* Add retry header + custom error support

* Clean-up merge conflict & sort imports

* Fix build

* Remove default value for retry after

* Verify sampleInterval value

* ran eslint

* updated package lock

* updated vitest

* Create slimy-zebras-jam.md

* Added basic docs for config options

* updated pnpm lock and changeset

* Update & align new packages

* Update .changeset/slimy-zebras-jam.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-05-10 14:17:53 +00:00
Moritz
6c216b1a82 Fixed typo in docs about "Batch Notifications" (#18531)
* Fixed typo in docs about "Batch Notifications"

* Signed CLA - ChuckMoe

* Create unlucky-penguins-return.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-10 11:09:40 +02:00
Rijk van Zanten
58cdc7c8da Update discussion/issue links (#18520)
* Issue template links

* Update link in nav sidebar

* Create metal-chairs-push.md
2023-05-08 16:08:41 -04:00
Tim Spickermann
d633e11631 Fix field presets for relational fields are not working (#16560)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-05-05 17:19:46 +02:00
Brainslug
d177938508 Overflow in manual flow's confirmation dialog (#18503)
* added scrollbar to flow confirm dialog

* Create chatty-clocks-kick.md

* moved override into "v-card" component

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

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update .changeset/chatty-clocks-kick.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-05-05 15:01:31 +00:00
Brainslug
4d1d0e61dd Updated vitest (#18483)
* updated vitest to 0.31.0

* Create late-tables-call.md
2023-05-04 11:29:54 -04:00
Arthur Yidi
13433b6ea7 Graceful database shutdown for bootstrap CLI (#18465)
* graceful shutdown for boostrap cli

changeset

sign contributors

* Update changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-04 13:20:23 +02:00
Brainslug
a9f397de1f Prevent parsing non-decimal values in search (#18383)
* prevent parsing non-decimal values in search

* Create rare-deers-clap.md

* Adjust format of changeset

* Add explaining comment to return logic of validateNumber

* remove float with zeros check

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-03 09:42:28 -04:00
Brainslug
c74b5da7b9 Improved flows error class handling (#18421)
* improved flows error handling

* Create gentle-cars-watch.md

* updated changeset
2023-05-03 09:40:45 -04:00
Nicola Krumschmidt
1d7eec9795 Mark shared packages as side effects free (#18365)
* Mark the constant and utils packages as side effects free

* Add changeset

* mark composables as side effect free

* mark exceptions package as side effects free

* updated changeset

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
2023-05-03 14:26:52 +02:00
Brainslug
8a772802fa updated uses of useAliasFields (#18267)
* updated uses of useAliasFields

* use fields instead

* updated ternary check

* remove dealiasing

* Linty lint

* temporary changes

* finish alias cleanup

* Fix linter warnings

* fixed imports from merge

* removed unsed variables

* Add changeset

---------

Co-authored-by: Nitwel <mail@nitwel.de>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Jan Arends <jan.arends@mailbox.org>
2023-05-02 15:23:38 -04:00
Nitwel
2432306fea Make folders hidden by default in system collection interface (#18362)
* make folders hidden by default in system collection interface

* Create green-stingrays-shake.md

* Remove prop

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-02 15:17:58 -04:00
Brainslug
1fba5ebf94 Load cjs custom migrations (#18385) 2023-05-02 21:10:19 +02:00
Nicola Krumschmidt
80bcc35af3 Add support for building API extensions to ESM (#18351)
* Remove language check from extension build command

* Add getFileExt util

* Add support for building API extensions to ESM

* Build new extensions to ESM by default

* Update config file docs to be in ESM

* Add changeset

* Fix extension test

* Replace nested ternary expression

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Li(n)t

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-05-02 14:45:25 -04:00
ian
69061c1284 Add Cache option for Flows webhook trigger (#18277)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-02 15:17:07 +00:00
Brainslug
06ff0c2ef9 Fixes _offset=0 in deep filters (#18382) 2023-05-02 12:34:50 +02:00
Jan Arends
8b8858da9a Support multipart/form-data to apply schema diffs (#18321)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-02 10:24:46 +00:00
Matthew Rumery
bf10c943c8 Fix broken links in the documentation (#18377)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-02 10:03:32 +02:00
Brainslug
87f2edc735 Prevent nested ternary expressions (#18376)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-01 19:07:40 +00:00
Nicola Krumschmidt
3ff71cc34a Silence prefer builtins and circular dependency warnings when building extensions (#18366)
* Silence prefer builtins warning

* Silence circular dependency warning if only external files are involved

* Add changeset
2023-04-28 15:07:51 -04:00
Nicola Krumschmidt
6c1a4812ca Instruct users to use the latest version of create-directus-extension (#18361) 2023-04-28 12:57:12 -04:00
Nitwel
f56706095a Fix default values for boolean (#18357)
* fix default values for boolean

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-28 09:40:03 -04:00
Hannes Küttner
02f0284540 Add related collection link to data model settings (#18346)
* Add related collection link to data model settings

* Add changeset

* Update .changeset/six-emus-joke.md

* Hide button for self-referencing relations

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

* Use unref instead of .value

* Make typescript happier

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-04-27 17:47:36 -04:00
Nicola Krumschmidt
e60c6cff5f Remove extension config import workaround (#18349)
* Remove extension config import workaround

* Add changeset

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-27 17:20:55 -04:00
Nicola Krumschmidt
af2ce35d67 Add shared javascript file ext constant (#18350)
* Add shared javascript file ext constant

* Add changeset
2023-04-27 17:18:02 -04:00
ian
321cd1e9c9 Translate module link name in project settings (#18343)
* Translate module link name in project settings

* Add changset
2023-04-27 13:14:28 -04:00
rijkvanzanten
cdf8d94ec1 Use past tense in changelog 2023-04-26 17:08:39 -04:00
rijkvanzanten
f4698b5de3 Add changeset for #18310 2023-04-26 17:04:54 -04:00
rijkvanzanten
0f32f4f136 Add changeset for #18316 2023-04-26 16:46:06 -04:00
rijkvanzanten
37d74f96fd Create changeset for #18328 2023-04-26 16:44:26 -04:00
Rijk van Zanten
abc9d0142f Install changesets (#18331)
* Install changesets

* Update contributing guidelines
2023-04-26 16:21:15 -04:00
rijkvanzanten
77b082c942 Remove changesets experiment 2021-06-01 20:12:28 -04:00
Rijk van Zanten
5c66c53478 Enhance translations interface previews (#5860)
* Delete what was previously added

The reasons of which are beyond me

* Don't default to having the first nested field opened

* Add options for translations / language templates

* Pull previews and render based on secondary display template

* Add changeset
2021-05-24 20:56:29 -04:00
rijkvanzanten
925c3fa3fa Fix range requests in s3 driver
Fixes #5380
2021-05-24 16:13:00 -04:00
rijkvanzanten
2660c39954 Fix reactivity on m2m relation setup
Fixes #5839
2021-05-24 14:17:23 -04:00
rijkvanzanten
374e6e5a7d Set size limit on v-error 2021-05-24 14:16:47 -04:00
rijkvanzanten
dee8160f18 Fix calendar layout dateTime timezone save issue
Fixes #5651
2021-05-24 14:07:36 -04:00
rijkvanzanten
3d3a508880 Expose on create / on update for m2o fields to users/roles 2021-05-24 13:49:10 -04:00
rijkvanzanten
bd6cab8989 Prevent duplicate field name on recursive m2m 2021-05-24 13:20:56 -04:00
Oreille
8590eec662 Fix navigation search (#5834)
* Fix navigation search

* Update use-navigation.ts

* Add changeset

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-24 12:24:14 -04:00
rijkvanzanten
171ca334c4 Add changeset for gatsby fix 2021-05-24 12:21:39 -04:00