Commit Graph

636 Commits

Author SHA1 Message Date
Rijk van Zanten
4248b187bb Implement unique constraint support (#4467)
* Allow creating unique fields

* Allow removing unique constriant

* Show unique constraint error as validation error in app
2021-03-10 17:35:21 -05:00
rijkvanzanten
964c94e81f Show validation errors in users/files in app 2021-03-05 18:39:34 -05:00
Nitwel
f2f6de949c Adding and removing collections from m2a (#4271)
* add adding and removing collections from m2a

* warn when the collection has been deleted

* simplify nonExistent items check

* Cleanup

* Remove unnecessary continue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-04 19:02:32 -05:00
Ben Haynes
7599e0a7aa primary color and various design updates 2021-03-04 18:50:47 -05:00
rijkvanzanten
1e89c25872 Remove "locked" field from directus_fields
Closes #3925
2021-03-04 18:41:59 -05:00
rijkvanzanten
d8985bb823 Fix type issue 2021-03-04 11:10:47 -05:00
rijkvanzanten
9dfcc7c6fb Don't append index on first collection 2021-03-04 10:57:33 -05:00
rijkvanzanten
a079184a56 Fix JS error on user delete
Fixes #4379
2021-03-04 10:36:24 -05:00
rijkvanzanten
f63edc266d Fix dnd in safari
Fixes #4345
2021-03-04 10:32:41 -05:00
rijkvanzanten
eb4deaa955 Default field sort order to database ordinal sort
And use alphabetical where appropriate

Fixes #4341
2021-03-03 18:36:21 -05:00
Rijk van Zanten
db30acbb8a Move sortField to relationship setup (#4304)
* Add migration

* Add sort field to relation types

* Remove sortfield options in favor of relationship

* Add sort field configuration to relational setup

* Save m2a sortfield on the correct row

* Add default sort field to system data
2021-02-25 19:13:36 -05:00
Nitwel
496768af2f hide overflow and location when on mobile (#4286) 2021-02-25 09:59:24 -05:00
Nitwel
0db81f13ff fix new collection fields position (#4285) 2021-02-25 09:58:10 -05:00
rijkvanzanten
3d33b9db55 Allow and ignore null schema in field update
Fixes #4254
2021-02-23 17:06:35 -05:00
rijkvanzanten
474d68499b Fix wrong type in corresponding m2m field
Fixes #4243
2021-02-23 14:45:54 -05:00
rijkvanzanten
689ccffa2d Add roles to recommended app default permissions
Fixes #4212
2021-02-23 12:02:00 -05:00
rijkvanzanten
301d5a3337 Add "show hidden collections" context menu
Closes #3310
2021-02-22 19:49:53 -05:00
Nitwel
ef33d2edfe Add search field in settings > presets (#4176)
* add search field in settings > presets

* move search field to the sidebar
2021-02-22 12:43:31 -05:00
Nitwel
79eff4d5b2 Add notification when new field will be generated (#4148)
* add notification when new field will be generated

* add detailed info on which data will be generated

* update style of notification

* update paddings
2021-02-19 15:07:04 -05:00
Nitwel
2ee639964c Show prompt when having unsaved changes (#4174)
* show prompt when having unsaved changes

* alert also for users and files
2021-02-19 14:51:53 -05:00
Ben Haynes
d1fb64223d in-app docs styling updates 2021-02-18 14:25:32 -05:00
rijkvanzanten
7f652ced4f Fix loading indicator state of v-table
Fixes #4157
2021-02-18 13:42:22 -05:00
Nitwel
52922866ef sort fields when getting them from the store (#4154) 2021-02-18 12:54:49 -05:00
Nitwel
f3807a57c0 Live preview title when creating new field (#4129)
* Live preview title when creating new field

* rename translation name
2021-02-17 12:10:04 -05:00
rijkvanzanten
3615612da0 Apply search to filter_count
Fixes #4121
2021-02-17 10:47:57 -05:00
rijkvanzanten
07ea3870ba Fix revisions permissions check for admin users
Fixes #4114
2021-02-17 10:32:49 -05:00
rijkvanzanten
5aad79dc5a Navigate away from bookmark on bookmark delete
Fixes #3766
2021-02-16 16:58:41 -05:00
YannickMol
927042189c Remove dots when disabled (#4075)
* Remove dots when disabled

Fixes #4038

* Revert "Remove dots when disabled"

This reverts commit 2276023471.

* Update save-options

Fixes #4038

* Remove dots in files and users routes

* Remove :disabled tags
2021-02-16 14:07:09 -05:00
WoLfulus
813c731d27 Add config override support to env module (#4029)
* add override support for env module

* Override instead of merge w/ config file

* Default to reading .env instead of process.env

* Make env available in process.env

* Add docs for config-files

* Extend note

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-16 11:38:07 -05:00
rijkvanzanten
4ec0c1fa5f Default default default value placeholder to "NULL" 2021-02-15 14:05:38 -05:00
Nitwel
e1b353b38b fix translation of module names (#4057) 2021-02-15 11:32:36 -05:00
Nitwel
6d468fb2bf m2o fix corresponding type not set (#4052)
* m2o fix corresponding type not set

* Update app/src/modules/settings/routes/data-model/field-detail/components/relationship-m2o.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-15 10:08:32 -05:00
YannickMol
902b760676 Autofocus on name when duplicating field (#4039)
Fixed #3392
2021-02-12 17:55:57 -05:00
Rijk van Zanten
81fc8443df Don't wrap text in nav (#4035)
* Move v-list-item-text to v-text-overflow, use in tables

* Fix type issue
2021-02-12 16:39:17 -05:00
rijkvanzanten
533b235920 Prevent cyclical dependency between app/api 2021-02-11 13:17:06 -05:00
Rijk van Zanten
1064d10296 Fix file imports now that vetur supports monorepos (#4016) 2021-02-11 13:08:59 -05:00
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
Rijk van Zanten
df22a58c6a Update in-app docs (#3989)
* Fix root redirect

* Fix html in headings

* Add graphql syntax mode

* Install markdown-it + plugins

* Fix file copying on mac

* Replace md rendering engine

* Fix wrong links in guides

* Scroll to top on every route change

* Update in-app links

* Fix home redirect

* Fix deep-linking paths

* Add to reference

* Fix nested group scoping

* Fix open path reference
2021-02-09 18:31:25 -05:00
Rijk van Zanten
d9717c1df7 Navigate back to parent folder on file save/delete-and quit (#3976)
Fixes #3909
2021-02-08 16:57:38 -05:00
Rijk van Zanten
bf2d99a534 Fix infinite loop in recent files filter (#3975)
Fixes #3942
2021-02-08 16:36:09 -05:00
Rijk van Zanten
5450de0351 Update Docs (#3905)
* Allow formatted value display for numbers

* Move the docs website into monorepo

* Fix build

* Tweak docs build setup

* Fix tips, pull in images

* Add syntax highlighting to docs

* Restructure nav, add divider

* Fix tips formatting

* Add prettier config

* Add editorconfig
2021-02-02 11:55:04 -05:00
Philleep Florence
c934dd17a6 1129.01 - Resolve links and images within the Docs Module. (#3760)
* 1129.01 - Resolve links and images within the Docs Module. Validate hint container blocks.

* Remove copy-to-app

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-01 17:15:58 -05:00
rijkvanzanten
3103d9d7ea Fix archive button on collection module collection overview
Fixes #3826
2021-01-29 18:39:01 -05:00
Rijk van Zanten
5d96529341 Don't navigate on save as copy on validation error (#3854)
Fixes #3430
2021-01-29 18:04:22 -05:00
rijkvanzanten
6d00de6b67 Merge branch 'main' of github.com:directus/directus into main 2021-01-28 17:40:03 -05:00
rijkvanzanten
dbfc594857 Fix activity sidebar filters
Fixes #3768
2021-01-28 17:39:28 -05:00
Peter Stuifzand
734f39e155 Fix typo for batchEditAllowed -> batchArchiveAllowed 2021-01-28 22:57:12 +01:00
rijkvanzanten
e547a72693 Use correct permissions in drawer-item
Fixes #3811
2021-01-28 16:48:51 -05:00
rijkvanzanten
56034fffc6 Fix language change on save
Fixes #3714
2021-01-27 13:40:08 -05:00
Nicola Krumschmidt
4bfbc2ba9f Prevent add/edit dialogs from saving if value is null 2021-01-26 13:14:32 +01:00