Commit Graph

10357 Commits

Author SHA1 Message Date
Connor
3409821e3a Update Docs Card Component Styling (#18628)
* add border glow, default icon, and text underline

* Create strange-ears-pull.md
2023-05-19 16:43:56 -04:00
Brainslug
85c664f985 fixed incorrectly mocked endpoint (#18661)
* fixed incorrectly mocked endpoint

* Create olive-toys-fail.md
2023-05-19 13:08:10 -04:00
Pascal Jufer
617d4807f6 Align deps in SDK with other packages (#18660) 2023-05-19 13:07:24 -04:00
Rijk van Zanten
c7d0cd0c74 Move tsconfig package to monorepo (#18659)
* Move tsconfig package to monorepo

* Use local reference to tsconfig
2023-05-19 12:30:45 -04:00
Pascal Jufer
e904927065 Update Vue to 3.3.4 to satisfy '@vue/test-utils' (#18658) 2023-05-19 12:18:55 -04:00
ian
ea857563ad Fix incorrect endpoints for system collections (#18657)
* Fix endpoints for system collections in kanban layout

* Fix other occurrences

* Fix item route for system collections in kanban layout

* Add changeset

* Remove redundant string interpolation

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Extract getItemRoute as an app util

* Remove empty line

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

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-19 16:01:11 +00:00
Pascal Jufer
2e647d80e6 Patch Tuesday 🐸 (#18643)
* Update `directus-monorepo` deps

* Update `@directus/api` deps

* Update `@directus/app` deps

* Update `@directus/composables` deps

* Update `create-directus-extension` deps

* Update `@directus/exceptions` deps

* Update `@directus/data` deps

* Update `@directus/data-driver-postgres` deps

* Update `@directus/extensions-sdk` deps

* Update `@directus/pressure` deps

* Update `@directus/random` deps

* Update `@directus/release-notes-generator` deps

* Update `@directus/storage` deps

* Update `@directus/storage-driver-azure` deps

* Update `@directus/storage-driver-cloudinary` deps

* Update `@directus/storage-driver-gcs` deps

* Update `@directus/storage-driver-local` deps

* Update `@directus/storage-driver-s3` deps

* Update `@directus/types` deps

* Update `@directus/update-check` deps

* Update `@directus/utils` deps

* Update `docs` deps

* Update `tests-blackbox` deps

* Bump pnpm to 8.5.1

* Bump build-push-action in release workflow to v4

* Assign new spy instances before each test

See https://github.com/vitest-dev/vitest/pull/3386

* Create clean-needles-nail.md

* Remove leftover 'beforeAll' imports

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-19 10:48:21 -04:00
Brainslug
2016afab72 Move SDK to monorepo (#18647)
* Adding the JS SDK to the core repo

* Create tough-crews-shout.md

* cleaning up some files

* Removed generated files

* updated tests to vitest

* migrating to vitest

* updated api mocking

* updated api mocking for tfa

* updated comments and fields tests

* updated the rest of the handler tests

* updated the rest of the tests

* fix build output

* update license year

* moved package to packages/sdk

* updated package lock

* Move vitest config to 'vitest.config.ts'

As we have it in the api (since no vite only vitest)

* Sort package.json file

As we did for the other packages

* remove argon2 dependency

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-19 10:39:25 -04:00
Rijk van Zanten
4c45f96a13 Properly paginate on flow logs (#18652)
* Properly paginate on flow logs

* No time for pie

* Add changset

* Skip redundant fetching of created revision

* Update app/src/composables/use-revisions.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Consistent spacing between revisions/flows

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-05-19 10:09:06 -04:00
rijkvanzanten
ac09abbae8 Re-enable clearscreen
It's currently preventing ctrl+c in certain terminal emulators, so better to leave it out for now
2023-05-19 09:51:58 -04:00
Pascal Jufer
a708ec79d8 Redact additional keys in logs of Flows (#18534)
* Redact additional keys in logs of Flows

* Create moody-poems-pump.md

* Move REDACTED_TEXT to constants package & update tests

* Revert "Move REDACTED_TEXT to constants package & update tests"

This reverts commit 0f5b227253.

* Update redacted value in blackbox test

* Use own redact implementation

* Move REDACTED_TEXT to constants package

* Replace outdated comment

* Fix misleading return type

Since values might change (redacted), output isn't necessarily the same type anymore
2023-05-19 09:41:04 -04:00
ian
cf1d6a640d Remove server info (#18648)
* Remove OS info

* Add changeset

* Update unit test

* Remove Directus version

* Remove unused dependency

* Update changeset

* Update example in docs

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

* Update changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-18 19:28:48 +00:00
Pascal Jufer
76555bc41d Add documentation for auth create and update hooks (#18641)
* Add documentation for auth create and update hooks

* Create pretty-lobsters-look.md
2023-05-17 18:34:18 -04:00
Jan Arends
6e17d96496 Add types for new abstract query (#18555)
* add basic types for data

* add changelog

* fixes

* more types, docs and file name change

* added examples

* tweak the naming

* Collaboratively cleanup types

* Cleanup some things I forgot to commit

* adjust comments

* fix grammar

* add some examples in docs

* added negation for conditions

* more docs

* add interface for modifier

* include modifiers and and more docs

* Start tweaking comments

* Rename to @TODO

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-17 14:43:46 -04:00
Hannes Küttner
164c9c2f80 Fix group-accordion value initialization (#18638)
* Fix `group-accordion` `groupValue` initialization

* Add changeset
2023-05-17 10:15:26 -04:00
ian
342295927b Add initial testing docs (#18061)
* Add testing setup

* Update commands to reflect recent changes, full form of flags

* Update paths

* Fix links to running tests

* Fix one link more

* Make spellchecker happy

* Restructure, focus on blackbox tests

* Focus on basic info about tests

* Add info about relative commands

* Clean-up dictionary

* Create stupid-pumas-care.md

* Add short tests intro

* Add info about Subsequent blackbox test runs

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
2023-05-17 13:32:47 +01:00
Hannes Küttner
6e09cc5def Bump @sindresorhus/slugify to 2.2.1 (#18639) 2023-05-17 14:28:12 +02:00
rijkvanzanten
fa8c914978 v10.1.1 v10.1.1 2023-05-16 14:03:02 -04:00
Pascal Jufer
b3f57f6ac2 Clean-up release-notes-generator (#18568)
* Clean-up release-notes-generator

* Remove leftover version check & more overt file names

* Explicit return types

* Add simple test for markdown generation

* Rework a bit

* Final tweaks

* Enhance comments

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-16 13:59:39 -04:00
Brainslug
bc66343e20 Fix api call for insights list panel (#18631)
* fix api call for panel list

* Create many-shoes-pull.md
2023-05-16 13:50:45 -04:00
Pascal Jufer
377b2889ec More sensible default formats for image auto conversion (#18615)
* Prevent auto conversion of png to jpg images

* Create red-swans-march.md

* Update transformation tests

* Update blackbox test

* Fix image allocation

* Fix test again :-)

* Convert formats with transparency support to png (if no accept header)

* Update tests & add final fallback

* Update changeset

* Update blackbox test

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-16 13:50:27 -04:00
Tim Butterfield
97d5ffd9b4 Use batch mode in extensions (#18624)
* Use batch mode in extensions

* timio23 signed agreement

* addressed lint warnings

* Create rude-bees-exercise.md
2023-05-16 12:30:56 -04:00
Brainslug
40129c9e2c Fix for unknown filter fields (#18630)
* fix api throwing 500 error for unknown filter fields

* Create lucky-falcons-collect.md

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-16 12:27:54 -04:00
ian
4a2d100550 Fix tense for changesets (#18629) 2023-05-16 12:24:28 -04:00
Matthew Rumery
9222fca4b8 Add Expand/Collapse to collection items in data model (#18547)
* feat: add ability to collapse nested data-model items

* Move collapse toggle to top level row

* Add changeset

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-16 12:23:24 -04:00
Brainslug
7c88406c5b Add sidebar shadow for kanban layout (#18539) 2023-05-16 16:54:26 +02:00
ian
66d9f34c92 Disable pressure limiter for blackbox tests (#18623) 2023-05-16 08:50:12 -04:00
Kevin Lewis
74ae1c7a30 Added some cross links with main website (#18622)
* Added some cross links with main website

* Spellchecker
2023-05-16 14:40:20 +02:00
ian
5c2b4e82a0 Fix invalid field types in grouping for kanban layout (#18602)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-05-16 14:31:50 +02:00
Pascal Jufer
94c925c9a4 Fix default values for interfaces & display (#18611)
* Fix default values for interfaces & display

* Create nine-walls-sing.md

* Update .changeset/nine-walls-sing.md

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-05-16 20:04:01 +08:00
Pascal Jufer
b3cf23acff Show options for list & map interfaces again (#18603)
* Fix options for list & map interfaces

* Create short-boxes-rescue.md

* Outsource Vue component check to utils

* No need for explicit comparation

* Depend on `typeof` instead of `instanceof` to check Vue comp

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

* make linter happy

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-05-16 12:19:04 +02:00
Brainslug
de89e77ad5 Update vm2 dependency (#18616) 2023-05-16 09:24:45 +00:00
Pascal Jufer
56ef14f82a Default to null in forms if interface itself has no default value (#18610)
* Default to null in forms if interface itself has no default value

* Remove unecessary default values

* Create nervous-humans-leave.md
2023-05-15 16:34:31 -04:00
ian
0955e7fca2 Fix deselecting options for kanban layout (#18600)
* Fix deselecting options for kanban layout

* Add changeset

* Removing unnecessary optional chaining operator

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-15 16:13:18 -04:00
Aiden Foxx
62520c5057 Send null for auth_data if undefined (#18607)
* openid: Send null if auth_data is undefined

* oauth2: Send null if auth_data is undefined

* Create ninety-mails-heal.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-15 14:24:54 -04:00
Brainslug
1628c68fa2 Bundle deployment instructions (#18606)
* re-adding bundle deployment instructions

* Create empty-doors-promise.md
2023-05-15 14:24:16 -04:00
Pascal Jufer
d119f5d501 Update to Vue 3.3 (#18588)
* Update to Vue 3.3

* Create fresh-hotels-mate.md

* Update eslint-plugin-vue

* Replace rollup-plugin-vue with @vitejs/plugin-vue
2023-05-15 14:19:12 -04:00
Pascal Jufer
7acbbc70bc Fix drag & drop upload to the root folder in the file library (#18601)
* Readd fix for DND upload to root folder in file library

* Create happy-months-dream.md
2023-05-15 21:04:55 +08:00
Pascal Jufer
da4ad08a91 Use same ordering of script props in all components (#18590)
- Following official docs: https://vuejs.org/guide/typescript/composition-api.html#typing-component-props
- For the sake of consistency, e.g. so that it's easily "grep-able"
2023-05-15 14:22:28 +02:00
ian
94e8153baf Sanitize column only when applying snapshot diff (#18579)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-15 13:41:57 +02:00
Pascal Jufer
098dd359af Add missing translation in presentation-notice interface (#18591)
* Add missing translation for presentation-notice interface

* Create gentle-kangaroos-appear.md

* Update gentle-kangaroos-appear.md
2023-05-15 15:53:13 +08:00
Abdón Rodríguez
33368287f6 Add axios as a dependency to @directus/composables (#18589) 2023-05-13 17:40:29 -04:00
ian
d5823bd4c1 Fix users-invite component's incorrect null check (#18583)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-13 00:16:30 +00:00
Drew Cain
5784a11f6f Update introduction.md (#18586)
* Update introduction.md

Fixed a grammatical error.

* Update contributors.yml

* Create nice-waves-deny.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-12 17:06:17 -04:00
Pascal Jufer
fb6452147b Consolidate same condition in file item route to prevent render issue (#18581)
* Consolidate same condition in file item route to prevent render issue

* Create forty-baboons-flash.md
2023-05-12 15:10:00 -04:00
Brainslug
af55402680 Adding a maximum for query limit (#17309)
* Adding a maximum for query limit

* fixed bad env check

* using the getEnv function to make it better testable

* updated sanitize-query tests

* added tests for the validate query function

* Added DEFAULT_QUERY_LIMIT as fallback instead

* make the linter happy

* accept infinity as max_query_limit

* fixed merge conflicts

* added missing import

* moved docs PR into main repo

* added missing import

* renamed vars

* basic page size limiting

* Update app/src/layouts/cards/cards.vue

* Update app/src/layouts/map/map.vue

* Update app/src/layouts/tabular/tabular.vue

* Update app/src/layouts/tabular/tabular.vue

* Create paginate util

* extracted page size logic to composable and implemented default usage in app

* updated paginate utility

* using the new fetch-all utility

* removed limit: -1 for api calls that do not support it

* fix linter

* removed console log

* making the linter happy

* Create loud-flowers-yawn.md

* Add tests for no / unlimited limit

* Cover all cases for max limit in sanitizeQuery

* Get rid of non-null assertion

* added test for composable

* Update var names in documentation

* replace hardcoded limit default with env var

* update default page size behavior

* fixed test

* update server info api reference

* include queryLimit in graphql server info

* use configured max limit in calendar layout

* use configured max limit in kanban layout

* account for max query limit in use-revisions

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: rijkvanzanten <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-12 21:59:03 +08:00
Connor
b67c4cd2e2 Contributor Docs Improvements Round 1 (#18545)
* Move Debug Docs from Wiki to Docs

* Add Copyright License Agreement to Docs

* Start Reformat0 of Codebase Overview

* Add Package Documentation to Codebase Overview

* Add Link to Blackbox Folder

* Add Changesets to Pull Request Process

* Add Component Library Tips

* Fix Spelling

* Fix dictionary

* Create thick-glasses-bake.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-12 09:29:00 -04:00
ian
922cb83dce Reword eg to fix spellchecker (#18567) 2023-05-11 17:57:02 -04:00
Pascal Jufer
9ccb875d4b Small release notes generator corrections (#18566)
* Prefix version in title with 'v'

* Let GitHub detect users
2023-05-11 17:32:56 -04:00
rijkvanzanten
703c5d9c69 v10.1.0 v10.1.0 2023-05-11 17:22:00 -04:00