Commit Graph

43 Commits

Author SHA1 Message Date
ian
b9c3e18796 Fix existing files drawer selection (#9609)
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-11 14:40:18 -05:00
José Varela
153c3d55a3 Fix missing initialItems added on M2M (#9736)
@rijkvanzanten I am merging this because it was approved on M2M and it's preventing users from selecting files.
2021-11-11 17:24:25 +00:00
Nicola Krumschmidt
ae15f39091 Clean up interface options type (#9447) 2021-11-04 18:31:31 -04:00
Rémi Alvergnat
3cd32d533b Fix invalid collection for Interface Display Template for M2M relationships (#9420)
* Fix invalid collection for Interface Display Template (#9419)

* use o2m ollection on m2m interface

* apply same fix on files

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-04 13:20:55 -04:00
Oreille
485641c7ec Add folder, template, enableCreate, enableSelect options to the files interface (#9184) 2021-10-27 20:35:11 +02: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
Nitwel
55e3b342ec Add translations display (#8264)
* add translations display

* add progress and lang preview

* format changes

* remove unused

* remove unused

* fix errors and clean up style

* make lang title bold

* Fix imports

* 🧹 Little cleanup

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-13 23:31:15 +00: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
Nitwel
cf05527f0e Add dedicated "files" interface (#8110)
* add download button for m2m

* create files interface

* Add migration to use new files interface

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-27 22:27:03 +00:00
rijkvanzanten
cb4bf88e66 Tweak relational interfaces
Squashed commit of the following:

commit ade7ce72e7dac9908504eacf420875baaae1cc47
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:16:03 2021 -0400

    Add no-items notice

commit e47dd5ac1f28300a33478a2be3c50496859b09fc
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:13:58 2021 -0400

    Remove files interface

commit 2925fb9c86719c48006f7b2619df7fd26bf7b523
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:10:44 2021 -0400

    Fix sort field in m2m

commit 009e2b1fd99f7a31f20fba04cd9980eaa3566ac8
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:06:45 2021 -0400

    Add dense at item count

commit 83b088f4da3ea4a1d7e030f34a07aa1cb2235b43
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 12:05:40 2021 -0400

    Tweak rendering of thumbnails inside relational interfaces

commit 06770a0f16e344ab62c0228b87824a6c00ad39bc
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 11:36:07 2021 -0400

    Rename $file->$thumbnail, render properly in render-template

commit 954fd725629ce055459a7925be4aaddf3fb723c2
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 11:35:53 2021 -0400

    Fix injection on v-field-select

commit 83073dea2fc26af61a5155adddd5d4e3afa5cb14
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 11:35:39 2021 -0400

    Adjust for virtual $thumbnail field on files

commit ee57b8316479204c0a5c931c86807afde55423a1
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:49:35 2021 -0400

    Don't hardcode file/user relations

commit 31ed92c5a785f20b7dc58bb62f35f6e31c95cfc6
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:49:22 2021 -0400

    Allow injecting temporary fields in field template

commit 9d98d4fe4def7bdba12d1613bd08bdb9bd9e1431
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:36:53 2021 -0400

    Render collection level template in placeholder

commit 0e0dda1e9f5a930ce3c73c2f8003d98853d58bc0
Merge: 65fa8084f 1e3b64bf9
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:35:21 2021 -0400

    Merge branch 'main' into relational-tweaks

commit 65fa8084f84aa1a90686fe6407a6d54ca47d1371
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:29:03 2021 -0400

    Make input container relative

commit 0674a0a00faa5df2208b466114721ba5d5116bf7
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:28:44 2021 -0400

    Add placeholder option to v-field-template
2021-04-22 13:16:20 -04:00
Rijk van Zanten
fea49a12e3 Filter out circular fields in relational drawer-item use (#5067)
Fixes #2961
2021-04-14 19:32:53 -04:00
WoLfulus
42393951e0 Test runners for storage drivers (#4716)
* add tests to drive

* add azure test runner

* add gcs test runner

* add s3 test runner

* quick changes

* Re-add npm run dev

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 15:40:12 -04:00
Nitwel
93f8b7720c Fix translations not working on displays, modules... (#4734)
* generalyze extensions

* replace vue-i18n tranlslations

* replace vue-i18n tranlslations

* add missing commas

* replace translations recursive

* restructure translate

* remove unused i18n

* remove unused i18n

* remove unused i18n

* Remove i18n context in define

* Rename translate util file

* Fix type errors

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:36:55 -04:00
Justin H
ebae74b87c fix: deselect button not shown in m2m file interface for non-admin users (#4913) 2021-04-08 14:39:16 -04:00
rijkvanzanten
bd80c3e14d Fix disabled states of files/slider
Fixes #4370
2021-03-03 19:17:15 -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
b69fcec3a4 Add download buttons to files interface (#4287)
* add download button to files interface

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

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-25 10:01:32 -05:00
Rijk van Zanten
1064d10296 Fix file imports now that vetur supports monorepos (#4016) 2021-02-11 13:08:59 -05:00
rijkvanzanten
52b8334e39 Fix deselect button not showing up for non-admin users
Fixes #3265
2020-12-14 19:54:55 -05:00
rijkvanzanten
c258ba6b9e Fix interfaces/displays sometimes showing up in the wrong category
Squashed commit of the following:

commit 2e07fdc946c985a32db2c78a54f61527bb7671ea
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Nov 27 17:59:20 2020 -0500

    Properly scope interfaces to local app group

commit 3d593a4b1c8493db29f934f3a336654ac11e0ea4
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Nov 27 17:47:30 2020 -0500

    Rename localTypes to groups

commit 5b2e882c8f3e700925d54f18bb54cdac98320f55
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Nov 27 17:46:55 2020 -0500

    Check tighter for local group
2020-11-27 17:59:37 -05:00
rijkvanzanten
0db7ab4eab Fix multiple file upload in files
Fixes #822
2020-11-02 16:37:09 -05:00
rijkvanzanten
7b20911b5a Add manual sort support to files
Fixes #849
2020-11-02 15:21:35 -05:00
Nitwel
d7f2ab11fd Add localType to interfaces 2020-10-24 12:47:11 +02:00
rijkvanzanten
ed384571ea Fix missing sortfield in files 2020-10-22 20:03:37 +02:00
rijkvanzanten
6d76cf6737 Rename modal to drawer 2020-10-16 12:14:31 -04:00
Nitwel
3f73664a64 update files and remove console logs 2020-10-15 12:44:38 +02:00
Nitwel
b0f2c92c53 Merge branch 'relational-updates' of https://github.com/directus/next into relational-updates 2020-10-14 23:40:05 +02:00
Nitwel
9c8b144453 support junction fields 2020-10-14 23:38:10 +02:00
rijkvanzanten
3007f2ff4b Merge branch 'main' into relational-updates 2020-10-14 16:16:31 -04:00
rijkvanzanten
6fd78b90ee Replace browse/detail naming with collection/item 2020-10-14 16:05:50 -04:00
rijkvanzanten
a3e5258387 Rename detail modals 2020-10-14 15:43:53 -04:00
Nitwel
23188f2203 add missing props 2020-10-14 20:06:45 +02:00
Nitwel
027537a70e fix file upload 2020-10-14 18:30:00 +02:00
Nitwel
cada867e4e update files interface and fix bugs 2020-10-14 18:18:22 +02:00
Nitwel
b9a8cc5275 finish m2m 2020-10-13 20:27:11 +02:00
rijkvanzanten
2a77c0cb07 Fix v-upload reading null file
Fixes #477
2020-10-01 10:07:50 -04:00
rijkvanzanten
272653d5dd Use html attr style in components 2020-09-24 16:45:47 -04:00
Nitwel
dae1a9ca51 move options to v-upload 2020-09-24 16:34:54 -04:00
Nitwel
722d95aa40 add description to all interfaces 2020-09-08 13:36:48 +02:00
Nitwel
1a88f6de88 add recommended displays 2020-09-07 13:35:16 +02:00
rijkvanzanten
9b163d79c2 Allow multiple new files to be uploaded in files interface 2020-08-07 17:19:32 -04:00
rijkvanzanten
69d6ad32fc Fix cards layout in modal browse usage 2020-08-07 17:15:19 -04:00
rijkvanzanten
d1aa5d350e Move app to app folder 2020-07-29 11:24:52 -04:00