Skip to content

Commit 5800eed

Browse files
authored
Merge pull request #100 from openobserve/dev
feat: reorder testimonial section in landing page schema and update c…
2 parents be990e8 + 3f3e443 commit 5800eed

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

src/api/landing-page/content-types/landing-page/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"body": {
2626
"type": "dynamiczone",
2727
"components": [
28-
"landing-page-component.testimonial-section",
2928
"landing-page-component.modern-foundation-card",
3029
"landing-page-component.migration-steps",
3130
"landing-page-component.hero-section",
3231
"landing-page-component.feature-comparison",
3332
"landing-page-component.feature-cards",
34-
"landing-page-component.cta-banner"
33+
"landing-page-component.cta-banner",
34+
"landing-page-component.testimonial-section"
3535
]
3636
}
3737
}

src/components/landing-page-component/testimonial-section.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
},
77
"options": {},
88
"attributes": {
9-
"heading": {
10-
"type": "component",
11-
"repeatable": false,
12-
"component": "elements.heading"
9+
"name": {
10+
"type": "string"
1311
},
14-
"testimonials": {
15-
"type": "component",
16-
"repeatable": true,
17-
"component": "elements.testimonial-card"
12+
"role": {
13+
"type": "string"
14+
},
15+
"image": {
16+
"type": "string"
17+
},
18+
"quote": {
19+
"type": "text"
1820
}
1921
}
20-
}
22+
}

types/generated/components.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,10 @@ export interface LandingPageComponentTestimonialSection
626626
displayName: 'Testimonial Section';
627627
};
628628
attributes: {
629-
heading: Schema.Attribute.Component<'elements.heading', false>;
630-
testimonials: Schema.Attribute.Component<'elements.testimonial-card', true>;
629+
image: Schema.Attribute.String;
630+
name: Schema.Attribute.String;
631+
quote: Schema.Attribute.Text;
632+
role: Schema.Attribute.String;
631633
};
632634
}
633635

types/generated/contentTypes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,13 +1188,13 @@ export interface ApiLandingPageLandingPage extends Struct.CollectionTypeSchema {
11881188
attributes: {
11891189
body: Schema.Attribute.DynamicZone<
11901190
[
1191-
'landing-page-component.testimonial-section',
11921191
'landing-page-component.modern-foundation-card',
11931192
'landing-page-component.migration-steps',
11941193
'landing-page-component.hero-section',
11951194
'landing-page-component.feature-comparison',
11961195
'landing-page-component.feature-cards',
11971196
'landing-page-component.cta-banner',
1197+
'landing-page-component.testimonial-section',
11981198
]
11991199
>;
12001200
createdAt: Schema.Attribute.DateTime;

0 commit comments

Comments
 (0)