295 Commits

Author SHA1 Message Date
markkaylor
8264ee2035
feat(preview): save and publish document (#22902)
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2025-02-20 11:21:05 +01:00
Rémi de Juvigny
37494b34d1
fix: apply advanced permissions in content manager home widgets (#22921)
* fix: apply permission conditions in content manager home widgets

* chore: extract getPermissionChecker
2025-02-18 11:18:52 -05:00
Ben Irvin
f0bec13467
fix: password validation tests (#22904) 2025-02-17 16:14:50 +01:00
Ben Irvin
082492f357 Merge branch 'develop' into advisory-fix-1 2025-02-14 10:59:05 +01:00
markkaylor
2a1c7a281f
fix: flaky tests (#22829) 2025-02-13 14:35:38 +01:00
Alexandre BODIN
a6235c371b
fix: ctb reload state after save & delete (#22805) 2025-02-10 16:12:25 +01:00
Rémi de Juvigny
8a76e00846
future: add edit form to preview page (#22823)
* future: add edit form to preview page

* fix: permissions
2025-02-07 09:29:07 -05:00
Lucas Boilly
baaccab18d
fix: ui issues of the avatar button (#22457)
* fix: ui issues of the avatar button

* fix: moved spread props

* fix: updated failing logout test

* updated test

* fix: logout e2e test

---------

Co-authored-by: Simone <startae14@gmail.com>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2025-02-07 08:50:31 -05:00
dhoko
4656e5d415
enhancement: better log informations about the errors for yup validations messages (#22001) 2025-02-06 15:42:10 +02:00
Simone
16cb0821de
feat(relations-on-the-fly): Setup the Future flag for the Relations on the fly (#22771)
* feat(relations-on-the-fly): setup future flag and replace link with a text button

* feat(relations-on-the-fly): create unstable variant of relations components to handle the relations on the fly logic

* feat(relations-on-the-fly): remove code
2025-02-05 16:04:03 +01:00
Ben Irvin
0954e210a1
test(api): cleanup test data (#22760)
* test(api): cleanup test data

* test(api): do not delete products in afterAll
2025-01-31 12:31:36 +01:00
markkaylor
88f5d2bfb3
chore(preview): prepare layout for side editor (#22767) 2025-01-31 12:30:31 +01:00
Alexandre Bodin
3be592e7ed Merge branch 'develop' into chore/rollup 2025-01-29 17:47:50 +01:00
Ben Irvin
e07a466901 fix: validation message shape 2025-01-29 16:54:15 +01:00
Alexandre Bodin
cffeb3f30b chore: touch ups 2025-01-28 19:17:55 +01:00
Convly
8d3ee91451 test: update token name in review workflows test 2025-01-27 18:22:21 +01:00
Convly
4d07dffc75 fix: handle missing TEST_APP_PATH in e2e utility functions 2025-01-27 17:53:44 +01:00
Convly
5bd5447232 enhancement: add default api token on app creation 2025-01-27 17:04:10 +01:00
Dhruv Maradiya
008421e40e
feat(content-manager): better bulk publish overview (#22618) 2025-01-24 14:55:55 +01:00
Jean-Sébastien Herbaux
2fedf32801
Merge branch 'develop' into fix/graphql-load-capabilities 2025-01-24 11:37:44 +01:00
Convly
ee9df65e67 test: filtering on components and associations 2025-01-24 11:28:37 +01:00
Ben Irvin
3a1d87a9c3
test(e2e): add tests for required fields and regexp (#22691) 2025-01-23 18:10:54 +01: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
Ben Irvin
74fa0d7baa test(api): login with pass that previously validated 2025-01-23 15:38:57 +01:00
Ben Irvin
360ddc95d6 test(api): password byte length 2025-01-23 15:29:52 +01:00
Ben Irvin
41f8cdf116 fix: 72 byte maximum for creating and updating passwords 2025-01-23 12:44:25 +01:00
markkaylor
926e9af936
feat(content-manager): add container queries to form fields (#22693) 2025-01-22 16:59:44 +01:00
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
markkaylor
f7525dade9
chore(tests): enable and update relations ordering test (#22574) 2025-01-09 12:44:46 +01:00
Ben Irvin
9a064edb85
Merge pull request #22602 from strapi/main
Releases/5.7.0 (#22471)
2025-01-09 11:04:13 +01:00
markkaylor
dad3c50630
fix(history): handle nested component images (#22278) 2025-01-08 15:57:28 +01:00
Ben Irvin
1be05a65d0 Merge branch 'main' into releases/5.7.0 2025-01-08 15:41:19 +01:00
Dhruv Maradiya
7d767aba20
fix: handle clearing of number field to send null instead of undefined (#22537)
* fix: handle clearing of number field to send null instead of undefined

set number field to null when cleared; undefined prevented clearing.

* test: add test for clearing integer field to set it to null

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2025-01-07 04:39:51 -05: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
Simone
f09127d8df
fix: renable the basic relations test (#22464) 2024-12-18 14:01:18 +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
Alexandre Bodin
e2624fe821 Merge branch 'main' into develop 2024-12-17 12:26:11 +01:00
Ben Irvin
0c6e0953ae fix: remove lookup param from doc service 2024-12-17 11:46:02 +01:00
Marc Roig
0d4051ce87
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>
2024-12-16 16:12:40 +01:00
Ben Irvin
575be3afd4
enhancement(database): add repair manager with component deletion fix (#22267) 2024-12-16 12:56:05 +01: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