Repository navigation
Conversation
…type Content Opportunities gave every brand the same ten asset types, so a shop could get a glossary or landing page and a SaaS brand a product or category page. The generator now reads brands.site_type (or the editor's guess from Shopping mode and industry), lists that site's page types with their formats in the prompt, and limits assetType and the supporting types to them, plus the earned third_party_article and backlink. No calculation changes. Older opportunities keep their stored types and are read as the brand's page types (pillar_guide -> guide / buying_guide, landing_page -> solution_page / collection_page / destination_page, and so on). The opportunities list, the drawer, the assets card and Copy All Data name them with the editor's labels. Start preselects an opportunity's type for a new page; an existing page goes by its own address or title first. The Content Plan follows the same rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk This one comes from the user's spec: opportunities now suggest content types that fit the brand's kind of site (B2B SaaS / e-commerce / B2C), using the Content Editor's page types. No calculation changes. AI cost: each generation call gets about 150–250 more input tokens (the site type, plus 8–13 short content-type lines), and the output is unchanged. At gpt-5-mini prices that's a small fraction of a cent per call. Older opportunities keep their stored types. They're read as the brand's page types using the table in the PR body; no data is rewritten. One rule you may want to check: in Start and the Plan, an existing page is typed by its own address or title first, and by the opportunity's type only when those say nothing. That way Server 2,011 tests and web 2,494 tests pass, and the build passes. Deploy order doesn't matter. |
…es-site-type # Conflicts: # web/src/components/content/new-content-dialog.tsx
|
@gkhngyk Thanks! Merged main in ( |
|
Landed with #1334, which carries this branch's commits. Merging this branch into main now changes nothing, so I'm closing it. Reviewed in round 5; no open items. |
A brand's site type was B2B SaaS, E-commerce or B2C. A brand whose business is a mobile app now picks Mobile app (key `app`, as Agent Center's business type), and everything that follows the site type knows it. - 00456: brands.site_type takes 'app'; so do the two tables keyed by the brand's site type, content_rule_sets (My rules, 00227) and content_quality_pages (00270), else saving rules or a page read for an app brand would fail its check. Constraint swaps, existing rows pass. - Page types (web page-types.ts, server content-page-types.js): an app's site writes feature, comparison, alternatives, best-of, guide, definition, pricing, Help & FAQ and blog pages; its pricing, features and MobileApplication schema read as pricing and feature pages, its policy pages as Help & FAQ. Older opportunity types map onto these. - Opportunities (#1332) and AI task writing take the app's page types and name it "Mobile app (a mobile app people install from an app store)"; Content Agent, brief and writer prompts too (Quality phase 2). - Conversions from AI journeys count signups and newsletter signups. - Quality: the regulated-advice check (health, finance, legal) applies to app pages as to B2C ones. - Site type detection: a MobileApplication schema reads as an app (3), app store badges now count toward app instead of B2C (1, never enough alone), and the model's prompt describes app. A detected app that can't be written before 00456 is applied is skipped, as before 00379. - Brand settings' selector and the editor's site menu offer Mobile app; the hint names its page types. - Help: Start a page in New content says page types follow the site type; docs guides list Mobile app. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
From the user's spec: Content Opportunities now suggest content types that fit the brand's kind of site (B2B SaaS, e-commerce, B2C), using the same page types as the Content Editor. Before, every brand got the same ten fixed asset types: a shop could get a "glossary/landing page", and a SaaS brand a "product/category page". B2B pages such as feature, use case, integration, pricing, alternatives and best-of were missing.
None of the existing calculations change. Topics, clusters, fan-out searches, est. AI volume, visibility, competitors, the brand's pages and Analytics data all stay as they are, and so do the create/optimize/expand/refresh/consolidate/defend decisions and the supporting assets. Only the type the model picks now comes from the brand's own list.
Server
content-page-types.jsgains:SITE_PAGE_TYPESandsiteTypeOf, mirroringweb/src/lib/content/page-types.ts: the pickedbrands.site_type, else the editor's guess from Shopping mode and industry. A test keeps the two copies in step.sitePageTypeLines: the site's page types, each with its format, for the prompt.page-matching.js:ASSET_TYPESis replaced byassetTypes(siteType), which returns the site's page types plus the earned ones (third_party_article,backlink).buildAssetstakes that list. A primary asset of another type is a blog post, which every kind of site writes.opportunity-generator.js:site_typeandshopping_mode_enabledwith the brand;assetTypeand supportingtypeenums use the site's list;Web
lib/content/asset-types.tsreads a stored type as the brand's page type.Older opportunities are mapped at read time, and no rows are rewritten. The mapping is the table the user approved:
Labels:
useAssetTypeLabelnames a type with the editor's page type labels (contentEditor.pageTypes), or withcontent.assetTypefor earned assets. The eight oldcontent.assetTypelabels are gone, since the mapping covers them.Start (New content):
/shippingstays a policy page even though an old opportunity called it a "landing page"). When neither shows anything, the opportunity's type is used.Content Plan: opportunity rows follow the same rules, so the Plan and Start agree.
Before / after on the demo brand. Acme Coffee has no site type set, and Food & Beverage makes the guess e-commerce.
pillar_guidelanding_pageproduct_pageblog_postthird_party_article/shipping, stored aslanding_page) still reads Policy, from its own address.AI cost (for @gkhngyk): each generation call gets about 150–250 more input tokens: the site type and 8–13 short content-type lines. The output is unchanged.
Related issue
None. Product spec from the user.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checked in light and dark, at 1024 px and wider.
Checklist
Branch follows the naming convention (
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdCommits follow Conventional Commits
yarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Changes are focused — one concern per PR
Web:
yarn testpasses (283 files, 2,494 tests), andyarn buildpasses with CI's placeholders.Server:
npm run format,npm run lintandnpm testpass (170 files, 2,011 tests).Deploy: the server and the web can go in either order. The web reads old and new types alike, and the server only writes types the web names.
🤖 Generated with Claude Code