Skip to content

feat(feed-settings): swap Happening Now Switch for placement dropdown#6031

Merged
pnvasanth merged 2 commits into
mainfrom
feat/highlights-placement-dropdown
May 11, 2026
Merged

feat(feed-settings): swap Happening Now Switch for placement dropdown#6031
pnvasanth merged 2 commits into
mainfrom
feat/highlights-placement-dropdown

Conversation

@pnvasanth
Copy link
Copy Markdown
Contributor

@pnvasanth pnvasanth commented May 11, 2026

Summary

Some users want to disable the Happening Now card altogether, not just toggle between random vs pinned placement. Replaces the binary Switch in Feed Settings → General with a 3-option Dropdown backed by the new highlightsPlacement enum Settings flag.

Options shown to the user:

  • Default — random slot in the first half of page one (today's behavior)
  • Pin to top — slot 0 (what the old toggle did when on)
  • Disabled — no Happening Now card at all

Wire-up

  • SettingsFlags.highlightsFirstEnabled (bool) → SettingsFlags.highlightsPlacement ('default' | 'pinned' | 'disabled')
  • SidebarSettingsFlags.HighlightsFirstEnabledSidebarSettingsFlags.Highlights (renamed to avoid shadowing the HighlightsPlacement value enum)
  • LogEvent.ToggleHighlightsFirstLogEvent.SetHighlightsPlacement with target_id carrying the chosen placement value
  • Toast label updated

Companion API PR: dailydotdev/daily-api#3867 (which also supersedes the in-flight #3866).

Test plan

  • pnpm --filter @dailydotdev/shared lint on touched files — clean
  • pnpm run typecheck:strict:changed — clean
  • Manual after API deploy: Default / Pin to top / Disabled each behave as described on reload of the feed

Preview domain

https://feat-highlights-placement-dropdo.preview.app.daily.dev

Replaces the binary Pin Happening Now toggle with a 3-option Dropdown
(Default / Pin to top / Disabled) backed by the new highlightsPlacement
Settings flag. Lets users hide the Happening Now card entirely, not
just pick between random vs pinned placement.

The previous highlightsFirstEnabled flag is gone; SidebarSettingsFlags
exposes the new key as Highlights (renamed to avoid shadowing the
HighlightsPlacement value enum).
@pnvasanth pnvasanth self-assigned this May 11, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

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

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview May 11, 2026 2:43pm
storybook Building Building Preview May 11, 2026 2:43pm

Request Review

@pnvasanth pnvasanth merged commit 0730e4f into main May 11, 2026
12 checks passed
@pnvasanth pnvasanth deleted the feat/highlights-placement-dropdown branch May 11, 2026 15:00
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