Commit Graph

858 Commits

Author SHA1 Message Date
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
68cba874f6 fixes: #9568 (#9612) 2021-11-08 15:45:28 +00:00
Ben Haynes
c553eb417c fix in-app docs homepage (#9611) 2021-11-08 15:44:41 +00: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
Rijk van Zanten
428e5d4ea9 Rename activity->notifications module (#9446) 2021-11-03 19:09:26 -04:00
Rijk van Zanten
caa053a467 Rename Collections Modules to Content Module (#9441)
* Rename collections->content module

* Replace collection name

* Replace some loose ends
2021-11-03 18:34:55 -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
Azri Kahar
1b2ccdc1e9 Context menu improvements (#9271)
* add focusout to close context menus

* add "Edit collection" to collections context menu

* disable context menu when nothing to show

* remove obsolete code

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 18:50:48 -04: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
renovate[bot]
54ba54d3d6 Update dependency stylelint to v14 (#9016)
* Update dependency stylelint to v14

* Update dependency stylelint-scss to v4

* Update dependency stylelint-order to v5

* Undo command change

* Update stylelint command

* Use modern color syntax

Who knew this was already supported everywhere? Awesome!!

* Update stylelint-config-standard

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-25 22:26:57 -04:00
Ben Haynes
1b87e4555f Docs structure (#9071)
* WIP

* updates

* docs updates

* structure

* big structure update

* docs module icon change

* in-app docs nav

* more content and structure changes

* Remove redundant

* Fix docs build in app

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-25 21:19:23 -04: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
Oreille
7eb2cb1137 Fix filter added twice and remove unnecessary _and node. (#9116) 2021-10-25 11:37:47 -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
Aiden Foxx
fa3b1171e8 New OpenID and OAuth2 drivers (#8660)
* Moved over oauth impl to new interface

* Fixed most build issues and started addind schema to auth drivers

* Finished up OAuth2 and OpenID drivers

* Removed unused migration and utils

* Fixed minor todos

* Removed old oauth flow

* Changed oauth flow to re-use refresh token

* Added new oauth frontend

* Added font awesome social icons

* Updated authentication documentation

* Update api/src/auth/drivers/oauth2.ts

* Tested implementation and fixed incorrect validation

* Updated docs

* Improved OAuth error handling and re-enabled creating users with provider/identifier

* Removed Session config from docs

* Update app/src/components/v-icon/v-icon.vue

* Removed oauth need to define default roleID

* Added FormatTitle to SSO links

* Prevent local auth without password

* Store OAuth access token in session data

* Update docs/guides/api-config.md

* Fixed copy and removed fontawesome-vue dependency

* More docs fixes

* Crucialy importend type fiks

* Update package-lock

* Remove is-email-allowed check

In favor of more advanced version based on filtering coming later

* Fix JSON type casting

* Delete unused util

* Update type signature to include name

* Add warning when code isn't found in oauth url

and remove obsolete imports

* Auto-continue on successful SSO login

* Tweak type signature

* More type casting shenanigans

* Please the TS gods

* Check for missing token before crashing

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-21 17:45:01 -04:00
Oreille
bb0f4b1628 Sort child collections in navigation (#9002)
Fix #8983
2021-10-21 12:51:28 -04:00
Azri Kahar
c81300f786 improve folder picker selection highlight (#8954) 2021-10-20 09:51:28 -04:00
Pascal Jufer
5a53d7007e Fix warnings from ESLint (#8969) 2021-10-20 09:23:42 -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
Azri Kahar
c88db66282 Fix "Show Hidden Collection" context menu in collections navigation (#8889)
* fix collection navigation for context menu hitbox

* fix "show hidden collections" in collection nav

* Fix overflow issues in large collection sets

Nothing a bit of flex-tape can't fix

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-18 16:14:24 +00: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
rijkvanzanten
21f4d3cdef Fix scope in docs nav 2021-10-15 19:41:35 -04: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
ian
4fe114dc46 Clear user's selection upon navigation (#8472)
* Clear user's selection upon navigation

* Clear selection upon route navigation
2021-10-15 13:46:18 -04:00
Azri Kahar
27fb7bda1e Show deletion error in File Library view (#8825)
* show deletion error & close previous dialog

* close previous deletion dialog when error show up
2021-10-15 11:26:41 -04: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
Azri Kahar
544727cf2a Format filesize for display & file info sidebar (#8786)
* format filesize for display & file info sidebar

* Use power of 10

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-10-14 14:37:01 +00:00
Azri Kahar
1cbe6c0ac9 fix column resizing for collections overview (#8782) 2021-10-14 11:50:28 +08:00
Azri Kahar
e56ccb991a add key to v-form in collections (#8781) 2021-10-14 09:55:03 +08:00
Nicola Krumschmidt
2908063d86 Transpile docs to vue components at build time (#8743) 2021-10-12 14:22:14 -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