Commit Graph

529 Commits

Author SHA1 Message Date
Azri Kahar
95720bb3f7 ensure update of one_field in m2o (#9708) 2021-11-11 15:40:44 -05:00
Rijk van Zanten
23752f622a Fix relations lookup in m2m/m2a advanced edit existing (#9738)
Fixes #9715
2021-11-11 20:32:11 +00:00
Azri Kahar
6f3eb8e41d Add field type to field select tooltip (#9706) 2021-11-11 15:25:54 -05:00
José Varela
f0e9e4a60a relationships: make sort field null if empty (#9735) 2021-11-11 14:41:38 -05:00
Azri Kahar
0835c3fc22 fix presets layout query/options edits on load (#9584) 2021-11-11 14:40:50 -05:00
Adrian Dimitrov
4562602a16 Add missing translations on webhooks and settings; Fix translation key on permissions delete (#9732) 2021-11-11 14:19:35 -05:00
Azri Kahar
27631eb8e5 Apply cloneDeep to relations in FieldDetailStore (#9711) 2021-11-11 10:43:55 -05:00
ian
14a5347eca Allow for discarding of changes without leaving (#9644)
* Allow for discarding of changes without leaving

* Update to use v-if for consistency

* Fix boolean logic

* Allow disabling of options

* Remove unused disabled prop
2021-11-09 10:09:11 -05:00
Azri Kahar
8ab0656321 fix field schema unique option (#9632) 2021-11-09 20:01:39 +08:00
Ben Haynes
24df365135 Data model dense (#9558)
* remove extra popup padding

* tweak sidebar spacing

* use dense on data model collection listing
2021-11-06 16:00:11 -04:00
Oreille
5f43b20ebf Update geometric types and patch new field flow. (#9397)
* Update geometric types and patch new field flow.

* Add migration

* Fixed migrations

* Also fixed migrations

* Update migration ID

* Cleanup type selector a bit

* Add missing fallback interface/display for new types

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-04 21:47:54 -04:00
Rijk van Zanten
16e28c16f0 Fix m2a relations on editing field (#9484)
Fixes #9463
2021-11-04 18:17:09 +00:00
Pascal Jufer
942d7d39fe Fixing some type errors in app (#9466)
* Fixing some type errors in app

* Remove unused import

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-04 13:32:47 -04:00
José Varela
f94740e8ec fix corresponding field name (#9393) 2021-11-03 11:27:55 -04:00
Azri Kahar
60192e35e3 fix m2a not savable (#9349) 2021-11-02 13:18:35 +00:00
Oreille
84275b1642 Fixed nullable and unique disabled check (#9269) 2021-11-01 18:17:05 -04:00
José Varela
867a419dbc Fix: disable sort field for singleton collections (#9270)
* disable sort for singleton collections

* fix modify sort then activate singleton
2021-11-01 18:15:20 -04:00
Azri Kahar
5fc7e0ea0e improve disabled interface selector style (#9281) 2021-11-01 18:14:08 -04:00
Azri Kahar
fcd3b1e345 fix lint warnings (#9287)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 17:34:20 -04:00
Nitwel
894b4975f2 Fix issues with fields config (#9324)
* Fix issues with fields config

* Fix /fields endpoint return type for alias fields

* Fix display selection in relational interfaces
2021-11-01 20:55:45 +00:00
Jay Cammarano
ad959e4472 Add SET NULL to directus_files.uploaded_by constraint (#9305)
* add set null to directus_files constraint

* SET NULL on created_by and modified_by

* "user_created" and "user_updated" => SET NULL

* SET NULL on collections optional system fields

* fixed dropColumn()

* Add line breaks, cause little OCD

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 14:58:52 -04:00
Theraloss
430bd03b9d fix new field group selection (#9301) 2021-11-01 10:20:39 -04:00
Oreille
8df071a3a2 Fix generated columns being required. (#9200)
* Fix generated columns being required. Also prevent schema changes on generated columns.

* Fix type errors

* Disable `unique` and `nullable` instead of not showing them.

* Fix other type error

* Nullable check small refactor

* Fixed MSSQL query

* Fixed oracle query
2021-10-29 12:24:21 -04:00
Ben Haynes
8587e2f8ff update field flow styling 2021-10-29 10:16:40 -04:00
Azri Kahar
bab15d5258 tweak fallback interface selectors (#9234) 2021-10-29 10:08:25 -04:00
Oreille
2709e3ca6b Always show folder icon for alias tables (folders) (#9187)
* Always show folder icon for alias tables (folders)

* Update app/src/modules/settings/routes/data-model/collections/components/collection-item.vue

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

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
2021-10-27 18:40:37 +00:00
Rijk van Zanten
2720e0c18e Add new field flow (#9109)
* Add new grouping setup to interfaces

* [WIP] Start on new field flow

* Add preview svgs

* Update preview svg

* Add basic saving mechanism. Start on magic

* Add interface options to simple inputs

* Fix missing t

* Fix custom options not rendering

* Fix interface options overrides

* Sync m2o name key

* Setup m2o related collection input

* Add collections generation

* Add circular prevention & type syncing

* Small fixes in m2o context generation

* Move o2m options to fn structure

* Conclude o2m (i think)

* Start on toggle to advanced

* Style advanced toggle button

* Add localType File support, start documenting

* Add presentation/group localtypes

* Use function style interface options in m2m

* Don't require collection prop in field template component

* Implement most of m2m magic

* Restructure store updater

* Finish useFieldDetailStore restructure

* Only register root index in module folders

* Do the thing

* Finish m2m magic, tweak fallback styles

* Fix o2m display template setup

* Remove options comp for translations interface

* Show languages collection picker in translations

* Finish translations alterations

* Add magic for files type

* Officially wave goodbye to the old store setup

It served it's purpose, but what a nightmare to maintain. Welcome to the new version

* Update schema tab

* Add field pane

* Finish interface section

* Add display section

* Add conditions

* Update tabs to use localType from store

* Start on relationship tab

* Update m2m relational setup

* Start on m2o

* Finish m2o setup

* Finish o2m setup

* Add m2a magic

* Various tweaks

* Add m2a setup

* Add save button to advanced flow

* Load existing values on start

* Add upsert to stores, allow updating existing items

* Please the linter gods

* Remove seemingly redundant interface option

@Oreilles Seeing the geometry type is already configured in the schema configuration, this particular option on the interface feels redundant (?)

* Remove unnecessary option component overrides

* Track relationships in required fields for save state

* Fix relations previews on editing existing fields

* Use standard vs advanced for input options

* Remove note from simple field setup

* Add divider to field config

* Use background subdued

* Default required to false

* Add required icons to key/relationship

* Tweak colors

* Fix infinite loop in group creation

* Make setup responsive

* Allow switching interface at will

* Add m2a related collections picker

* Fix relations persisting on field deletion

* Add "Create in Advanced" shortcut

Just for you @joselcvarela

* Fix PK field staging on collection create

* Revert "Remove seemingly redundant interface option"

This reverts commit e5e09a051e.

* Fix map interface options
2021-10-25 20:29:04 -04:00
José Varela
a7c16ca975 Feat: allow ctrl click to open new tab on tabular (#9115)
* feat: allow ctrl click to open new tab on tabular

* support metaKey + click
2021-10-25 11:22:48 -04:00
Azri Kahar
24c017184d show System Collections in empty Data Model page (#8936) 2021-10-19 11:30:43 -04:00
Azri Kahar
1ebd95519f hide folder-collections in permissions settings (#8939) 2021-10-19 11:20:04 -04:00
José Varela
331afb1b03 add schema to m2m and m2a (#8881)
since the API now expects a schema on body, we need to pass it in order to create respective tables
2021-10-18 12:42:51 -04:00
Rijk van Zanten
acb3c3cb4b Issue/8858 (#8864)
* Fix collections endpoint not filtering EXCLUDE env

Fixes #8858

* Tweak spacing for db-only section

* Make solution less error prone
2021-10-16 21:46:41 +00:00
Nitwel
3afb13bcfd Fix translations display shown in m2m (#8844)
* fix translations display shown in m2m

* Update app/src/modules/settings/routes/data-model/field-detail/store.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-10-15 22:00:42 +00:00
Rijk van Zanten
8f00e37daf Add improved collection organization setup (#8623)
* Add migrations, start on service

* Dont track TODO files

* Update collection types, add collection type

* Allow drag and drop sorting of collections

* Add tooltip

* Add grouping + collapsed state

* Fix nested closed state

* Tweak active drag styling

* Remove collapsed state

* Add folder creation/editing

* Render collections as nested tree in nav

* Fix open active state

* Add dense when collection count > 5

* Add visible toggle

* Add show-hidden toggle

* Fix css specificity

* Add support for query in v-list-group

* Add missing cascade

* Remove collapsed state

* Finish three-way toggle

* Add custom lock icon

* Fix icon size in non-dense

* Redirect to first & open tree on load

* Dont make prop required

* Fix search

* Only apply archive filter when enabled in settings

* Add archive view

* Add translations

* Hide organization fields

* Show system collections
2021-10-15 21:19:00 +00:00
Pascal Jufer
e3bfe69de3 Translation fixes (#8695)
* Implement translation for activity items

Fixes #8415

Also fixes issue with "Open item" link for system collection

* Fix 'Create New' btn translation in list interface

Fixes #8427
Default values needs to return a function to be dynamic
Same for "Empty item" translation

Also use field.name instead of field.field value for field title

* Fix translation of default values in boolean & dropdown interfaces

* Translate note field of system collections in edit mode

* Translate remaining "hard-coded" values

* Add dedicated translation for open folder

* Update app/src/interfaces/list/list.vue

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

* Use translate-object-values and check if collection starts with
'directus_'

* Use already existing translation keys for activity items

As discussed

* Translate whole data object if system collection

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-10-14 11:29:48 -04:00
Pascal Jufer
99aa1d4984 Add GitHub action workflow to automate author assignment on pull requests (#8733)
* Add GitHub action workflows to automate issue and PR management

* Remove "Add label" action and bring back label on template
2021-10-12 13:03:36 -04:00
Pascal Jufer
ca7e77e630 Adjust "Report Bug" link to the new issue template (#8711)
* Adjust "Report Bug" link to the new issue template

Unfortunately, it's not (yet?) possible to auto-fill the fields in the template
via querys...

* Adjust bug template & use corresponding params

As suggested by @azrikahar
2021-10-12 11:59:52 -04:00
renovate[bot]
9c7b6cb6fb Update dependency stylelint-config-prettier to v9 (#8703)
* Update dependency stylelint-config-prettier to v9

* Fix linter warnings

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-12 14:39:36 +00:00
Pascal Jufer
23a126b026 Fix eslint warnings and cleanup unused disable-directives (#8718)
* Fix eslint warnings

* Remove unused eslint disable-directives
2021-10-12 09:49:01 -04:00
Nicola Krumschmidt
d6e40f4873 Fix layout preview being empty when editing preview (#8654)
* Fix layout preview being empty when editing preview

Fixes #8645

* Remove collection prop from layout component

The prop is already passed through the layout state.
2021-10-08 17:07:41 +02:00
Azri Kahar
4c2de47cf3 fix validation not updated/saved (#8629) 2021-10-08 11:04:21 -04:00
Ben Haynes
1383392a2f smaller and bolder breadcrumb (#8566)
* smaller and bolder breadcrumb

* Use breadcrumb in settings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-07 18:16:10 -04:00
Rijk van Zanten
f64a5bef7e Add new advanced filters experience (#8570)
* Remove advanced filter sidebar detail

So long, and thanks for all the fish.

* Remove filter conversion logic

* Start replacing/removing old skool filters

* Add inline mode for usages in search bar

* Make filter work in header bar

* Emit empty string as null in filter

* Move shared filter types to shared

* Upgrade use-items

* Fix manual sort on tabular

* Cleanup styling in search bar usage

* Tweak styling

* Fix filtering issues

* Update cards

* Remove activeFilterCount from tabular

* Update maps to work with new filters

* Update calendar to new filter/sort structure

* Fix activity module nav/search

* Fix no-results message

* Update file library filtering

* Finalize user search

* Allow filtering in drawer-collection

* Handle cancelled responses semi-gracefully

* Add loading start state timeout

* Replace sort type in api

* Last commit before redoing a bunch

* Finish new visual style

* Remove unused rounded prop from v-menu

* Tweak sizing

* Enough size tweaking for now

* Count all filter operators instead of top

* Fix archive casting

* Fix api build

* Add merge filters util

* Split filter in user vs system

* Fix export sidebar detail

* Show field label on permissions configuration

* Add migration for filter/sort

* Use filters in insights
2021-10-07 18:06:03 -04:00
ian
bb78a49072 Fix data model edits tracking (#8567) 2021-10-05 16:07:23 +00:00
Nitwel
4fd9f4c31c Add Filter interface (#7492)
* initial tests and preparation for filter interface

* get basic structure down

* improve visuals and interaction

* stop modifying props 🙃

* update logic blocks style

* clean up filter interface

* lint css

* support m2a and simplify visited relations

* allow for recursive loading of fields

* use filter interface on conditions

* Use dynamic useFilterTree instead of old one (#7569)

* use advanced field tree on field template

* update to advanced field tree

* remove old useFieldTree

* update to new design

* add border on nested nodes

* tweak styling

* Fix linter warnings

* Fix field-setup

* clean up interface

* clean up interface

* clean up and rename files

* clean up code

* use default filter structure

* fix changing fields

* Add monospace style option to tooltips

* Various small stylistic tweaks

* Add menu placement

* Cleanup "big interface" usage

* Remove seamless

* Add dropdown on add filter

* Cleanup import/export, add v-select-placeholder-co

* Fix staging issue

* Allow overriding preview slow, fix padding

* Show field path inline

* Cleanup empty state

* Use new filter-interface in permissions setup

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-30 17:17:29 -04:00
Nicola Krumschmidt
28a2f4594b Removed unused properties from ModuleConfig (#8468) 2021-09-30 14:14:14 -04:00
Nitwel
d082836e0a Add save and delete shortcuts (#8108)
* add save and delete shortcuts

* Remove delete shortcuts

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-28 19:14:59 -04:00
ian
ff99d0aad8 Add discard confirmation prompt for project settings (#8373) 2021-09-28 18:58:16 -04:00
ian
7456de19db Remove invalid CSS from presets item view (#8388)
* Remove hinvalid CSS from presets item view

* Set warning colour as interim solution

* Fix whitespace
2021-09-28 14:39:27 -04:00
Ben Haynes
6801ccf38e Style updates (#8359)
* badge sizing

* tailored chip padding based on size

* list style update

* round language progress bar

* remove whitespace causing odd gap after field

* complress field management grid

* add yellow to color options, make warning yellow
2021-09-27 17:43:30 -04:00