Skip to content

Commit ebcb0fd

Browse files
authored
Merge pull request #248 from pluginpal/feature/fixes
Fixes
2 parents bac2d44 + 37802a1 commit ebcb0fd

File tree

28 files changed

+479
-146
lines changed

28 files changed

+479
-146
lines changed

.changeset/dirty-baths-build.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"webtools-addon-sitemap": patch
3+
"strapi-plugin-webtools": patch
4+
---
5+
6+
fix: use generic design-system 'rc' version constraint

.changeset/every-camels-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"strapi-plugin-webtools": patch
3+
---
4+
5+
fix: show the content type displayName instead of globalId

.changeset/itchy-worlds-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"strapi-plugin-webtools": minor
3+
---
4+
5+
feat: show the pattern languages in the patterns list

.changeset/nine-breads-attack.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"webtools-addon-sitemap": patch
3+
"strapi-plugin-webtools": patch
4+
---
5+
6+
fix: allow & test for node 22

.changeset/quiet-wombats-smoke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"strapi-plugin-webtools": patch
3+
---
4+
5+
fix: add some spacing between the table row actions

.changeset/soft-hornets-dream.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"webtools-addon-sitemap": minor
3+
"strapi-plugin-webtools": minor
4+
---
5+
6+
feat: create a custom side panel for all Webtools related links

.changeset/tough-sides-scream.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"webtools-addon-sitemap": patch
3+
"strapi-plugin-webtools": patch
4+
---
5+
6+
feat: give more feedback about the enabled content types, and add links to the documentation in case no content types have been enabled

.github/workflows/tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
node: [18, 20]
27+
node: [18, 20, 22]
2828
steps:
2929
- uses: actions/checkout@v2
3030
- uses: actions/setup-node@v2
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
strategy:
4545
matrix:
46-
node: [18, 20]
46+
node: [18, 20, 22]
4747
steps:
4848
- uses: actions/checkout@v2
4949
- uses: actions/setup-node@v2
@@ -85,9 +85,10 @@ jobs:
8585
path: cypress/videos
8686
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
8787
- name: Upload coverage to Codecov
88-
uses: codecov/codecov-action@v2
88+
uses: codecov/codecov-action@v4
89+
env:
90+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8991
with:
90-
token: ${{ secrets.CODECOV }}
9192
flags: unit
9293
verbose: true
9394
fail_ci_if_error: true

packages/addons/sitemap/admin/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export default {
1818
});
1919
},
2020
bootstrap(app) {
21-
app.getPlugin('content-manager').injectComponent('editView', 'right-links', {
22-
name: 'sitemap-edit-view',
21+
app.getPlugin('webtools').injectComponent('webtoolsSidePanel', 'link', {
2322
Component: EditView,
2423
});
2524

packages/addons/sitemap/admin/tabs/CollectionURLs/index.jsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import React, { useState } from 'react';
2+
import { Button, EmptyStateLayout } from '@strapi/design-system';
23
import { useSelector, useDispatch } from 'react-redux';
34
import { Map } from 'immutable';
5+
import { useIntl } from 'react-intl';
6+
import { Link } from 'react-router-dom';
7+
import { ExternalLink } from '@strapi/icons';
48

59
import {
610
deleteContentType,
@@ -16,6 +20,7 @@ const CollectionURLs = () => {
1620
const dispatch = useDispatch();
1721
const [modalOpen, setModalOpen] = useState(false);
1822
const [uid, setUid] = useState(null);
23+
const { formatMessage } = useIntl();
1924
const [langcode, setLangcode] = useState('und');
2025

2126
const handleModalSubmit = (e) => {
@@ -44,6 +49,33 @@ const CollectionURLs = () => {
4449
return null;
4550
}
4651

52+
if (state.get('contentTypes').size === 0) {
53+
return (
54+
<EmptyStateLayout
55+
content={formatMessage({
56+
id: 'webtools.collection-urls.contenttypes.table.empty',
57+
defaultMessage: 'Before you can add collections to the sitemap, you need to enable Webtools for at least one content type.',
58+
})}
59+
action={(
60+
<Button
61+
variant="secondary"
62+
tag={Link}
63+
to="https://docs.pluginpal.io/webtools/usage"
64+
startIcon={<ExternalLink />}
65+
target="_blank"
66+
>
67+
{formatMessage({
68+
id: 'webtools.settings.button.read_docs',
69+
defaultMessage: 'Learn how to enable Webtools',
70+
})}
71+
</Button>
72+
)}
73+
shadow="tableShadow"
74+
hasRadius
75+
/>
76+
);
77+
}
78+
4779
return (
4880
<div>
4981
<List

0 commit comments

Comments
 (0)