Commit Graph

13083 Commits

Author SHA1 Message Date
ian
376adba912 Update tests/loadtests/src/index.ts 2025-08-06 22:19:15 +08:00
Nitwel
25e4d0de72 move over load tests 2025-08-06 15:05:24 +02:00
Gloria Rodríguez
425d228f22 Allow user select text (#25510)
Co-authored-by: Florian C. Wachmann <dev@formfcw.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2025-08-06 10:19:16 +02:00
Rijk van Zanten
ac548e6436 Add permissions to gh actions (#25603) 2025-08-05 15:27:21 -04:00
Rijk van Zanten
7fb2c57882 Setup dependabot (#25584) 2025-08-05 15:05:14 -04:00
Rijk van Zanten
21f85040ea Run formatter (#25604) 2025-08-05 14:52:35 -04:00
Tim Butterfield
6c3e76f29b Raw group batch mode missing (#25600) 2025-08-05 13:26:58 +02:00
Rijk van Zanten
7d2310badd Finish dependency move (#25583)
* Dangerously update API deps

* Dangerously move app dependencies to pnpm-workspace

* Move all dependencies to catalog

* Sort catalog

* Pnpm update

* Use pnpm 10.14

* Update for zod breaking change

* Fix unhead breaking change

* Downgrade major api upgrades

* Downgrade app major upgrades

* Fix app tests

* Downgrade isolated-vm

* Add changeset

* Fix template in head

* Resolve unhead lang signature

* Downgrade unhead

* Downgrade keyv/redis

It uses a different redis lib under the hood which is incompatible

* Resolve import in test

* Update and move workspace root dependencies

* Update CSS for updated linter rules

* Oops

* Run formatter

* Update rule name

* Run prettier

* Move utils peer to catalog

* Add focus-trap dependency
2025-08-04 18:13:12 -04:00
Copilot
ad407d60c5 Fix code-interface crash when language is reset to null (#25595)
* Initial plan

* Fix code-interface null language handling - prevent .toLowerCase() error

Co-authored-by: rijkvanzanten <9141017+rijkvanzanten@users.noreply.github.com>

* Update tests to pass

* Add changeset

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rijkvanzanten <9141017+rijkvanzanten@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2025-08-04 15:45:26 -04:00
Rijk van Zanten
667d9a8ef3 Update pull_request_template.md 2025-08-04 14:59:12 -04:00
daedalus
89365a14a7 Fix admin users email not trimmed on project initialization (#25465)
* Trim first user email on setup

* add changeset

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2025-08-04 14:55:38 -04:00
Jens Kuerschner
833892e92e Add the ability to override the email from property (#25459)
* add override option for mailer service extensions

* added changeset

* sign cla

* optimize mailer "pooling"

* Adjust to allow smtp without pass as the default does

* Fixing format issues

* Optimize caching by following codeRabbit recommendations + formatting

* Optimize new type

* Reducing changes to FROM override only

* add unit tests

* Fixing micro format issue

* optimizations

* simplify tests

* update changeset wording

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2025-08-04 13:46:39 -04:00
ian
f855178ec9 Purge legacy docs (#25594) 2025-08-05 01:44:13 +08:00
Rijk van Zanten
12cad6ffd6 Delete .github/DISCUSSION_TEMPLATE/docs-suggestions.yml 2025-08-03 11:54:27 -04:00
Rijk van Zanten
c9b81e51a4 Update and move 'simple' dependencies (#25580)
* Update and move 'simple' dependencies

* Add changeset
2025-08-01 14:36:51 -04:00
daedalus
2836948dab Update dependency form-data (#25579)
* update form-data

* update subdep form-data

* add changeset

* add form-data to catalog
2025-08-01 19:26:36 +02:00
Brainslug
2a33ebe8c5 Update tar-fs dependency (#25338)
* override tar-fs nested dependency

* Create cool-pants-eat.md

* fixed pnpm lock

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2025-08-01 12:09:20 -04:00
Rijk van Zanten
3491af9de4 Make tests deterministic, remove @directus/random (#25575)
* Make tests deterministic by dropping random

* Remove random dep

* Drop random package

* Update pnpm lock

* Update app/src/composables/use-permissions/collection/lib/is-action-allowed.test.ts

---------

Co-authored-by: Alex Gaillard <alex@directus.io>
2025-07-31 17:16:40 -04:00
ian
9815eb4e50 Update CODEOWNERS (#25572)
* Update CODEOWNERS

* Update CODEOWNERS
2025-07-31 13:38:52 -04:00
Matthew Rumery
17bf9be79e Add Services Type support for @directus/extensions (#25368)
* feat: add services type

* refactor: replace UserIntegrityCheckFlag from @directus/types

* refactor: replace AbstractServiceOptions from @directus/types

* refactor: replace MutationOptions from @directus/types

* refactor: replace ActionEventParams from @directus/types

* refactor: replace AbstractService from @directus/types

* refactor: replace Webhook from @directus/types

* refactor: replace Range, Stat, ReadOptions, & ChunkedUploadContent from @directus/types

* refactor: replace asset types from @directus/types

* refactor: replace LoginResult from @directus/types

* refactor: replace snapshot types from @directus/types

* refactor: replace Action & PayloadServiceProcessRelationResult from @directus/types

* refactor: replace ExportFormat from @directus/types

* refactor: replace database types from @directus/types

* feat: implement ExtensionsServices within @directus/extensions

* feat: replace QueryOptions from @directus/types

* fix: formatting issue

* fix: adjust extensions services type

* fix: generic type for each service

* fix: typescript errors for missing imports

* refactor: update ReadOptions & ChunkedUploadContext type exports to pull from @directus/types

* refactor: move DirectusError to @directus/types & add DirectusExtensionsError to @directus/types

* feat: add MailService, GraphQLService, SpecificationService, and move required exports to @directus/types

* refactor: move extension types to @directus/types

* refactor: move extension constants to @directus/constants

* refactor: adjust type imports for @directus/composables

* refactor: adjust imports for @directus/extensions-registry

* refactor: adjust import for @directus/errors

* refactor: adjust imports for @directus/themes

* refactor: adjust imports for @directus/extensions-sdk

* refactor: adjust imports for studio app

* feat: implement ExtensionService and migrate types to @directus/types

* fix: revert sdk type changes

* fix: reexport types moved from @directus/extensions to @directus/types

* fix: remove @directus/themes from @directus/extensions

* refactor: move AppField to fields file

* chore: remove @directus/themes from @directus/types

* chore: remove @directus/extensions from @directus/types

* fix: rebase issue with DirectusError generic

* chore: remove @directus/types from sdk

* fix: add missing exports to original packages

* fix: update getAppExtensionChunk return type

* chore: revert DirectusError changes

* chore: revert Collection fields key

* refactor: rename RawSchemaCollection to ApiCollection

* fix: add RawCollection from @directus/types

* fix: import GraphQLParams from @directus/types

* fix: formatting issue

* chore: add changeset

* chore: revert rename of ApiOutput

* Update .changeset/purple-crews-sink.md

* Update .changeset/purple-crews-sink.md

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update .changeset/purple-crews-sink.md

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update .changeset/purple-crews-sink.md

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update .changeset/purple-crews-sink.md

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update .changeset/purple-crews-sink.md

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update .changeset/purple-crews-sink.md

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update .changeset/purple-crews-sink.md

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

* fix: rebase pnpm-lock error

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Alex Gaillard <alex@directus.io>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2025-07-31 12:54:50 -04:00
Rijk van Zanten
c70858512e Drop token from upload coverage (#25571) 2025-07-31 12:10:17 -04:00
Rijk van Zanten
d8cd3a6c49 Update & move deps for @directus/extensions-sdk (#25564)
* Update & move deps

* Add changeset;
2025-07-30 17:44:46 -04:00
Rijk van Zanten
8b1424484d Update dependencies and tests for @directus/extensions-registry (#25563)
* Upgrade and move deps

* Add docblock

* Gen tests

* Gen docs & tests

* Gen docs & tests

* Add changeset
2025-07-30 17:29:33 -04:00
Rijk van Zanten
68c92b481e Move error packages dependencies (#25562)
* Move errors deps to workspace catalog

* Move errors deps to workspace catalog

* Add changeset
2025-07-30 16:37:48 -04:00
Rijk van Zanten
31fad759d7 Move and update deps for @directus/env (#25561)
* Update dependency

* Add changeset
2025-07-30 16:33:33 -04:00
Rijk van Zanten
fb4c92c923 Dependencies & tests for create-directus-project (#25559)
* Move and update dependencies

* Gen tests for check-requirements

* Add test coverage to create-directus-project

* Fix typescript issues in index file

* Add changeset
2025-07-30 16:11:50 -04:00
Rijk van Zanten
08456dced9 Upload codecov files with flags for packages (#25551)
* Upload codecov files with flags for packages

* Remove unused env

* Increase fetch-depth

* Pipeline bashing here we go

* Fail on failure and don't upload everything always

* Show flags in pr comment
2025-07-30 16:11:16 -04:00
Alex Gaillard
e109a6f2d6 Release 11.10.0 (#25557) v11.10.0 2025-07-30 17:12:15 +00:00
Rijk van Zanten
1899ed9035 New Crowdin updates (#25398)
* New translations en-us.yaml (Spanish, Mexico)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Spanish, Mexico)

* New translations en-us.yaml (Russian)

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

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Lithuanian)

* New translations en-us.yaml (Portuguese)

* New translations en-us.yaml (Albanian)

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

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

* Update source file en-US.yaml

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

* New translations en-us.yaml (French)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Spanish, Mexico)

* New translations en-us.yaml (Thai)

* New translations en-us.yaml (Russian)

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

* New translations en-us.yaml (Romanian)

* 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 (Finnish)

* New translations en-us.yaml (Hungarian)

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Japanese)

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Lithuanian)

* New translations en-us.yaml (Mongolian)

* New translations en-us.yaml (Polish)

* New translations en-us.yaml (Slovak)

* New translations en-us.yaml (Slovenian)

* New translations en-us.yaml (Albanian)

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Turkish)

* New translations en-us.yaml (Ukrainian)

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

* New translations en-us.yaml (Indonesian)

* New translations en-us.yaml (Persian)

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

* New translations en-us.yaml (Marathi)

* New translations en-us.yaml (Croatian)

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

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

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

* New translations en-us.yaml (Esperanto)

* New translations en-us.yaml (Bosnian)

* New translations en-us.yaml (Nepali)

* New translations en-us.yaml (Kurmanji (Kurdish))

* New translations en-us.yaml (Sorani (Kurdish))

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

* Update source file en-US.yaml

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Turkish)

* New translations en-us.yaml (Turkish)

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Dutch)

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

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Korean)

* Update source file en-US.yaml

* New translations en-us.yaml (Afrikaans)

* New translations en-us.yaml (Azerbaijani)

* New translations en-us.yaml (Azerbaijani)

* Update source file en-US.yaml

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Persian)

* Fix pt language string

* Fix lt placeholder

* Remove empty strings

* Update source file en-US.yaml

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Lithuanian)

* New translations en-us.yaml (Portuguese)

* New translations en-us.yaml (Albanian)

* Fix translation errors

* Fix more translation errors

---------

Co-authored-by: Alex Gaillard <alex@directus.io>
2025-07-30 12:55:51 -04:00
Florian C. Wachmann
ef37bf6409 Fix bug with invalid input in v-input (#25548) 2025-07-30 17:09:12 +02:00
Rob Luton
6ede974204 fix issue of icons getting cutoff (#25555) 2025-07-30 13:35:30 +00:00
Florian C. Wachmann
f4eb199c19 fix positioning of notifications on smaller viewports (#25553) 2025-07-30 08:34:04 -04:00
Rijk van Zanten
0d5458e578 Update dependencies in create-directus-extension (#25550)
* Pull inquirer from catalog

* Only run when not in a test

* Add vitest

* Add test coverage for index file

* Add vitest config

* Add changeset

* Run w/ prettier
2025-07-29 17:48:46 -04:00
Rijk van Zanten
fffe988275 Upgrade dependencies and add tests to @directus/composables (#25545)
* Update dependencies and move to catalog

* Add use-collection test

* Add 100% test coverage for use-collection

* Add tests for use-custom-selection

* Add tests for use-custom-selection

* Update workspace packages

* Make tests work with vitest 3

* Gen use-element-size tests

* Gen tests for use-filter-fields

* Gen tests for use-groupable

* Run formatter

* Run formatter some more

* Match node type to engine in package.json

* Gen tests for use-layout

* Gen tests for useSizeClass

* Gen tests for use-sync

* Add deprecation warning to useSync

* Gen tests for use-system

* Run formatter

* Update types for node type update

* Run formatter

* Add changeset
2025-07-29 16:43:47 -04:00
Rob Luton
dacaef8804 Upgrade to latest material symbols (#25512) 2025-07-28 22:32:28 +02:00
Rob Luton
dde586c93e Fix issue preventing click events from working when sorting items (#25503) 2025-07-28 20:33:43 +02:00
Rijk van Zanten
a773087ba0 Remove empty components package (#25542) 2025-07-28 18:17:28 +00:00
Rijk van Zanten
4f94a26b56 Add native support for RTL direction (#25494)
* Setup language_direction user setting

* Add option translations

* Add rtl const

* Return dir from getCurrentLanguage

* Set htmlAttrs for lang / dir

* Update tests, fix fallback

* Add test:watch script

* Add rtl transform in icon file

* Make sure the progress bar animates rtl

Devil's in the details

* Make sure sidebar animates correctly on smaller screens

* Care too much about the details

* Fix directionality on slider

* Fix drawer transitions

* Arrow alignment in settings

* Stacked drawers effect

* Full screen navigation

* Revert menu alignment

* Fix nudging on smoke click

* Add changeset

* Update app/src/components/v-menu.vue

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Format

* Format rebased work

* One more formatting quirk

* Update app/src/lang/translations/en-US.yaml

Co-authored-by: Florian C. Wachmann <dev@formfcw.com>

* Update .changeset/giant-cloths-play.md

Co-authored-by: Florian C. Wachmann <dev@formfcw.com>

* Add translation

* Remove importants

* Improve typing in get-current-language

* Update app/src/views/private/private-view.vue

Co-authored-by: Florian C. Wachmann <dev@formfcw.com>

* Update app/src/views/private/private-view.vue

Co-authored-by: Florian C. Wachmann <dev@formfcw.com>

* Fix tooltip directions

* Refactor user store to setup script

* Add language/dir to userStore

* Replace getCurrentLanguage w/ userStore

* Make html attrs reactive

* Rename language_direction to text_direction

* Appease the robot overlords

* Add text-direction to user type

* Make text-direction not nullable

* Fix arrow alignment

* fix top tooltips

* run formatter

* mirror directional icons

* Fix positioning for rtl

* Fix flow attachments

* Replace magic number with const

* Start refactoring arrows business logic

No way to properly write unit tests for these bits otherwise. Increases the surface of this PR quite a bit, but feels like a necessary evil...

* Move minMaxPoint to separate file

* Move is-point-in-panel out

* Move generateCorner to separate file

* Update docs

* Move range function out

* Move find-best-position to separate file

* Move get-points to separate file

* Move generate-path out of main fn

* Move create-line to separate file

* Rewrite docblock

* Add tests for generate arrows

* Make sure icons are only mirrored in rtl

* Add RTL for flow arrows

* Run formatter

* Remove extraneous setLanguage calls

* Fix mocks

* Fix generate test

* Fix review notes

* Fix pinia test stubbing

* Fix test runner and add coverage for rtl

* Mock global pinia in v-info test

* Remove unused imports

* Remove unused type

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Florian C. Wachmann <dev@formfcw.com>
2025-07-28 13:59:32 -04:00
Rijk van Zanten
a524999cf2 Sort weights when constructing google font ID (#25452)
* Add test suite for use-fonts

* Fix multiple weights not being sorted

Fixes #25034

* Add changeset

* Support multi-word fonts

* Run formatter

* Accept deep partial in useFonts

* Update packages/themes/src/composables/use-fonts.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/themes/src/composables/use-fonts.test.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-28 13:53:06 -04:00
Florian C. Wachmann
f56d6c534e Improve a11y for anchors, iframes, labels and roles (#25531)
* remove redundant roles

* ensure field is labelled

* improve file input structure for better accessibility

* ensure iframes have title

* update snapshot

* add changset
2025-07-25 10:41:17 -04:00
Rob Luton
c24685449d add tooltip to copy icon associated with flow url endpoint (#25527) 2025-07-24 14:47:54 -04:00
ian
fc0942c51a Add PR checklist (#25525)
* Add PR checklist

* Update wording
2025-07-24 12:15:11 -04:00
Carmen Huidobro
0f3e01ceb7 Add blanket redirect for coming from Google Images (#25244)
Co-authored-by: ian <licitdev@gmail.com>
2025-07-24 10:59:00 -04:00
ian
82c2101cfb Add tested scenarios section to PR template (#25439)
* Add tested scenarios section to PR template

* KISS, simple list to start
2025-07-23 14:26:52 -04:00
Rijk van Zanten
89e58ffb0b Update config.yml 2025-07-23 14:19:52 -04:00
Nitwel
217520ffde Add support for bundling with Rolldown and improve app extensions loading by streaming from disk (#25317)
* stream app extensions from the filesystem instead of storing them in the heap

* cleanup

* temp commit

* fmt and cleanup

* rename import and remove rollup

* fix lock file

* add EXTENSIONS_ROLLDOWN to switch between roll-up/down

* add comment

* fmt

* Update .changeset/violet-sloths-shine.md

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

* Update api/package.json

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

---------

Co-authored-by: ian <licitdev@gmail.com>
2025-07-23 13:20:24 -04:00
Rob Luton
4464f6adc0 Fix save enabled in drawer when no changes made (#25469)
* o2m - fix save enabled by default

* m2o - fix save enabled by default

* changeset

* move code into existing composables

* combine conditionals

---------

Co-authored-by: Florian C. Wachmann <dev@formfcw.com>
2025-07-24 00:04:41 +08:00
Florian C. Wachmann
867b19ecfd Fix skip link using incorrect href (#25514)
* ensure skip link uses correct href in production

* add changeset

* add test
2025-07-23 11:02:58 -04:00
ian
6fe66bbc1b Update CODEOWNERS (#25509) 2025-07-22 15:56:15 +00:00
Hugues BUREAU
c254ff6a62 Add authenticate hook to WebSockets (#25344)
* feat: add websocket.authenticate filter

* docs: add websocket.authenticate to filters list

* chore: add 8byr0 to contributors

* feat: emit websocket.authenticate hook for all modes

* prefer accountabilityoverrides over ip

* default accountability to generated default

* add changeset

* Remove old doc changes

* Remove extra space

* requested changes

Co-Authored-By: Brainslug <br41nslug@users.noreply.github.com>

* rework emitter mock

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2025-07-22 11:30:10 -04:00