230 Commits

Author SHA1 Message Date
Dhruv Maradiya
008421e40e
feat(content-manager): better bulk publish overview (#22618) 2025-01-24 14:55:55 +01:00
markkaylor
926e9af936
feat(content-manager): add container queries to form fields (#22693) 2025-01-22 16:59:44 +01:00
markkaylor
c2c6a58d5a
feat(content-manager): add getters to useDocument (#22683)
* feat: add getTitle to useDocument
* feat: add getInitialFormValues to useDocument
2025-01-22 11:46:18 +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
markkaylor
dad3c50630
fix(history): handle nested component images (#22278) 2025-01-08 15:57:28 +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
markkaylor
4296716ff1
fix(content-manager): ensure plugin::users-permissions.user is redirected on create (#22435) 2024-12-18 04:44:32 -05:00
Lucas Boilly
b6435ada23
fix(blocks): various ui issues (#22423)
* fix: blocks-ui-fixes

* fix: made it prettier

* fix: optimizations
2024-12-16 10:56:44 -05:00
Lucas Boilly
d7ff93a99d
fix: add component button style (#22425)
* fix: add-component-button-style

* fix: made it prettier

* fix: optimizations
2024-12-16 10:54:34 -05: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
Rémi de Juvigny
9a9885d211
fix: preview back button behavior (#22432) 2024-12-16 08:00:49 -05:00
Simone
bd3c89f680
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>
2024-12-11 11:19:23 +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
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
ca8b9b60c7
fix: preview back button behavior (#22334)
* fix: preview back button

* Update packages/core/admin/admin/src/features/BackButton.tsx
2024-12-04 08:23:47 -05:00
Rémi de Juvigny
81b62a508e feat: add content preview (remove future flag) 2024-12-04 09:36:19 +01:00
Lucas Boilly
5dde62eabd
chore: added french translations for blocks (#22195)
* chore: added french translations for blocks

* chore: added missing translations
2024-12-03 03:25:00 -05: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
Rémi de Juvigny
7232d30c05
fix: document actions being rendered multiple times (#22283) 2024-11-29 05:58:46 -05:00
Rémi de Juvigny
25e4c58708
enhancement: disable preview link when changes are not saved (#22275) 2024-11-26 08:10:09 -05:00
Marc Roig
e38c525e71
fix: search param being encoded twice (#22212)
* fix: search encoding

* fix: remove _q encoding in review workflows

* fix: fe test
2024-11-22 14:07:42 +01:00
markkaylor
185e16fdc3
fix(content-manager): navigate when publishing AND creating document (#22231) 2024-11-21 17:38:20 +01:00
Marc Roig
2350a50f6e
fix: preview title overflow (#22232) 2024-11-21 13:56:46 +01:00
George C. A.
88d99fc5af
fix: the confirmation message of restoring a version was updated (#22223)
* fix: the confirmation message of restoring a version was updated

* fix: the confirmation message of restoring a version was updated
2024-11-21 12:15:29 +02:00
Den
ac654f8b86
fix: The list view settings popover is not scrollable (#21579)
* fix: The list view settings popover is not scrollable
I limited the maximum height and added the ability to scroll content inside the block.

* fix: The list view settings popover is not scrollable
executed yarn prettier:write

---------

Co-authored-by: Simone <startae14@gmail.com>
2024-11-20 16:31:44 +01:00
George C. A.
1d42106141
fix: replaced the Code icon with CodeBlock icon (#22218) 2024-11-20 15:31:34 +02:00
Lucas Boilly
f49f46a1c1
fix: replaced translation id (#22193) 2024-11-18 09:36:51 -05:00
George C. A.
ec9b1b708d
fix(history): add disabled styles to strapi components input (#22172) 2024-11-15 16:33:53 +01:00
Marc Roig
4a29d23d6f
feat: will navigate event (#22109)
* feat: preview tabs

* fix: re organize imports

* fix: pr suggestions

* fix: padding

* fix: use paddings

* chore: remove margin bottom from tab

* chore: do not use style tag

* fix: remove unused align

* feat: will navigate event

* fix: remove duplicate compo

* fix: document status
2024-11-14 14:01:52 +01:00
Simone
80703cd6d0
enhancement: add didRestoreHistoryVersion and willNavigate to history (#22133)
* enhancement: add didRestoreHistoryVersion and willNavigate to history

* enhancement: remove the destination search params in the will navigate
2024-11-13 09:38:38 +01:00
Sam Phillemon
d12670bba0
fix: added the hover color as 'danger100' (#21541)
* fix: added the popover as danger100 for the background of the danger rows

* fix: added 'danger100' on hover for Logout

* fix: added a check to not show any background on hover for disabled items
#20777

* fix: addressing PR feedback

* chore: added tests for the hover color

* chore: updated the unit tests to use user events

* chore: removed unused imports
2024-11-13 09:37:33 +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
fed213989e
enhancement: add back button fallback support (#21970)
* enhancement: add back button fallback support

* enhancement: add fallback urls

* fix: feedback and fixes
2024-11-12 02:48:49 -05:00
Archana Agivale
b0db56479d
fix: issue 20810 Line 1 is written in the tooltip of the edit button in Bulk Publish (#21715)
* fix: issue 20810 Line 1, line 2, line 3 is written in the tooltip of the edit button in Bulk Publish
ref : #20810

* fix: fix bug 20810 tooltip text change to Edit
Ref : #20810

* fix: updated message ID

* fix: added new key for message
2024-11-11 11:11:31 +01:00
Rémi de Juvigny
bb6ff32f51
chore: reuse DocumentStatus in history and preview (#22067) 2024-11-07 10:52:33 -05:00
Sam Phillemon
99744be983
fix: added fix for the last draft displaying NaN (#22024)
* fix: added fix for the last draft displaying NaN
#20756

* chore: add Relative time content manager test
2024-11-05 09:53:04 +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
Rémi de Juvigny
cd49060e03
chore: bump design system to 2.0.0-rc.12 (#22043)
* chore: bump design system dep

* fix: remove showBullet prop from Status components

* chore: snapshot updates
2024-11-04 04:00:05 -05:00
markkaylor
08835f33dd
fix(content-manager): translate content-type and component attributes (#21951) 2024-10-30 11:40:50 +01:00
Marc Roig
011cefc73f
feat: preview content in an iframe (#22008)
* feat: preview content

* fix: pr suggestions

* fix: pr suggestions

* fix: iframe border
2024-10-30 09:01:47 +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
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
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
Marc Roig
3db8f1fc61
fix: order when loading more than 10 relations (#21855)
* fix: relations page loading

* chore: comment

* fix: do not regenerate all keys
2024-10-22 10:45:20 +02:00
Rémi de Juvigny
8aa515fdcd
chore: add preview tracking (#21913) 2024-10-21 04:05:31 -04:00
Rémi de Juvigny
f52f276833
enhancement: add copy preview url button (#21780)
* enhancement: add copy preview button

* chore: remove useClipboard from upload plugin
2024-10-14 04:16:34 -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
Rémi de Juvigny
3cc7f28eed
enhancement: add preview panel button (#21776) 2024-10-10 06:02:57 -04:00