Nicola Krumschmidt
4eed883329
Add DefinitelyTyped deps to shared ( #11231 )
...
This also moves type-only deps to "peerDependencies".
Fixes #10658
2022-01-24 10:18:36 -05:00
Nicola Krumschmidt
889668f972
Remove API extension types from the API ( #11191 )
...
There is little value in keeping these types inside the API package.
We should instead focus on improving the types in shared.
2022-01-20 22:19:52 +00:00
John Huffsmith
e7ada1f173
Moving schema and relation types into shared package ( #11179 )
...
* moving schema and relation types into shared package
* updating SchemaOverview imports
* removing duplicate import
2022-01-20 13:36:19 -05:00
Nicola Krumschmidt
9237a6452a
Remove extensions-sdk and axios from the list of shared deps ( #11099 )
...
This ensures that extensions work with an out-of-root extensions folder.
Instead of leaving the list of API shared deps empty, this adds `directus` as the only shared dep
because it is never a good idea to bundle the Directus API into an extension.
2022-01-17 10:22:52 -05:00
rijkvanzanten
65bfe68b0c
v9.4.3
2022-01-07 16:11:24 -05:00
Nicola Krumschmidt
9ee6e97cd9
Move useLayout composable to shared and expose it through extensions-sdk ( #10850 )
...
* Move useLayout composable to shared
* Expose useLayout through extensions-sdk
2022-01-05 15:38:48 -05:00
Nicola Krumschmidt
af0a197a99
Make registered extensions accessible from extensions ( #10849 )
...
* Add extensions system provide and useExtensions composable
* Expose useExtensions through extensions-sdk
2022-01-05 10:33:52 -05:00
rijkvanzanten
1a5a9180ee
v9.4.2
2021-12-30 21:11:32 -05:00
rijkvanzanten
4991ba858b
v9.4.1
2021-12-28 20:17:21 -05:00
rijkvanzanten
a47b9cec0f
v9.4.0
2021-12-23 22:46:18 -05:00
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
rijkvanzanten
4b444baf5b
v9.3.0
2021-12-16 18:48:10 -05:00
Sam Milledge
5a30fa4f40
Fix missing operators in field filter type ( #9582 )
2021-12-16 18:40:15 -05:00
Nicola Krumschmidt
ee3e9b59f9
Pass a custom emitter to API extensions ( #10531 )
2021-12-15 18:49:55 -05: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
rijkvanzanten
546d525175
v9.2.2
2021-12-10 15:53:08 -05:00
rijkvanzanten
1d4e9c425c
v9.2.1
2021-12-06 14:31:01 -05:00
Rijk van Zanten
5d80038a8a
Fix permissions merging on null check ( #10336 )
...
Fixes #10305
2021-12-06 15:12:20 +00:00
Nicola Krumschmidt
ad4a13f93b
Share pinia with extensions ( #10335 )
...
Pinia is stable and also the recommended state management lib for Vue 3 🔥
2021-12-06 09:58:48 -05:00
rijkvanzanten
776c105aac
v9.2.0
2021-12-03 16:16:38 -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
Oreille
b4557056a0
Don't go back to page 1 when navigating back from an item ( #10235 )
2021-12-02 19:33:18 +00:00
Oreille
525e2548b4
Fix compatibility with Postgres <= 10 ( #10139 )
...
* Use indnatts instead of indnkeyatts in postgres dialect
* Update knex-schema-inspector
* Add PG10 for debugging
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-12-01 20:36:46 +00:00
Alejandro Castaño González
022b867a23
Add status field in the directus_notifications collection ( #10064 )
...
* Add status field
* Update notification type
2021-12-01 14:19:48 -05:00
Oreille
0425809db1
Fix string filter unexpectedly being casted to number ( #10138 )
...
* Fix string unexpectedly being casted to numbers
* Parse filter with multiple keys into `_and` block.
* Fixed filter structure in tests
2021-12-01 13:55:54 -05:00
Azri Kahar
8dec148ca2
refresh edited insights panel on change ( #10180 )
...
* refresh edited insights panel on change
* move api simpleHash to shared utils getSimpleHash
* Simply reactivity fix for time-series
* Remove unused import
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-12-01 17:26:55 +00:00
Azri Kahar
648b2d0e36
fix filter breaking instead of defaulting to _eq ( #10194 )
2021-12-01 14:42:09 +00:00
rijkvanzanten
9bf033c18d
v9.1.2
2021-11-25 12:36:24 -05:00
rijkvanzanten
5d3a630fe6
v9.1.1
2021-11-24 21:09:22 -05:00
rijkvanzanten
7a1c534b36
v9.1.0
2021-11-24 17:56:26 -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
Oreille
2f0e305796
Refactor parseFilter to only flatten filter entries that need it ( #9804 )
...
* Refactor parseFilter to only flatten filter entries that need it
* Fixed typescript check
* Use custom get function instead of lodash's.
* Improved get function readability
* Allow null result from shared parseFilter
* Add missing defaultValue in get function
* Change parseFilter argument type from Record<string, any> to Filter | null
Co-authored-by: ian <licitdev@gmail.com >
2021-11-23 12:35:12 -05:00
Oreille
f920196c18
Add logical operators to the SDK's Filter type ( #9965 )
...
* Add logical filter operator to the Filter type
* Removed unnecessary ?
* Reverted import from `@directus/shared`
* Handle many-to-many field filters
2021-11-22 13:05:22 -05:00
renovate[bot]
241dc13c65
Update NPM dependencies (non-major) ( #9968 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-11-22 10:05:40 -05:00
rijkvanzanten
ba72d2cfd0
v9.0.1
2021-11-11 16:45:31 -05:00
ian
23534c8662
Flatten arrays after parsing filters ( #9697 )
...
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-11-11 14:35:34 -05:00
rijkvanzanten
c95add08ef
v9.0.0
2021-11-04 22:03:10 -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
Nicola Krumschmidt
ae15f39091
Clean up interface options type ( #9447 )
2021-11-04 18:31:31 -04:00
Rijk van Zanten
2e0ad10ad1
Remove collection listing option from role settings ( #9490 )
...
* Fixes #8920
* Revert changes in seeds / migrations
* Add new migration to drop column
Co-authored-by: Yannick Mol <yannick@molmediasolutions.nl >
2021-11-04 21:55:34 +00:00
rijkvanzanten
37cf80e0fe
v9.0.0-rc.101
2021-11-03 19:29:41 -04:00
Nicola Krumschmidt
3d0e086c55
Rework hook registration ( #8027 )
...
* Rework hook registration
* Remove event and action fields from hook payloads
* Move "error" action to "request.error" filter
* Emit meta and context objects in filters and actions
* Run filters sequentially
* Update hook templates
* Fix CLI hook test
* Also emit `<collection>.items.crud` when emitting `items.crud`.
* Update hook docs
Co-authored-by: Oreilles <oreilles.github@nitoref.io >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-11-03 17:18:56 -04:00
Rijk van Zanten
65291b95c4
Allow dynamic user variables to be used with filter rules (cont.) ( #9376 )
...
* Move permissions extraction to accountability
* Fix permissions retrieval for public user
* Fetch user / role context in permissions middleware
* Remove unnecessary parseFilter
* Rename schemaCache to systemCache
* Add permissions caching
* Add system cache invalidation on permission changes
* Improve caching perf by reducing scope
* Add note to docs
* Clarify compatibility with conditional fields/filters
* Fix lint warning
* Allow nested vars in system-filter-input
* Add custom getter function that resolves arrays
* Add is-dynamic-variable util
* Export new util
* Cleanup parse filter
* Fix build
* Move debounce up to use-items
* Remove unused prop
* 🧹
* Fix input pattern usage w/ vars
* Remove debounce from search-input, increase throttle
2021-11-03 16:56:16 -04:00
rijkvanzanten
7e1034d9d4
v9.0.0-rc.100
2021-10-29 14:40:05 -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
c94d0c4bfe
Use default filter operator for type in filter input. ( #9103 )
...
* Use default filter operator for type in filter input. Also fix error on geometry operator update.
* Fixed tests.
* Only reset geometry filter value when necessary
* Support `null` for boolean operators.
2021-10-25 11:28:44 -04:00
rijkvanzanten
7c88f03884
v9.0.0-rc.99
2021-10-21 19:52:37 -04:00
Oreille
1b0f75eec2
Fix o2m-resolver memory issue ( #8944 )
...
* Add limit to m2o fetching.
* Remove unused parameter
* Remove unused nested flag, move limit to apply
* Add limit to offset check
* Add usage note on union query
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-10-21 15:02:26 -04:00
rijkvanzanten
0dd0e1b1c1
v9.0.0-rc.98
2021-10-15 20:13:07 -04: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