Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: bulk publish migration to v5 #20255

Merged
merged 49 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7c70880
fix: added bulk actions
madhurisandbhor Apr 4, 2024
a2e14b4
chore: migrate bulk publish & unpublish to v5
Feranchz Apr 23, 2024
5693666
chore: change findLocales type to accept arrays
Feranchz Apr 24, 2024
6357df1
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz Apr 24, 2024
df2d2f0
chore: fix lint error
Feranchz Apr 24, 2024
a63f691
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz Apr 25, 2024
b1574bc
chore: migrate bulkDelete to v5 (#20161)
Feranchz Apr 25, 2024
80dc8b8
Merge branch 'v5/main' into fix/bulk-actions-migration
madhurisandbhor Apr 26, 2024
d17b241
Merge branch 'v5/bulk-publish-unpublish' into fix/bulk-actions-migration
madhurisandbhor Apr 26, 2024
a50e1df
enhancement: migrate countManyDraftRelations to v5
Feranchz Apr 26, 2024
a241141
Merge branch 'v5/bulk-publish-unpublish' of github.com:strapi/strapi …
Feranchz Apr 26, 2024
49a3dbb
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz Apr 26, 2024
6dd70ca
feat: bulk delete with locale selection option
madhurisandbhor Apr 29, 2024
f231f25
fix: bulk unpublish working without locale support
madhurisandbhor Apr 29, 2024
6ba5cee
Merge branch 'v5/main' into fix/bulk-actions-migration
madhurisandbhor Apr 29, 2024
98e818d
test: e2e tests updated
madhurisandbhor Apr 29, 2024
f74b03b
fix: documents api change, deleteMany tags updated, test skipped
madhurisandbhor Apr 30, 2024
ca69188
chore: renaming
madhurisandbhor Apr 30, 2024
6749b4d
test: reverting e2e tests for delete action changes
madhurisandbhor Apr 30, 2024
fee12d7
Merge branch 'v5/bulk-publish-unpublish' into fix/bulk-actions-migration
madhurisandbhor Apr 30, 2024
732fa10
feat: publish action changes
madhurisandbhor Apr 30, 2024
6b3dd96
fix: reverting publish action changes
madhurisandbhor Apr 30, 2024
9a65933
fix: hide add to release as its not ready to be migrated
madhurisandbhor Apr 30, 2024
504bede
fix: error message updated
madhurisandbhor Apr 30, 2024
9002af6
Merge branch 'fix/bulk-actions-migration' into v5/bulk-publish-migration
madhurisandbhor Apr 30, 2024
5abb934
fix: tests updated for useDocumentAction
madhurisandbhor Apr 30, 2024
258b953
fix: updated request params
madhurisandbhor May 2, 2024
c2cb6e4
Merge branch 'v5/main' into v5/bulk-publish-migration
madhurisandbhor May 2, 2024
b9274fe
fix: publish action added
madhurisandbhor May 2, 2024
2a54603
fix: publish action changes with documentId
madhurisandbhor May 3, 2024
52e02eb
fix: reverting wrong commit message
madhurisandbhor May 2, 2024
453c50b
fix: comments updated
madhurisandbhor May 2, 2024
11614ff
chore: renaming
madhurisandbhor May 3, 2024
f942492
Merge branch 'fix/bulk-actions-migration' into v5/bulk-publish-migration
madhurisandbhor May 3, 2024
a4e2e61
chore: add type to bulk action actions (#20256)
joshuaellis May 3, 2024
3739cf0
chore: actionType renamed to just type
madhurisandbhor May 3, 2024
b9a64f0
fix: added missing import
madhurisandbhor May 3, 2024
898facf
Merge branch 'fix/bulk-actions-migration' into v5/bulk-publish-migration
madhurisandbhor May 3, 2024
801a29c
test: fixed
madhurisandbhor May 3, 2024
13c735c
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz May 9, 2024
1635bfb
fix(content-manager): edit entry button on bulk publish modal
Feranchz May 9, 2024
3cf8903
fix: validationError message type is not as expected
Feranchz May 10, 2024
0d4ebad
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz May 10, 2024
d92d5ed
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz May 13, 2024
4c09f5f
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz May 27, 2024
4787d18
fix: ts error
Feranchz May 27, 2024
1181660
only fetch entries when modal is opened
Feranchz May 27, 2024
baa6cf2
Merge branch 'v5/main' of github.com:strapi/strapi into v5/bulk-publi…
Feranchz May 27, 2024
e360852
fix(content-releases): use status to show the published instead of pu…
Feranchz May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions packages/core/admin/admin/src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,13 @@ const CheckboxCell = ({ id, ...props }: Table.CheckboxCellProps) => {
return (
<Cell {...props} onClick={(e) => e.stopPropagation()}>
<BaseCheckbox
aria-label={formatMessage({
id: 'global.select',
defaultMessage: 'Select',
})}
aria-label={formatMessage(
{
id: 'app.component.table.select.one-entry',
defaultMessage: `Select {target}`,
},
{ target: id }
)}
disabled={rows.length === 0}
checked={isChecked}
onChange={handleSelectRow}
Expand Down
3 changes: 3 additions & 0 deletions packages/core/admin/admin/src/features/Tracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ interface EventWithoutProperties {
| 'didNotSaveComponent'
| 'didPluginLearnMore'
| 'didPublishEntry'
| 'didBulkPublishEntries'
| 'didNotBulkPublishEntries'
| 'didUnpublishEntry'
| 'didBulkUnpublishEntries'
| 'didNotBulkUnpublishEntries'
Expand All @@ -150,6 +152,7 @@ interface EventWithoutProperties {
| 'removeComponentFromDynamicZone'
| 'willAddMoreFieldToContentType'
| 'willBulkDeleteEntries'
| 'willBulkPublishEntries'
| 'willBulkUnpublishEntries'
| 'willChangeNumberOfEntriesPerPage'
| 'willCheckDraftRelations'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import type {
Discard,
FindOne,
Publish,
BulkPublish,
Update,
Unpublish,
BulkPublish,
BulkUnpublish,
} from '../../../shared/contracts/collection-types';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';

import {
useTracking,
useStrapiApp,
useNotification,
NotificationConfig,
Expand Down Expand Up @@ -30,6 +29,8 @@ import { useDocumentActions } from '../../../../hooks/useDocumentActions';
import { buildValidParams } from '../../../../utils/api';
import { getTranslation } from '../../../../utils/translations';

import { PublishAction } from './PublishAction';

import type { BulkActionComponent, ContentManagerPlugin } from '../../../../content-manager';

interface BulkActionDescription {
Expand Down Expand Up @@ -440,7 +441,7 @@ const Emphasis = (chunks: React.ReactNode) => (
</Typography>
);

const DEFAULT_BULK_ACTIONS: BulkActionComponent[] = [UnpublishAction, DeleteAction];
const DEFAULT_BULK_ACTIONS: BulkActionComponent[] = [PublishAction, UnpublishAction, DeleteAction];

export { DEFAULT_BULK_ACTIONS, BulkActionsRenderer, Emphasis };
export type { BulkActionDescription };