Commit Graph

722 Commits

Author SHA1 Message Date
rijkvanzanten
a3fda702eb Start on metric panel 2021-05-26 16:09:23 -04:00
rijkvanzanten
4d6d653d39 Finish resizing 2021-05-26 15:21:49 -04:00
rijkvanzanten
3b18102c9e Add positioning 2021-05-26 14:29:23 -04:00
rijkvanzanten
1c786b5ec6 Add saving changes 2021-05-26 12:08:04 -04:00
rijkvanzanten
70b4540dd1 Add edit existing 2021-05-26 11:53:09 -04:00
rijkvanzanten
28e857bde4 Render panel selection 2021-05-25 20:36:53 -04:00
rijkvanzanten
215ccbf64c Add panels as extension type 2021-05-25 20:24:10 -04:00
rijkvanzanten
1bc6826e1c Show editing grid 2021-05-25 19:07:17 -04:00
rijkvanzanten
a64af87bd4 Add not found route 2021-05-25 18:29:33 -04:00
rijkvanzanten
c79b48e08f Add dashboard creation flow 2021-05-25 18:18:17 -04:00
rijkvanzanten
56841ca66b Render insights overview page 2021-05-25 17:12:37 -04:00
rijkvanzanten
2660c39954 Fix reactivity on m2m relation setup
Fixes #5839
2021-05-24 14:17:23 -04:00
rijkvanzanten
3d3a508880 Expose on create / on update for m2o fields to users/roles 2021-05-24 13:49:10 -04:00
rijkvanzanten
bd6cab8989 Prevent duplicate field name on recursive m2m 2021-05-24 13:20:56 -04:00
Oreille
8590eec662 Fix navigation search (#5834)
* Fix navigation search

* Update use-navigation.ts

* Add changeset

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-24 12:24:14 -04:00
rijkvanzanten
550621479e Fix boolean field default interface name
Fixes #5643
2021-05-21 21:35:21 -04:00
rijkvanzanten
a5cba0dc7e Prevent unusable collections from being selected
Closes #5748
2021-05-21 19:26:52 -04:00
rijkvanzanten
da7b539adb Fix new-collection relational field creation 2021-05-21 12:49:05 -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
rijkvanzanten
92f0abfbfc Start on email templates docs
Closes #5736
2021-05-17 18:15:42 -04:00
rijkvanzanten
a0512f8b5e Sanitize all user inputted md 2021-05-14 16:04:36 -04:00
ernst86913
c4fc0ea92b Move export to layouts (#5557)
* Export Fix

* Remove unused fields

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 16:02:05 +00:00
José Varela
9ecbeee488 app: fix export with filters (#5653)
When filters are applied and flag is checked,
should export taking into account the active filters
2021-05-13 16:10:53 -04:00
dependabot[bot]
bc30ee2bde Bump prettier from 2.2.1 to 2.3.0 (#5593)
* Bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix lint issues for updated prettier

* Lets remove dev: true again so we can auto-add it later why don't we

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-11 10:38:42 -04:00
rijkvanzanten
2ff66cfecd Make sure active collection is in overflow view of the menu 2021-05-07 14:18:50 -04:00
Rijk van Zanten
c4ae4b66cc Finalize interface names (#5521)
* Rename button-links->presentation-links

* Rename checkboxes->select-multiple-checkbox

* Rename code->input-code

* Rename checkboxes files

* Rename color->select-color

* Rename divider->presentation-divider

* Rename dropdown-multiselect->select-multiple-dropdown

* Rename hash->input-hash

* Rename icon->select-icon

* Rename image->file-image

* Rename m2a-builder->list-m2a

* Rename many-to-many->list-m2m

* Rename many-to-one->select-dropdown-m2o

* Rename markdown->input-rich-text-md

* Rename notice->presentation-notice

* Rename one-to-many->list-o2m

* Rename radio-buttons->select-radio

* Rename repeater->list

* Rename text-input->input

* Rename textarea->input-multiline

* Rename toggle->boolean

* Rename tree-view->list-o2m-tree-view

* Rename wysiwyg->input-rich-text-html

* Use correct interfaces in system defaults

* Rename collection->system-collection

* Rename collections->system-collections

* Rename display-template->system-display-template

* Rename field->system-field

* Rename interface->system-interface

* Rename interface-options->system-interface-options

* Rename scope->interface-scope

* Rename tfa-setup->system-mfa-setup

* Fix oversights

* Remove old todo

* Some more tweaks

* Add migration, fix dropdown name in system use

* Merge numeric + input

* Replace dropdown->select-dropdown in app use

* Merge slug->input, user->select-dropdown-m2o

* Fix type issue

* Fix seeder field name
2021-05-06 16:49:32 -04:00
rijkvanzanten
23f647ce22 Prevent saving permissions during save
Fixes #5454
2021-05-04 19:14:34 -04:00
Rijk van Zanten
eda19a8eb2 Fix users not adhering to field permissions (#5467)
* Update package once again

* Format remaining md files

* Fix permissions not disabling fields on users

Fixes #5411
2021-05-04 18:56:41 -04:00
Rijk van Zanten
0df96b3d8a Refresh permissions more eagerly in settings (#5404)
* Update package-lock (again?)

* Reload permissions close too

Fixes #5307
2021-04-30 18:56:21 -04:00
Rijk van Zanten
f3574deae0 Ask for value when changing nullable to not-nullable (#5400)
* Add ContainsNullValues exception abstraction

* Add dialog for null values when disabling non-null

Fixes #2934

* Add translation for CONTAINS_NULL_VALUE error

* Make dialog title translated
2021-04-30 15:27:18 -04:00
rijkvanzanten
fb31653ade Fix remaining stylelint problems 2021-04-29 16:08:14 -04:00
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
Pascal Jufer
acd41eb0be Syntax fixes (#5367)
* Declare return types on functions

And a very few other type related minor fixes

* Minor syntax fixes

* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
2021-04-29 12:11:43 -04:00
rijkvanzanten
81f488fc8e Rename required->allow null 2021-04-27 17:22:22 -04:00
rijkvanzanten
292dcedb14 Fix close button on public role permissions detail
Fixes #5298
2021-04-27 16:38:17 -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
rijkvanzanten
7a13c603a0 Fix batch deleting presets
Fixes #5234
2021-04-26 11:49:56 -04:00
José Varela
6a28847e9a app: go back instead of push new route (#5168)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-23 15:15:48 +00:00
rijkvanzanten
aa808313ad Add elipsis/tooltips for existing relationships 2021-04-22 17:31:37 -04:00
rijkvanzanten
7a2210d3af Remove auto-fill for existing relationship configuration 2021-04-22 17:18:04 -04:00
Nitwel
7d64c8ab47 Relational consistency (#4093)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-21 23:31:12 +00:00
Ben Haynes
a4b4f79a16 Fix create translations alignment 2021-04-20 19:18:40 -04:00
rijkvanzanten
7fa4997f73 Fix onCreate onUpdate options for datetime fields
Fixes #5116
2021-04-20 17:48:07 -04:00
José Varela
acc145006c App: encode primary key (#5143)
* app: encode primary key
Since primary keys could be manually entered strings,
we should encode those in order to prevent accessing
inexistent routes.
E.g.
Document with primary key: 'clients/John Doe'

* fixup! app: encode primary key Since primary keys could be manually entered strings, we should encode those in order to prevent accessing inexistent routes. E.g. Document with primary key: 'clients/John Doe'

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 11:35:01 -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
rijkvanzanten
d43c88095e Don't allow singletons to be selected in m2a context
Closes #4406
2021-04-15 12:04:02 -04:00
Rijk van Zanten
8af2cbadfa Translate collections/fields live (#5081)
Fixes #5078
2021-04-15 11:27:52 -04:00
Nitwel
c2bc3ea330 Add custom interface for presets (#4870)
* add custom interface for presets

* add defaults and change naming

* Fix type issue, put current selection on top

* Fetch email as name fallback

* Opinionated code changes

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-13 18:33:36 -04:00
Rijk van Zanten
bcac4b80c2 Fix perf regression in translations (#5041)
* Only translate extensions on language load

* Make table-row functional
2021-04-13 17:00:22 -04:00
MiniDigger | Martin
cf603c6ef5 Additional improvements to extension loading (properly closes #4733) (#5015)
* Fix extension endpoints being queries without a trailing slash

* Don't swallow exceptions when loading an extension
2021-04-13 09:57:29 -04:00