Commit Graph

10384 Commits

Author SHA1 Message Date
ian
93cba4e1b6 Optimise countDistinct aggregation on primary key field (#18717)
* Optimise countDistinct aggregation on primary key field

* Create green-boxes-hope.md
2023-05-26 02:14:02 +08:00
ian
3754fb0ec8 Optimise export sidebar aggregation call (#18724)
* Fetch item count in export sidebar only when active

* Remove redundant query params for count aggregation without grouping

* Remove chaining for code consistency

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

* Create smart-files-protect.md

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-05-26 01:18:18 +08:00
Pascal Jufer
4683227272 Update openapi3-ts to v4 (#18722)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-05-25 17:36:32 +02:00
Pascal Jufer
df583f0447 Update rare-bananas-melt.md (#18729)
Mark Live Preview as minor change for `directus`
2023-05-25 17:05:53 +02:00
Azri Kahar
c705227cdc Remove docs CDN from the base CSP config (#18728)
* remove docs cdn from the base CSP config

* changeset
2023-05-25 16:49:54 +02:00
Nitwel
ed8b0e0394 Live preview (#17794)
* Add split view to the private view

* add more functionality to split view

* change text

* add simple size settings

* finish basic live preview feature

* add reload functionality

* update pnpm-lock

* update to newer design

* remove console.log

* Fix height of main content

* update design

* finishing fixes

* run linter

* finishing cleanup

* rebuild lock file

* lint fix

* hide preview for collections without preview urls

* fix refresh and eslint error

* use v-text-overflow for preview url

* use bottom placement for consistency

because other buttons such as Open in New Window and Refresh shows their tooltip at the bottom.

* tiny code tweak with early return

* remove fun parts and change divider color

* fix preview for singletons

* slightly improve the refresh button feedback

* hide zoom in fullscreen/desktop view

it is disabled in fullcreen, but some users may think they can click it, so I've opted to hide it instead. Especially since switching from mobile to desktop mode always resets it to 100%.

* tiny early return tweak

* opt to fix v-select disabled state cursor

* reverse zoom scaling order

* prevent preview going out of bounds when zoomed

* fix dragging when pointer enters iframe

* reinstate previous code tweak

* regenerate lock file

* use lockfile from main

* Dear linter...

* chore: add live preview to sidebar

* docs: add frontmatter

* docs: add intro

* docs: before you start

* docs: live preview in directus

* docs: draft mode in nextjs

* docs: fetch with draft mode

* docs: preview content in directus

* docs: next steps

* docs: update

* docs: updates

* docs: add live preview to collections

* docs: add live preview to item

* docs: updates

* docs: update

* chore: updates to the nextjs guide

* chore: updates to collections

* chore: updates to items

* Nuxt 3 guide

* Small Next guide fixes

* Added tips

* Spellcheck fixes

* Rework resizement

* Move debounce to private-view

* Update Nuxt 3 guides - styling and sentence clarity.

* add refreshLivePreview custom property to window

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

* remove remaining "window as any" typecasts

* Show 'grab-bar' only if wrapper is in viewport

* toggle preview instead of split in mobile view

* tweak to unwrap nested IF conditions

* do not change preview button icon when enabled

* hide grab-bar in mobile

* check main content width instead of window width

* Fix save-and-stay not updating preview url

* Update refresh button function call

* Add frame loader to prevent flashing

* Prevent scrollbar flashing when toggling splitview

* lift specific logic from v-resizable to private-view

This piece of logic was meant only for the content area and shouldn't affect every v-resizable usages

* use v-show instead of v-if to hide main content

v-resizable has an internalWidth that should not be reset when user resize the left navigation bar, as well as the form shouldn't be re-rendered

* check target to hide the grab-bar in toggle mode

as we're only hiding the target rather than disabling the wrapper, we had to check whether the target is visible as well to determine whether to show the grab-bar

* Fix zoom behaviour & remove leftovers

* remove wrapperIsVisible check

in favor of only relying on targetIsVisible check

* Revert "Add frame loader to prevent flashing"

This reverts commit e4c2d3d4bd.

* Final tweaks

- Enhance frame zoom
- Min width for frame
- Hide main content based on overall size
  (ensure it works for all browser sizes)
- Various enhancements & fixes

* Update migration date

* Create rare-bananas-melt.md

* Better naming for remaining width var

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: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Esther Agbaje <folasadeagbaje@gmail.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-05-25 16:29:12 +02:00
ian
101ec6649d Specify oracledb version for blackbox tests (#18720) 2023-05-25 17:02:15 +08:00
ian
0b4542fd25 Fix schedule hook test (#18719) 2023-05-25 16:35:39 +08:00
ian
80cca54d18 Enable caching for requests from data studio (#18484)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-25 08:37:54 +02:00
Nicola Krumschmidt
60be3c2b40 Add synchronization across horizontally scaled instances to schedule flows and hooks (#18584)
* Add synchronization to schedule flows and hooks

Fixes #15052

* Add changeset

* Add test

* Add to sequential list

* Fix spelling in changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
2023-05-24 17:16:42 -04:00
Rijk van Zanten
8401cd5a8e Delete linear-auto.yml 2023-05-24 14:08:35 -04:00
Rijk van Zanten
3603b34c9a Delete slash-commands.yaml 2023-05-24 14:08:23 -04:00
Rijk van Zanten
86527cde84 Delete linear-dispatch.yaml 2023-05-24 14:08:13 -04:00
Pascal Jufer
83f6978300 Prevent release of @directus/sdk until it's ready (#18715) 2023-05-24 12:02:40 -04:00
Matthew Rumery
0cc3b4f419 Fix code block editor popover styles (#18704)
* styles: correct input-block-editor popover styles on dark mode

* add new line to end of css file

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

* Rename popover__item to popover-item

* Capitalise changeset casing for consistency

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-05-24 15:39:19 +08:00
Kevin Lewis
6deb154a70 Fix bad auto-formatting on Nuxt 3 guide (#18682) 2023-05-23 10:02:47 -04:00
ian
eb82110b7e Update gh-action-linear to fix workflow failure (#18699) 2023-05-23 12:19:26 +02:00
Pascal Jufer
6141092f29 Enhance translations in export sidebar (#18686)
* Enhance translations in export sidebar

* Create warm-pumas-provide.md
2023-05-22 11:24:58 -04:00
Pascal Jufer
bcda7d227d Disable disable depreacted marked options (#18685) 2023-05-22 11:19:21 -04:00
Azri Kahar
946d874ef3 align SDK's MIT license with other MIT licenses (#18683) 2023-05-22 11:20:39 +00:00
Pascal Jufer
42a4b9c9a6 Publicize @directus/release-notes-generator (#18670)
* Publicize `@directus/release-notes-generator`

* Update packages/release-notes-generator/package.json

* Use node types for v18

* Add additional info to readme

* Add license
2023-05-22 19:17:00 +08:00
Pascal Jufer
ef65b16b18 Correct initial version for new packages (#18671) 2023-05-19 18:58:08 -04:00
Pascal Jufer
7ecda9b2fa Clean-up package.json files (#18663)
* Remove publishConfig from all packages

* Remove invalid version field

* Move @directus/composables to devDependencies in app

* Resort all package.json files

* Align meta fields

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-19 17:54:10 -04:00
Pascal Jufer
d559a80aab Remove .nvmrc file (#18664)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-19 17:49:08 -04:00
Pascal Jufer
10043da973 Update CODEOWNERS (#18665) 2023-05-19 17:30:18 -04:00
Pascal Jufer
1535dde228 Remove readme in docs (#18666)
No longer required since the package is now part of the monorepo
2023-05-19 17:30:02 -04:00
Rijk van Zanten
243fa71b12 New functions for @directus/random (#18668)
* Add array randomizer

* Add sequence randomizer

* Add barebones readme

* Rename randomIntBetween -> randomInteger

* Finish couple new randomizer functions

* Add basic tsdoc

* Add changeset

* Downgrade types/node
2023-05-19 17:21:39 -04:00
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