console fill: the content rating's Save draft is clicked too (the owner agreed)
Play content rating (IARC): storebound now clicks Save draft, then Next, on each page, like App Privacy's draft saves. Google keeps one draft per app and IARC gets nothing before Submit, which stays the owner's click. FORM_BUTTONS, the flow gate (AUTO_DRAFT_SAVE), the console-autofill skill and the guardrail test are updated; the test answers the open questions as the owner and checks that Submit on the Summary is never clicked.
This commit is contained in:
parent
8ffc83bb39
commit
ece6644522
9 changed files with 57 additions and 29 deletions
|
|
@ -54,7 +54,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
||||||
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
||||||
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
||||||
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save) and never signs in, submits or publishes: the owner presses the final button
|
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save; content rating: Save draft) and never signs in, submits or publishes: the owner presses the final button
|
||||||
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
||||||
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
||||||
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
||||||
|
|
|
||||||
2
.github/copilot-instructions.md
vendored
2
.github/copilot-instructions.md
vendored
|
|
@ -56,7 +56,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
||||||
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
||||||
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
||||||
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save) and never signs in, submits or publishes: the owner presses the final button |
|
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save; content rating: Save draft) and never signs in, submits or publishes: the owner presses the final button |
|
||||||
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
||||||
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
||||||
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
||||||
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
||||||
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
||||||
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save) and never signs in, submits or publishes: the owner presses the final button
|
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save; content rating: Save draft) and never signs in, submits or publishes: the owner presses the final button
|
||||||
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
||||||
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
||||||
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
||||||
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
||||||
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
||||||
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save) and never signs in, submits or publishes: the owner presses the final button |
|
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save; content rating: Save draft) and never signs in, submits or publishes: the owner presses the final button |
|
||||||
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
||||||
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
||||||
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
||||||
|
|
|
||||||
|
|
@ -747,8 +747,18 @@ export async function fillSession(b: ConsoleBrowser, o: FillSessionOpts): Promis
|
||||||
if (privacy && !d) return null;
|
if (privacy && !d) return null;
|
||||||
return controlWhere(d ?? p, FLOW_NAMES.next, w => !privacy || w.inDialog, dataTypes);
|
return controlWhere(d ?? p, FLOW_NAMES.next, w => !privacy || w.inDialog, dataTypes);
|
||||||
};
|
};
|
||||||
/** Moves on after a filled page: Next, else (App Privacy) the dialog's draft Save. true when something was clicked. */
|
/** The section filled last, and the content rating pages whose Save draft was clicked. */
|
||||||
async function advance(p: Page): Promise<boolean> {
|
let filledAt: number | null = null;
|
||||||
|
const drafted = new Set<number>();
|
||||||
|
/** Moves on after a filled page: (content rating: Save draft, then) Next, else (App Privacy) the dialog's draft Save.
|
||||||
|
* true / 'draft' when something was clicked ('draft': Next still to come). */
|
||||||
|
async function advance(p: Page): Promise<boolean | 'draft'> {
|
||||||
|
// the content rating: Save draft first (once per page), then Next
|
||||||
|
if (form === 'play-content-rating' && filledAt !== null && !drafted.has(filledAt)) {
|
||||||
|
drafted.add(filledAt);
|
||||||
|
const draft = await controlWhere(p, FLOW_NAMES.saveDraft, () => true, dataTypes);
|
||||||
|
if (draft && await flowClick(draft, form, dataTypes, say)) return 'draft';
|
||||||
|
}
|
||||||
const next = await nextControl(p);
|
const next = await nextControl(p);
|
||||||
if (next) return flowClick(next, form, dataTypes, say);
|
if (next) return flowClick(next, form, dataTypes, say);
|
||||||
const d = privacy ? await anchorDialog() : null;
|
const d = privacy ? await anchorDialog() : null;
|
||||||
|
|
@ -836,7 +846,7 @@ export async function fillSession(b: ConsoleBrowser, o: FillSessionOpts): Promis
|
||||||
}
|
}
|
||||||
filled += s.filled.length; highlighted += s.highlighted.length;
|
filled += s.filled.length; highlighted += s.highlighted.length;
|
||||||
say(`${s.title}: filled ${s.filled.length}, check ${s.highlighted.length}${s.highlighted.length ? `: ${s.highlighted.map(id => labels.get(id) ?? id).join('; ')}` : ''}`);
|
say(`${s.title}: filled ${s.filled.length}, check ${s.highlighted.length}${s.highlighted.length ? `: ${s.highlighted.map(id => labels.get(id) ?? id).join('; ')}` : ''}`);
|
||||||
anchor = s.anchor;
|
anchor = s.anchor; filledAt = s.section;
|
||||||
// the last page of a Play / App Store form without a Next ends the run: its button is the owner's (Save, Submit, Create)
|
// the last page of a Play / App Store form without a Next ends the run: its button is the owner's (Save, Submit, Create)
|
||||||
const ends = !privacy && s.section === last && !await nextControl(p).catch(() => null);
|
const ends = !privacy && s.section === last && !await nextControl(p).catch(() => null);
|
||||||
pendingAdvance = !ends;
|
pendingAdvance = !ends;
|
||||||
|
|
@ -855,7 +865,9 @@ export async function fillSession(b: ConsoleBrowser, o: FillSessionOpts): Promis
|
||||||
}
|
}
|
||||||
if (pendingAdvance) {
|
if (pendingAdvance) {
|
||||||
pendingAdvance = false;
|
pendingAdvance = false;
|
||||||
if (await advance(p).catch(() => false)) { await Bun.sleep(tick); continue; }
|
const moved = await advance(p).catch(() => false);
|
||||||
|
if (moved === 'draft') pendingAdvance = true; // Next follows the saved draft
|
||||||
|
if (moved) { await Bun.sleep(tick); continue; }
|
||||||
}
|
}
|
||||||
if (privacy) await privacyStep(p).catch(() => { /* navigating */ });
|
if (privacy) await privacyStep(p).catch(() => { /* navigating */ });
|
||||||
await Bun.sleep(tick);
|
await Bun.sleep(tick);
|
||||||
|
|
|
||||||
|
|
@ -298,10 +298,11 @@ export function navAllowed(name: string, role: string): boolean {
|
||||||
// (help pages below, checked October 2026); `auto` says whether storebound clicks it itself:
|
// (help pages below, checked October 2026); `auto` says whether storebound clicks it itself:
|
||||||
// navigation only moves between pages or opens a dialog: storebound clicks it (flowAllowed), after the page's
|
// navigation only moves between pages or opens a dialog: storebound clicks it (flowAllowed), after the page's
|
||||||
// certain answers are filled and only when no answer on the page is uncertain
|
// certain answers are filled and only when no answer on the page is uncertain
|
||||||
// draft-save stores answers that are not public yet. App Privacy only: Apple keeps the answers in App Store Connect
|
// draft-save stores answers that are not public yet, clicked by storebound: App Privacy's in-dialog Save (Apple
|
||||||
// and puts them on the product page only after Publish ("Your responses will be published on your
|
// keeps the answers in App Store Connect and puts them on the product page only after Publish: "Your
|
||||||
// product page on the App Store" once you click Publish), so its in-dialog Save is clicked. On every
|
// responses will be published on your product page on the App Store" once you click Publish) and the
|
||||||
// other form a draft save stays the owner's click for now
|
// Play content rating's Save draft ("To finish later, click Save draft"; IARC gets nothing before
|
||||||
|
// Submit). The owner agreed to both (October 2026)
|
||||||
// final-submit publishes, submits, creates or sends something for review: always the owner's click
|
// final-submit publishes, submits, creates or sends something for review: always the owner's click
|
||||||
// Sources: Apple "Manage app privacy" https://developer.apple.com/help/app-store-connect/manage-app-information/manage-app-privacy ;
|
// Sources: Apple "Manage app privacy" https://developer.apple.com/help/app-store-connect/manage-app-information/manage-app-privacy ;
|
||||||
// Apple "Add a new app" https://developer.apple.com/help/app-store-connect/create-an-app-record/add-a-new-app ;
|
// Apple "Add a new app" https://developer.apple.com/help/app-store-connect/create-an-app-record/add-a-new-app ;
|
||||||
|
|
@ -325,7 +326,7 @@ export const DATA_TYPES_HEADING: Name[] = ['Data Types', 'Veri Türleri', 'Veri
|
||||||
/** The App Privacy page heading. */
|
/** The App Privacy page heading. */
|
||||||
export const APP_PRIVACY_HEADING: Name[] = ['App Privacy', 'Uygulama Gizliliği', /^app privacy$/i];
|
export const APP_PRIVACY_HEADING: Name[] = ['App Privacy', 'Uygulama Gizliliği', /^app privacy$/i];
|
||||||
/** Names the engine looks for. */
|
/** Names the engine looks for. */
|
||||||
export const FLOW_NAMES = { next: NEXT, save: SAVE, getStarted: GET_STARTED, edit: EDIT };
|
export const FLOW_NAMES = { next: NEXT, save: SAVE, saveDraft: SAVE_DRAFT, getStarted: GET_STARTED, edit: EDIT };
|
||||||
|
|
||||||
/** Every button of every console form, classified (the console-autofill skill's table is written from this). */
|
/** Every button of every console form, classified (the console-autofill skill's table is written from this). */
|
||||||
export const FORM_BUTTONS: Record<FormId, ButtonRule[]> = {
|
export const FORM_BUTTONS: Record<FormId, ButtonRule[]> = {
|
||||||
|
|
@ -356,7 +357,7 @@ export const FORM_BUTTONS: Record<FormId, ButtonRule[]> = {
|
||||||
'play-content-rating': [
|
'play-content-rating': [
|
||||||
{ button: 'Start / Start new questionnaire', class: 'navigation', where: 'App content: opens the questionnaire', auto: true },
|
{ button: 'Start / Start new questionnaire', class: 'navigation', where: 'App content: opens the questionnaire', auto: true },
|
||||||
{ button: 'Next', class: 'navigation', where: 'after the category, and from the questions to the Summary', auto: true },
|
{ button: 'Next', class: 'navigation', where: 'after the category, and from the questions to the Summary', auto: true },
|
||||||
{ button: 'Save draft', class: 'draft-save', where: 'questionnaire: stores an unfinished draft (the owner\'s click for now)', auto: false },
|
{ button: 'Save draft', class: 'draft-save', where: 'questionnaire: stores the answers as the one draft of the app; nothing goes to IARC before Submit', auto: true },
|
||||||
{ button: 'Submit', class: 'final-submit', where: 'Summary: sends the questionnaire to IARC', auto: false },
|
{ button: 'Submit', class: 'final-submit', where: 'Summary: sends the questionnaire to IARC', auto: false },
|
||||||
],
|
],
|
||||||
'play-target-audience': [
|
'play-target-audience': [
|
||||||
|
|
@ -402,14 +403,19 @@ export function flowClass(form: FormId, name: string, role: string, where: FlowW
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The forms whose draft save storebound clicks (the owner agreed): nothing there is public or sent before the final button. */
|
||||||
|
export const AUTO_DRAFT_SAVE: FormId[] = ['apple-app-privacy', 'play-content-rating'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The flow click gate: a navigation control of the form, or App Privacy's Save inside a questionnaire dialog (a draft:
|
* The flow click gate: a navigation control of the form, App Privacy's Save inside a questionnaire dialog, or the
|
||||||
* nothing is public before Publish). Everything else (Publish, Submit, Create, a draft save on other forms, an unknown
|
* content rating's Save draft (drafts: nothing is public or sent before Publish / Submit). Everything else (Publish,
|
||||||
* control) stays the owner's click.
|
* Submit, Create, a final Save, an unknown control) stays the owner's click.
|
||||||
*/
|
*/
|
||||||
export function flowAllowed(form: FormId, name: string, role: string, where: FlowWhere): boolean {
|
export function flowAllowed(form: FormId, name: string, role: string, where: FlowWhere): boolean {
|
||||||
const c = flowClass(form, name, role, where);
|
const c = flowClass(form, name, role, where);
|
||||||
return c === 'navigation' || (c === 'draft-save' && form === 'apple-app-privacy' && where.inDialog && where.privacyPage);
|
if (c === 'navigation') return true;
|
||||||
|
if (c !== 'draft-save' || !AUTO_DRAFT_SAVE.includes(form)) return false;
|
||||||
|
return form === 'apple-app-privacy' ? where.inDialog && where.privacyPage : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- one login, several developer accounts / teams ----
|
// ---- one login, several developer accounts / teams ----
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ export const DESKTOP_ONLY: ToolDef[] = [
|
||||||
props: { file: { type: 'string', pattern: RENDER_FILE_RE.source, description: 'Path relative to the renders folder, as project.renders names it' } },
|
props: { file: { type: 'string', pattern: RENDER_FILE_RE.source, description: 'Path relative to the renders folder, as project.renders names it' } },
|
||||||
required: ['file'], args: i => ['--render', String(i.file)] },
|
required: ['file'], args: i => ['--render', String(i.file)] },
|
||||||
{ name: 'console_fill', title: 'Fill in a console form', command: ['console', 'fill'], write: true, network: true,
|
{ name: 'console_fill', title: 'Fill in a console form', command: ['console', 'fill'], write: true, network: true,
|
||||||
description: 'Fills one store console form that has no API (App Store app record, age rating, App Privacy; Play content rating, target audience) from the config in a visible Chromium the owner signs in to; uncertain fields are highlighted. It moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save in its dialogs) and never submits or publishes: the owner reviews every field and presses the final button (Publish, Submit, Save or Create). The dry run lists the answers; the real run lasts until the owner closes the browser.',
|
description: 'Fills one store console form that has no API (App Store app record, age rating, App Privacy; Play content rating, target audience) from the config in a visible Chromium the owner signs in to; uncertain fields are highlighted. It moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save in its dialogs; content rating: Save draft) and never submits or publishes: the owner reviews every field and presses the final button (Publish, Submit, Save or Create). The dry run lists the answers; the real run lasts until the owner closes the browser.',
|
||||||
props: { form: { type: 'string', enum: CONSOLE_FORMS, description: 'The console form' }, store: { type: 'string', enum: ['apple', 'play'], description: 'Default: from the form' },
|
props: { form: { type: 'string', enum: CONSOLE_FORMS, description: 'The console form' }, store: { type: 'string', enum: ['apple', 'play'], description: 'Default: from the form' },
|
||||||
fresh_profile: { type: 'boolean', default: false, description: "Use storebound's own browser profile (sign in there) instead of the owner's Chrome sign-in (a temporary copy of only the console cookies, deleted at the end)" } },
|
fresh_profile: { type: 'boolean', default: false, description: "Use storebound's own browser profile (sign in there) instead of the owner's Chrome sign-in (a temporary copy of only the console cookies, deleted at the end)" } },
|
||||||
required: ['form'], args: i => [String(i.form), ...opt('store', i.store), ...(i.fresh_profile === true ? ['--fresh-profile'] : [])] },
|
required: ['form'], args: i => [String(i.form), ...opt('store', i.store), ...(i.fresh_profile === true ? ['--fresh-profile'] : [])] },
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: console-autofill
|
name: console-autofill
|
||||||
description: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save) and never signs in, submits or publishes: the owner presses the final button. Use when the user wants help filling one of these console forms, asks what to answer in them, or wants the answers as a checklist.
|
description: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound moves through the pages itself (Next; App Privacy: Get Started, Edit, each data type and the draft Save; content rating: Save draft) and never signs in, submits or publishes: the owner presses the final button. Use when the user wants help filling one of these console forms, asks what to answer in them, or wants the answers as a checklist.
|
||||||
---
|
---
|
||||||
|
|
||||||
# Console autofill (forms without an API)
|
# Console autofill (forms without an API)
|
||||||
|
|
@ -106,7 +106,7 @@ It is not available over MCP.
|
||||||
for the owner to pick).
|
for the owner to pick).
|
||||||
6. Multi-page forms: storebound fills a page and clicks its Next itself (App Privacy: Get Started or Edit next to
|
6. Multi-page forms: storebound fills a page and clicks its Next itself (App Privacy: Get Started or Edit next to
|
||||||
Data Types, Next, the data types' Save, then each data type in the Data Types section: purposes > Next > linked >
|
Data Types, Next, the data types' Save, then each data type in the Data Types section: purposes > Next > linked >
|
||||||
Next > tracking > Save). It stops on a page only when an answer there is uncertain: it logs
|
Next > tracking > Save; content rating: Save draft, then Next). It stops on a page only when an answer there is uncertain: it logs
|
||||||
`answer needed on "<page>": <the answers>`, leaves them outlined, and goes on by itself once the owner has set
|
`answer needed on "<page>": <the answers>`, leaves them outlined, and goes on by itself once the owner has set
|
||||||
each one (a box that should stay empty: click it twice). It never clicks Next past an open question.
|
each one (a box that should stay empty: click it twice). It never clicks Next past an open question.
|
||||||
7. On the last page storebound prints "review every field and press <Save | Submit | Publish | Create> yourself"
|
7. On the last page storebound prints "review every field and press <Save | Submit | Publish | Create> yourself"
|
||||||
|
|
@ -146,7 +146,7 @@ content", "Create and set up your app"):
|
||||||
| New App (App Store) | + and New App (Cancel only to leave a team without the bundle id) | **Create**: creates the app record for good |
|
| New App (App Store) | + and New App (Cancel only to leave a team without the bundle id) | **Create**: creates the app record for good |
|
||||||
| Age rating (guide only) | nothing (`storebound apple appinfo` sets it by API) | Set Up / Next / Done, if the owner wants to look |
|
| Age rating (guide only) | nothing (`storebound apple appinfo` sets it by API) | Set Up / Next / Done, if the owner wants to look |
|
||||||
| Create app (Play) | Create app on the app list (opens the form) | the two **declarations** (agreements, never ticked) and **Create app** in the form: creates the app |
|
| Create app (Play) | Create app on the app list (opens the form) | the two **declarations** (agreements, never ticked) and **Create app** in the form: creates the app |
|
||||||
| Content rating (Play) | Start, Next (after the category, and to the Summary) | **Save draft** (not clicked yet: a stored draft is the owner's call for now) and **Submit**: sends the questionnaire to IARC |
|
| Content rating (Play) | Start; **Save draft** then Next on each page (a draft: IARC gets nothing before Submit; the owner agreed) | **Submit** on the Summary: sends the questionnaire to IARC |
|
||||||
| Target audience (Play) | Start / Manage, Next between the pages | **Save** on the last page: stores the declaration, which Google then reviews |
|
| Target audience (Play) | Start / Manage, Next between the pages | **Save** on the last page: stores the declaration, which Google then reviews |
|
||||||
|
|
||||||
Mid-way storebound stops only for an uncertain answer (see 6). It never asks the owner to click a navigation button
|
Mid-way storebound stops only for an uncertain answer (see 6). It never asks the owner to click a navigation button
|
||||||
|
|
|
||||||
|
|
@ -81,22 +81,24 @@ describe('button classes (FORM_BUTTONS, flowClass, flowAllowed)', () => {
|
||||||
for (const n of ['Publish', 'Yayınla', 'Submit for Review']) expect(flowAllowed('apple-app-privacy', n, 'button', at({ inDialog: true, inDataTypes: true }))).toBe(false);
|
for (const n of ['Publish', 'Yayınla', 'Submit for Review']) expect(flowAllowed('apple-app-privacy', n, 'button', at({ inDialog: true, inDataTypes: true }))).toBe(false);
|
||||||
expect(flowAllowed('apple-app-privacy', 'Get Started', 'checkbox', at())).toBe(false);
|
expect(flowAllowed('apple-app-privacy', 'Get Started', 'checkbox', at())).toBe(false);
|
||||||
});
|
});
|
||||||
test('other forms: Next is navigation; Save draft, Save, Submit, Create, Done stay the owner\'s', () => {
|
test('other forms: Next is navigation; the content rating\'s Save draft is clicked; Save, Submit, Create, Done stay the owner\'s', () => {
|
||||||
const w = at({ privacyPage: false });
|
const w = at({ privacyPage: false });
|
||||||
for (const f of ['play-content-rating', 'play-target-audience', 'apple-app-record', 'play-app-record'] as const) {
|
for (const f of ['play-content-rating', 'play-target-audience', 'apple-app-record', 'play-app-record'] as const) {
|
||||||
expect(flowAllowed(f, 'Next', 'button', w)).toBe(true);
|
expect(flowAllowed(f, 'Next', 'button', w)).toBe(true);
|
||||||
expect(flowAllowed(f, 'İleri', 'button', w)).toBe(true);
|
expect(flowAllowed(f, 'İleri', 'button', w)).toBe(true);
|
||||||
expect(flowAllowed(f, 'Get Started', 'button', w)).toBe(false);
|
expect(flowAllowed(f, 'Get Started', 'button', w)).toBe(false);
|
||||||
for (const n of ['Save draft', 'Save', 'Submit', 'Create', 'Create app', 'Done', 'Start rollout', 'Publish']) expect(flowAllowed(f, n, 'button', w)).toBe(false);
|
expect(flowAllowed(f, 'Save draft', 'button', w)).toBe(f === 'play-content-rating');
|
||||||
|
expect(flowAllowed(f, 'Taslağı kaydet', 'button', w)).toBe(f === 'play-content-rating');
|
||||||
|
for (const n of ['Save', 'Submit', 'Create', 'Create app', 'Done', 'Start rollout', 'Publish']) expect(flowAllowed(f, n, 'button', w)).toBe(false);
|
||||||
}
|
}
|
||||||
expect(flowClass('play-content-rating', 'Save draft', 'button', w)).toBe('draft-save');
|
expect(flowClass('play-content-rating', 'Save draft', 'button', w)).toBe('draft-save');
|
||||||
expect(flowClass('play-target-audience', 'Save', 'button', w)).toBe('final-submit');
|
expect(flowClass('play-target-audience', 'Save', 'button', w)).toBe('final-submit');
|
||||||
expect(flowClass('play-content-rating', 'Submit', 'button', w)).toBe('final-submit');
|
expect(flowClass('play-content-rating', 'Submit', 'button', w)).toBe('final-submit');
|
||||||
});
|
});
|
||||||
test('every form has its buttons classified; only navigation and App Privacy\'s draft Save are automatic', () => {
|
test('every form has its buttons classified; only navigation and the agreed draft saves (App Privacy, content rating) are automatic', () => {
|
||||||
for (const [f, rules] of Object.entries(FORM_BUTTONS)) {
|
for (const [f, rules] of Object.entries(FORM_BUTTONS)) {
|
||||||
expect(rules.length).toBeGreaterThan(0);
|
expect(rules.length).toBeGreaterThan(0);
|
||||||
for (const r of rules) if (r.auto) expect(r.class === 'navigation' || (f === 'apple-app-privacy' && r.class === 'draft-save')).toBe(true);
|
for (const r of rules) if (r.auto) expect(r.class === 'navigation' || (['apple-app-privacy', 'play-content-rating'].includes(f) && r.class === 'draft-save')).toBe(true);
|
||||||
expect(rules.some(r => r.class === 'final-submit' && !r.auto)).toBe(true);
|
expect(rules.some(r => r.class === 'final-submit' && !r.auto)).toBe(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -173,14 +175,22 @@ describe.skipIf(!browser)('App Privacy: the whole questionnaire (fixture apple-a
|
||||||
});
|
});
|
||||||
|
|
||||||
describe.skipIf(!browser)('the other forms: navigation by itself, final buttons and draft saves left to the owner', () => {
|
describe.skipIf(!browser)('the other forms: navigation by itself, final buttons and draft saves left to the owner', () => {
|
||||||
test('content rating: Next after the category by itself; stops at the uncertain questions; Save draft / Submit never clicked', async () => {
|
test('content rating: Save draft and Next by itself on each page, a stop at the uncertain questions until answered, the Summary; Submit never clicked', async () => {
|
||||||
const b = await local();
|
const b = await local();
|
||||||
const log = logLines();
|
const log = logLines();
|
||||||
const run = scope.run(fillSession(b, { form: 'play-content-rating', config: base0, startUrl: base + 'play-content-rating.html', ...fast(log) }));
|
const run = scope.run(fillSession(b, { form: 'play-content-rating', config: base0, startUrl: base + 'play-content-rating.html', ...fast(log) }));
|
||||||
await log.wait('the questionnaire stop', l => l.some(m => m.startsWith('answer needed on "Questionnaire"')));
|
await log.wait('the questionnaire stop', l => l.some(m => m.startsWith('answer needed on "Questionnaire"')));
|
||||||
|
expect(log.lines).toContain('clicked "Save draft" (draft-save)');
|
||||||
expect(log.lines).toContain('clicked "Next" (navigation)');
|
expect(log.lines).toContain('clicked "Next" (navigation)');
|
||||||
const c = await clicks(b);
|
expect(await clicks(b)).toEqual(['Save draft', 'Next']);
|
||||||
expect(c).toEqual(['Next']);
|
await Bun.sleep(500);
|
||||||
|
expect(await clicks(b)).toEqual(['Save draft', 'Next']); // nothing saved or moved past the open questions
|
||||||
|
// the owner answers every outlined question
|
||||||
|
const open = b.page.locator('[role="radiogroup"][data-storebound-check]');
|
||||||
|
for (let i = 0, n = await open.count(); i < n; i++) await open.nth(i).getByRole('radio', { name: 'No' }).check();
|
||||||
|
await log.wait('the final line', l => l.some(m => m.includes('press Submit yourself')));
|
||||||
|
expect(await clicks(b)).toEqual(['Save draft', 'Next', 'Save draft', 'Next']);
|
||||||
|
expect(await b.page.getByRole('heading', { name: 'Summary' }).isVisible()).toBe(true);
|
||||||
expect(navAsked(log.lines)).toEqual([]);
|
expect(navAsked(log.lines)).toEqual([]);
|
||||||
await b.context.close();
|
await b.context.close();
|
||||||
await run;
|
await run;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue