Commit Graph

10407 Commits

Author SHA1 Message Date
Brainslug
9d8f29b792 Add extra type check in apply-diff (#18783) 2023-06-05 15:05:00 +02:00
Nino Gjoni
1b8f179bad Improvement: Add albanian language translation (#18810)
* Add albanian to available languages

* Add me as contributor (CLA)

* Create fair-clouds-exercise.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-06-05 11:13:04 +02:00
Pascal Jufer
8f7202d9c3 Update version of pnpm & stricter engine requirement (#18800) 2023-06-02 09:52:57 -04:00
ian
cd344baac4 Fix parsing of Error objects when redacting (#18777)
* Fix parsing of Error objects when redacting

* Create perfect-ducks-add.md

* Move errorReplacer into redact util

* Use unknown instead of any

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-31 08:40:32 -04:00
Rijk van Zanten
d6c0d31b39 Add auto-closer for stale issues (#18780)
* Add auto-closer for stale issues

* Tweak name

* Tweak language
2023-05-30 16:23:43 -04:00
Pascal Jufer
05d901a3dd Support adding additional notices to release notes via changesets (#18726)
* Support adding additional info to release notes via changesets

* Update test

* Simplify regex since summary is already trimmed by changesets

* Simplify again, split up into new util & add test

* Add comment to regex

* Enhancements

- Better terms: Use "notice" instead of "info"
- Support placing notice everywhere in the summary
- Enhance format of notices in release notes

* Print notices under 'Potential Breaking Changes'

* Update tests

* Update format

* Fix new lines & improve tests

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-30 12:43:08 -04:00
Connor
f667fe7658 Contributor Docs Improvements Round 2 (#18667)
* add delete by query information and examples

* add that changelogs should be past tense

* add examples of unit and blackbox tests

* add information on where upload/extension folder should go locally

* add new packages and remove redundant column

* fix spelling

* Create hot-pillows-tan.md

* Fix tip box and links

* Update docs/contributing/codebase-overview.md

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

* Update docs/contributing/running-locally.md

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-30 12:30:58 -04:00
Kevin Lewis
c5b1c9890a Add required and recommended minimum specs for self-hosting (#18773)
* Add mninimum specs

* Add vCPU to dict

* Fix typo

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-30 15:28:28 +00:00
ian
faca64db21 Fix empty image selection error for file-image interface (#18761)
* Fix empty image selection error for file-image interface

* Add changeset

* Update app/src/interfaces/file-image/file-image.vue

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-05-30 15:13:09 +00:00
Craig Harman
90f7674152 Fix duplicate brackets for Storybook link (#18764)
* Fix duplicate brackets for Storybook link

* Sign the CLA

* Create gentle-goats-lay.md

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-05-30 09:54:43 -04:00
Pascal Jufer
ef9aa341c3 Enhance version comparison in the update notifier (#18748)
* Enhance version comparasion in the update notifier

* Create twelve-ghosts-juggle.md
2023-05-26 18:06:15 -04:00
rijkvanzanten
619d1f5726 v10.2.1 v10.2.1 2023-05-26 14:21:39 -04:00
rijkvanzanten
0f5753c608 Add changeset to force npm publish 2023-05-26 14:19:17 -04:00
rijkvanzanten
ca73cc976e v10.2.0 v10.2.0 2023-05-26 13:17:06 -04:00
Brainslug
f96dcc361f Translation string performance (#18097)
* broken migration

* fixed migration

* created new endpoints for translation strings

* updated to use core endpoint

* bad attempts at making the endpoints sensible

* merge changes

* implemented translation strings service

* re-integrating app logic part 1

* re-integrating app logic part 2

* fixed bad lodash import

* re-integrating app logic part 3

* removed obsolete tests

* make the linter happy

* Create tender-trees-buy.md

* added option to search-input

* implementing search

* fixed resizing and sidebar

* Fix linting

* Remove unused translations update into project settings

* Fix missing translations

* Require read permissions for app access

* Fetch translation strings only when authenticated

* Fix project default language not used when user has default language

* Remove commented line

* Rename variable as content has been changed

* Make the current user check more specific

* Remove translation_string from Settings type

* Remove settings reference in docs

* Update changeset

* Rename migration file to ensure date order

* Rename collection, route, service, controller

* Rename migration

* Adjust collection in settings route

* Fix translations service

* Use new `shouldClearCache` util

* Drop translation_strings column in migration

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

* Added basic api docs

* updated dictionary

* updated dictionary

* Update app/src/interfaces/_system/system-input-translated-string/input-translated-string.vue

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

* Update app/src/modules/settings/routes/translation-strings/collection.vue

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

* extracted getCurrentLanguage utility

* Use regular collections/items

* Use regular controller

* Fix item view

* Set correct system field config for translations

* Tweaks

* Use UUID

* Finish placeholders

* Use drawer-item

* Add create to the store

* Remove composables

* Add new placeholder

* Fix saving behavior

* Remove previous take

* Rename migration after merge of live preview

* Generate uuid when migrating

* Remove unused showFilter

* Fix linting

* Fix type warnings

* Not needed as settings no longer contain translation_strings

* Remove leftover blank line

* Update getCurrentLanguage with server default and use in hydrate

* Shift getCurrentLanguage to lang folder to be alongside setLanguage

* add elipsis to placeholder

* Remove slug from key, so you can use dots etc in the key

* updated translation value to be type text again

* Rehydrate fields for updated translation values

* Add tooltip

* updated documentation

* enforce key/language uniqueness in the TranslationService

* updated error message

* updated docs menu item to "custom translations"

* Dynamically fetch translation keys for input-translated-string interface

* use get current language in refresh

* Update docs/reference/system/translations.md

* Update docs/reference/system/translations.md

* Update .changeset/tender-trees-buy.md

* Fetch translation keys when new key is created

* Update api/src/services/translations.ts

* Remove translation_strings remnant

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

* mark key, language and value as required

* correctly mark fields as required

* Catch duplicate key error when creating from input

* Translate translations :-)

* Update tender-trees-buy.md

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-26 12:35:44 -04:00
Rijk van Zanten
0be665d2f8 Update giant-ligers-nail.md 2023-05-26 12:22:04 -04:00
Pascal Jufer
bce32d90a7 Implement update notifier in directus package (#18738)
* Include update notifier in `directus`

* Don't bundle

* Move updateCheck function to `update-check` package

* Create kind-shoes-jam.md

* Update kind-shoes-jam.md

* Remove wrong dep
2023-05-26 09:55:23 -04:00
ian
4c919bd8f8 Update handler response format for manual flows (#18741)
* Update handler response format for manual flows

* Create olive-ligers-tie.md
2023-05-26 12:32:46 +02:00
ian
1e8dd2c928 Patch following files max upload size (#18737)
* Prevent uncaught error

* Fix typing as null is returned on error

* Remove undefined values from uploadedFiles result

* Create good-ligers-teach.md
2023-05-25 17:42:59 -04:00
Pascal Jufer
065eea01af Fix fetching of all permissions (#18655)
* Fix fetching of all permissions

* Create orange-moose-punch.md

* Revert "Fix fetching of all permissions"

This reverts commit 3122bf03ee.

* temporary fix forcing limit=-1

* renamed query var

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: ian <licitdev@gmail.com>
2023-05-25 21:30:18 +00:00
Rijk van Zanten
2536d9e90b Add support for FILES_MIME_TYPE_ALLOW_LIST env var (#18736)
* Install minimatch

* Add support for `FILES_MIME_TYPE_ALLOW_LIST`

* Add reference

* Add changeset

* Update docs/self-hosted/config-options.md

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

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-05-25 17:25:47 -04:00
Rijk van Zanten
3363ca6422 Add env var for max file upload size (#18735)
* Add limit to file size

* Delete temp db record on file upload failure

* Emit empty value on upload failure

* Rename assets->files

* Update reference

* Finalize rename

* Add changeset

* Add proper exception
2023-05-25 15:24:14 -04:00
Brainslug
b920b72e79 Translate field names in collection dialog (#18708)
* dont format translation strings

* Create silver-baboons-give.md

* Revert "dont format translation strings"

This reverts commit e4fea9730e.

* Translate before passing as props

* Update changeset

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-05-26 02:18:38 +08:00
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