4 Commits

Author SHA1 Message Date
Rémi de Juvigny
5e751dbf11
feat: ai generated image metadata (#24422)
* feat: chat

feat: apply changes
feat: integrate with ctb

feat: marker

chore: remove comment

feat: new chat

feat: copy message

feat: upload modal

feat: upload file

feat: errors and stop chat

chore: refactor transforms
chore: format relations

chore: chat title

chore: remove architect dependency

feat: empt state

chore: improve text area focus

* feat: chat imports

feat: resizable text area
fix: re add chat
chore: translations
feat: env vars

fix: minor chat issues

feat: feedback

fix: rebase

feat: import folder

feat: limits

feat: attachments dropzone

chore: file attachments cleanup
chore: track chat id

feat: figma import

fix :token

feat: figma token
fix: attribute status when chat makes updates

feat: image upload

* feat: staging integration

* chore: remove logs

* feat: use tool call result instead of annotation

* fix: invalid component uid

* chore: chat input focus ring

* fix: ui issues

* fix: default draft and publish and do not modify singular name

* fix: minor transforms

* fix: linting

* test(front): update snapshots

* chore: fix misplaced getstarted project schema

* chore: remove unused import

* security: validate exact path of host

* fix: define process better for playwright to work

* fix: process env in vite config for playwright

* chore: use production url

* feat(ctb): Tracking events for AI Chat interaction (#23731)

* feat(content-type-builder): WIP tracking events for chat interactions

* fix: typescript build errors

* fix: event name and build errors

* chore: send ai key with analytics

* chore: actually send licenseKey

* chore: send ailicensekey with groupproperties

* fix: didStartNewChat

* chore: track new chats

* feat: enhance attachment type management in AI chat components

* fix: update chat status handling in ChatProvider component

* feat: add optional aiLicenseKey to Strapi interface

---------

Co-authored-by: Jamie Howard <jhoward1994@gmail.com>

* refactor: remove didusersendmessage tracking event (#23777)

* fix: merge conflict

* fix: send projectId to AI server

* feat: add a enabled config for AI features (#24060)

* feat: add getAiToken endpoint (#24172)

* feat: add getAiToken route

* fix: change route name, remove project id

* fix: type issue and fix schema

* feat: retrieve ai token from frontend (#24226)

---------

Co-authored-by: Jamie Howard <jhoward1994@gmail.com>

* fix: use primary500 for links in ai chat

* chore: migrate to AI SDK v5 (#24252)

* fix: migrate code for v5

* t:wq

* feat: push schemas to ctb

* chore: remove old code

* chore: remove ts-no-check

* chore: fix comment

* fix: ai server logs (#24318)

* test(back): fix error log tests

---------

Co-authored-by: Marc Roig <marc12info@gmail.com>

* fix: configure ai ctb csp middleware without overriding user or default config

* future(upload): generate image metadata on file upload (#24365)

* chore: create aiMetadata service with isEnabled

* chore: extract getAiToken to service

* fix: unit test

* future(upload): generate metadata with ai

* fix: ts build

* fix: only send images to ai server

* test: add unit tests

* fix: unit test

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* AI media lib bulk update (#24414)

* feat(packages): adding endpoint for bulk update

* feat(packages): linting

* feat(packages): adding tests

* feat(packages): cleanup

* feat: guided tour for ai ctb (#24411)

* feat(upload): adding aiMetadata into settings (#24468)

feat(upload): adding aiMetadata into settings

* feat: add AI upload modal (#24407)

* chore: create aiMetadata service with isEnabled

* chore: extract getAiToken to service

* fix: unit test

* future(upload): generate metadata with ai

* feat: add AI upload modal

* feat: add edit and delete to upload modal

* fix: remove sparkle icon on edit

* fix: add error handling

* chore: refactor ai upload modal reducer

* fix: catch ai token generation error

* chore: add useBulkEdit hook

* feat: connect to bulk edit endpoint

* fix: e2e test

* fix: ci in both ce and ee

---------

Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>

* feat(upload): applying ai enabled logic for media library (#24486)

feat(upload): applying ai enabled logic for media library

* fix: sparkle icon

* fix: set ai server prod url

* fix: default config to enabled

* fix: cursor moving to the end when editing text

* fix: upload in the right folder

* fix: close modal when deleting last item

* chore: use STRAPI_AI_URL everywhere

* fix: bulk upload from frontend

* fix: restore sparkle icon on inputs

* fix: unit test ci

* feat(upload): generating metadata from thumbnail (#24515)

* feat(upload): generating metadata from thumbnail

* feat(upload): fixing linting issue

* feat(upload): fixing tests and addressiing feedback

* feat(upload): fixing lint

* fix: check for cms-ai entitlement

* fix: tests

* fix: race condition failing front unit tests

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Bassel Kanso <bassel.kanso@strapi.io>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Jamie Howard <jhoward1994@gmail.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Ziyi <daydreamnation@live.com>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Araksya Gevorgyan <31159659+araksyagevorgyan@users.noreply.github.com>
Co-authored-by: Adrien L <thewebsdoor@gmail.com>
2025-10-07 06:14:34 -04:00
Alexandre Bodin
92055a7fb1 chore: use rollup
chore: fetch template only if name matches name convention

chore: linting

chore: fix tests

chore: fix npm scripts

test: try to fix test
2025-01-23 16:28:23 +01:00
Simone
ea6e3b80ab
chore: migrate media-library pages to Typescript (#21896)
* chore: migrate to TS AudoPreview component

* chore: migrate to TS PaginationContext component

* chore: migrate to TS Pagination component

* chore: migrate to TS PaginationFolder components

* chore: migrate to TS PaginationFooter index component

* chore: migrate to TS isSelectable util

* chore: migrate to TS PageSize component

* chore: migrate to TS DialogFooter component

* chore: migrate to TS Draggable component

* chore: migrate to TS ContextInfo component

* chore: migrate to TS ContextInfo test and index component

* chore: migrate to TS PreviewBox components file

* chore: migrate to TS DialogHeader component

* chore: migrate to TS RemoveFolderDialog

* chore: migrate to TS EmptyAssetGrid

* chore: migrate to TS EmptyAssets index file

* chore: migrate to TS AssetCardBase

* chore: migrate to TS AudioAssetCard component

* chore: migrate to TS DocAssetCard component

* chore: migrate to TS ImageAssetCard component

* chore: migrate to TS AssetCard unit tests

* chore: migrate to TS SearchAsset component

* chore: migrate to TS UploadProgress component

* chore: migrate to TS FromComputerForm component

* chore: migrate to TS FromUrlForm component

* chore: migrate to TS AddAssetStep component

* chore: migrate to TS VideoPreview component

* chore: migrate to TS VideoAssetCard component

* chore: migrate to TS UploadingAssetCard component

* chore: migrate to TS PreviewCell component

* chore: migrate to TS CellContent component

* chore: migrate to TS TableRows component

* chore: migrate to TS TableList component

* chore: migrate to TS SortPicker component

* chore: migrate to TS Option component with utils

* chore: migrate to TS EmptyStateAsset and CarouselAsset

* chore: migrate to TS CopyLinkButton component

* chore: migrate to TS CarouselAssetActions component

* chore: migrate to TS FolderGridList component

* chore: migrate to TS FolderCardContext

* chore: migrate to TS FolderCard component

* chore: migrate to TS FolderCardBody component

* chore: migrate to TS FolderCardBodyAction component

* chore: migrate to TS FolderCardCheckbox component

* chore: migrate to TS FolderCard unit test

* chore: migrate to TS getFilterList

* chore: migrate to TS FilterValueInput component

* chore: migrate to TS FilterTag

* chore: migrate to TS FilterList

* chore: migrate to TS EditFolderModalHeader component

* chore: migrate to TS AssetPreview component

* chore: migrate to TS CroppingActions component

* chore: migrate to TS RemoveAssetDialog component

* chore: migrate to TS ReplaceMediaButton component

* chore: migrate to TS AssetCard component

* chore: migrate to TS AssetGridList

* chore: migrate to TS PendingAssetStep component

* chore: migrate to TS SelectedStep component

* chore: migrate to TS PreviewBox component

* chore: migrate to TS SelectTree

* chore: migrate to TS SelectTree unit test

* chore: migrate to TS BulkMoveDialog

* chore: migrate to TS EditFolderContent component

* chore: migrate to TS FilterValueInput

* chore: migrato to TS CrumbSimpleMenuAsync

* chore: migrate to TS Breadcrumbs

* chore: migrate to TS Filters component

* chore: migrate to TS EditAssetDialog

* chore: migrate to TS CarouselAssets

* chore: migrate to TS UploadAssetDialog and BrowseStep

* chore: migrate to TS BrowseStep test

* chore: migrate to TS AssetDialog component

* chore: migrate to TS MediaLibraryDialog component

* chore: migrate to TS MediaLibraryDialog component

* chore: remove a useless type guard

* chore: fix small stuff

* chore: fix BulkMoveDialog unit test

* chore: fix some types

* chore: fix prettier problems

* chore: migrate to TS EmptyOrNoPermissions component

* chore: migrate to TS BulkDeleteButton component

* chore: migrate to TS BulkMoveButton component

* chore: fix prettier errors

* chore: migrate to TS reducer settings page

* chore: migrate to TS init in the settings page

* chore: fix review's comments

* chore: migrate to TS SettingsPage

* chore: migrate to TS init ConfigureTheView

* chore: migrate to TS the ConfigureTheView redux definition

* chore: migrate to TS ConfigureTheView Settings page

* chore: fix review comments

* chore: migrate to TS ConfigureTheView page

* chore: migrate to TS BulkDeleteButton and BulkMoveButton

* chore: migrate to TS EmptyOrNoPermissions

* chore: migrate to TS Header in MediaLibrary page

* chore: migrate to TS Header

* chore: migrate to TS BulkActions in App page

* chore: migrate to TS BulkActions

* chore: migrate to TS Filters component

* chore: migrate to TS MediaLibrary page

* chore: migrate to TS App page

* chore: migrate to TS index entry point

* chore: replace newConstants with constants and fix some configuration files

* chore: fix lint errors

* chore: fix build errors

* chore: fix review comments

* chore: remove tag from Header component

* chore: fix remaining eslint error, add todo to the ex index files

* chore: fix breadcrumbs error
2024-11-08 17:22:43 +01:00
Simone
cefde6fa13
chore: migrate media-library define shared contracts (#21439)
* chore: migrate and create config files for the migration

* chore: migrate test utils to TS

* chore: fix the typo

* chore: fix eslint errors

* chore: define the shared contracts
2024-09-26 11:51:07 +02:00