Commit Graph

49 Commits

Author SHA1 Message Date
rijkvanzanten
8c8232ce25 Add insights store 2021-05-25 16:30:39 -04:00
Rijk van Zanten
9335372400 Foreign Key Constraints (#5615)
* Bump knex-schema-inspector

* Fix cli role name attr

* Update relation type

* Restructure relations

* Restructure relations table

* Update api type for relation record

* Fetch relations in new structure

* Update schema-inspector

* Use new relations schema structure in api

* Update relations GETters

* Add default value to one deselect

* Add create relationship on existing field

* Add updating existing relationship

* Add delete relations

* Add relations query resolver

* Add graphql mutations for relations

* Fix reading from wrong name

* Fix wrong method name

* No idea why this flip flops every install

* Update relation type

* Accept null in use-collection composable

* Use new relations structure in translations

* Use new relations structure in new-collection

* Start updating field detail store

* Renames for new relations structure

* Silently ignore passed collection/field in relation update

* Fix setting pk field in m2o relational setup

* Small tweaks in o2m setup

* Fix m2m setup

* Tweak m2o setup

* Fix m2a setup

* Allow null for related collection (m2a)

* Fix languages code name

* Fix migration default value

* Fix relational cleanup in collections/fields

* Fix transaction problem in field delete

* Fix inserting relational o2m items

* Don't execute updateByQuery on empty item set

Fixes #5710, fixes #5070

* Show referential action input on m2o

* Finish language for m2o

* Show triggers config on o2m

* Delete items on one_deselect_item delete

* Fix naming, show relational trigger config on m2m

* Tweak language, add setup to m2a

* Fix linter warnings

* Add trigger setup for translations

* fix Edit non-schema relationship issue

* Sync existing on_delete triggers in o2m setup

* Add migration to setup foreign key constraints

* Update illegal FK values before setting constraint

* Fix MySQL unsigned vs not-unsigned in FK creation

* Use pretty names for labels in relational triggers

* Prefix auto-junction when system table

Fixes #5493

* Add system foreign key triggers

Fixes #5749

* Update docs
2021-05-19 12:29:16 -04:00
Rijk van Zanten
d1de1f0d58 Add calendar layout (#2893)
* Setup layout boilerplate

* Install calendar

* Render events based on date filter

* Style calendar toolbar

* Add layout options

* Start adding timeGrid, add todo list

* Persist viewInfo to preset

* Add dnd

* Fix linter warnings
2021-05-04 16:51:35 -04:00
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
Rijk van Zanten
84f4a1da01 Add singular/plural collection name translations (#5302)
* Add singular/plural options to collection translations

* Use singular/plural item names in related values

* Use singular / plural names on item detail

* Use singular/plural for drawer item

* Fix translation
2021-04-27 16:22:52 -04:00
Rijk van Zanten
40b9fb0fe6 Allow disabling activity/revisions (#5112)
* Add accountability column

* Add field info for accountability

* Add accountability to collection type

* Fetch accountability info from collection meta

* Add field name translation for accountability field

* Hide revisions drawer detail if revisions aren't available

* Only save activity where accountability flag matches

* Disable revisions for directus_presets

Fixes #3767

* Tweak field option naming
2021-04-16 16:26:18 -04:00
Nitwel
44091e6f41 Add option to auto refresh collections (#4777)
* add auto refresh

* add refresh_interval to DB

* remove refresh_interval template

* set refresh interval default to null

* Fix typo in filename

* Rename sidebar-auto-refresh to refresh-sidebar-detail

* Rename import

* Add badge on active refresh, change options

* Fix refresh not working on refresh

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 17:24:40 -04:00
rijkvanzanten
1e89c25872 Remove "locked" field from directus_fields
Closes #3925
2021-03-04 18:41:59 -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
bdec23c796 Fix bookmarks not updating properly (#4134)
* first try on fixing bookmarks

* fix bookmarks and search not updating on single word

* Fix double inject on paste

Fixes #3792

* Remove unused import

* Set bookmark saved state on clear local value

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-18 11:21:49 -05:00
rijkvanzanten
05f0bc967e Turn hash into type
Fixes #3542
2021-01-12 17:08:19 -05:00
Igor Savin
7cddb458cb Run prettier across app and api 2020-12-08 02:22:00 +02:00
rijkvanzanten
a17c3ce6db Start on m2a-builder interface 2020-11-16 15:38:59 -05:00
rijkvanzanten
528112314d Remove outdated tests, fix imports 2020-11-09 12:29:01 -05:00
rijkvanzanten
44f926e911 Update/fix unexpected error dialog 2020-11-05 17:02:01 -05:00
rijkvanzanten
4130337f7a Merge branch 'main' into error-handling 2020-11-05 16:16:44 -05:00
rijkvanzanten
f1289a66dc Use csv of strings for permissions fields 2020-11-04 11:31:04 -05:00
rijkvanzanten
dca7df6fb2 Fix v-field-select dropdown
Ref #852
2020-11-03 15:16:07 -05:00
rijkvanzanten
3b97a408b4 Disable locked fields on field setup 2020-10-29 15:14:05 -04:00
Nitwel
c8653589b1 Merge branch 'main' into error-handling 2020-10-24 11:21:33 +02:00
Nitwel
72cf8af575 remove error option 2020-10-24 11:16:49 +02:00
Nicola Krumschmidt
3052b850ef Remove field.meta.required property 2020-10-22 18:52:45 +02:00
Nitwel
2dd509e48a add proper error handling 2020-10-22 17:26:37 +02:00
Nitwel
8857ac54fb improve related values display 2020-10-15 17:04:07 +02:00
maartenvn
716784a1c8 Replace 'locale' with 'language'
- Update fields translations use 'language' instead of 'locale'
- Replace all translation files from locale to language
- Update the docs with locale to language
2020-10-10 00:59:10 +02:00
maartenvn
97de8af2c8 Remove unused 'locale_options' 2020-10-10 00:43:39 +02:00
maartenvn
07c33720c8 Use 'language' instead of 'locale' in the app 2020-10-10 00:43:00 +02:00
rijkvanzanten
bf76244ba7 Various system schema name changes
Fixes #482
2020-10-02 17:43:58 -04:00
rijkvanzanten
aa014542a4 Rename roles.admin to roles.admin_access
Closes #142
2020-09-18 12:16:09 -04:00
rijkvanzanten
b8eff4c788 Use CSV for special, add on create / on update for fields 2020-09-15 17:31:37 -04:00
rijkvanzanten
9a4016ef86 Add export drawer detail, fix search 2020-09-15 15:19:05 -04:00
rijkvanzanten
14d4a480bf v9.0.0-alpha.35 2020-09-14 18:20:51 -04:00
rijkvanzanten
f63da70257 Fix module / collections list 2020-09-14 18:05:45 -04:00
rijkvanzanten
6f201e72b0 Add webhooks browse 2020-09-10 14:44:55 -04:00
rijkvanzanten
29cee06685 Show validation errors in app
Closes #206
2020-09-09 15:49:18 -04:00
rijkvanzanten
72e99084a1 Rename presets title->bookmark 2020-09-08 11:33:19 -04:00
rijkvanzanten
d0e897d735 Rename view -> layout in db 2020-09-08 11:22:18 -04:00
rijkvanzanten
15e86a4efb Update bookmark editing flow 2020-09-04 16:56:57 -04:00
rijkvanzanten
c985fbbfb8 Use regular dropdown for default status field, make form work without field meta 2020-09-02 15:50:43 -04:00
rijkvanzanten
1b71dd294e Add hide-archived default filter based on app toggle 2020-09-02 13:27:34 -04:00
rijkvanzanten
0e886f4db0 Replace soft delete with archive, add unarchive 2020-09-02 13:17:11 -04:00
rijkvanzanten
1149e58345 Add soft delete field/value button 2020-08-31 11:29:55 -04:00
rijkvanzanten
7121c42beb Add full/none permissions toggles 2020-08-27 15:03:01 -04:00
rijkvanzanten
fd4e903250 Start on permissions settings 2020-08-26 19:51:20 -04:00
rijkvanzanten
8d2f15fe3e Add sort_field to collection type 2020-08-18 17:26:16 -06:00
rijkvanzanten
81f0cc147b Fix singleton use on collections detail 2020-08-13 11:36:24 -04:00
rijkvanzanten
05dd176239 Fix typing issue + fix presets detail page 2020-08-12 18:49:04 -04:00
rijkvanzanten
3f569530de Add breadcrumb to user roles 2020-08-12 17:43:52 -04:00
rijkvanzanten
a31e8993b3 Flatten structure of stores 2020-08-11 10:44:51 -04:00