-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(studio): add aboutUsPage
page
#46
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Quality Gate passedIssues Measures |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Warning Review failedThe pull request is closed. WalkthroughThe updates introduce an Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Editor
participant SanityStudio
User->>Editor: Access 'About Us' page editor
Editor->>SanityStudio: Request schema for 'About Us' page
SanityStudio-->>Editor: Response with schema details
Editor->>Editor: Populate editor with fields (Gallery, Chronicle, Vision, Stats, Contact Persons)
User->>Editor: Fill out page details
Editor->>SanityStudio: Save 'About Us' page data
SanityStudio-->>User: Display saved 'About Us' page
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
User description
closes: #19
PR Type
Enhancement
Description
aboutUsPage
schema and integrated it into the plugin and schema configurations.imageCard
schema for use in various sections.aboutUsPage
, including chronicle, gallery, vision, stats, and contact persons.groupsPage
,homePage
, andsingleGroupPage
.Changes walkthrough 📝
15 files
index.ts
Integrate `aboutUsPage` into plugin configuration
apps/studio/plugins/index.ts
aboutUsPage
to the plugin imports and structure configuration.index.ts
Add `aboutUsPage` and `imageCard` to schema types
apps/studio/schemas/index.ts
aboutUsPage
andimageCard
schemas.aboutUsPage
andimageCard
to the schema types.image-card.ts
Create `imageCard` schema
apps/studio/schemas/objects/image-card.ts
imageCard
schema with fields for title, description, andimage.
_groups.ts
Define groups for `aboutUsPage`
apps/studio/schemas/single-pages/about-us/_groups.ts
aboutUsPage
including chronicle, contactPersons,gallery, stats, and vision.
chronicle.ts
Create `chronicleField` schema for `aboutUsPage`
apps/studio/schemas/single-pages/about-us/chronicle.ts
chronicleField
schema with fields for chronicle section.gallery.ts
Create `galleryField` schema for `aboutUsPage`
apps/studio/schemas/single-pages/about-us/gallery.ts
galleryField
schema with fields for gallery section.index.ts
Create `aboutUsPage` schema
apps/studio/schemas/single-pages/about-us/index.ts
aboutUsPage
schema with fields for general, meta, and contentsections.
_groups.ts
Translate group titles to German for `groupsPage`
apps/studio/schemas/single-pages/groups/_groups.ts
_groups.ts
Translate group titles to German for `homePage`
apps/studio/schemas/single-pages/home/_groups.ts
index.ts
Add `visionField` to `homePage` schema
apps/studio/schemas/single-pages/home/index.ts
visionField
tohomePage
schema._groups.ts
Translate group titles to German for `singleGroupPage`
apps/studio/schemas/single-pages/single-group/_groups.ts
gallery.ts
Create `galleryField` schema for `singleGroupPage`
apps/studio/schemas/single-pages/single-group/gallery.ts
galleryField
schema with fields for gallery section.index.ts
Update `singleGroupPage` schema to use `galleryField`
apps/studio/schemas/single-pages/single-group/index.ts
singleGroupPage
schema to usegalleryField
.vision.ts
Create `visionField` schema
apps/studio/shared/sections/vision.ts
visionField
schema with fields for vision section.validation-rules.ts
Enhance validation rules with length checks
apps/studio/shared/validation-rules.ts
getLengthRule
function for validation.getMaxLengthRule
andgetMinLengthRule
to handle differentinput types.
Summary by CodeRabbit
New Features
Localization
Enhancements