Commit Graph

893 Commits

Author SHA1 Message Date
Rijk van Zanten
dbf35a1736 Add ability to share items with people outside the platform (#10663)
* Add directus_shares

* Don't check for usage limit on refresh

* Add all endpoints to the shares controller

* Move route `/auth/shared` to `/shared/auth`

* Add password protection

* Add `share` action in permissions

* Add `shares/:pk/info`

* Start on shared-view

* Add basic styling for full shared view

* Fixed migrations

* Add inline style for shared view

* Allow title override

* Finish /info endpoint for shares

* Add basic UUID validation to share/info endpont

* Add UUID validation to other routes

* Add not found state

* Cleanup /extract/finish share login endpoint

* Cleanup auth

* Added `share_start` and `share_end`

* Add share sidebar details.

* Allow share permissions configuration

* Hide the `new_share` button for unauthorized users

* Fix uses_left displayed value

* Show expired / upcoming shares

* Improved expired/upcoming styling

* Fixed share login query

* Fix check-ip and get-permissions middlewares behaviour when role is null

* Simplify cache key

* Fix typescript linting issues

* Handle app auth flow for shared page

* Fixed /users/me response

* Show when user is authenticated

* Try showing item drawer in shared page

* Improved shared card styling

* Add shares permissions and change share card styling

* Pull in schema/permissions on share

* Create getPermissionForShare file

* Change getPermissionsForShare signature

* Render form + item on share after auth

* Finalize public front end

* Handle fake o2m field in applyQuery

* [WIP]

* New translations en-US.yaml (Bulgarian) (#10585)

* smaller label height (#10587)

* Update to the latest Material Icons (#10573)

The icons are based on https://fonts.google.com/icons

* New translations en-US.yaml (Arabic) (#10593)

* New translations en-US.yaml (Arabic) (#10594)

* New translations en-US.yaml (Portuguese, Brazilian) (#10604)

* New translations en-US.yaml (French) (#10605)

* New translations en-US.yaml (Italian) (#10613)

* fix M2A list not updating (#10617)

* Fix filters

* Add admin filter on m2o role selection

* Add admin filter on m2o role selection

* Add o2m permissions traversing

* Finish relational tree permissions generation

* Handle implicit a2o relation

* Update implicit relation regex

* Fix regex

* Fix implicitRelation unnesting for new regex

* Fix implicitRelation length check

* Rename m2a to a2o internally

* Add auto-gen permissions for a2o

* [WIP] Improve share UX

* Add ctx menu options

* Add share dialog

* Add email notifications

* Tweak endpoint

* Tweak file interface disabled state

* Add nicer invalid state to password input

* Dont return info for expired/upcoming shares

* Tweak disabled state for relational interfaces

* Fix share button for non admin roles

* Show/hide edit/delete based on permissions to shares

* Fix imports of mutationtype

* Resolve (my own) suggestions

* Fix migration for ms sql

* Resolve last suggestion

Co-authored-by: Oreilles <oreilles.github@nitoref.io>
Co-authored-by: Oreilles <33065839+oreilles@users.noreply.github.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Thien Nguyen <72242664+tatthien@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2021-12-23 18:51:59 -05:00
Azri Kahar
d947c4f962 fix public role sidebar not closable (#10651) 2021-12-23 18:22:30 -05:00
Azri Kahar
4d97597e8f Add Archive sidebar component (#10513)
* move archive to dedicated sidebar component

* fix unarchive dialog & notification

* update docs on viewing archived items

* remove commented code

* use radio btns, update options text & query string

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-16 22:30:00 +00:00
Nicola Krumschmidt
23951e5a02 Align display options type with interface options type (#10524)
* Align display options type with interface options type

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-15 20:25:46 +00:00
Azri Kahar
31bb890496 Unify & translate initial role/user detail in init & bootstrap command (#10493)
* Unify initial role/user detail in init & bootstrap

* translate role descriptions

* translate data from system collections
2021-12-14 09:33:44 -05:00
ian
81262800cb Fix selection of field.meta.special after removal (#10412)
* Set field.meta.special to null when empty

* Add check for previously persisted empty string
2021-12-09 09:19:35 -05:00
rijkvanzanten
00a2be9187 Improve 404 check on item detail page 2021-12-03 16:11:33 -05:00
Rijk van Zanten
21a053f19a Fix translations relationship setup not syncing o2m col to m2o (#10248)
Fixes #9934
2021-12-02 18:18:40 -05:00
José Varela
eb68f85e54 Support 'selectionMode' on tabular and cards (#8010)
* showSelect as 'none', 'one' or 'multiple' on table

* showSelect on cards

* showSelect and fix on calendar

* showSelect and fix on map

* fix layout selection prop type

* fix tabular row click on select mode

* remove unused import

* minor strict equality changes

* hide checkbox for activity table

* Update app/src/modules/notifications/routes/collection.vue

Co-authored-by: ian <licitdev@gmail.com>

* Make preset item reactive

* Add comment clarifying ref wrapper

* Fix type signature of layout props

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-02 16:02:13 -05:00
Azri Kahar
0dc0fd4360 Simplify presentation/aliases & accordion setup flow (#9742)
* move title input up for dividers

* WIP

* simplify key id

* add contrast to notices in field configuration

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 21:29:02 +00:00
Oreille
9c9e2eff5b Fix ability to change M2O field type and prevent incompatible interfaces in advanced mode (#10096)
* Fix ability to change M2O field type and prevent incompatible interfaces in advanced mode

* Removed unused imports

* Rename interface variable
2021-12-01 16:16:37 -05:00
Azri Kahar
c4f8214ad8 Autofocus first input in create item form (#9583)
* autofocus first input in create form

* add autofocus to translations interface

* avoid setting firstEditableField to hidden fields

* Base autofocus on prop

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 16:09:21 -05:00
Azri Kahar
a79345a371 Clear selections after batch edit (#9798)
* Clear selections after batch edit

* remove redundant selection clears

* only refresh after batch saving

* use clearer function name
2021-12-01 15:49:20 -05:00
Oreille
a52bd8c9d6 Remove on_delete rule from user-created and user-updated default schema (#10168) 2021-12-01 10:28:32 -05:00
Azri Kahar
fd7844c5c4 Fix data model folders edit dialog (#10040) 2021-11-25 10:53:05 -05:00
Azri Kahar
e1e82bcac6 fix roles aggregation query to fit all db vendors (#10050)
* fix roles aggregation query to fit all db vendors

* Small opinionated style tweak 🧹

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-25 15:48:53 +00:00
Azri Kahar
e88ed96e5c Add context menu directive (#9334)
* Add context menu directive

* require specifying a ref name

* fix empty context menu
@azrikahar

* listen contextmenu even if no menu attached
In some cases we have an area where would like to not open the browser context menu. For example, an area where the context menu does not have any options because of conditions like permissions

* only 'Show hidden...' if hidden collections exists

* fix arrow chunk overlapping items on v-menu

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-24 17:09:29 -05:00
Azri Kahar
86155d4683 Fix click event for unconfigured tables (#9056)
* fix click event for unconfigured tables

* fix lint errors

* replace click events with links in collection-item

* handle link and click on single block

* Revert "handle link and click on single block"

This reverts commit ef9db8c0ab.

* use button for click actions

* add dense to db-only

* fix hitbox

* add stop modifier to folder toggle

* Prevent route action on folder click

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-24 16:52:55 -05:00
José Varela
ebd17abae2 Fix create M2M field concurrency (#9220)
* fix create m2m field concurrency

* remove unused import

* Re-add missing store

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-11-24 16:18:18 -05:00
Jay Cammarano
25375cc481 Add notifications system and support user mentions in comments (#9861)
* v-menu de/activated onKeyDown. No List yet.

* v-list

* add user suggestion

* uuids replaced

* user-popover working

* avatars flex row with usernames in suggestions

* added space to end of uuid insert

* autofocus + move caret to end of last insert

* removed unnecessary setTimeout()

* fixed filter 500 with ids

* better fix

* New translations en-US.yaml (French) (#9907)

* New translations en-US.yaml (French) (#9912)

* New translations en-US.yaml (French) (#9916)

* New translations en-US.yaml (Russian) (#9918)

* New translations en-US.yaml (Swedish) (#9920)

* Email updates (#9921)

* add from name for emails

* updatd email template style

* reset password email copy

* updated logo to newest version

* update invite email copy

* decouple field template logic

* push up styling

* Start on new v-template-input

* Add notifications API endpoints

Squashed commit of the following:

commit 9d86721ef795d03bc55693c0f99bde8e269d60e9
Merge: b4458c19f 34131d06e
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Mon Nov 22 09:27:43 2021 -0500

    Merge branch 'mentions' into mentions-api

commit b4458c19f7c54f18fa415fc04c63642c2f5a17b0
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 18:34:04 2021 -0500

    Remove unused import

commit e6a9d36bbfdf95cb18d29336da61ecb14b677934
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 18:28:31 2021 -0500

    Extract user mentions from comments

commit b3e571a2daa287e1740a050096913662a57e9861
Merge: c93b833d2 af2a6dd7f
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 17:39:52 2021 -0500

    Merge branch 'mentions' into mentions-api

commit c93b833d2b848e306c434b370d4e4e11967e85d0
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 17:35:45 2021 -0500

    Send emails w/ parsed MD

commit 64bbd6596f20a07028d2387d60e33dfe4f91c032
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 16:18:16 2021 -0500

    Add notifications endpoint + permissions

commit fba55c02dc9c303a38b1b958350684cccd3dd82c
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 15:33:28 2021 -0500

    Add system data for notifications

* push

* Make v-template-input work

* Add the two-way binding

* submit button posting, not clearing text area

* comment text area clearing on submit

* Replace insertion correctly

* Added scope support to LDAP group and user search (#9529)

* Added scope support LDAP group and user search

* Fixed linter screwing up my markdown

* Update docs/configuration/config-options.md

* Always return correct DN for user with sub scope

* Fix indeterminate meta and schema property in advanded field creation (#9924)

* Fix impossibility to save M2M (alterations not triggered) (#9992)

* Fix alterations refactor

* fix roles aggregate query (#9994)

* Update iis.md (#9998)

added the IIS URL Rewrite module as a requirement

* New translations en-US.yaml (English, United Kingdom) (#10001)

* Fix LDAP race condition (#9993)

* Fix input ui

* Revert changes to v-field-template

* Update mentions permissions

* Fix linter warnings

* Optimize sending flow

* Revert "Rename activity->notifications module (#9446)"

This reverts commit 428e5d4ea9.

* Add notifications drawer

* Update migrations

* Improve constraints

* Add email notifications toggle on users

* Add docs, fix graphql support

* Move caret-pos to devdeps

* Remove unused new triggerKeyPressed system

* Remove unused use-caret composable

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Aiden Foxx <aiden.foxx@sbab.se>
Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Paul Boudewijn <paul@helderinternet.nl>
2021-11-24 16:11:26 -05:00
José Varela
485c984231 Fix reuse same M2M junction fields (#9789)
* reuse one_field if same m2m junction collection

* remove condition preventing 'create new'
2021-11-24 16:04:00 -05:00
José Varela
1f3e0f668b Fix: Make sort visible by default on relationships (#9792)
* make sort visible by default

* fix typo preventing create sort field
2021-11-24 16:03:14 -05:00
Azri Kahar
7c0161dda1 fix roles aggregate query (#9994) 2021-11-23 17:58:59 +08:00
Oreille
b2f800e6cf Fix impossibility to save M2M (alterations not triggered) (#9992)
* Fix alterations refactor
2021-11-23 09:10:28 +00:00
Oreille
c6c9a53925 Fix indeterminate meta and schema property in advanded field creation (#9924) 2021-11-22 15:11:45 -05:00
Azri Kahar
a5fb3a2cd1 use aggregate count for users in roles view (#9834) 2021-11-22 13:47:19 -05:00
ian
89bf066056 Use router.replace() to prevent invalid back navigations (#9959) 2021-11-22 11:50:09 -05:00
ian
026a8de084 Allow reordering between groups in data model (#9982) 2021-11-22 15:17:12 +00:00
José Varela
cf01cb8b51 No need for condition, nullable is already present (#9763) 2021-11-12 10:53:26 -05:00
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
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