167 Commits

Author SHA1 Message Date
Rémi de Juvigny
4fb36a97d4
fix: adding component to dynamic zone overwrites data (#22656)
* fix: add component to dz at position

* fix: dz component more menu alignment

* test: add e2e test case

* chore: remove commented code

* test: add last position check

* fix: use theme value for padding

* test: force click menu items

* fix: use ds values for theme

* fix: make button a span

* chore: remove unused var

* fix: try force true

* fix: try dispatch click event

* fix: add above first
2025-01-21 04:42:29 -05:00
Jamie Howard
76a9dc5ca6
fix(i18n): allow unique + un localized fields on i18n content types (#22634) 2025-01-17 09:08:59 +00:00
Ben Irvin
7f7cfa5b39
test(e2e): text fields advanced settings (#22635) 2025-01-15 09:19:30 +01:00
Ben Irvin
0af49f5c5e
test(e2e): cleanup create-content (#22627) 2025-01-13 12:14:12 +01:00
Ziyi
8bfe95f44c
test(e2e): test for date picker (#22609) 2025-01-13 11:49:55 +01:00
Ben Irvin
1be05a65d0 Merge branch 'main' into releases/5.7.0 2025-01-08 15:41:19 +01:00
Rémi de Juvigny
110b429be2
feat: new admin homepage (#22346)
* feat: init new homepage with custom greeting (#22269)

* feat: init new homepage

* fix: e2e test

* chore(homepage): move guided tour (#22338)

* enhancement: create homepage widget component

* enhancement(homepage): create recently edited documents endpoint (#22355)

* chore: init recent documents route and controller

* enhancement: add recently updated docs endpoint

* chore: add endpoint types

* chore: add api tests

* fix: ts build

* enhancement: add generic widget component

* enhancement: add homepage recently edited widget

* chore: add compound component

* fix: unit test

* enhancement: add no data state

* enhancement: add no data variant

* future(homepage): add generic widget component (#22369)

* enhancement: create homepage widget component

* enhancement: add generic widget component

* chore: add compound component

* fix: unit test

* enhancement: add no data variant

* fix: widget height

* enhancement(homepage): get recent publish activity (#22377)

* chore: tracking and a11y improvements

* chore: add e2e tests

* fix: more cache invalidation

* chore: update api tests

* fix: remove cm dependency

* fix: broken status

* enhancement(home): add recently published widget (#22391)

* fix(home): replace title documentId with document title (#22403)

* fix(home): make locale defined or null to get the correct status (#22405)

* fix(homepage): make back button work when document has a locale (#22450)

* release: 5.6.0

* Revert "release: 5.6.0"

This reverts commit 77ad0efc79afd9777d140f84e8abc47cda26d1d9.

* release: 5.6.0

* fix(homepage): add missing styles for error, loading, and empty states (#22448)

* fix(homepage): add missing styles for error, loading, and empty states

* fix: always include title and icon

* chore: refactor to not rerender static content

* chore: reuse table component

* fix: single type link

---------

Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>

* fix: minor ui issues

* fix: hide doc status when no d&p (#22409)

* fix: hide doc status when no d&p

* enhancement: show dash instead

---------

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

* v5.7.0-beta.0

* fix: package versions

* fix: package version

---------

Co-authored-by: Mark Kaylor <mark.kaylor@strapi.io>
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2025-01-06 10:03:49 -05:00
Ben Irvin
146a31b564
test(e2e): add create content tests (#22395)
* test(e2e): add dynamic zone to collection type

* test(e2e): use category from test data

* test(e2e): comments

* test(e2e): remove dz options, add avanced options types

* revert: merge mistake

* revert: merge mistake

* test(e2e): init create content test utils

* test(e2e): fix flaky api-tokens test

* test(e2e): remove debugging code

* test(e2e): init dz tests

* test(e2e): fix support for adding comps to dz

* test(e2e): validate dz fields

* test(e2e): options for testing validation

* test(e2e): test dragging components locations

* test(e2e): support adding components and dz to same ct

* chore: remove unused method

* test(e2e): fix create components

* revert: undo clickAndWait in createAPIToken

* chore: remove unused imports

* test(e2e): resize viewport to fit all elements in dragElementAbove

* test(e2e): fix visibility resizing util for webkit

---------

Co-authored-by: Ziyi <ziyi.yuan@strapi.io>
2024-12-20 17:52:21 +01:00
Marc Roig
dbe0985469
Releases/5.6.0 (#22471)
* feat: add content preview (remove future flag)

* chore: fix tests

* test(e2e): components and dz in create collection type (#22374)

* feat(content-manager): add syntax highlighting in the code block type in the Blocks field original solution (#22332)

* feat: install prismjs

* feat(content-manager): add highlights to code block using Prismjs

* feat(content-manager): remove screen debug

* feat(content-manager): extends render leaf props

* feat(content-manager): fix build issue

* feat(content-manager): move prismjs theme import

* feat(content-manager): change theme

* feat(content-manager): theme import minimized

* feat(content-manager): import prismjs types

* feat(content-manager): change gh action config

* feat(content-manager): revert the admin bundle size code

* feat(content-manager): remove console log

* feat(content-manager): change import theme

* feat(content-manager): remove theme

* feat(content-manager): change imports

* feat(content-manager): change prismjs import

* feat(content-manager): try to find the issue in gh action

* feat(content-manager): add theme test

* feat(content-manager): add packup css plugin

* feat(content-manager): remove rollup

* feat(content-manager): add change threshold

* feat(content-manager): import Prism in Code component

* feat(content-manager): remove prismjs

* feat(content-manager): install prismjs

* feat(content-manager): add prismjs theme

* feat(content-manager): install prismjs in admin

* feat(content-manager): try to change Prism import

* feat(content-manager): add config file

* feat(content-manager): add prismjs vite config

* feat(content-manager): change rollup options

* feat(content-manager): modify vite config

* feat(content-manager): add manually prismjs

* feat(content-manager): revert prismjs logic

* feat(content-manager): fix build errors

* feat(content-manager): solve failing fe unit tests

* feat(content-manager): add threshold

* feat(content-manager): fix import default

* feat(content-manager): change vite config

* feat(content-manager): add vite plugin prismjs

* feat(content-manager): update vite config

* feat(content-manager): fix issue decorate

* chore: add prism in admin deps

* feat(content-manager): replace original solution prismjs

* feat(content-manager): remove useless prismjs dep in admin

* feat(content-manager): change prismjs version

* feat(content-manager): remove vite-plugin-prismjs

* feat(content-manager): remove useless duplications in constants file

* feat(content-manager): move some files

* feat(content-manager): fix review comments

* feat(content-manager): remove useless importPath property

---------

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>

* chore(deps): bump nanoid from 3.3.7 to 3.3.8 in /docs (#22389)

Bumps the npm_and_yarn group with 1 update in the /docs directory: [nanoid](https://github.com/ai/nanoid).


Updates `nanoid` from 3.3.7 to 3.3.8
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* security(deps): bump nanoid to 3.3.8 in yarn.lock (#22397)

* enhancement: update purchase page links (#22419)

* enhancement: update purchase page links

* chore: remove local tests

* chore: add newline

* enhancement(database): add repair manager with component deletion fix (#22267)

* fix: preview back button behavior (#22432)

* fix: multiple requests locale (#22273)

* fix: multiple requests locale

* fix: actions request

* fix: properly load locales

* fix: add status to localizations

* fix: remove unused types

* fix: front tests

* fix: add validation fields into localizations

* fix: validatable attributes

* fix: select nested fields when populating localizations

* fix: uncomment localizations populate

* fix: document-metadata

* fix: empty populate

* fix: revert to original proposal

* fix: do not select document ids on components (#22330)

* fix: do not select document ids on components

* chore: unit test

* fix: metadata test

* fix: populate

* fix: default fields

* fix: show current locale when bulk publishing

* fix: create locale

* Update packages/core/content-manager/server/src/services/document-metadata.ts

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* fix: add component button style (#22425)

* fix: add-component-button-style

* fix: made it prettier

* fix: optimizations

* fix(blocks): various ui issues (#22423)

* fix: blocks-ui-fixes

* fix: made it prettier

* fix: optimizations

* fix: remove double conversion that causes date shift (#22410)

* fix: remove double conversion that causes date shift

* fix: remove useless files

* release: 5.6.0

* Revert "release: 5.6.0"

This reverts commit 77ad0efc79afd9777d140f84e8abc47cda26d1d9.

* release: 5.6.0

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Simone <startae14@gmail.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maxime Castres <17828745+Mcastres@users.noreply.github.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Lucas Boilly <45385696+lucasboilly@users.noreply.github.com>
Co-authored-by: Ziyi <ziyi.yuan@strapi.io>
2024-12-18 20:37:14 +01:00
markkaylor
dde42be580
fix(e2e): remove unused published product from the database (#22407)
* fix(e2e): remove unused published product from the database

* chore: remove old with-admin.tar
2024-12-18 04:43:50 -05:00
Rémi de Juvigny
d416a775c5
Merge branch 'develop' into chore/rm-preview-flag 2024-12-11 09:51:43 +01:00
Ben Irvin
4afb25b825
test(e2e): components and dz in create collection type (#22374) 2024-12-10 16:17:50 +01:00
Ben Irvin
b459504b7b release: merge branch 'main' into develop 2024-12-04 17:23:32 +01:00
Ben Irvin
82460d7ac3
release: 5.5.0 (#22340)
* feat: use mux player for video

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* chore(deps): bump @strapi/design-system from 2.0.0-rc.13 to 2.0.0-rc.14 (#22274)

* enhancement: disable preview link when changes are not saved (#22275)

* feat: send diagnostic messages from remote strapi (#22214)

* chore: re-add some controls

* chore: test-snapshots

* ci: use correct fetch-depth (#22288)

* test(front): update snapshots

* ci: use correct fetch-depth

* Chore: setting up nx releases (#22264)

* chore(deps): update @strapi/pack-up to v5.0.2 (#22261)

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>

* Fix: move msw to devDeps and change koa range (#22129)

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>

* chore: remove yarn.lock from templates/website (#22294)

* fix: turn on and update i18n settings.spec.ts (#22282)

* chore: use "workspace:*" for internal dependencies (#22303)

* chore: use "workspace:*" for internal dependencies

* chore: update yarn lock

* ci: fix docs_build (#22304)

* ci: fix docs_build

* ci: run docs_build on global changes

* chore: upgrade vite-plugin-dts (#22297)

* fix: document actions being rendered multiple times (#22283)

* chore: update sdk-plugin and dedupe yarn.lock (#22296)

* chore: cleanup removing support for assets without metadata (#22215)

* Update: Purchase Page links + Add Content History menu link (#21531)

* Update: Purchase Page links + Add Content History menu link

* enhancement:Update Purchase Page links + Add Content History menu link

* enhancement: update purchase page links

* chore: update links

---------

Co-authored-by: Simone <startae14@gmail.com>

* fix: add documentId to `me` graphql query (#22321)

* fix(preview): page title and disabled link (#22324)

* fix: add preview title tag to get browser tooltip

* fix: same header title as edit view

* fix: disabled preview button

* chore: remove useless variable

* fix: broken hover in e2e tests

* fix: prevent flaky iframe src check

* release: 5.5.0

* release: update missed version numbers

* release: update yarn.lock

* release: use workspace for internal packages

* release: update yarn.lock

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Jonas Thelemann <e-mail@jonas-thelemann.de>
Co-authored-by: Adrien Foulon <6115458+Tofandel@users.noreply.github.com>
Co-authored-by: Maxime Castres <17828745+Mcastres@users.noreply.github.com>
Co-authored-by: Simone <startae14@gmail.com>
Co-authored-by: Laurens Kling <laurens@goedideemedia.nl>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2024-12-04 16:15:06 +01:00
Rémi de Juvigny
59cb734ff4 chore: fix tests 2024-12-04 10:02:35 +01:00
Ben Irvin
555a72384e
test(e2e): add update and delete content type tests (#22325) 2024-12-03 09:07:47 +01:00
Rémi de Juvigny
03640aa70e
enhancement: cmd+enter and ctrl+enter to save entry (#22311)
* enhancement: keyboard shortcuts to save entry

* chore: add e2e test

* chore: restore validate fn

* fix: don't register cmd+s for arc browser

* fix: remove cmd+s and ctrl+s
2024-12-02 12:03:22 -05:00
markkaylor
d1d589380e
fix: turn on and update i18n settings.spec.ts (#22282) 2024-11-28 16:06:34 +01:00
Bassel Kanso
d65d44102f
feat: send diagnostic messages from remote strapi (#22214) 2024-11-26 15:57:02 +02:00
Rémi de Juvigny
25e4c58708
enhancement: disable preview link when changes are not saved (#22275) 2024-11-26 08:10:09 -05:00
markkaylor
c91f2b4a2b
fix(e2e): wait for relation response before saving (#22245) 2024-11-25 09:17:41 +01:00
markkaylor
185e16fdc3
fix(content-manager): navigate when publishing AND creating document (#22231) 2024-11-21 17:38:20 +01:00
Marc Roig
780730225a
chore: e2e test for preview (#22190)
* chore: e2e test for preview

* fix: comments
2024-11-20 13:55:42 +01:00
markkaylor
57121fdbd9
chore(e2e): turn on the i18n editview.spec.ts tests (#22217) 2024-11-20 11:54:36 +01:00
markkaylor
502b1e2079
fix(e2e): use clickAndWait to ensure the page is ready (#22216) 2024-11-20 10:57:49 +01:00
Ben Irvin
eedb036f0a
test(e2e): add content search test suite (#22209) 2024-11-19 17:09:22 +01:00
Ben Irvin
f4ae0b6b92
test(e2e): fix flaky ctb tests (#22204)
* test(e2e): fix flaky edit-single-type test
* test(e2e): fix flaky edit-collection-type
2024-11-19 12:01:27 +01:00
Ben Irvin
51bdcd0aa9
test(e2e): improve efficiency of collection-type test (#22178) 2024-11-18 09:06:45 +01:00
markkaylor
4119cc523a
fix(e2e): update data import and export scripts (#22071) 2024-11-12 18:04:44 +01:00
Marc Roig
af7e4e2471
wip: static preview draft & publish tabs (#22025)
* feat: preview tabs

* fix: re organize imports

* fix: tabs label text

* fix: import

* fix: preview close button (#22027)

* fix: preview close button

* chore: remove function

* fix: typescript error

* fix: pr suggestions

* fix: padding

* fix: use paddings

* fix: pr suggestions

* fix: align to end

* chore: e2e test

* chore: remove margin bottom from tab

* chore: do not use style tag

* fix: remove unused align

* chore: update component locator to getByRole
2024-11-12 10:02:46 +01:00
Rémi de Juvigny
51881c1956
chore: make ctb tests no longer rely on test order (#22103)
* fix: ctb e2e test creating fields that already exist

* chore: make ctb tests no longer rely on test order

* chore: update sharedSetup warning
2024-11-08 11:02:12 -05:00
Ben Irvin
77e66829c8
test(e2e): add update components tests and update playwright (#22033) 2024-11-06 13:48:19 +01:00
Ben Irvin
973df62640
test(e2e): add tests for create component (#21925) 2024-11-05 12:02:37 +01:00
markkaylor
5c463a4f33
fix(e2e): enable e2e tests in editview.spec.ts (#21986) 2024-11-04 11:12:15 +01:00
Fernando Chávez
906f82d718
feat(content-manager): integrate review workflows with releases (#21882)
* feat(review-workflows): adding required stage for publishing (#21380)

* feat(review-workflows): adding required stage for publishing

* fix(review-workflows): fixs on rw required stage

* fix(review-workflows): selected required stage when stage name changed

* fix(review-workflows): bug when creating new rw

* feat(review-workflows): check entry stage before publish (#21400)

* feat(content-releases): add stage check to releases details page (#21497)

* feat(content-releases): add stage check

* fix(content-releases): apply suggestions on releases x review workflows

* feat(content-releases): considered review stage when getting the action status (#21612)

* feat(content-releases): considered review stage when getting the action status

* fix: apply changes to reviewWorkflows on schema

* fix: add api test for review workflows publish stage

* fix: api tests

* fix: validation message errors (#21878)

* feat: add workflowId & hasRequiredStageToPublish to workflows metrics events (#21897)

* fix(content-releases): skip flaky test

* fix: update accessible name in history.spec.ts

---------

Co-authored-by: Mark Kaylor <mark.kaylor@strapi.io>
2024-11-04 10:18:40 +01:00
markkaylor
f5312617ca
fix(e2e): update blocks e2e tests (#22010) 2024-10-29 14:25:04 +01:00
Pierre Levavasseur
36632203b1
fix: single type name not applied in the content manager (strapi#20844) (#21430) 2024-10-28 11:06:28 -04:00
Marc Roig
f8de0529b4
fix: releases page e2e (#21938)
* fix: releases page e2e

* chore: log e2e

* chore: use click and wait utility

* chore: test not waiting for redirect

* chore: change release name

* chore: log network error

* fix: comma

* fix: set timezone

* chore: remove logs

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2024-10-28 14:41:10 +01:00
Rémi de Juvigny
f6dca5adf0
enhancement: add preview page header (#21983)
* enhancement: add preview header

* chore: use translations for document status

* chore: add comment with Status comp plan

* chore: update e2e tests

* fix: e2e test

* Update tests/e2e/tests/content-manager/preview.spec.ts
2024-10-25 11:12:35 -04:00
markkaylor
c70b83067f
fix(e2e): enable e2e bulk action tests in listview.spec.ts (#21980) 2024-10-25 14:08:44 +02:00
markkaylor
882aa56307
fix(e2e): enable tests for release-details-page.spec.ts (#21969)
* fix: update dataset to remove release action duplicates
* fix: return draft if a document has not been published yet
2024-10-25 10:07:53 +02:00
Rémi de Juvigny
6d1431fe2a
enhancement: create dedicated preview page (#21965)
* enh: add preview page and navbar

* chore: remove header

* chore: update e2e tests

* chore: remove getDocumentStatus export

* fix: error state
2024-10-24 12:15:35 -04:00
Rémi de Juvigny
c5ae9675f5
chore: re-enable blocks e2e test (#21966)
* chore: re-enable blocks e2e test

* fix: skip firefox
2024-10-24 12:09:03 -04:00
Rémi de Juvigny
6ed779c066
chore: set up preview e2e tests (#21912)
* chore: set up preview e2e tests

* fix: webkit permissions

* fix: webkit permission

* fix: disable clipboard check on webkit

* fix: remove clipboard check
2024-10-23 08:22:48 -04:00
Jamie Howard
4cf36024d8
fix(e2e): remove webkit skip conditions (#21611)
* fix(e2e): remove webkit skip conditions

* chore: revert uniqueness spec to test others on ci

* fix(e2e): ctb navigation

* chore: ci config to speed up testing

* chore: revert lock

* chore(e2e): wip add webkit waiting

* chore: single out history spec changes for ci

* chore(e2e): use new webkit navigation for all affected test files

* chore(e2e): revert e2e ci config so all tests run again

* chore(e2e): temp skip uniqueness to test others

* chore(e2e): revert so all tests run again

* chore(e2e): re-skip uniqueness in webkit

* chore(e2e): revert workflow yaml

* chore(e2e): pr feedback

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-10-17 16:19:03 +01:00
Rémi de Juvigny
ee56af7ae2
chore: re-enable history e2e tests (#21739)
* fix: reenable history api tests

fix: flaky findAndClose

fix: close notifications

* chore: add test workflow filters for each test type

* chore: fix node versions

* fix: match format of test.yml

* revert: don't add test_result to skipped_tests

* fix: add new outputs vars

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
2024-10-15 08:12:54 -04:00
Rémi de Juvigny
c69a9fec98
fix: broken list view pagination (#21800)
* fix: broken list view pagination

* chore: add list view pagination e2e test
2024-10-11 11:19:53 -04:00
Lucas Boilly
9fd5425377
fix: changed empty components wording (#21630)
* fix: changed empty components wording

* fix: updated selectors

* fix: made it prettier
2024-10-10 05:49:04 -04:00
Ben Irvin
51d9cfeaec
enhancement: add support for Node 22 (#21467) 2024-10-09 09:52:15 +02:00
Ben Irvin
9c5567f4de
test(e2e): refactor ctb tests to enable on CI (#21464) 2024-09-27 08:58:38 +02:00