Skip to content

chore: move notification banners under shared/components/marketing#6008

Merged
rebelchris merged 1 commit into
mainfrom
chore/move-notification-banners-to-marketing
May 7, 2026
Merged

chore: move notification banners under shared/components/marketing#6008
rebelchris merged 1 commit into
mainfrom
chore/move-notification-banners-to-marketing

Conversation

@rebelchris
Copy link
Copy Markdown
Contributor

@rebelchris rebelchris commented May 7, 2026

Summary

Scope

  • 6 files moved (3 components + 3 specs), all detected as git renames (78%–90% similarity)
  • 4 external import sites updated (webapp/notifications.tsx, MainFeedLayout, BookmarkFeedLayout, SearchResultsLayout)
  • Internal relative imports inside moved files bumped one level
  • The two Digest banners' ./utils import becomes ../../notifications/utils (it's a NotificationType enum, still owned by the notifications folder)

Strict skip-list addition

packages/webapp/pages/notifications.tsx was touched only to swap the DigestUpsellBanner import path. Pre-existing strict violations (queryResult.data optionality, NotificationItem reduce typing on lines 133/145) are unrelated to the rename and confirmed identical on main.

Test plan

  • pnpm --filter @dailydotdev/shared lint passes
  • pnpm --filter webapp lint passes
  • node ./scripts/typecheck-strict-changed.js passes
  • All 25 specs pass (AskSearchBanner.spec, DigestBookmarkBanner.spec, DigestUpsellBanner.spec + the existing ReadingReminderHero.spec)
  • Smoke-test: notifications page (DigestUpsellBanner), feed (AskSearchBanner), bookmarks empty state (DigestBookmarkBanner), search results (AskSearchBanner)

🤖 Generated with Claude Code

Preview domain

https://chore-move-notification-banners.preview.app.daily.dev

Pure file moves: AskSearchBanner, DigestBookmarkBanner, DigestUpsellBanner (and their specs) from shared/components/notifications/ to shared/components/marketing/banners/. They are promotional surfaces, not notification UI.

Updates 4 external import sites; relative imports inside moved files bumped one level. The two Digest banners now import './utils' as '../../notifications/utils' (cross-folder).

Adds packages/webapp/pages/notifications.tsx to typecheck-strict-changed skip list. The file was touched only to swap the DigestUpsellBanner import path; its pre-existing strict violations (queryResult.data optionality, NotificationItem reduce typing) are unrelated to the rename.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview May 7, 2026 1:57pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored May 7, 2026 1:57pm

Request Review

@rebelchris rebelchris merged commit 7a563d8 into main May 7, 2026
12 checks passed
@rebelchris rebelchris deleted the chore/move-notification-banners-to-marketing branch May 7, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant