fix(guided-tour): removed "-" from Collection/Single type wording

This commit is contained in:
ronronscelestes 2022-02-08 18:46:46 +01:00
parent 362ff3a579
commit f1765dc29e
3 changed files with 13 additions and 13 deletions

View File

@ -39,7 +39,7 @@ describe('<GuidedTourModal />', () => {
it('should match the snapshot with contentTypeBuilder.create layout', async () => { it('should match the snapshot with contentTypeBuilder.create layout', async () => {
render(App); render(App);
expect(screen.getByText('🧠 Create a first Collection-type')).toBeInTheDocument(); expect(screen.getByText('🧠 Create a first Collection type')).toBeInTheDocument();
expect(document.body).toMatchInlineSnapshot(` expect(document.body).toMatchInlineSnapshot(`
.c9 { .c9 {
@ -670,7 +670,7 @@ describe('<GuidedTourModal />', () => {
class="c18" class="c18"
id="title" id="title"
> >
🧠 Create a first Collection-type 🧠 Create a first Collection type
</h3> </h3>
</div> </div>
<div <div
@ -688,13 +688,13 @@ describe('<GuidedTourModal />', () => {
<span <span
class="c22" class="c22"
> >
Collection-types help you manage several entries, Single-types are suitable to manage only one entry. Collection types help you manage several entries, Single types are suitable to manage only one entry.
</span> </span>
<span <span
class="c22" class="c22"
> >
Ex: For a website, articles would be a Collection type and homepage would be a Single type. Ex: For a Blog website, Articles would be a Collection type and Homepage would be a Single type.
</span> </span>
</div> </div>
<button <button
@ -705,7 +705,7 @@ describe('<GuidedTourModal />', () => {
<span <span
class="c25 c26" class="c25 c26"
> >
Build a Collection-type Build a Collection type
</span> </span>
<div <div
aria-hidden="true" aria-hidden="true"

View File

@ -8,7 +8,7 @@ const layout = {
cta: { cta: {
title: { title: {
id: 'app.components.GuidedTour.home.CTB.cta.title', id: 'app.components.GuidedTour.home.CTB.cta.title',
defaultMessage: 'Go to the Content-type Builder', defaultMessage: 'Go to the Content type Builder',
}, },
type: 'REDIRECT', type: 'REDIRECT',
target: '/plugins/content-type-builder', target: '/plugins/content-type-builder',
@ -17,17 +17,17 @@ const layout = {
create: { create: {
title: { title: {
id: 'app.components.GuidedTour.CTB.create.title', id: 'app.components.GuidedTour.CTB.create.title',
defaultMessage: '🧠 Create a first Collection-type', defaultMessage: '🧠 Create a first Collection type',
}, },
content: { content: {
id: 'app.components.GuidedTour.CTB.create.content', id: 'app.components.GuidedTour.CTB.create.content',
defaultMessage: defaultMessage:
'<p>Collection-types help you manage several entries, Single-types are suitable to manage only one entry.</p> <p>Ex: For a website, articles would be a Collection type and homepage would be a Single type.</p>', '<p>Collection types help you manage several entries, Single types are suitable to manage only one entry.</p> <p>Ex: For a Blog website, Articles would be a Collection type and Homepage would be a Single type.</p>',
}, },
cta: { cta: {
title: { title: {
id: 'app.components.GuidedTour.CTB.create.cta.title', id: 'app.components.GuidedTour.CTB.create.cta.title',
defaultMessage: 'Build a Collection-type', defaultMessage: 'Build a Collection type',
}, },
type: 'CLOSE', type: 'CLOSE',
}, },

View File

@ -236,10 +236,10 @@
"app.components.GuidedTour.title": "3 steps to get started", "app.components.GuidedTour.title": "3 steps to get started",
"app.components.GuidedTour.create-content": "Create content", "app.components.GuidedTour.create-content": "Create content",
"app.components.GuidedTour.home.CTB.title": "🧠 Build the content structure", "app.components.GuidedTour.home.CTB.title": "🧠 Build the content structure",
"app.components.GuidedTour.home.CTB.cta.title": "Go to the Content-type Builder", "app.components.GuidedTour.home.CTB.cta.title": "Go to the Content type Builder",
"app.components.GuidedTour.CTB.create.title": "🧠 Create a first Collection-type", "app.components.GuidedTour.CTB.create.title": "🧠 Create a first Collection type",
"app.components.GuidedTour.CTB.create.content": "<p>Collection-types help you manage several entries, Single-types are suitable to manage only one entry.</p> <p>Ex: For a website, articles would be a Collection type and homepage would be a Single type.</p>", "app.components.GuidedTour.CTB.create.content": "<p>Collection types help you manage several entries, Single types are suitable to manage only one entry.</p> <p>Ex: For a Blog website, Articles would be a Collection type and Homepage would be a Single type.</p>",
"app.components.GuidedTour.CTB.create.cta.title": "Build a Collection-type", "app.components.GuidedTour.CTB.create.cta.title": "Build a Collection type",
"app.components.GuidedTour.CTB.success.title": "Step 1: Completed ✅", "app.components.GuidedTour.CTB.success.title": "Step 1: Completed ✅",
"app.components.GuidedTour.CTB.success.content": "<p>Good going!</p><b>⚡️ What would you like to share with the world?</b>", "app.components.GuidedTour.CTB.success.content": "<p>Good going!</p><b>⚡️ What would you like to share with the world?</b>",
"app.components.GuidedTour.CTB.success.cta.title": "Create content", "app.components.GuidedTour.CTB.success.cta.title": "Create content",