cloud / internal-packages / installer / pretend / scenarios.jsmain at aacbc74
// The scenarios of the pretend Cloudflare, as data: the home page lists them, world.js acts on them.
/** What an email's tags can ask for (the part after "+", as many as you like). */
export const TAGS = [
["new", "One free account, nothing set up. The same as no tag."],
["card", "A card is on file."],
["paid", "Workers Paid is on (with a card)."],
["r2", "R2 is on."],
["credit", "$10 of AI Gateway credit (with a card)."],
["workersdev", "The account has its workers.dev address."],
["ready", "Card, Workers Paid, R2, workers.dev and credit."],
[
"domains",
"A domain registered here (so a contact is on file), and one from elsewhere that waits for its nameservers.",
],
["many", "Three more accounts, each in a different state."],
[
"auto",
"For a chat installation with nobody at the dashboard: a domain <name>-labs.com, and Workers Paid comes on 20 seconds after it is first asked for, R2 20 seconds after that.",
],
];
/** What a name typed in the flow sets off. */
export const TRIGGERS = [
["New account name", "contains fail", "Cloudflare refuses to create it."],
["workers.dev name", "ada, iterate, or starts with taken", "Someone else has it."],
["Domain to buy", "contains taken", "Not available."],
["Domain to buy", "contains premium", "A premium name: $2,400 a year."],
["Domain to buy", "contains slow", "The registry takes about 20 seconds."],
["Domain to buy", "contains fail", "The registry rejects the registration."],
["Domain from elsewhere", "any name", "Active about 20 seconds after you add it."],
[
"Domain from elsewhere",
"contains stuck",
"Waits until you press “Nameservers point here” on this site.",
],
[
"Domain, at the deploy",
"contains flaky",
"The first deploy fails at the deploy step; the retry works. flaky-check, flaky-answer or flaky-verify fails at that step.",
],
["Domain, at the deploy", "contains broken", "Every deploy fails."],
["Domain, at the deploy", "contains sluggish", "Each step takes four times as long."],
[
"Domain, at the deploy",
"contains vault",
"An update stops at its first step: the deployment keeps its vault key outside Cloudflare.",
],
[
"Domain, at “Erase and replace”",
"contains used",
"The domain has a website's record and a mail record: the list names them.",
],
[
"Domain, at “Erase and replace”",
"contains locked",
"The domain has a Spectrum app, which iterate cannot remove: nothing is erased.",
],
[
"Domain, at “Erase and replace”",
"contains shared",
"The domain serves another person's Worker: iterate never erases it.",
],
];