Skip to content

feat: Enterprise squads toggle the verified badge and ad-free - #7402

Merged
nimrodkra merged 3 commits into
mainfrom
feat/squad-enterprise-settings
Nov 16, 2026
Merged

nimrodkra merged 3 commits into
mainfrom
feat/squad-enterprise-settings

Conversation

@nimrodkra

@nimrodkra nimrodkra commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What

Enterprise squads can now control two Enterprise features from Manage → Branding, under a new "Enterprise" block:

  • Verified badge: show or hide the badge next to the squad name
  • Ad-free: keep ads off the page, feed and posts, or turn them back on

Each switch saves as soon as it is toggled (optimistic, rolled back with a toast on error). A squad whose plan does not include the feature sees it as a locked SquadEnterpriseGate with the Enterprise pill, so it knows the feature exists and is part of Enterprise. The Branding planGates lock in manage.tsx is unchanged.

How

  • SourceFeatures gains showVerifiedBadge and hideAds. verified and adFree still mean the plan includes the feature.
  • showsVerifiedBadge(source) = showVerifiedBadge ?? verified. It replaces verified at every place that renders VerifiedSquadBadge or the logo seal (squad header, manage header, rows/cards, sidebar, post source, reader strip, composer audience chip, hybrid column, highlights, profile and stack tooltips, discover, tool cards, comment join banner, feed card seal). Places where verified unlocks features (brand color, products limit, isCompanySquad, upsells, discover grouping, tool page card choice) keep reading verified.
  • isSourceAdFree = hideAds ?? adFree, so every ad placement follows the admins choice.
  • New updateSquadSettings(sourceId, showVerifiedBadge, hideAds) mutation and useUpdateSquadSettings hook, which updates the squad cache.
  • Search hits and spotlight still use the search APIs own verified field. That needs the API to send the effective value.

Depends on daily-api

This needs the daily-api PR that adds SourceFeatures.showVerifiedBadge, SourceFeatures.hideAds and the updateSquadSettings mutation. Merge after that PR is deployed. The queries now select the new fields, so they would fail against an API that does not have them yet. Once the API is live, the client falls back to verified/adFree wherever the new fields come back null.

Tests

  • features.spec.ts: badge fallback and the hidden badge
  • ads.spec.ts: ads turned back on, and hideAds from the API
  • SquadEnterpriseSettings.spec.tsx: locked gates without the plan, and each switch sending the mutation
  • Related shared suites (3,774 tests) and webapp SquadPage, PostPage, ToolPage, ReadArticlePage pass. Strict typecheck on the changed files and oxlint are clean.

🤖 Written by Smith (AI) on behalf of @nimrodkra

Preview domain

https://feat-squad-enterprise-settings.preview.app.daily.dev

Enterprise squads can now hide their verified badge and turn ads back on
from Manage > Branding. Squads whose plan doesn't include them see both
settings locked to Enterprise, so they know the package has them.

The plan still decides what a squad is entitled to (verified, adFree).
The new showVerifiedBadge and hideAds fields carry the admins' choice:
every badge reads showsVerifiedBadge and every ad placement reads
isSourceAdFree, both falling back to the entitlement. Places where
verified unlocks features (brand color, products, discover grouping)
keep reading verified.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
daily-webapp Ready Ready Preview Nov 16, 2026 7:39pm UTC
storybook Ready Ready Preview Nov 16, 2026 7:39pm UTC

Request Review

@nimrodkra
nimrodkra merged commit 249a7b9 into main Nov 16, 2026
13 checks passed
@nimrodkra
nimrodkra deleted the feat/squad-enterprise-settings branch November 16, 2026 20:09

This branch was successfully deployed

2 active deployments
Preview – daily-webapp — 352fb007 Deployed Nov 16, 2026 by vercel[bot]
Preview – storybook — 352fb007 Deployed Nov 16, 2026 by vercel[bot]
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