Closed andrashee closed 8 hours ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
The pull request introduces multiple new properties to the campaignsCollection
in admin/src/collections/Campaigns.ts
, including links to various social media platforms and a website, as well as boolean properties for visibility and a slug for URL formatting. Corresponding updates are made to the Campaign
type in shared/src/types/campaign.ts
, enhancing the campaign data structure with more options for visibility and social media integration.
File Path | Change Summary |
---|---|
admin/src/collections/Campaigns.ts | Added properties: link_website , link_instagram , link_tiktok , link_facebook , link_x (all strings); public (boolean); featured (boolean); slug (string) to properties of campaignsCollection . |
shared/src/types/campaign.ts | Added optional properties: link_website?: string; , link_instagram?: string; , link_tiktok?: string; , link_facebook?: string; , link_x?: string; , public?: boolean; , featured?: boolean; , slug?: string; to Campaign type. Defined new type Link with name and url . |
In the fields where campaigns play,
New links and flags have come to stay.
With a hop and a skip, they take their place,
Shining bright in the overview space!
Let's celebrate with a joyful cheer,
For campaigns now have more to endear! 🐇✨
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?
Visit the preview URL for this PR (updated for commit bb0bc60):
https://si-admin-staging--pr946-ahee-campaign-model-3l4u4c3d.web.app
(expires Fri, 29 Nov 2024 10:12:32 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: b7b0969384059dce6ea8fad1ee1d1737e54e6676
Summary by CodeRabbit
link_website
,link_instagram
,link_tiktok
,link_facebook
, andlink_x
for social media and website links.Public
: Indicates if the campaign is listed on the campaign overview.Featured
: Indicates if the campaign is highlighted on the campaign overview.Slug
: For creating user-friendly URLs.Link
type for better link representation.These enhancements allow for improved visibility and promotion of campaigns within the application.