* Exclude unnecessary files from packages
* Add back 'copyfiles' in api to copy yaml and liquid files to dist
* Exclude declaration maps and all declaration files for drive packages
Excluding all declaration map files from published packages
Since the "drive" packages are only expected to be used internally, it's
enough to have the declaration files present when developing locally - no
need to include the types in the published packages
* Remove unnecessary entries in "files" field of app/package.json
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* save sidebarOpen state in local storage
* handle errors while setting value to local storage
* use useLocalStorage to keep sidebarOpen state, add default value to useLocalStorage, cleanup
* move logic to useLocalStorage, remove LocalStorageObject
* use parseJSON utility
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
* build: ➕ add vitest and update test scripts
* build: 🔧 add vitest config
* build: ✅ Migrate tests to vitest
Remove jest references from test api test files and replace with vitest equivalents.
Tests: 13 tests are failing.
* build: 🚚 move vite.config.ts to api/src folder
* build: 🔥 remove unused vitest.config from api root
* build: ✅ import vitest modules for tests
* build: ✅ add type conversion for actual object
* Finish switch from Jest to Vitest in API
* Replace some leftovers
* Load "sharp" before tests
* Try with cjs
* Temporary enable verbose reporter
* Try with globalSetup
* Fix path to globalSetup
* Provide default export in globalSetup
* Final clean-up
* Remove @vitest/ui & update vitest to 0.25.0
* Add vitest c8 coverage dependency
* Update vitest to v0.25.1
* Replace unnecessary Vitest workaround
* Rework new tests
* Resolve build errors
Co-authored-by: Dorian C Brown <brown.3794@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* allow admin to update `provider` & `external_id`
* remove unused external_id field
* test for provider and external_identifier
* remove unused test code
* Check original field name when aliased
* Rename to aliasMap
* Extract original field name
* Refactor for legibility
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Fix linting
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Fix date functions for databases not in UTC timezone
* Fix passing raw date objects to DB
* Add unit test
* Use global timezone for mysql and maria
* Fix unit test timezone inconsistency as date object is in local timezone
* Date and datetime fields should be in local timezone
* Fix missing padStart in local string
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* use a different constraint name whyen recreating constraints for cockroachdb
* implement cockroach specific logic in the appropriate helper
Co-authored-by: ian <licitdev@gmail.com>
* fix email base template footer link
* fix logo box to be square
* clean up unused classes & attributes
* only add url if user has app access
* add test for notifications service
* re-add database mock
* attempt to fix mock in test
* mock PUBLIC_URL
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Update last payload when triggering array values
* Reuse keyedData when triggering other flows
* Expose flows data chain variables in run script operation
* Fix unit test
* Separate context for child flows
* Remove global variables from run script operation
* Simplify by using omit
* Update last payload when triggering array values
* Reuse keyedData when triggering other flows
* Expose flows data chain variables in run script operation
* Fix unit test
* Separate context for child flows
* Remove global variables from run script operation
* Simplify by using omit
* Default virtual fields as alias type
* Make the condition more verbose instead of defaulting
* Remove unnecessary optional chaining
* Add tests
* Revert to alias defaulting in #d06d62
* Shift condition up
* Remove dev dependencies when running blackbox tests
* Install dev dependencies in workspace root to run tests
* Shift dependency to see if tests fail
* Revert dependency shifting test
* Remove specifying of shell
* New translations en-US.yaml (Turkish)
* New translations en-US.yaml (Italian)
* New translations en-US.yaml (Hungarian)
* New translations en-US.yaml (Arabic)
* New translations en-US.yaml (Spanish, Latin America)
* New translations en-US.yaml (German)
* new saml branch
* put saml info back in
* put saml info back in
* clean up code
* validate saml config
* validate schema
* Add saml auth flow tests
* use RelayState for redirects
* Update tests for RelayState
* Fix linting
* remove validateMeta as samlify does it already
* Fix linting
* change catch on login
* Update api/src/auth/drivers/saml.ts
Co-authored-by: Aiden Foxx <aiden.foxx.mail@gmail.com>
* remove login since not needed here
* clear cookie if set on logout
* empty login method
* invalidate logout in db
* if relayState and login failed, redirect back with a reason
* Cleanup linter warnings
* Remove range from packages
* Opinions opinions opinions opinions
Just a couple personal opinion cleanup pieces
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Aiden Foxx <aiden.foxx.mail@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Allow both POST and GET responses in OAuth flow
* Be more explicit about which method we fetch OAuth data from
* Removed unnecessary error handling in OAuth router
* Fixed method check in OAuth router
* Simplified method check
* Added POST support to OpenID flow
* Prefer redirect on OpenID POST to retain LAX cookie policy
* Prefer redirect on OAuth2 POST to retain LAX cookie policy
* Update api/src/auth/drivers/oauth2.ts
* Update api/src/auth/drivers/openid.ts