Commit Graph

10030 Commits

Author SHA1 Message Date
Phillip Wheatley
c8188e3ea1 Extend OpenAPI schemas for JSON-backed fields (#14581)
* Confirm issue with test case

* Generate schema for json field types when nested fields are specified

* Return untyped schema for json fields

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-25 18:03:24 -04:00
Rijk van Zanten
d5813bea23 Fix render template height in card subtitle (#14644) 2022-07-25 17:15:55 -04:00
Rijk van Zanten
88c5edf7a3 Add app unit tests using vitest (#14583)
* Install / bootstrap vitest

* Install c8

* Add tests for add-query-to-path

* Don't set global maplibre token on individual style

This feels wrong to me. We have a single global access token that should be used for these things. Overriding that with a token that's found for individual styles on top of the same global object in order of configured maps feels weird, as the latter tokens will override the earlier ones. Needs more research though

* Install testing libraries

* Use happy-dom as env in vitest

* Enable ts checking in tests

* Remove unused jest config

* Organize store imports

* Remove types from TSDoc in add-query-to-path

* Improve check in add-related-primary-key-to-fields

* Add reusable stub for anything touching nanoid

* Add tests for add-related-primary-key-to-fields

* Move adjust date to shared

* Remove arraysAreEqual util in favor of relying on lodash

* Fix add-related-primary-key-to-fields test

* Add test coverage for capitlize-first

* Add TSDoc/tests for extract-field-from-function

* Add test coverage for formatFieldFunction

* Add test coverage for format-filesize

* Add test coverage for get-groups

* Add tests for get-root-path

* cleanup imports

* Move tests to live next to source files

* Add tests for user-name

* Update type to match function behavior

* Add test coverage for point-on-line

* Add tests for is-empty

* Add test coverage for is-hex

* Remove getSetting util

Bit pointless to have a util function to just read a value from a store

* Add test coverage for get-related-collection

* Add test coverage for get-theme

* Add test coverage for get-with-arrays

* Add test coverage for hide-drag-image

* Add test coverage for is-permission-empty

* Remove unused import

* Add test for jwt-payload

* Add snapshot rendering test for v-sheet

* Add whitespace

* Rename __test_utils__ -> __utils__

* Add composable test

* Update app/tsconfig.json

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2022-07-25 16:23:45 -04:00
Adrian Dimitrov
515ea4e4d2 Fix list-group clickable; Fix navigation-item initial state (#14637)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-07-25 14:16:41 -04:00
Aiden Foxx
28d60131a3 Handle not unique errors during auto-registration (#14625)
* Handle RecordNotUniqueException in oauth

* Handle RecordNotUniqueException in openid

* Added RecordNotUniqueException handling for ldap

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

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

* Add LDAP unique user log

* Added unique user log to oauth

* Added unique user log to OpenID

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

* Update api/src/auth/drivers/oauth2.ts
2022-07-25 14:09:51 -04:00
Nicola Krumschmidt
81cd748c6d Add support for operation extensions to the Extensions SDK (#14410)
* Clean up extensions build logging

* Expose defineOperation* helpers through extensions-sdk

* Add support for scaffolding operation extensions

* Refactor extension type constants

* Improve extension-related tests in shared

* Improve wording when scaffolding extension fails due to wrong type

* Make spinner text bold when scaffolding extensions

* Add support for building operation extensions

* Fix operations tile name

* Make extension config type spacing consistent

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-07-25 11:36:52 -04:00
Cl4ud10 T4551S
bfb1f93449 Update pt-BR.yaml (#14596)
Whenever a new field is created, there's no translation for the "require value to be set on creation". The translation to it should be "Requer que valor seja definido na criação".
2022-07-25 10:39:47 -04:00
Cl4ud10 T4551S
5013baff13 Update pt-BR.yaml (#14600)
There's a typo in the translation of "junction". The correct translation is "junção" and not "jução"
2022-07-25 10:39:32 -04:00
Azri Kahar
811da6e762 fix revisions drawer detail ref type (#14615) 2022-07-25 09:52:12 -04:00
Azri Kahar
7c5e763271 File Preview fixes (#14570)
* fix audio player not showing up

* Center horizontally for small width videos

* add letterbox to videos

* fix calendar list view styling

* Revert "fix calendar list view styling"

This reverts commit 030585d01b.
2022-07-25 09:42:31 -04:00
Azri Kahar
cd8687e142 Fix calendar list view styling (#14626)
* fix calendar list view styling

* remove unrelated committed files
2022-07-25 09:41:22 -04:00
Azri Kahar
ab163a2c9b Fix flatpickr global style (#14618) 2022-07-25 09:36:09 -04:00
Rijk van Zanten
16fbe743fe New translations en-US.yaml (French) (#14612) 2022-07-24 19:07:58 +00:00
Rijk van Zanten
cf10b17e57 New translations en-US.yaml (French) (#14604) 2022-07-24 03:06:04 +00:00
Rijk van Zanten
3018f90420 New translations en-US.yaml (French) (#14601) 2022-07-24 01:51:38 +00:00
Rijk van Zanten
e3850deafa New translations en-US.yaml (French) (#14593) 2022-07-23 17:33:38 +00:00
Sidarta Veloso
67cea310fb Update pt-BR.yaml (#14584)
Save as copy means 'Salvar como cópia' and not 'Salvar e Copiar'.
2022-07-22 16:45:49 -04:00
Rijk van Zanten
d6846d74eb Refactor unnecessary nested app folders (#14580)
* Remove unused nested folders from components

* Remove nested folders

* Standardize composables output

* Fix import inconsistencies

* Same trick for directives

* Same for routes

* Replace reliance root grouped export in favor of explicit imports

* Replace reliance on implicit imports

* Remove nested folder structure

* Consistent use of non-default exports in utils

* Remove nested folder structure from private components

* Fix test mock

* Remove extraneous component registration for valuenull

* Fix stores provider

* Fix logo sprite
2022-07-22 15:10:28 -04:00
rijkvanzanten
6e4738e4c0 v9.14.5 v9.14.5 2022-07-22 14:45:15 -04:00
rijkvanzanten
aec37f6198 v9.14.4 2022-07-22 10:38:33 -04:00
ian
1b368291eb Revert to <img> for image editor (#14576)
* Revert to <img> for image editor

* Fix typings
v9.14.4
2022-07-22 10:17:14 -04:00
Azri Kahar
7d62a70007 Fix GraphQL aggregate query (#14560)
* FIx aggregate query in GraphQL

* change type to Query and alter previous logic

* test
2022-07-22 09:55:51 -04:00
Brainslug
3ceec97f66 Using formFields which is filtered over the fields property (#14569) 2022-07-22 09:30:25 -04:00
rijkvanzanten
3d03291c31 Rerun workflow on workflow change 2022-07-21 16:23:36 -04:00
rijkvanzanten
2910ee286b Try with pnpm 2022-07-21 16:22:16 -04:00
rijkvanzanten
cf41b07100 v9.14.3 v9.14.3 2022-07-21 16:16:14 -04:00
rijkvanzanten
9833294743 Oracle (╯°□°)╯︵ ┻━┻ 2022-07-21 16:03:30 -04:00
Rijk van Zanten
e223a9d1cd Remove oracledb from package.json (#14556) 2022-07-21 15:55:51 -04:00
rijkvanzanten
54f80376c8 Don't cache npm in node checkout 2022-07-21 15:30:26 -04:00
rijkvanzanten
eb1a4e6897 v9.14.2 2022-07-21 15:25:47 -04:00
rijkvanzanten
0890bfc9a5 Update docs v9.14.2 2022-07-21 15:23:25 -04:00
rijkvanzanten
6d1e5b3432 v9.14.2 2022-07-21 15:17:56 -04:00
ian
9f9ef45846 Disable foreign check on SQLite when deleting fields (#14512)
* Disable foreign check on SQLite when deleting fields

* Add default on_delete constraint

* Add test

* Rename methods

* Fix test sequence
2022-07-21 14:44:05 -04:00
ian
8d9991abe3 Process relational collection's permissions in functions (#13870)
* Process relational collection's permissions in functions

* Fix deep usage of functions in GraphQL

* Add unit test for updated SQL query with permissions

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:42:22 -04:00
Brainslug
8bc098c337 Conditions not working (partially) (#14488)
* changed way of storing the formfield data in v-form

* hacky translation implementation

* updated translations without bombing the performance

* removed debug code and refactored initial implementation

* removed redundant useFormFields in users route

* making proper use of useFormField results to not break the grid layout

* removed limitation for conditions

* Fix selection of foreign keys for value field in time series panel

* Revert "removed redundant useFormFields in users route"

This reverts commit c6f4f23cf8.

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:39:43 -04:00
ian
40d71f309b Fix filter column aliasing (#14423)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:37:08 -04:00
Rijk van Zanten
600f55e4a2 Resolve lintw arnings (#14555) 2022-07-21 12:44:16 -04:00
Boris
572952b605 Fix the preview not being updated after editing the image (#14511)
* Fetch latest changes and make the refresh function async

* Make the image-editor refresh call cleaner

* add missing await
2022-07-21 11:58:49 -04:00
rijkvanzanten
141501ac66 Fix pk typing 2022-07-21 11:50:21 -04:00
rijkvanzanten
ab36a31e29 Remove warnings re revisions sidebar detail 2022-07-21 10:55:27 -04:00
Rijk van Zanten
73b30190cb New translations en-US.yaml (Russian) (#14552) 2022-07-21 14:36:40 +00:00
Rijk van Zanten
aa24522a3b New translations en-US.yaml (Italian) (#14551) 2022-07-21 12:43:58 +00:00
Ian Pirro
23912e5232 Fix: Error applying schemas with nested collection(s) (#13949)
* Fix nested collection creation when parent exists

* tests

* desc | comments

* typo

* minor tweak

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-07-21 15:29:12 +08:00
Rijk van Zanten
53168f75ad New translations en-US.yaml (Italian) (#14545) 2022-07-20 21:31:56 +00:00
Rijk van Zanten
b6a0f0b216 Fix map layout not rendering items on search (#14543)
Fixes #13941
2022-07-20 17:17:33 -04:00
Rijk van Zanten
353d01d620 Fix singleton navigation temporarily using wrong ID (#14542)
* Convert content/items.vue to script[setup]

* Don't rely on outdated primary key while loading in singleton navigation

Fixes #13856
2022-07-20 17:08:48 -04:00
Rijk van Zanten
5719d1dceb Select multiple dropdown preview threshold (#14541)
* Allow specify custom preview threshold for select-multiple-dropdown

* Move to advanced options

Co-authored-by: Tien Tran <tien@transfamily.info>
2022-07-20 16:54:03 -04:00
Danilo Polani
8b116f6deb Add "security" commands to api CLI (#9400)
* add command to generate app key

* add command to generate secret

* group security commands under the security group

* add new security commands to cli docs

* add disclaimer on deploy secret generation

* remove duplicate hubspot embed code

* remove .env overwrite feature to security commands

* update the cli docs for security commands

* return key generation directly in output

* restore package-lock.json

* Write secret directly

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-20 16:44:35 -04:00
Rijk van Zanten
931a7bde46 Add missing _between/_nbetween filter operators to GQL (#14540)
Fixes #13782
2022-07-20 16:42:59 -04:00
Rijk van Zanten
bccb4db791 Don't render explicit null values in md custom blocks (#14539)
Fixes #14383
2022-07-20 16:37:45 -04:00