Repository navigation
feat(brands): add Mobile app as a site type (00456) - #1944
Merged
Merged
Conversation
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 (ansvisor#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: Claude Opus 5.5 <[email protected]>
…le-app # Conflicts: # supabase/schema.sql
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 1, 2026
…om since ansvisor#1944 Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 of 13 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Nov 2, 2026
…d then the page in one run (item 9) (#1954) * feat(content): add Write this to opportunities, building the brief and then the page in one run (item 9) Customer priorities item 9: an opportunity to a draft written from a brief took six clicks. Write this, in a row's menu and as the panel's main button, does it in one: a dialog says what happens and about how much of the month's AI usage it takes, then the draft starts as Start opens it and the Content Agent builds its brief (the editor's Build brief, holding the draft's claim so Stop lets go of it) and writes the page from it, or suggests changes to the existing page an opportunity names. A brief that can't be built leaves the page written from what there is. The AI usage answer adds what Write this typically takes, as a share of the budget (ai-estimates.js); the editor's wait screen shows the brief's run first. Help: opportunity details and content opportunities. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(content): read PageType from drafts, where page-types takes it from since #1944 Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(content): one import from drafts in write-this Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
gkhngyk
added a commit
that referenced
this pull request
Nov 2, 2026
…e, with AI checks on request (item 9) (#1955) * feat(content): add Write this to opportunities, building the brief and then the page in one run (item 9) Customer priorities item 9: an opportunity to a draft written from a brief took six clicks. Write this, in a row's menu and as the panel's main button, does it in one: a dialog says what happens and about how much of the month's AI usage it takes, then the draft starts as Start opens it and the Content Agent builds its brief (the editor's Build brief, holding the draft's claim so Stop lets go of it) and writes the page from it, or suggests changes to the existing page an opportunity names. A brief that can't be built leaves the page written from what there is. The AI usage answer adds what Write this typically takes, as a share of the budget (ai-estimates.js); the editor's wait screen shows the brief's run first. Help: opportunity details and content opportunities. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(content): estimate a draft's Site Audit score in the editor, free, with AI checks on request (item 9) Customer priorities item 9: no Site Audit score of a draft existed before it was published. An Audit chip in the editor's header, there whatever Quality's phase, and a card in Quality now estimate it: the audit's own checks run on the page as Export's HTML file has it, read again once typing pauses, for free; the checks of the whole site (robots.txt, llms.txt, HTTPS, the theme's tags and links) come from the brand's latest completed audit, and are left out without one, as leaving them out alone ran 17 points under the full audit on the dev audits against about 6. Estimate AI checks runs the 13 checks AI reads on Quality's AI usage; the verdicts come back with each later reading, so the score keeps them. Server: POST /api/content-drafts/:id/audit-estimate (draft-estimate.js, its own rate limit), evaluateLlmSignals reports its tokens for charging, and the AI usage answer adds what the AI checks typically take. Write this's dialog names the estimate. Help: Content Editor, page quality, opportunity details. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(content): read PageType from drafts, where page-types takes it from since #1944 Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(content): one import from drafts in write-this Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(content): list the draft estimate's route for the demo brand, and keep its verdicts' ref out of render The estimate's route is open to the demo brand's sample drafts (its page checks are free and write nothing), and its AI checks, which spend, refuse the demo brand in the route itself (402 demo_brand). The hook keeps the latest AI verdicts in its ref from an effect, not while rendering. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(content): keep the estimate hook's state inside the test component Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Gökhan Geyik <[email protected]>
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.
Summary
A brand whose business is a mobile app can now pick Mobile app as its site type (
app, the same key as Agent Center's business type). Its Content Editor page types, opportunities, task wording and conversion cards follow. Migration 00456.What changes
00456:
appjoins three check constraints:brands.site_type;content_rule_sets.site_type, so "Save as my rules" works for an app brand;content_quality_pages.site_type, so the editor's quality read works for an app brand.Each is a constraint swap on a small table; existing rows already pass.
schema.sqlis rebuilt.Page types (web
page-types.ts, servercontent-page-types.js). Mobile app offers:The default for an app brand is the general set, not B2C's travel types. URL and schema mapping:
/pricing→ Pricing;/featuresandMobileApplicationschema → Feature page;Older opportunity types map too.
What follows from this automatically:
Conversions: an app's live page shows Signups and Newsletter, with no revenue card.
Quality: the health, finance and legal advice check now runs on app pages too, as on B2C. The owner approved both decisions.
Site type detection:
MobileApplicationschema scores 3 forapp.appinstead of B2C, and never decide alone.app.appis skipped (skipped: 'unavailable') rather than failing, the same pattern as 00379.UI: Brand Settings › Site type and the editor's site menu show "Mobile app". The hint names the fourth type. The text comes from
en.json.Help and docs:
help/content/start-new-content.mdis updated. It is an approved article, so its dates andapproved-articles.jsonare refreshed.docs/guides/content-editor.mdxanddocs/guides/action-center.mdxare updated.Once this and the Agent Center packs PR are both merged, an app brand gets the packs' "For your site type" tag with no further change. The packs'
catalog.tscomment ("which a brand's settings don't offer yet") then goes stale; it gets a one-line follow-up.Related issue
None. Agents plan §8.1 (owner decision 2026-11-01: "Mobile app" as a site type, separate PR).
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
app.content-page-types,site-type-detect,content-quality-page,page-matching, task writer;page-types,asset-types,conversions, brand settings page, editor page,ai-brand-setup,actions/brandand help.Checked on the dev database with 00456 applied: saving Mobile app stores
app, and the demo brand was set back afterwards. Checked in the browser at 1024px, light and dark: the settings picker and the editor's page types. The owner approved the screens.Needs migration on prod: 00456 (gkhngyk).
Checklist
yarn lintpasses (0 errors; 7 old warnings in files this PR doesn't touch)yarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)CI passed on this branch (ee20633), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41332916719): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code