Commit Graph

9090 Commits

Author SHA1 Message Date
Rijk van Zanten
d9577eba8a New translations en-US.yaml (Portuguese) (#14240) 2022-07-01 13:11:49 +00:00
Rijk van Zanten
e249039026 Don't force reset scroll on hash changes (#14234) 2022-06-30 19:11:47 -04:00
Jay Cammarano
c21ea3a41f Unit tests for migrations/run.ts (#10485)
* base neg tests

* more tests for migrations run()

* tests passing

* updated test

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-30 19:00:34 -04:00
Rijk van Zanten
3008d64c7c Fix conditions crash when custom options component is used (#14233)
Fixes #14189
2022-06-30 18:56:17 -04:00
Rijk van Zanten
cef060a0fc Use string displays on the calendar layout (#14232) 2022-06-30 18:45:52 -04:00
Rijk van Zanten
2c84239c31 Fix vertical alignment of render-template in tabular (#14231)
Fixes #13010
2022-06-30 18:07:40 -04:00
Rijk van Zanten
1a1c784ebd Hide user invite flow when default auth provider is disabled (#14229)
* Use store for auth server info

* Don't render user invite button if default login is disabled
2022-06-30 17:43:42 -04:00
Nicola Krumschmidt
49f386f729 Enable caching for App assets (#9191)
All assets transformed by Vite are fingerprinted, so they can be cached indefinitely.
The html entrypoint should never be cached to always import the latest assets.
The only downside to this is that files from the "public/" folder are also cached for at least a year.

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-30 16:29:41 -04:00
Brainslug
227bfa816d Check if a date string is valid ISO8601 before parsing it (#14127)
* add datetime format check

* updated error message thrown

* removed unneeded "T" from date format

* updated date validation and parsing to use the date-fns functions
2022-06-30 16:04:48 -04:00
Azri Kahar
e5519b5ce3 Persist existing global variable values on save (#14227) 2022-06-30 16:02:10 -04:00
ian
e14a6ea401 Emitter emits event in the meta (#14203)
* Emitter emits event in the meta

* Update unit test
2022-06-30 10:12:42 -04:00
rijkvanzanten
184d312f84 Remove duplicate 2022-06-30 09:53:33 -04:00
Azri Kahar
5c85ebd12c fix vite error when pre-bundling docs package (#14214) 2022-06-30 09:53:13 -04:00
ian
449e87ab27 Only emit value if updated for wysiwyg interface (#14216)
* Only emit value if updated for wysiwyg interface

* Update app/src/interfaces/input-rich-text-html/input-rich-text-html.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-06-30 09:51:43 -04:00
rijkvanzanten
ae458384f6 Exclude docs from vite optimizer 2022-06-30 09:42:33 -04:00
Rijk van Zanten
45399097d2 New translations en-US.yaml (Italian) (#14213) 2022-06-30 11:11:43 +00:00
Rijk van Zanten
daaf18440a New translations en-US.yaml (Italian) (#14210) 2022-06-30 10:12:50 +00:00
Gerard Lamusse
de9dc8ac4f Use native api with access_token when defineing url as relative (#14193) 2022-06-29 14:42:23 -04:00
ian
7a7540ddaa Fix rendering of social icons (#14195) 2022-06-29 14:41:13 -04:00
Rijk van Zanten
288e7d62b9 Move docs folder to dedicated repo (#14192)
* Move docs to https://github.com/directus/docs

* Update included docs
2022-06-29 13:47:45 -04:00
Rijk van Zanten
40f13f14bb New Crowdin updates (#14191)
* Update source file en-US.yaml

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Malay)

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Kurdish)

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

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Ukrainian)

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

* New translations en-US.yaml (Faroese)

* New translations en-US.yaml (English, Canada)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Spanish, Mexico)
2022-06-29 16:24:48 +00:00
Azri Kahar
742bca9b9e Tweaks for datetime display options (#14186)
* use translation keys

* change strict option to half width
2022-06-29 11:25:11 -04:00
Rafly Maulana
75e7fa743f Add bootstrap step in manual installation (#14177)
* Add bootstrap step in manual installation

I found this bug where you can't start the server before the database is seeded and everything is configured

* Update docs/self-hosted/installation/manual.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-06-29 09:07:49 -04:00
Rijk van Zanten
313e0b1ee1 New translations en-US.yaml (Arabic) (#14179) 2022-06-29 11:42:05 +00:00
Rijk van Zanten
98ca14a950 New translations en-US.yaml (Ukrainian) (#14172) 2022-06-29 06:57:47 +00:00
Rijk van Zanten
e6a893e46e New Crowdin updates (#14166)
* Update source file en-US.yaml

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)
2022-06-28 22:12:27 +00:00
Brainslug
49aab29eb7 prevent parseJSON converting strings to numbers (#14057) 2022-06-28 18:08:25 -04:00
Rijk van Zanten
f971eb4f1d Add emitEvents flag to item reads in service (#14164)
* Add emitEvents flag to ItemsService.read*

* Add emitEvents flag to item-read flow operation
2022-06-28 17:32:01 -04:00
Jay Cammarano
2607037ffe Fixes: No notification being created when sendmail fails. (#14131)
* notifications still being made when email fails

* moved try/catch into sendmail

* double checked it works this time

* Add newline for consistency

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-28 17:01:31 -04:00
rijkvanzanten
10f897bb61 v9.13.0 2022-06-28 15:52:46 -04:00
rijkvanzanten
fd55233b11 v9.13.0 v9.13.0 2022-06-28 15:52:31 -04:00
younky-yang
4bf69cb318 Fix saving error with custom permissions in O2M fields (#13998)
* fix 13765: saving error with rbac role on relation collections

* simplify the implementation
2022-06-28 15:43:51 -04:00
Rijk van Zanten
23de088037 Prevent webhooks from registering twice (#14163)
Fixes #13933
2022-06-28 15:40:59 -04:00
Azri Kahar
7d01e8e4e2 Fix relational fields for Download Page as CSV & relevant displays' handler improvements (#14147)
* fix save-as-csv for aliased relational fields

* strip & decode HTML in formatted-value handler

* fix labels handler when value is an array

* fallback to value when text is empty

* Update app/src/displays/labels/index.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* use dompurify to strip html tags

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-06-28 15:17:05 -04:00
Azri Kahar
ad7d39203f Fix v-select search & selection of groups (#14154)
* fix search not matching parent items

* make group selectable in v-select

* fix wrong prop name

* set selected group to active for highlighted style

* Fix typings

Co-authored-by: ian <licitdev@gmail.com>
2022-06-28 15:06:18 -04:00
Rijk van Zanten
d98432899e New translations en-US.yaml (Portuguese, Brazilian) (#14162) 2022-06-28 19:00:05 +00:00
Rijk van Zanten
52d1080c11 New translations en-US.yaml (Italian) (#14157) 2022-06-28 15:08:14 +00:00
Brainslug
573b7709cc updated 404 links (#14152) 2022-06-28 09:34:06 -04:00
Rijk van Zanten
e281cbcaa0 New translations en-US.yaml (Bulgarian) (#14156) 2022-06-28 13:02:34 +00:00
Rijk van Zanten
efa64dc4aa New translations en-US.yaml (Japanese) (#14142) 2022-06-28 00:13:08 +00:00
Azri Kahar
68eeab8ae2 Add search in v-select (#13867)
* Add search in v-select

* only show search when nested items more than 20

* auto open when there's only one child

* persist search input when item count reduces
2022-06-27 15:53:51 -04:00
Clayton Gulick
43f27b0943 Make path argument optional for snapshot command (#14074)
* make path argument optional for snapshot command

* Cleanup branching paths a tad

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-27 19:50:33 +00:00
Rijk van Zanten
5ce84409bd New translations en-US.yaml (Italian) (#14140) 2022-06-27 19:45:54 +00:00
Eron Donevan Powell
50db841aa8 Document insights updates (#14101)
* insights 2.0"
q

* Remove json casting

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-27 15:32:38 -04:00
Rijk van Zanten
32dd709778 Insights 2.0 (#14096)
* query function added to list

* dashboard reading query, adding to object

* typecasting of filter vals needed still

* numbers accepting strings too

* json-to-graphql-query => devD

* fixed unneeded return in list index.ts

* stitching and calling but not actually calling

* calls on panel change

* query object += new panel before dashboard save

* uuid generated in app not api

* fixed panel ids in query

* fixed the tests I just wrote

* passing the query data down!

* list showing data

* objDiff test moved to test

* metric bug fixes + data

* dashboard logic

* time series conversion started

* timeseries GQL query almost there

* query querying

* chart loading

* aggregate handling improved

* error handling for aggregate+filter errors

* removed query on empty queryObj

* maybe more error handling

* more error handling working

* improvements to erorr handling

* stitchGQL() error return type corrected

* added string fields to COUNT

* pushing up but needs work

* not an endless recursion

* its not pretty but it works.

* throws an error

* system collections supported

* refactor to solve some errors

* loading correct

* metric function fixed

* data loading but not blocking rendering

* removed redundant code.

* relational fields

* deep nesting relations

* options.precision has a default

* relational fields fix. (thanks azri)

* the limit

* limit and time series

* range has a default

* datat to workspace

* v-if

* panels loading

* workspaces dont get data anymore

* package.json

* requested changes

* loading

* get groups util

* timeseries => script setup

* list => script setup

* metric => script setup

* label => script setup

* declare optional props

* loadingPanels: only loading spinner on loading panels

* remove unneeded parseDate!!

* applyDataToPanels tests

* -.only

* remove unneeded steps

* processQuery tests

* tests

* removed unused var

* jest.config and some queryCaller tests

* one more test

* query tests

* typo

* clean up

* fix some but not all bugs

* bugs from merge fixed

* Start cleaning up 🧹

* Refactor custom input type

* Small tweaks in list index

* Cleanup imports

* Require Query object to be returned from query prop

* Tweak return statement

* Fix imports

* Cleanup metric watch effect

* Tweaks tweaks tweaks

* Don't rely on options, simplify fetch logic

* Add paths to validation errors

* [WIP] Start handling things in the store

* Rework query fetching logic into store

* Clean up data passing

* Use composition setup for insights store

* Remove outdated

* Fix missing return

* Allow batch updating in REST API

Allows sending an array of partial items to the endpoints, updating all to their own values

* Add batch update to graphql

* Start integrating edits

* Readd clear

* Add deletion

* Add duplication

* Finish create flow

* Resolve cache refresh on panel config

* Prevent warnings about component name

* Improve loading state

* Finalize dashboard overhaul

* Add auto-refresh sidebar detail

* Add efficient panel reloading

* Set/remove errors on succeeded requests

* Move options rendering to shared

* Fix wrong imports, render options in app

* Selectively reload panels with changed variables

* Ensure newly added panels don't lose data

* Only refresh panel if data query changed

* Never use empty filter object in metric query

* Add default value support to variable panel

* Centralize no-data state

* Only reload data on var change when query is altered

* Fix build

* Fix time series order

* Remove unused utils

* Remove no-longer-used logic

* Mark batch update result as non-nullable in GraphQL schema

* Interim flows fix

* Skip parsing undefined keys

* Refresh insights dashboard when discarding changes

* Don't submit primary key when updating batch

* Handle null prop field better

* Tweak panel padding

Co-authored-by: jaycammarano <jay.cammarano@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-06-27 15:26:42 -04:00
Rijk van Zanten
6cba7fb91f New translations en-US.yaml (Ukrainian) (#14138) 2022-06-27 16:45:12 +00:00
Azri Kahar
f0552b3660 Use conditional props for links in v-list-item (#14124) 2022-06-27 10:58:10 -04:00
Rijk van Zanten
5336197586 New translations en-US.yaml (Arabic) (#14133) 2022-06-27 14:48:36 +00:00
Rijk van Zanten
0ab574bd38 New translations en-US.yaml (Arabic) (#14129) 2022-06-27 13:18:17 +00:00
Rijk van Zanten
a7d9671372 New translations en-US.yaml (German) (#14126) 2022-06-27 09:56:08 +00:00