Open
Conversation
Add digest post type support (Phase 1 & 2): - Add PostType.Digest enum value and DIGEST_SOURCE constant - Add digestPostIds and ad fields to PostFlags type and GraphQL fragments - Create DigestPostContent component that renders a feed of curated posts - Register in CONTENT_MAP and FeedItemComponent card type maps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Inject stored Skadi ads into the digest feed via a new staticAd prop on Feed/useFeed, and add in-app notification controls for digest posts. Phase 3 – Ad injection: - Add staticAd support to useFeed and FeedProps - Transform DigestPostAd → Ad interface in DigestPostContent - Fix missing PostType.Digest in PostModalMap Phase 4 – Notification settings: - Add NotificationType.DigestReady - Create DigestNotification component for in-app toggle - Add digest section to InAppNotificationsTab - Update PersonalizedDigest unsubscribe logic to respect in-app channel Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…etely Extract transformDigestAd to digest/utils.ts for testability and add unit tests for the digest ad transformation and notification muting logic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
API returns camelCase (companyName, companyLogo, callToAction) instead of snake_case. Update type, fragments, transform utils, and tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
API: dailydotdev/daily-api#3635
Summary
PostType.Digestthat renders a curated feed of posts at/posts/:idusingDigestPostContentcomponentstaticAdprop onuseFeed/FeedNotificationType.DigestReadywith in-app notification toggle and cross-channel unsubscribe logic (only fully unsubscribes when both email and in-app are off)Changes
PostType.Digestenum,DigestPostAdtype, updated post flags fragment withdigestPostIdsandadtransformDigestAdmaps backend ad shape to frontendAdinterface;staticAdparam onuseFeedinserts it at the correct index while keeping live ads disabledDigestReadynotification type,DigestNotificationcomponent for in-app tab, updatedPersonalizedDigestemail tab with cross-channel muting awarenesstransformDigestAdandisMutingDigestCompletelyTest plan
/posts/:digest-post-idand verify the curated feed renders with post cardsflags.adis nullpnpm --filter shared test— 13 new tests passEvents
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
Preview domain
https://feat-digest-post-type.preview.app.daily.dev