Commit Graph

5102 Commits

Author SHA1 Message Date
ian
910b7fae23 Add root path to module bar images (#17714) 2023-03-06 14:08:29 +01:00
Nitwel
44416a443b Fix loading all fields (#17395)
* Fix loading all fields

* fix linter

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-03-06 12:05:08 +01:00
Nitwel
9d1dd1ae52 Show validation errors in drawer-item (#17423)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-06 11:47:05 +01:00
Azri Kahar
d466204732 Add ability to limit requests from using the Cache-Control header to skip cache (#17642)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-02 13:19:30 +01:00
rijkvanzanten
e468f58eec v9.23.1 2023-03-01 09:51:57 -05:00
ian
fc2eabc59d Add required option to repeater fields (#17637)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-28 18:16:10 +00:00
rijkvanzanten
47b9824954 v9.23.0 2023-02-28 12:51:36 -05:00
Rijk van Zanten
9368dbd0c2 New Crowdin updates (#17487)
* Update source file en-US.yaml

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Malay)

* New translations en-US.yaml (Malay)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Dutch)

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

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)
2023-02-28 11:38:35 -05:00
Connor
b90f72073d Fix Local Auth Provider form being hidden (#17588) 2023-02-28 21:55:06 +08:00
Brainslug
5ecb9965b7 Hide related fields without read permissions (#16832)
* remove related O2M fields without read permissions

* Added basic test for usePermissions composable

* updated test

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-24 12:44:16 -05:00
Nitwel
21bb26988e Improve preview of relational columns in tabular layout (#15269)
* improve preview of relational tabular columns

* update pnpm-lock

* Use the improved get method (#15548)

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

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-02-24 22:01:57 +08:00
Nitwel
da9c3fed3c Fix infinite recursion (#17609)
* fix infinite recursion

* ran eslint

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
2023-02-23 16:04:55 +01:00
ian
73e239c49e Add directory check when getting extensions real paths (#17565) 2023-02-21 10:45:55 +01:00
Pascal Jufer
37faf3bd5d Patch Tuesday 🐸 (#17530)
* Update root deps

* Reformat files with new prettier version

* Update `directus` deps

* Update `@directus/app` deps

* Update `@directus/shared` deps

* Update components snapshots after updates

prop order has changed

* Update `extensions-sdk` deps

* pin version of zod in shared

* Update `@directus/storage` deps

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

* Update `storage-driver-cloudinary` deps

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

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

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

* Update `@directus/utils` deps

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-16 17:47:39 +08:00
Gerard Lamusse
d3781f25d3 Remove unnecessary clone on selectAll (#17509) 2023-02-14 17:38:34 +01:00
marcusarnfast
1e824f7f21 Improvement: Danish language translation (#17496)
* fix(lang): Typos, and missing translations

- Missing translations.
- Typos.
- Irrelevant capitalization.
- Fix missing "|" or replacing "·" to "l"

* Remove duplicate, fix spaces and indents

* Remove duplicate, fix spaces and indents

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-13 16:07:04 -05:00
Connor
c92ef0d215 Add Swahili (Kenya/Tanzania), Esperanto, Tajik to Language List and Alphabetize List (#17479)
* Add Swahili (Kenya/Tanzania), Esperanto, Tajik to Language List and Alphabatize List

* Update app/src/lang/available-languages.yaml

* Sort languagesby name

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-10 14:53:34 -05:00
Rijk van Zanten
51b7016793 New Crowdin updates (#17103)
* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Bulgarian)

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

* New translations en-US.yaml (Bulgarian)

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

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

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

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

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

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

* Update source file en-US.yaml

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (French)

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

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Italian)

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

* Update source file en-US.yaml

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Hebrew)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Georgian)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Serbian (Cyrillic))

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

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Ukrainian)

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

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Portuguese, Brazilian)

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

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

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Malay)

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

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

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Bosnian)

* New translations en-US.yaml (Serbian (Latin))

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

* Update source file en-US.yaml

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

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Khmer)

* New translations en-US.yaml (Khmer)

* New translations en-US.yaml (Portuguese, Brazilian)

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

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Swahili, Kenya)

* New translations en-US.yaml (Swahili, Tanzania)

* New translations en-US.yaml (Tajik)
2023-02-10 14:28:24 -05:00
Pascal Jufer
e1437fdd7f Remove superfluous args (follow up on #17449) (#17482) 2023-02-10 19:26:46 +08:00
Nitwel
e96e04efa0 always show error in tabular layout (#17443)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-02-08 13:00:01 -05:00
Nitwel
acd4078239 Fix using strings for flow trigger collections (#17441) 2023-02-08 12:59:23 -05:00
Pascal Jufer
d5395ce72c Follow-up on "Drop inline rendering of docs" (#17449)
* Follow-up of "Drop inline rendering of docs"

* Remove docs hack

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-02-08 11:25:32 -05:00
Nitwel
42cdf010de Fix problems with manual sort (#17446) 2023-02-08 17:04:05 +01:00
Nitwel
7dd5c07ee5 Fix display fields on selected items (#15549)
* Fix display fields on selected items

* run linter

* run linter

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-08 15:44:42 +00:00
Nitwel
b136d7c30d Support selecting multiple files in v-upload (#17394)
* support multiple on selection in v-upload

* run linter
2023-02-08 10:27:45 -05:00
Nitwel
7f8c188b54 allow for rendering lists in template string (#17412) 2023-02-08 10:19:11 -05:00
Nitwel
b3a755ab31 Fix loading of relational fields in group (#17415)
* Fix loading of relational fields in group

* run linter
2023-02-08 10:18:30 -05:00
Nitwel
218961e88b Display proper pages for selected items (#17439) 2023-02-08 10:17:57 -05:00
ian
4d29276515 Use img tag for images on module bar (#17236)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-02-08 13:05:40 +00:00
Rijk van Zanten
2fa46e18f5 Drop inline rendering of docs (#17434) 2023-02-07 13:52:53 -05:00
Nitwel
78bda5c763 Fix span with space in it (#17432)
* Fix span with space in it

* run linter

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-02-08 01:19:33 +08:00
Addison Elliott
d31e0011b8 Fix issue with v-detail transition not working on initial collapse (#17325)
Bug only occurred if v-detail started out expanded, which is not extremely common.

Co-authored-by: Addison Elliott <addisone@becs.com>
2023-02-07 10:09:18 -05:00
Nitwel
5157c44dd8 Fix checkbox flickering (#17411) 2023-02-06 15:08:56 -05:00
Nitwel
3600d726e0 make sort fields hidden by default (#17416) 2023-02-06 12:16:15 -05:00
Nitwel
cc7d3db099 fix applying corresponding changes (#17392) 2023-02-03 16:01:42 +01:00
rijkvanzanten
805b0a9b2a Update en-US 2023-02-01 15:09:53 -05:00
Pascal Jufer
26318dbe62 Patch Tuesday 🐸 (#17353) 2023-01-31 23:15:49 -05:00
Azri Kahar
89fcb19a16 Expose schema endpoints (#14713)
* Expose schema endpoints

* respond with 204

* fix payload for export flag

* allow export as YAML

* use SchemaService

* move getStringFromStream to utils

* clearer exceptions with logs

* check empty request body

* specs

* add bypassCache flag and remove flushCaches calls

* Identify integer typed fields in Oracle

* Fix uuid foreign keys type for Oracle

* Detect autoincrement for CockroachDB

* Bypass cache for fields and relations services

* Add same DB tests

* Test if working for all vendors

* Add schema snapshot testing into sequential flow

* Fix schema re-apply attempts when it's a different database vendor (#14816)

* prevent diffing on certain properties

* fix apply-snapshot test

* prevent updates to autoincrement fields' schema

* sanitize relations

* remove `colleciton.schema.sql` parsing in test

It is now being sanitized by `sanitizeCollection()` function in get-snapshot-diff.ts

* Change concurrency group to not cancel test running on main

* remove multipart for apply & add hash checking

* check incoming version & add force query param

* refine error message & stub for nested hash

* add `vendor` top-level property

as an additional safety net for cross db vendor applies

* sanitize generated schema snapshots

* snapshot joi validation

* diff joi validation

* minor cleanup

* extract applyDiff & use deep-diff applyChange

* use applyDiff in schema service

* Mark vendor as optional

* Update tests to apply diffs

* move force flag check into service

* Patch mssql vendor typo

* Set relation no action in cyclic relations

* Update mysql timestamp default value

* Oracle cannot define no action

* Update oracle timestamp type default values

* add hash checking for outdated diffs

* fix diff service & endpoint

* Add hashes when returning after

* Fix self referencing relations for Oracle

* Add temp fix for CURRENT_TIMESTAMP defaults in Oracle

* clean up driver and database client types

* only require diff hash if not kind N

* update hash comparison logic for create/delete

* Set no action constraint for self referencing M2M in MSSQL

* Add basic hash check tests

* omit default value when hashing auto increments

Specifically for CockroachDB with differing sequences

* add vendor check

* update specs

* Validate vendors with type definition

* Spread the vendors input array

* re-add Export component

* re-add js-yaml to root

* Propagate mutation options for schema apply

* Verify that snapshots differ and clear cache before hash tests

* Fix unit test

* Revert temp fix for CURRENT_TIMESTAMP defaults in Oracle

* Define and reuse type for export format

* Define and reuse list of database clients

* change `were` to `was`

* change `where` to `were`

* add some empty lines for readability

* tweak exception message

* fix test

* use object-hash

* use boolean to check whether file is included

* simplify request content type check

* throw error when multiple files were uploaded

* use nullish coalesce instead of short circuit

* Update api/src/services/schema.ts

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

* Remove unnecessary `Omit` on `SnapshotWithHash` type

* Revert "Remove unnecessary `Omit` on `SnapshotWithHash` type"

This reverts commit d22ac771ec.

* check empty snapshot earlier

* use allow-list logic via pick instead of omit

* Update api/src/services/schema.ts

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

* Move to own /schema endpoint controller

* Fix refs to schema endpoint

* move streamToString to utils package

* move get-versioned-hash and add test

* extract kind into an enum

* Fix mysql5 timestamp value

* Fix test collection existing on rerun

* resolve TODO comment in blackbox test

* Drop deep level hashes in diff

These hashes are used only for more accurate error reporting
but are otherwise superfluous, since changes are already
detected by the top level hash.
Therefore we remove them in favor of a simpler diff format and
implementation.

* Revert schema "fix" for createItem, add comment

* Strict diff schema validation

* Revert CrDB auto-increment detection patch in 816c998

* Clear systemCache to expose newly added fields

* Use DiffKind constants

* Extract diff & snapshot validation into own tested utils

* Apply suggestions from @azrikahar

* Update knex-schema-inspector to 3.0.1

Includes the fix for CrDB auto-increment detection (knex/knex-schema-inspector#135)

* Update knex-schema-inspector in packages

* Update lock file

* add test for schema service

* add test for export service

* add relevant tests to modified util functions

* fix csv test to account for os end of line

* fix files controller test

* dedupe test data for schema service

* Align schema specs with docs

* Update api/src/controllers/schema.ts

* Revert testing for all vendors

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-01-31 17:36:49 +00:00
Addison Elliott
39a812b4f3 Fix bug with v-checkbox-tree where leaf nodes are treated like branch (#17323)
nodes with no children

Bug introduced here in #15094

Co-authored-by: Addison Elliott <addisone@becs.com>
2023-01-27 15:53:17 -05:00
Andrii Trubai
ef12487f7f Fix an incorrect rendering of m2a items templates (#16478)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-01-24 12:20:00 +01:00
Jay Bharadia
b13efb61ef Fix field configuration view not updating when navigating between different fields in New Field drawer (#17254)
* Fix field configuration view not updating when navigating between different fields in New Field drawer

* Used Vue toRef instead of computed as per the feedback

* Make type reactive too

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-23 13:05:25 -05:00
Jay Bharadia
bb176c44fb Fix/issue 16692 and issue 16437 (#17186)
* Issue 16437 solved

* Cleanup optional check

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-19 11:34:27 -05:00
Nitwel
276cc479ce Revert "Disable field selection for alias fields in the system-filter component when functions are used (#14314)" (#17182) 2023-01-19 08:18:35 -05:00
Nitwel
f36ebb1a0b Flows improvements (#16773) 2023-01-19 08:15:12 -05:00
ian
025bb7c053 Fix insights filtering (#16139)
* Parse string filter as JSON

* Parse content as JSON when toggling raw editor

* Refactor missing Dashboard type

* Convert filter to gql format

* Disable alias field filter selection in insights

* Use parseJSON util

* Refactor to allow selectivity of relational field for GraphQL filters

* Emit variables

* Skip emitting invalid JSON

* Add unit tests
2023-01-18 14:31:59 -05:00
Jay Bharadia
d42de82bcd Fixes Issue #17072 Image is displayed to small in the Editing Image panel #17072 (#17216) 2023-01-18 14:16:40 +00:00
ian
af2afd0d4e Fix fetching from related collection in drawer item (#17210) 2023-01-18 15:21:41 +08:00
Brainslug
66f4e89978 added frontend sorting for flows (#17202) 2023-01-17 11:07:38 +01:00
Azri Kahar
07269b9b86 update locale name for zh-TW (#17199) 2023-01-17 16:25:37 +08:00
ian
25e3c16b3f Use countDistinct for item and total counts (#17184)
* Use countDistinct for item and total counts

* Propagate changes to export sidebar detail

* Try to trigger GH actions

* fix use-collection mock

* cover countDistinct in use-items test

* simplify primaryKeyField usage

* Revert typing

* Update mock values for differentiation

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-01-17 16:18:34 +08:00