Skip to content

feat(brands): add Mobile app as a site type (00456) - #1944

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:feat/site-type-mobile-app
Nov 1, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:feat/site-type-mobile-app

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

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: app joins 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.sql is rebuilt.

  • Page types (web page-types.ts, server content-page-types.js). Mobile app offers:

    • Feature page, Comparison, Alternatives page, Best-of list;
    • How-to guide, Definition page;
    • Pricing, Help & FAQ, Blog post.

    The default for an app brand is the general set, not B2C's travel types. URL and schema mapping:

    • /pricing → Pricing;
    • /features and MobileApplication schema → Feature page;
    • policy pages → Help & FAQ.

    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:

    • MobileApplication schema scores 3 for app.
    • Store badges now score 1 for app instead of B2C, and never decide alone.
    • The model prompt describes app.
    • Before 00456 is applied, a detected app is 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.md is updated. It is an approved article, so its dates and approved-articles.json are refreshed.
    • docs/guides/content-editor.mdx and docs/guides/action-center.mdx are 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.ts comment ("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 feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Apply 00456. Open a brand's Settings › General › Site type and pick Mobile app, then save. The value is stored as app.
  2. Open a draft of that brand in the Content Editor. The page type menu shows "Mobile app page types".
  3. Live page › Conversions shows Signups and Newsletter.
  4. Unit tests:
    • server: content-page-types, site-type-detect, content-quality-page, page-matching, task writer;
    • web: page-types, asset-types, conversions, brand settings page, editor page, ai-brand-setup, actions/brand and 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

  • Branch follows the naming convention
  • Commits follow Conventional Commits
  • yarn lint passes (0 errors; 7 old warnings in files this PR doesn't touch)
  • yarn typecheck passes
  • yarn format:check passes
  • Changes are focused — one concern per PR
  • Help article updated under help/ (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 and yarn build pass; server lint, format:check and all tests pass.

🤖 Generated with Claude Code

cihan-gyk and others added 2 commits November 1, 2026 18:40
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]>
@mintlify

mintlify Bot commented Nov 1, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit ee20633.

Approve preview

@github-actions github-actions Bot added the needs-migration Adds or edits a migration — apply it to the hosted database label Nov 1, 2026

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkhngyk
gkhngyk merged commit 9a2ac04 into ansvisor:main Nov 1, 2026
7 checks passed
cihan-gyk added a commit to cihan-gyk/ansvisor that referenced this pull request Nov 1, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-migration Adds or edits a migration — apply it to the hosted database

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants