diff --git a/webapp/README.md b/webapp/README.md index 8499d68..535ecc3 100644 --- a/webapp/README.md +++ b/webapp/README.md @@ -17,7 +17,7 @@ The page talks only to the names service under `/api`. In development that servi - `dev/`: the local chain deployment, the server of its terms' texts, the mock service and `start.sh`. - `test/`: unit tests (vitest). `e2e/`: browser tests (Playwright) against the dev backend. -The window holds the header, the screen and the invest note; the footer is below the fold, as on the badges store. The purchase steps (search, Links, name code, Community terms for a community name, Check your order, payment) follow one another. Each step, and each screen like one (an order's outcome, Check your code, Edit links), is a frame of one height, 540 px on a laptop and 640 px on a phone, as the mockup draws it, so Back, the heading, the main button and the link under it stand at the same place on every step, for a name of any length; a step without a main button keeps its link at the link's place, and on a laptop a step's last link stays at least 48 px above the invest note. The content runs down from under the heading, so nothing above a change moves. The home keeps its answer's room from the start, so its headline and field never move. A plain name's order waits for its buyer to agree to the general terms on Check your order, whose words link the terms' page at the commit the name policy links; a community name's order waits for its buyer to accept its community terms, which include the general terms, on their own step, which shows their text as the service fetches it by the name policy's link and, for a link to git.simplex.chat or GitHub, links that commit's page. While the terms of a name's kind cannot be read, its search answer says that names can't be ordered right now. A community name is registered for 2 years, even with a code for more, which Check your order then says. On Check your order, I have a code, under the payment choices, opens a code field in their place: a prepaid code that covers the name makes the order free, as the tab's code does, and Remove code, under the main button, brings the payment choices back. A pay page checks its name as it opens and every 5 minutes; when someone has registered it meanwhile, its note turns red and the payment's details are turned off. The page signs each order's registration over the dispute days of its payment, by its own table: 120 for a card, and 14 for Bitcoin, Monero or a prepaid code. An order is signed so when it is placed, a closed order's new invoice over the days of that invoice's payment, and a name selected for a taken order over the days of the order's payment. A registration signed again later, by the order's page or by Continue, is signed over the days of the payment in this browser's record of the order. In a record made in this browser, the payment is kept when the order is reopened with its code. In a record of an order made in another browser, the payment is the one the service reported. A service that expects other days refuses the signature: Check your order then says that the order or the selection did not go through, a closed order's page says so of its new invoice, the order's page says, after three refusals, that the name could not be signed, and Continue says that it did not go through. Once the order is ended in the service's view, which the service sets at its hourly check of the chain, or at its check of a mined register when the name was unregistered before the register was confirmed, the order's page says so: at once while it follows the registration, and when it is next opened once it has stopped reading a registered order. Your names marks its row Ended, and Edit links says that the registration was ended. Until that check, Your names shows a name unregistered on chain with its expiry date and the Name code button alone, and Edit links says that the name could not be read now and reads it again every 5 seconds. A prepaid code entered in Check your code registers the names the tab finds for free until it is taken off in the header; a name code entered there finds its order and adds it to Your names, or, reached from an order's page, opens the order it found. Every screen replaces the whole page between the header and the invest note and rises into place (220 ms); the old screen goes at once, so two never show together. What a step adds, such as a search's answer, a notice or a link's profile, fades in (180 ms); a change of theme eases its colours (200 ms). A reader who asks for reduced motion gets none of it. +The window holds the header, the screen and the invest note; the footer is below the fold, as on the badges store. The purchase steps (search, Links, name code, Community terms for a community name, Check your order, payment) follow one another. Each step, and each screen like one (an order's outcome, Check your code, Edit links), is a frame of one height, 540 px on a laptop and 640 px on a phone, as the mockup draws it, so Back, the heading, the main button and the link under it stand at the same place on every step, for a name of any length; a step without a main button keeps its link at the link's place, and on a laptop a step's last link stays at least 48 px above the invest note. The content runs down from under the heading, so nothing above a change moves. The home keeps its answer's room from the start, so its headline and field never move. A plain name's order waits for its buyer to agree to the general terms on Check your order, whose words link the terms' page at the commit the name policy links; a community name's order waits for its buyer to accept its community terms, which include the general terms, on their own step, which shows their text as the service fetches it by the name policy's link and, for a link to git.simplex.chat or GitHub, links that commit's page. While the terms of a name's kind cannot be read, its search answer says that names can't be ordered right now. A community name is registered for 2 years, even with a code for more, which Check your order then says. On Check your order, I have a code, under the payment choices, opens a code field in their place: a prepaid code that covers the name makes the order free, as the tab's code does, and Remove code, under the main button, brings the payment choices back. A pay page checks its name as it opens and every 5 minutes; when someone has registered it meanwhile, its note turns red and the payment's details are turned off. The page signs each order's registration over the dispute days of its payment, by its own table: 120 for a card, and 14 for Bitcoin, Monero or a prepaid code. An order is signed so when it is placed, a closed order's new invoice over the days of that invoice's payment, and a name selected for a taken order over the days of the order's payment. A registration signed again later, by the order's page or by Continue, is signed over the days of the payment in this browser's record of the order. In a record made in this browser, the payment is kept when the order is reopened with its code. In a record of an order made in another browser, the payment is the one the service reported. A service that expects other days refuses the signature: Check your order then says, for an order or a selection, that the order could not be placed, a closed order's page says so of its new invoice, the order's page says, after three refusals, that the name could not be signed, and Continue says that it did not work. Once the order is ended in the service's view, which the service sets at its hourly check of the chain, or at its check of a mined register when the name was unregistered before the register was confirmed, the order's page says so: at once while it follows the registration, and when it is next opened once it has stopped reading a registered order. Your names marks its row Cancelled, and Edit links says that the registration was cancelled. Until that check, Your names shows a name unregistered on chain with its expiry date and the Name code button alone, and Edit links says that the name could not be loaded now and reads it again every 5 seconds. A prepaid code entered in Check your code registers the names the tab finds for free until it is taken off in the header; a name code entered there finds its order and adds it to Your names, or, reached from an order's page, opens the order it found. Every screen replaces the whole page between the header and the invest note and rises into place (220 ms); the old screen goes at once, so two never show together. What a step adds, such as a search's answer, a notice or a link's profile, fades in (180 ms); a change of theme eases its colours (200 ms). A reader who asks for reduced motion gets none of it. ## Run everything with Docker @@ -152,7 +152,7 @@ The image's layers are cached between runs, so the contracts compile only when t Until the full launch, names are registered only with prepaid codes. The page is the same build in both modes: it reads the mode from `GET /api/config`, which the service answers `codes` while its `[names] codes_only` is on, and `open` otherwise. The page draws nothing between its header and footer until it has the answer, which `index.html` preloads, so it never shows one mode and then the other; offline, the service worker answers with the service's last answer, and a page with neither draws in `open` mode. In `codes` mode: -- The home's search field and its button are off, greyed with a not-allowed pointer, and take no focus or Enter, until the tab holds a prepaid code; one line says names can be registered with an investor code for now, and the screen's one action, Register with code, opens Check your code (`/#/code`). +- The home's search field and its button are off, greyed with a not-allowed pointer, and take no focus or Enter, until the tab holds a prepaid code; one line says names can be registered only with a code right now, and the screen's one action, Register with code, opens Check your code (`/#/code`). - With a code, the search answers a name shorter than the code covers at once, without asking the service, and Check your order has no payment choices and no Pay with ETH: the tab's code pays, or, once it is taken off, a code entered in the field that takes the choices' place. - Nothing offers a payment: a closed invoice offers no new one; refunds, Your names, restoring, link edits and order pages work as in `open` mode. - The service answers `403 {"error": "codes_only"}` to `POST /api/invoice` for a name. A page opened before the switch meets it: Check your order then says registration is by code only for now, and a closed invoice's page says so under its button, each with a way to enter a code. The screen after it is a fresh load of the page, in codes mode. diff --git a/webapp/TODO.md b/webapp/TODO.md index c21feb7..56d6d77 100644 --- a/webapp/TODO.md +++ b/webapp/TODO.md @@ -19,48 +19,34 @@ All screens: how each one makes people feel, the criterion the language audit ap | 3 | checkout-community-unreadable | The screen says the terms cannot be shown; find why it reaches that state, and change what the person sees. | | 4 | checkout-links-scan-dialog (phone), checkout-review-code-scan-dialog (phone) | The screenshots show no QR code; find whether the scan dialogs are broken or only the screenshots. | | 7 | checkout-review-bonus-tip (phone) | The tooltip is black in the light theme; restyle it to suit the light theme. | -| 8 | checkout-review-code-verdict-expired | The text says the code registers a name; only a person registers a name. Reword without giving the code an action. | | 9 | checkout-review-code-verdict-name-code | The message is confusing and the behaviour is wrong. Tell the person it is a name code, show whether it has links, and offer to add it to "Your names" on this page. | -| 10 | checkout-review-code-verdict-not-covering | The text says the code does not "cover" the name; a code covers nothing. Reword in terms of what the person can register with it. | -| 11 | checkout-review-code-verdict-not-issued | The text is insulting; replace it with "contact support". | +| 10 | checkout-review-code-refused-not-covering, checkout-select-refused-uncovered | The text "This code does not cover this name." (src/views/codes.ts `CODE_ERRORS`) says the code does not "cover" the name; a code covers nothing. Reword in terms of what the person can register with it. | | 12 | checkout-review-code-verdict-rate-limited | Checked: the purple square is the screenshot test's mask over the countdown's seconds ("Checking again in 30 seconds"), not the page. No page change. | -| 13 | checkout-review-code-verdict-reserved | The text is insulting, and it says the code registers something; only a person registers a name. Reword. | -| 14 | checkout-review-code-verdict-revoked | The text is wrong and offensive; reword. | -| 15 | checkout-review-code-verdict-unfinished | The message is wrong; reword. | -| 16 | checkout-review-code-verdict-used | The text says the code registered a name; only a person registers a name. Reword. | | 17 | checkout-review-codes-only-refused (phone) | The language must be polite: "Please enter …". | | 18 | checkout-review-community-popup | Revise the community name popup: the fixed text in src/views/terms.ts `showCommunity` ("Its owner agrees to use it to benefit this community, not as the brand of one person or business.") and the community's description from the service ("This name is for …"). | | 20 | order-registering-wait (found by the screenshot test) | A countdown of 10:00 or more overflows its box: `.countdown b` has `min-width: 4ch` (styles.css), and "10:00" is 5 characters, so its last digit draws outside the box. | | 21 | order-pay-crypto-cancel-limited, order-pay-crypto-cancel-refused (phone) | At 390 px the notice covers "Cancel this invoice": the step's fixed height lets its content overflow into the actions row (found in the baselines). | -| 22 | checkout-review-waiting-card (phone) | The text is long and confusing; shorten it. | -| 23 | checkout-status-codes-only | The text is confusing; reword. | -| 24 | checkout-status-failed | The texts are bad; rewrite them. | -| 25 | checkout-status-price-changed | The text is bad and disrespectful; rewrite it. | -| 26 | checkout-status-taken, checkout-status-too-many-ended, checkout-select-refused-taken | "Nothing was charged" and "nothing more is charged" are bad texts; reword them everywhere they appear. | +| 26 | Your names, the row of an invoice closed with nothing received | "Nothing was charged · " (src/views/names.ts `subLine`) is a bad text; reword it. | | 27 | checkout-status-too-many (desktop and phone), checkout-select-held | A pink square shows. The screen answers 429 with a 30-second wait, which the page counts down ("Try again in …"), so it is probably the screenshot test's mask over the seconds, as in item 12; to confirm. | | 28 | checkout-status-unavailable | Issue to be stated by the user. | -| 32 | home-codes-only-uncovered | The warning is bad; rewrite it. | | 33 | home-community-popup-for (and item 18) | The popup speaks of "its owner" where it means the reader, and uses the present tense for what the reader will agree to on registering. Address the reader as "you", in the future tense. | | 34 | home-other-order-registering, and all public surfaces | No screen, service answer, mock or guide text shows that a name is being registered or held for another buyer; review each of them. | | 35 | home-phone-menu (phone) | The phone menu needs to change; what to change is to be stated by the user. | | 36 | home-reserved | Bad language: "yours to use" is borderline insulting; reword. | | 39 | screenshot test | The countdown masks show as pink squares, which read as page defects in review (items 12, 27, checkout-select-selected-elsewhere on the phone, home-select-selected-elsewhere, order-registering-committing on the phone). Show countdowns at a fixed value from the test clock instead of masking them, or draw the mask in the background colour (Playwright's `maskColor`). | | 40 | checkout-select-selected-elsewhere | Resolved by #19: the page opens the order whose name was selected elsewhere, and "Your order went …" is gone. | -| 41 | order-unreadable (phone) | "The page keeps trying …" gives the page an effort; reword. The screen asks to "quote the reference below", and the reference shown reads "unreadable": show the order's reference, or do not ask to quote one. | | 43 | service and page: fees | When the fee needed is above `max_fee_per_gas`, the service already sends nothing and tries again every 15 s (Sender `SEFeeAboveCap`), but counts it as an operator failure, reported to the group after 10 minutes. Treat a fee spike as a wait: postpone sending until the fee falls, report to operators only after a long wait, and show the buyer that the registration waits for lower network fees. | | 44 | service and page: paused orders | A refusal that means the page and the service are configured differently (the "permanent" revert reasons, such as InvalidSignature, NameTooShort and LabelTooLong), and the sent-failure cap, pause the order instead of failing it: no more attempts or gas until operator intervention, which resumes or fails it. The buyer sees the name as being registered, with attempts paused. | | 45 | order-registering-lapsed | While a lapsed order is committed again, the page shows "The name was not signed in time". Decide in the language audit; proposed: show the same screen as the first commit, without that line, since the person has nothing to do. | | 46 | home search of a name this browser's own paid order holds | Show the row as names drew it, with the order's price and years, and a "Your order" button that opens the order in place of Register. Decide in the language audit between A, with no line under the row, and B, with "You already paid for this name, the order is being processed." (for a paid order only). | | 47 | home-own-order-failed, and every home search of a name this browser has an order for | Show a "Your order" button that opens the order, as decided for screen 16 (item 46), in place of the footer. The user asked for it on 19 November; it was applied nowhere. | | 48 | home-select-failed-order (phone) | The order reference appears twice on the page; show it once. | -| 52 | names-edit-config-unread | Bad language: "The name could not be read now" and "This page tries again by itself" (the page acting). Rewrite. | | 53 | order-closed-paid-late-support (phone), order-closed-received-support (phone), order-failed-action-failed (very long on the phone), order-failed-month-code (phone), order-failed-unread-code (very long on the phone) | The text is long; shorten it. | -| 56 | checkout-review-code-verdict-unpaid, checkout-review-code-refused-unpaid, names-check-prepaid-unpaid, names-code-unpaid | A code in the service's `unpaid` state reads "This code is not paid for yet", "It works once its payment is confirmed." and, in Your names, "Not paid yet": a payment for the code, which the compliance rule above excludes. Say what the state means without money words; language audit. | -| 57 | order pages and Your names: money of a closed invoice, and a taken order's balance | Money that reached a closed (expired or cancelled) invoice reads "kept as your balance" (src/views/order.ts: `INVOICE_EXPIRED`, `KEPT_LATE`, the note of a replaced invoice; src/screens/names.ts), which reads as credit toward a purchase, while support only refunds it; proposed: "kept for a refund". A taken order's payment reads "kept as your balance for another name" (the invoice's warning in src/views/order.ts), while only a name of the order's price for its years can be selected for it; proposed: "for another name of the same price". | +| 56 | checkout-review-code-verdict-unpaid, checkout-review-code-refused-unpaid, names-check-prepaid-unpaid, names-code-unpaid | A code in the service's `unpaid` state reads "This code is not paid for yet", "It can be used once its payment is confirmed." and, in Your names, "Not paid yet": a payment for the code, which the compliance rule above excludes. Say what the state means without money words; language audit. | +| 57 | order pages and Your names: money of a closed invoice, and a taken order's balance | Money that reached a closed (expired or cancelled) invoice reads "kept as your balance", "It is in your balance." or "It will be added to your balance" (src/views/order.ts: `INVOICE_EXPIRED`, `closedWords`, the note of a replaced invoice; src/screens/names.ts `LATE_KEPT`), which reads as credit toward a purchase, while support only refunds it; proposed: "kept for a refund". A taken order's payment reads "What you paid is in your balance." and "Please choose another name, or ask for a refund." (src/views/order.ts `buildTaken`), while only a name of the order's price for its years can be selected for it; proposed: "another name of the same price". | | 58 | checkout-review-*, order-registering-* | "After paying, keep this page open until the name is registered." and "Keep this page open until the name is registered." stay as on names; their words are for the language audit. | | 59 | README.md, dev/deploy.ts | The README's Develop section ("seeds the price oracle with the launch prices ($100, $200 and $400 for 2 years at 8 or more, 7 and 6 letters)") and the comment of `PRICE_EXCEPTIONS` in dev/deploy.ts call the prices by length the launch prices, as the store service's README does. The launch is $100 for every length; the price model stays per length, and the tests keep different prices. In the owner's words: "fyi, we launch with $100 all. But let's keep different prices in tests just in case we want to change it" and "we should not drop per-letter price distinction in model - we just make it the same $100 for all and change texts in TODOs". | -| 60 | order-ended, names-row-ended, names-edit-ended | An ended registration reads "was ended because a payment for it was disputed, reversed or refunded in full" (src/views/order.ts, src/views/names.ts and the README, from simplex.domains#23). The service sees only that the registrar's `disputeUntil` changed. The owner's wording: "a payment was cancelled". | -| 61 | names-edit-config-unread after an unregister | Until the service's hourly ended sweep, Edit links for an unregistered name shows "The name could not be read now" and reads it again every 5 seconds, while the search answers it as not registered (src/screens/names.ts, `EDIT_RETRY_MS`; src/views/names.ts). Say that the name reads as not registered, without reading it again. | -| 62 | names-edit-expired-*, home-yours-expired, and every screen of an expired name | Renewal is not implemented yet; to implement soon. The contracts allow it: the registrar's `renew` extends a name until its expiry plus the grace period, once its dispute period is over, and the sponsor's `renewWithCredit` spends the registrar's allowance, as a registration does. Missing: a renewal order, paid as a registration is, for a name the buyer holds, in its grace period, and before its expiry as its plan decides. Until then, the texts that say names are not renewed read "Renewal is not implemented yet." (src/views/names.ts `buildExpired`, "Names are not renewed, so this page no longer edits its links."; the comments in src/screens/names.ts and src/views/search.ts). | -| 63 | home-yours-expired-again-taken, names-edit-expired-taken, names-rows-registered | A name past its expiry and grace period is no longer the buyer's, even when this browser holds its order. Search shows it, at the end of the grace period, as "Expired … It has been registered again since." (src/views/search.ts `takenAnswer`, `mineFor`); show it as Taken, with its links, as any registered name, and under the row "Your registration of this name expired on ." with "Open your order" when this browser holds the order. Your names and Edit links show such a name as "Expired" and "This name has expired" from the browser's record (src/views/names.ts `rowChip`, `buildExpired`); show it as taken by someone else. | +| 61 | names-edit-config-unread after an unregister | Until the service's hourly ended sweep, Edit links for an unregistered name shows "The name could not be loaded now" and reads it again every 5 seconds, while the search answers it as not registered (src/screens/names.ts, `EDIT_RETRY_MS`; src/views/names.ts). Say that the name reads as not registered, without reading it again. | +| 62 | names-edit-expired-*, home-yours-expired, and every screen of an expired name | Renewal is not implemented yet; to implement soon. The contracts allow it: the registrar's `renew` extends a name until its expiry plus the grace period, once its dispute period is over, and the sponsor's `renewWithCredit` spends the registrar's allowance, as a registration does. Missing: a renewal order, paid as a registration is, for a name the buyer holds, in its grace period, and before its expiry as its plan decides. Until then, the texts that say names are not renewed read "Renewal is not implemented yet." (the comments in src/screens/names.ts and src/views/search.ts). | +| 63 | names-rows-registered | A name past its expiry and grace period is no longer the buyer's, even when this browser holds its order. Your names shows such a name as "Expired" from the browser's record (src/views/names.ts `rowChip`); show it as taken by someone else, as search and Edit links do. | | 65 | home-select-paid-other-price, names-check-prepaid-reserved-own | The language of "Your payment covers names at $100 for 2 years." and "This code is held by your order for ." is revised in the language review. | diff --git a/webapp/e2e/balance.spec.ts b/webapp/e2e/balance.spec.ts index 0fe4b61..b79b89e 100644 --- a/webapp/e2e/balance.spec.ts +++ b/webapp/e2e/balance.spec.ts @@ -52,7 +52,7 @@ test("a paid order taken first keeps its price as its balance, which support ref await expect(balanceRow(page).getByRole("button", { name: "Refund" })).toHaveAttribute("aria-haspopup", "dialog") await balanceRow(page).getByRole("button", { name: "Refund" }).click() const popup = page.getByRole("dialog", { name: "Refund" }) - await expect(popup).toContainText(`Contact support via chat@simplex.chat or SimpleX, and include order reference ${invoiceId}. Support refunds what is left of your balance.`) + await expect(popup).toContainText(`Please contact support via chat@simplex.chat or SimpleX, with the name and the order reference ${invoiceId}. Support refunds what is left of your balance.`) await expect(popup.locator(".code-text")).toHaveText(invoiceId) await expect(popup.getByRole("button", { name: "Copy reference" })).toBeFocused() await shot(page, "B2-refund") diff --git a/webapp/e2e/codes-only.spec.ts b/webapp/e2e/codes-only.spec.ts index b58845b..15f3b25 100644 --- a/webapp/e2e/codes-only.spec.ts +++ b/webapp/e2e/codes-only.spec.ts @@ -6,7 +6,7 @@ import { uniqueLabel, useCode, waitRegistered, } from "./helpers.ts" -const CODES_ONLY_LINE = "Names can be registered with an investor code for now." +const CODES_ONLY_LINE = "Names can be registered only with a code right now." const CODES_ONLY_TITLE = "Registration is by code only for now" const REGISTER_WITH_CODE = "Register with code" const FORBIDDEN = 403 @@ -188,7 +188,7 @@ test("a valid prepaid code opens the search for the names it covers and register const short = "abcdef" await nameField(page).fill(short) await nameField(page).press("Enter") - await expect(page.locator(".answer .line.bad")).toHaveText("6 letters. Your code covers names of 7 or more letters.") + await expect(page.locator(".answer .line.bad")).toHaveText("6 letters. Please use this code to register a free name with 7 or more letters.") expect(calls).not.toContain(`GET /api/name/${hex(labelHash(short))}`) await shot(page, "C3-codes-only-uncovered") @@ -241,8 +241,8 @@ test("an order paid before codes only shows no new invoice or other name, only R await setMode(request, "codes") await page.goto(`/?order=${invoiceId}`) - await expect(page.getByRole("heading", { name: `${label}.simplex was taken` })).toBeVisible() - await expect(onStep(page).getByText("What you paid is kept as your balance. You can ask for a refund. Your names shows the balance.")).toBeVisible() + await expect(page.getByRole("heading", { name: `${label}.simplex is no longer available` })).toBeVisible() + await expect(onStep(page).getByText("What you paid is in your balance. You can ask for a refund.")).toBeVisible() await expect(onStep(page).getByRole("button", { name: REGISTER_WITH_CODE })).toBeVisible() await expect(onStep(page).getByRole("button", { name: "Choose another name" })).toHaveCount(0) await expect(onStep(page).getByRole("button", { name: "Get a refund" })).toBeVisible() @@ -270,7 +270,7 @@ test("a registration ended in its dispute period is shown with Register with cod const order = await keepOrder(page, `reg-${label}`, null, label) await page.route(`**/api/registration/${order.registrationId}*`, (route) => route.fulfill({ json: registrationView(order, { phase: { type: "ended" }, commitTx: "0x02", registerTx: "0x03" }) })) await page.goto(`/?registration=${order.registrationId}`) - await expect(onStep(page).getByRole("heading", { name: "Registration ended" })).toBeVisible() + await expect(onStep(page).getByRole("heading", { name: "Registration cancelled" })).toBeVisible() await expect(onStep(page).getByRole("button", { name: "Search a name" })).toHaveCount(0) await onStep(page).getByRole("button", { name: REGISTER_WITH_CODE }).click() await expect(onStep(page).getByRole("heading", { name: "Check your code" })).toBeVisible() @@ -285,7 +285,7 @@ test("a page opened before codes only, refused as it pays, says registration is const seen = loads(page) await payButton(page).click() await expect(onStep(page).getByRole("heading", { name: CODES_ONLY_TITLE })).toBeVisible() - await expect(onStep(page).getByText(/can be registered with an investor code for now\. Nothing was charged\.$/)).toBeVisible() + await expect(onStep(page).getByText(CODES_ONLY_LINE)).toBeVisible() await shot(page, "C9-codes-only-refused") expect(seen.count, "the refusal stays in view, in the page as it was").toBe(0) await onStep(page).getByRole("button", { name: "Enter a code" }).click() @@ -301,7 +301,7 @@ test("a closed invoice's page opened before codes only, refused a new invoice, s const seen = loads(page) await page.getByRole("button", { name: "Get a new invoice" }).click() const note = onStep(page).locator(".notice", { hasText: CODES_ONLY_TITLE }) - await expect(note).toContainText("Nothing was charged. Enter a code.") + await expect(note).toContainText(`${CODES_ONLY_LINE} Enter a code.`) await expect(page).toHaveURL(new RegExp(`order=${invoiceId}`)) expect(seen.count, "the refusal stays in view, in the page as it was").toBe(0) await note.getByRole("link", { name: "Enter a code" }).click() diff --git a/webapp/e2e/codes.spec.ts b/webapp/e2e/codes.spec.ts index 6ddacaa..543042c 100644 --- a/webapp/e2e/codes.spec.ts +++ b/webapp/e2e/codes.spec.ts @@ -24,7 +24,7 @@ const watchKept = () => { } const saidKept = (page: Page) => page.evaluate(() => (window as unknown as { __kept: boolean }).__kept) -const USED_WHY = "A code registers one name only." +const USED_WHY = "Your code was used for another name" // With a code refused for good the order registers no name: the page says why and offers another search instead. async function offersSearchInstead(page: Page): Promise { await expect(page.getByText(USED_WHY)).toBeVisible() @@ -32,13 +32,10 @@ async function offersSearchInstead(page: Page): Promise { await expect(page.getByRole("button", { name: "Search a name" })).toBeVisible() } -const REFUSED_LEAD = "Your code can no longer be used for it. Write to support." -const SUPPORT_LEAD = "Write to support." - async function reopenRefused(page: Page): Promise { await page.addInitScript(watchKept) await page.reload() - await expect(page.locator(".screen-head .lead")).toHaveText(REFUSED_LEAD) + await expect(page.locator(".screen-head .lead")).toHaveCount(0) await expect(page.getByText("Your code was used for another name")).toBeVisible() await offersSearchInstead(page) expect(await saidKept(page), "the page said the code is kept before it said it is refused").toBe(false) @@ -156,15 +153,15 @@ test("a registration ended in its dispute period is shown as ended on its order' await control(request, `unregister/${registrationId}`) expect((await (await request.get(`${MOCK}/api/registration/${registrationId}`)).json()).phase, "the view the service gives an ended order").toEqual({ type: "ended" }) await page.reload() - await expect(onStep(page).getByRole("heading", { name: "Registration ended" })).toBeVisible() - await expect(onStep(page).locator(".notice")).toHaveText(`The registration of ${label}.simplex was ended because a payment for it was disputed, reversed or refunded in full.`) + await expect(onStep(page).getByRole("heading", { name: "Registration cancelled" })).toBeVisible() + await expect(onStep(page).locator(".notice")).toHaveText(`The registration of ${label}.simplex was cancelled because its payment was disputed or refunded.`) expect((await searchName(request, label)).type).toBe("available") await page.goto("/#/names") const row = page.locator(".list-row", { hasText: `${label}.simplex` }) - await expect(row.locator(".chip")).toHaveText("Ended") + await expect(row.locator(".chip")).toHaveText("Cancelled") await expect(row.getByRole("button", { name: /links$/ })).toHaveCount(0) await page.goto(`/#/edit/${registrationId}`) - await expect(onStep(page).getByText("The registration was ended")).toBeVisible() + await expect(onStep(page).getByText("The registration was cancelled")).toBeVisible() await expect(onStep(page).getByRole("button", { name: "Save links" })).toHaveCount(0) }) @@ -641,7 +638,7 @@ test("a prepaid code entered on Check your order makes the order free in place, await reviewFits(page, "the field") await codeField(page).fill(code) - await expect(onStep(page).locator(".code-entry .verdict")).toHaveText("This code allows you to register a free name of 6 or more letters, for 5 years.") + await expect(onStep(page).locator(".code-entry .verdict")).toHaveText("Use this code to register a free name with 6 or more letters, for 5 years.") await expect(total(page)).toHaveText(FREE_TOTAL) await expect(page.locator(".card.order .trow").first()).toHaveText(/^Term5 years and/) await expect(register, "the terms are still to be agreed").toBeDisabled() @@ -679,9 +676,9 @@ test("a code on Check your order that is not valid, used, too short for the name await haveCode(page).click() const cases: [string, string | RegExp][] = [ ["SN7-BJTBP-29596-R3HJ8-25YM8", /^This code is not valid/], - [used, "This code was already used. Each code registers one name."], - [longer, "This code does not cover this name. It covers names of 8 or more letters."], - [await checkoutOwnerCode(page), "This is a name code. A code from SimpleX lets you register a free name."], + [used, "This code was already used for a name."], + [longer, "Please use this code to register a free name with 8 or more letters."], + [await checkoutOwnerCode(page), "This is a name code, not a code for a free name."], ] for (const [text, says] of cases) { await codeField(page).fill(text) @@ -709,10 +706,10 @@ test("Check your code tells a prepaid code, a name code and anything else apart, await shot(page, "K6-code-invalid") // a name code is judged by the orders find lists for it, none for this one await codeField(page).fill("SN-8M7X0-8Z533-AG8DP-RBN5T-BPQ6D-YH09G") - await expect(verdict).toHaveText("No order was found for this code. The service has no order registered to its wallet.") + await expect(verdict).toHaveText("No order was found for this name code.") await expect(find).toBeDisabled() await codeField(page).fill(code) - await expect(verdict).toHaveText("This code allows you to register a free name of 8 or more letters, for 2 years.") + await expect(verdict).toHaveText("Use this code to register a free name with 8 or more letters, for 2 years.") await expect(onStep(page).getByText("Search for a name; it shows as Free.")).toBeVisible() await expect(onStep(page).locator(".lead")).toHaveText("A code from SimpleX lets you register a free name.A name code brings a name you own to this browser.") await shot(page, "K1-code-valid") @@ -720,7 +717,7 @@ test("Check your code tells a prepaid code, a name code and anything else apart, const short = uniqueLabel("k7").slice(0, 7) await search(page, short) await expect(page.locator(".answer .row .deal")).toHaveText(/^\$\d+ \/ 2 years$/) - await expect(page.locator(".answer .hint")).toHaveText("Your code allows you to register a free name of 8 or more letters. This name has 7.") + await expect(page.locator(".answer .hint")).toHaveText("7 letters. Please use this code to register a free name with 8 or more letters.") await shot(page, "K7-code-too-short") await toReview(page) await expect(page.getByRole("radio")).toHaveCount(3) @@ -874,7 +871,7 @@ test("a name selected for a code order taken first is registered with its code, const short = sevenLetters() await page.getByLabel("Name", { exact: true }).fill(short) await page.getByLabel("Name", { exact: true }).press("Enter") - await expect(page.locator(".answer .line")).toHaveText("7 letters. Your code covers names of 10 or more letters.") + await expect(page.locator(".answer .line")).toHaveText("7 letters. Please use this code to register a free name with 10 or more letters.") await expect(onStep(page).getByRole("button", { name: "Register", exact: true })).toHaveCount(0) const next = uniqueLabel("ctk2") await page.getByLabel("Name", { exact: true }).fill(next) @@ -897,18 +894,18 @@ test("Your names words a code order before its registration as a free name with await page.route(`**/api/registration/${o.registrationId}*`, (route) => route.fulfill({ json: registrationView(o, { phase: { type: phase }, payment: { type: "code" }, price: 0 }) })) } await page.goto("/#/names") - await expect(page.locator(".list-row", { hasText: `${queued.label}.simplex` }).locator(".sub")).toHaveText("Waiting to commit · free name with a code") - await expect(page.locator(".list-row", { hasText: `${committing.label}.simplex` }).locator(".sub")).toHaveText("Committing · free name with a code") + await expect(page.locator(".list-row", { hasText: `${queued.label}.simplex` }).locator(".sub")).toHaveText("Registering · free name with a code") + await expect(page.locator(".list-row", { hasText: `${committing.label}.simplex` }).locator(".sub")).toHaveText("Registering · free name with a code") await page.unrouteAll({ behavior: "ignoreErrors" }) }) -test("a code order opened in a browser without its name code says it was ordered, not bought, in another", async ({ page }) => { +test("a code order opened in a browser without its name code asks for the name code saved for it", async ({ page }) => { const order = { registrationId: "reg-code-elsewhere", invoiceId: null, label: uniqueLabel("ce"), ownerCode: "", owner: "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed", request: { labelHash: `0x${"ab".repeat(32)}`, commitment: `0x${"01".repeat(32)}` } } await page.route(`**/api/registration/${order.registrationId}*`, (route) => route.fulfill({ json: registrationView(order, { label: null, phase: { type: "queued" }, payment: { type: "code" }, price: 0 }) })) await page.goto(`/?registration=${order.registrationId}`) await expect(onStep(page).getByRole("heading", { name: "The name code is not in this browser" })).toBeVisible() - await expect(onStep(page).locator(".notice")).toContainText("Its code was made in the browser it was ordered in.") + await expect(onStep(page).locator(".notice")).toContainText("Please enter the name code you saved for this order.") await page.unrouteAll({ behavior: "ignoreErrors" }) }) @@ -968,7 +965,7 @@ test("a failed code order opened again after its code was used elsewhere offers await page.addInitScript(watchKept) await page.reload() await expect(page.getByText("Your code was used for another name")).toBeVisible() - await expect(page.locator(".screen-head .lead")).toHaveText(REFUSED_LEAD) + await expect(page.locator(".screen-head .lead")).toHaveCount(0) await offersSearchInstead(page) await page.getByRole("button", { name: "Search a name" }).click() await expect(page.getByLabel("Name", { exact: true })).toBeVisible() @@ -992,7 +989,7 @@ test("a failed code order is drawn before its code is checked, and says the code await page.reload() await asked await expect(page.getByRole("heading", { name: "Not registered" }), unanswered).toBeVisible() - await expect(lead, unanswered).toHaveText(SUPPORT_LEAD) + await expect(lead, unanswered).toHaveCount(0) expect(await saidKept(page), `${unanswered}: the page said the code is kept without an answer`).toBe(false) await page.unrouteAll({ behavior: "wait" }) } @@ -1004,9 +1001,9 @@ test("a failed code order is drawn before its code is checked, and says the code }) await page.reload() await expect(page.getByRole("heading", { name: "Not registered" }), "the order is drawn while its code is checked").toBeVisible() - await expect(lead).toHaveText(SUPPORT_LEAD) + await expect(lead).toHaveCount(0) answer() - await expect(lead, "the lead says the code is kept once the check answers").toHaveText(`Your code is kept. ${SUPPORT_LEAD}`) + await expect(lead, "the lead says the code is kept once the check answers").toHaveText("Your code is kept.") await page.unrouteAll({ behavior: "wait" }) }) @@ -1014,13 +1011,13 @@ test("a failed code order whose code check meets the rate limit counts down its const { registrationId } = await registerWithCode(page, request, "climit") await control(request, `fail/${registrationId}`) await expect(page.getByRole("heading", { name: "Not registered" })).toBeVisible({ timeout: 60_000 }) - await expect(page.locator(".screen-head .lead")).toHaveText(`Your code is kept. ${SUPPORT_LEAD}`) + await expect(page.locator(".screen-head .lead")).toHaveText("Your code is kept.") const checks = await limitCodeChecks(page, 1, 3) await page.reload() - const notice = onStep(page).locator(".notice", { hasText: "Too many checks just now" }) - await expect(notice.locator("span[aria-hidden=true]")).toHaveText(/^Your code may be fine\. Checking again in [1-3] seconds?\.$/) - await expect(page.locator(".screen-head .lead")).toHaveText(SUPPORT_LEAD) - await expect(page.locator(".screen-head .lead")).toHaveText(`Your code is kept. ${SUPPORT_LEAD}`, { timeout: 15_000 }) + const notice = onStep(page).locator(".notice", { hasText: "Too many attempts" }) + await expect(notice.locator("span[aria-hidden=true]")).toHaveText(/^Checking again in [1-3] seconds?\.$/) + await expect(page.locator(".screen-head .lead")).toHaveCount(0) + await expect(page.locator(".screen-head .lead")).toHaveText("Your code is kept.", { timeout: 15_000 }) await expect(notice).toHaveCount(0) expect(checks(), "the refused check and the one after its wait").toBe(2) }) @@ -1040,12 +1037,12 @@ test("a code held by this browser's failed order is noted as held by it, with a const { code: held } = await control(request, "code", { minLength: 6, state: "reserved" }) as { code: string } await page.goto("/#/code") await codeField(page).fill(held) - await expect(verdict).toHaveText("This code is being used for a name now. Each code registers one name; this one is held by an unfinished registration.") + await expect(verdict).toHaveText("This code is in use by an unfinished order.") await expect(verdict).toHaveClass(/\bbad\b/) const { code: revoked } = await control(request, "code", { minLength: 6, state: "revoked" }) as { code: string } await page.goto("/#/code") await codeField(page).fill(revoked) - await expect(verdict).toHaveText("This code is not valid: SimpleX withdrew it.") + await expect(verdict).toHaveText("This code was withdrawn. Please contact support.") }) test("a failed code order whose code is revoked or past its date while still held by it says the code is kept", async ({ page, request }) => { @@ -1055,7 +1052,7 @@ test("a failed code order whose code is revoked or past its date while still hel for (const state of ["expired", "revoked"]) { await control(request, "code/state", { code, state }) await page.reload() - await expect(page.locator(".screen-head .lead"), state).toHaveText(`Your code is kept. ${SUPPORT_LEAD}`) + await expect(page.locator(".screen-head .lead"), state).toHaveText("Your code is kept.") expect(await keptRefusal(page, registrationId), state).toBeNull() } }) @@ -1072,7 +1069,7 @@ test("an order restored in a browser without its code promises nothing of the co await restored.addInitScript(watchKept) await restoreOrder(restored, ownerCode, label) await expect(restored.getByRole("heading", { name: "Not registered" })).toBeVisible() - await expect(restored.locator(".screen-head .lead")).toHaveText(SUPPORT_LEAD) + await expect(restored.locator(".screen-head .lead")).toHaveCount(0) expect(await saidKept(restored), "the restored order said its code is kept").toBe(false) expect(await keptRefusal(restored, registrationId)).toBeNull() } finally { @@ -1124,13 +1121,13 @@ test("a code check past the service's limit counts down its wait, then checks th await page.goto("/#/code") await codeField(page).fill(code) const count = page.locator(".code-entry .verdict.bad [aria-hidden=true]") - await expect(count).toHaveText(/^Too many checks just now\. Your code may be fine\. Checking again in \d+ seconds\.$/) + await expect(count).toHaveText(/^Too many attempts\. Checking again in \d+ seconds\.$/) const find = onStep(page).getByRole("button", { name: "Find a name" }) await expect(find).toBeDisabled() const left = async () => Number((await count.textContent())!.match(/(\d+) seconds?/)![1]) const first = await left() await expect.poll(left, "the wait counts down").toBeLessThan(first) - await expect(page.locator(".code-entry .verdict.ok")).toHaveText(/^This code allows you to register a free name of 6 or more letters/, { timeout: (first + 5) * 1000 }) + await expect(page.locator(".code-entry .verdict.ok")).toHaveText(/^Use this code to register a free name with 6 or more letters/, { timeout: (first + 5) * 1000 }) await expect(find).toBeEnabled() expect(checks, "the refused check and the one after the wait").toBe(2) }) @@ -1153,12 +1150,12 @@ test("a name code whose order fails on the network to be read gives focus back t const { ownerCode } = await startOrder(page, label, { method: "btc" }) await page.goto("/#/code") await codeField(page).fill(ownerCode) - await expect(page.locator(".code-entry .verdict")).toHaveText(`Name code of ${label}.simplex. Adding it shows the name in Your names, where you can edit its links.`) + await expect(page.locator(".code-entry .verdict")).toHaveText(`Name code of ${label}.simplex.`) await page.route("**/api/invoice/*", (route) => route.abort()) const add = page.getByRole("button", { name: "Add to Your names" }) await add.focus() await page.keyboard.press("Enter") - await expect(page.getByText("The service could not be asked now")).toBeVisible() + await expect(page.getByText("The code could not be checked now")).toBeVisible() await expect(add).toBeFocused() }) @@ -1241,14 +1238,14 @@ test("Check your code says nothing of a code being typed, and refuses one too sh await codeField(page).fill("SN-HELLO-WORLD") await expect(verdict).toBeEmpty() await codeField(page).press("Enter") - await expect(page.locator(".verdict.bad")).toHaveText("This is not a SimpleX names code. Check it and try again.") + await expect(page.locator(".verdict.bad")).toHaveText("This code is not valid. Please check it for a typo.") await expect(page.locator(".verdict.bad"), "a verdict reads at the body's size").toHaveCSS("font-size", "16px") await shot(page, "N7c-check-unfinished") await codeField(page).press("End") await codeField(page).press("Backspace") await expect(verdict, "typing again clears the refusal").toBeEmpty() await codeField(page).blur() - await expect(page.locator(".verdict.bad")).toHaveText("This is not a SimpleX names code. Check it and try again.") + await expect(page.locator(".verdict.bad")).toHaveText("This code is not valid. Please check it for a typo.") await expect(onStep(page).getByRole("button", { name: "Find a name" })).toBeDisabled() }) @@ -1368,6 +1365,6 @@ test("a code applied to the tab is taken off once Your names or Check your code await control(request, "code/state", { code: withdrawn, state: "revoked" }) await page.goto("/#/code") await codeField(page).fill(withdrawn) - await expect(onStep(page).locator(".verdict")).toContainText("not valid") + await expect(onStep(page).locator(".verdict")).toContainText("withdrawn") await expect(chip(page)).toBeHidden() }) diff --git a/webapp/e2e/community.spec.ts b/webapp/e2e/community.spec.ts index d904580..d2fbbff 100644 --- a/webapp/e2e/community.spec.ts +++ b/webapp/e2e/community.spec.ts @@ -18,7 +18,7 @@ const COMMUNITY_LABEL = "bakers" const TAKEN_COMMUNITY = "bakehouse" const ACCEPT_WORDS = "I accept the Names Conditions and will use this name to benefit its community." const PLAIN_WORDS = "I accept the SimpleX Names Conditions of Use." -const TERMS_CHANGED = "The Names Conditions changed. Accept them again." +const TERMS_CHANGED = "The Names Conditions changed. Please accept them to continue." // what the popup says of every community name after what the name is for const POPUP_END = "Its owner agrees to use it to benefit this community, not as the brand of one person or business." // what the tests put a name on the list for @@ -232,9 +232,9 @@ test("a name whose terms can't be read now can't be ordered: its search says so, try { await payButton(page).click() await expect(onStep(page).getByRole("heading", { name: "Names can't be ordered right now" })).toBeVisible() - await expect(onStep(page).getByText("Nothing was charged.", { exact: false })).toBeVisible() + await expect(onStep(page).getByText("Please try again later.", { exact: false })).toBeVisible() await search(page, uniqueLabel("cu")) - await expect(onStep(page).locator(".answer .line", { hasText: "Names can't be ordered right now. Try again later." })).toBeVisible() + await expect(onStep(page).locator(".answer .line", { hasText: "Names can't be ordered right now. Please try again later." })).toBeVisible() await expect(onStep(page).getByRole("button", { name: "Register" })).toBeDisabled() } finally { await control(request, "general-terms", { text: null }) @@ -333,7 +333,7 @@ test("a card form that did not load asks for changed terms before cancelling its await withStripeKey(page) await page.route("https://js.stripe.com/**", (route) => route.abort()) await page.reload() - await expect(page.getByText("Stripe's form was blocked or failed to load. Nothing was charged.")).toBeVisible() + await expect(page.getByText("The card form did not load, so your card was not charged. Please reload the page.")).toBeVisible() const again = onStep(page).getByRole("button", { name: "Get a new invoice" }) await withGeneralTerms(request, "the general terms, changed for a card order", async (hash) => { await again.click() diff --git a/webapp/e2e/focus.spec.ts b/webapp/e2e/focus.spec.ts index 1c9ba8d..8ad89ee 100644 --- a/webapp/e2e/focus.spec.ts +++ b/webapp/e2e/focus.spec.ts @@ -64,7 +64,7 @@ test("a checkout drawn again for the tab's open order keeps focus on its heading await search(page, uniqueLabel("headnext")) // the terms left unticked, so focus stays where the review put it await toReview(page, false) - await expect(page.getByText(/is waiting for its payment/)).toBeVisible() + await expect(page.getByText(/Another order is open/)).toBeVisible() await expect(page.getByRole("heading", { name: "Check your order" })).toBeFocused() }) @@ -84,7 +84,7 @@ test("a name code the service finds no order for says so as its verdict, offers const ownerCode = await page.evaluate(() => Object.keys(localStorage).find((k) => k.startsWith("simplex-names:pending:"))!.split(":").pop()!) await page.goto("/#/code") await codeField(page).fill(ownerCode) - await expect(page.locator(".code-entry .verdict.bad")).toHaveText("No order was found for this code. The service has no order registered to its wallet.") + await expect(page.locator(".code-entry .verdict.bad")).toHaveText("No order was found for this name code.") await expect(page.getByRole("button", { name: "Add to Your names" })).toHaveCount(0) await expect(codeField(page)).toBeFocused() }) @@ -120,7 +120,7 @@ test("an order refused for its method draws the checkout again in place, with fo const entries = await page.evaluate(() => history.length) await payButton(page).focus() await page.keyboard.press("Enter") - await expect(page.getByText("Card is temporarily unavailable")).toBeVisible() + await expect(page.getByText("Card is unavailable right now")).toBeVisible() await expect(payButton(page)).toBeFocused() expect(await page.evaluate(() => history.length)).toBe(entries) }) @@ -130,7 +130,7 @@ test("a well-formed code the service does not know is not called a typo", async await page.route("**/api/code/check", (route) => route.fulfill({ status: 400, json: { type: "code_invalid" } })) await page.goto("/#/code") await codeField(page).fill(code) - await expect(page.locator(".verdict.bad")).toHaveText("This code is not valid: SimpleX did not issue it.") + await expect(page.locator(".verdict.bad")).toHaveText("This code was not issued by SimpleX.") await expect(page.getByRole("button", { name: "Find a name" })).toBeDisabled() }) diff --git a/webapp/e2e/frames.spec.ts b/webapp/e2e/frames.spec.ts index 4eeb4de..38baf3f 100644 --- a/webapp/e2e/frames.spec.ts +++ b/webapp/e2e/frames.spec.ts @@ -147,7 +147,7 @@ test("terms changed while ordering show their notice without a near-empty frame" try { await expectNoEmptyFrame(page, "review to its terms notice", async () => { await payButton(page).click() - await expect(onStep(page).getByText("The Names Conditions changed. Accept them again.")).toBeVisible() + await expect(onStep(page).getByText("The Names Conditions changed. Please accept them to continue.")).toBeVisible() }) } finally { await control(request, "general-terms", { text: null }) diff --git a/webapp/e2e/helpers.ts b/webapp/e2e/helpers.ts index e58ff6e..b5bbf5f 100644 --- a/webapp/e2e/helpers.ts +++ b/webapp/e2e/helpers.ts @@ -280,8 +280,8 @@ export const onStep = (page: Page) => page.locator("body > main > section") export const payButton = (page: Page) => onStep(page).getByRole("button", { name: /^Pay / }) // what the card page's note says of its name, in brief -export const AVAILABLE_BRIEF = /^Available at \d\d:\d\d\. If someone registers it first, you keep the payment as balance\.$/ -export const TAKEN_BRIEF = /^Taken at \d\d:\d\d\. Don't pay this invoice: cancel it and choose another name\.$/ +export const AVAILABLE_BRIEF = /^Available at \d\d:\d\d\.$/ +export const TAKEN_BRIEF = /^Taken at \d\d:\d\d\. Please don't pay: cancel this invoice and choose another name\.$/ // a configured key makes the order's page load Stripe.js, wherever the page is first opened export const withStripeKey = (page: Page) => page.route((url) => url.pathname === "/api/config", async (route) => { @@ -521,7 +521,7 @@ export const test = base.extend<{ cspViolations: void }>({ }) // a paid order's page once someone registered its name first, which keeps the payment as the order's balance -export const takenHeading = (label: string) => `${label}.simplex was taken` +export const takenHeading = (label: string) => `${label}.simplex is no longer available` // An order paid in Bitcoin whose name a rival registers first, up to its taken page. export async function takenOrder(page: Page, request: APIRequestContext, label: string, method: OrderOptions["method"] = "btc"): Promise<{ invoiceId: string; ownerCode: string }> { diff --git a/webapp/e2e/mockup.spec.ts b/webapp/e2e/mockup.spec.ts index 5c23498..b602357 100644 --- a/webapp/e2e/mockup.spec.ts +++ b/webapp/e2e/mockup.spec.ts @@ -139,16 +139,16 @@ test("a name without links offers Add links, one with links Edit links, its acti }) test("text that is not a link is refused under its field on the links step and in Edit links, and goes on with no link", async ({ page }) => { - const NOT_A_LINK = "This is not a SimpleX contact address or channel link." + const NOT_A_LINK = "This is not a SimpleX link. Please copy the link from the SimpleX app." await search(page, uniqueLabel("notlink")) await onStep(page).getByRole("button", { name: "Register" }).click() await onStep(page).getByRole("textbox", { name: "Link", exact: true }).fill("https://bakery.example/menu") await expect(onStep(page).locator(".field-error")).toHaveText(NOT_A_LINK) await expect(onStep(page).getByRole("button", { name: "Continue" })).toBeDisabled() await expect(onStep(page).getByRole("button", { name: "Skip for now" })).toBeVisible() - for (const size of [LAPTOP, PHONE]) { + for (const [size, lines] of [[LAPTOP, 1], [PHONE, 2]] as const) { await page.setViewportSize(size) - expect(await onStep(page).locator(".field-error").evaluate((e) => e.getClientRects().length === 1 && Math.round(e.getBoundingClientRect().height) <= 20), `one line at ${size.width}`).toBe(true) + expect(await onStep(page).locator(".field-error").evaluate((e, n) => e.getClientRects().length === 1 && e.getBoundingClientRect().height <= n * parseFloat(getComputedStyle(e).lineHeight) + 0.5, lines), `at most ${lines} lines at ${size.width}`).toBe(true) } await page.setViewportSize(LAPTOP) await registeredName(page, "reg-notlink", uniqueLabel("notlink"), { contact: "", channel: "" }) @@ -185,11 +185,11 @@ test("Check your code checks a code from its button: a code cut short is not a c await page.goto("/#/code") await codeField(page).fill("SN-HELLO-WORLD") await onStep(page).getByRole("button", { name: "Check" }).click() - await expect(onStep(page).locator(".verdict.bad")).toHaveText("This is not a SimpleX names code. Check it and try again.") + await expect(onStep(page).locator(".verdict.bad")).toHaveText("This code is not valid. Please check it for a typo.") await expect(onStep(page).getByRole("button", { name: "Find a name" })).toBeDisabled() await codeField(page).fill(code) await onStep(page).getByRole("button", { name: "Check" }).click() - await expect(onStep(page).locator(".verdict.ok")).toContainText("This code allows you to register a free name") + await expect(onStep(page).locator(".verdict.ok")).toContainText("Use this code to register a free name") await expect(onStep(page).getByRole("button", { name: "Find a name" })).toBeEnabled() }) diff --git a/webapp/e2e/motion.spec.ts b/webapp/e2e/motion.spec.ts index 28b280d..51ba524 100644 --- a/webapp/e2e/motion.spec.ts +++ b/webapp/e2e/motion.spec.ts @@ -148,7 +148,7 @@ test("a redraw that only changes the words of what is shown, as a rate limit's w await recordFrames(page, RUNNING) // the wait's end draws the screen again, its notice saying the same thing in other words await expect(onStep(page).getByRole("button", { name: "Try again" })).toBeEnabled() - await expect(onStep(page).locator(".notice")).toHaveText(/Nothing was charged/) + await expect(onStep(page).locator(".notice")).toHaveText(/Please try again\.$/) await page.evaluate(() => new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done)))) expect((await recordedFrames(page)).flat(), "animations run as the wait ends").not.toContain("arrive") }) diff --git a/webapp/e2e/offline.spec.ts b/webapp/e2e/offline.spec.ts index 8f9f228..6ac3540 100644 --- a/webapp/e2e/offline.spec.ts +++ b/webapp/e2e/offline.spec.ts @@ -20,9 +20,9 @@ test("the production build opens offline: the page, an order's link and Your nam // the service's answers are never kept: a search offline says it could not check, rather than an old answer await page.getByLabel("Name", { exact: true }).fill("offlinename") await page.getByLabel("Name", { exact: true }).press("Enter") - await expect(page.getByText("This name could not be checked")).toBeVisible() + await expect(page.getByText("The name could not be checked now")).toBeVisible() await page.goto("/?order=abc") - await expect(page.getByRole("heading", { name: "This order could not be loaded" })).toBeVisible() + await expect(page.getByRole("heading", { name: "The order could not be loaded now" })).toBeVisible() await page.goto("/#/names") await expect(page.getByText("SN6-Z6VPA-7YPF0-XN8B4-9S1ZD")).toBeVisible() } finally { diff --git a/webapp/e2e/paid.spec.ts b/webapp/e2e/paid.spec.ts index 3f26778..5cea37d 100644 --- a/webapp/e2e/paid.spec.ts +++ b/webapp/e2e/paid.spec.ts @@ -111,7 +111,7 @@ test("a Bitcoin order pays in two parts, registers on chain, takes its links on await page.setViewportSize({ width: 1280, height: 900 }) await control(request, `partial/${invoiceId}`) - await expect(page.getByText("Part of the payment arrived")).toBeVisible() + await expect(page.getByText("Part of the payment was received")).toBeVisible() const { cryptoAmountDue } = await invoice() expect(cryptoAmountDue, "the rest is less than the whole").not.toBe(cryptoAmount) await expect(wallet).toHaveAttribute("href", `bitcoin:${address}?amount=${cryptoAmountDue}`) @@ -171,7 +171,7 @@ test("a Bitcoin order pays in two parts, registers on chain, takes its links on await page.route("**/api/name/records", (route) => route.fulfill({ status: 429, headers: { "retry-after": "2" }, json: { type: "rate_limited" } })) await link.fill("") await page.getByRole("button", { name: "Save links" }).click() - await expect(page.getByText("Too many attempts")).toBeVisible() + await expect(page.getByText("Too many attempts", { exact: true })).toBeVisible() await link.fill(contact) await link.fill("") await expect(page.getByRole("button", { name: "Save links" })).toBeDisabled() @@ -194,7 +194,7 @@ test("a Bitcoin order pays in two parts, registers on chain, takes its links on await channelField.fill(nextChannel) await expect(page.locator(".link-field").nth(1)).toHaveAttribute("data-state", "ok") await page.getByRole("button", { name: "Save links" }).click() - await expect(page.locator("[aria-hidden=true]", { hasText: /^The links were not saved\. Try again in/ })).toBeVisible({ timeout: 30_000 }) + await expect(page.locator("[aria-hidden=true]", { hasText: /^Too many attempts\. Please try again in/ })).toBeVisible({ timeout: 30_000 }) expect(refused.map((body) => body.edits.map((e) => e.key))).toEqual([["contact", "channel"]]) expect((await searchName(request, label)).records).toMatchObject({ contact: "", channel }) await page.unroute("**/api/name/records") @@ -215,12 +215,12 @@ test("a Bitcoin order pays in two parts, registers on chain, takes its links on await channelField.fill(channelLink("D4")) await expect(page.locator(".link-field").nth(1)).toHaveAttribute("data-state", "ok") await page.getByRole("button", { name: "Save links" }).click() - await expect(page.getByText("An earlier save got there first")).toBeVisible({ timeout: 30_000 }) + await expect(page.getByText("The links were changed elsewhere")).toBeVisible({ timeout: 30_000 }) await expect(link).toHaveValue(contact) await expect(channelField).toHaveValue(nextChannel) await expect(page.locator(".link-field").first().locator(".entity:not(.skeleton)")).toBeVisible() await expect(page.locator(".link-field").nth(1).locator(".entity:not(.skeleton)")).toBeVisible() - await expect(page.getByText("An earlier save got there first")).toBeVisible() + await expect(page.getByText("The links were changed elsewhere")).toBeVisible() await page.unroute(/\/api\/name\/(0x)?[0-9a-f]{64}/) await page.unroute("**/api/name/records") // read again, the page signs with the chain's own nonce @@ -274,7 +274,7 @@ test("a purchase walks the steps a buyer expects, and the links set before payin const step = onStep(page) await expect(step.getByRole("heading", { name: "Your name's links" })).toBeFocused() - await expect(step.locator(".lead")).toHaveText("Paste your SimpleX contact address or channel link. You can change it later.") + await expect(step.locator(".lead")).toHaveText("Paste your SimpleX contact address or channel link. You can change them later.") await expect(step.getByRole("button", { name: "Skip for now" })).toBeVisible() await expect(step.getByRole("button", { name: "Continue" }), "Continue waits for a link").toBeDisabled() await fillLinks(page, contact, channel) @@ -293,7 +293,7 @@ test("a purchase walks the steps a buyer expects, and the links set before payin await expect(step.getByTestId("owner-code"), "the name code is hidden until shown").not.toHaveText(ownerCode) await expect(await shownCode(page)).toHaveText(ownerCode) expect(await page.evaluate((c) => localStorage.getItem(`simplex-names:pending:${c}`) !== null, ownerCode), "the code is kept in this browser as its step opens").toBe(true) - await expect(step.getByText(`It is the only key to ${label}.simplex. If you lose it, nothing can recover it.`)).toBeVisible() + await expect(step.getByText(`It is the only key to ${label}.simplex. If you lose it, it cannot be recovered.`)).toBeVisible() const next = step.getByRole("button", { name: "Continue" }) await expect(next, "Continue waits for the box").toBeDisabled() await step.getByText(SAVED).click() @@ -357,7 +357,7 @@ test("a purchase walks the steps a buyer expects, and the links set before payin expect(await chainExpiry(label)).toBe(await blockTimeOf(paidInvoice.registration.registerTx) + paidInvoice.registration.duration) expect(paidInvoice.registration.phase.disputeUntil, "a Bitcoin payment's dispute end, 14 days after the register's block").toBe(await blockTimeOf(paidInvoice.registration.registerTx) + 14 * 86400) // how to use the name in the app, with its code, and no buttons to go elsewhere - await expect(main.locator(".card.use").getByRole("heading", { name: "Use in the app" })).toBeVisible() + await expect(main.locator(".card.use").getByRole("heading", { name: "Use your name in the app" })).toBeVisible() await expect(await shownCode(page)).toHaveText(ownerCode) await expect(main.getByRole("button", { name: "Copy code" })).toBeVisible() await expect(main.getByRole("checkbox")).toHaveCount(0) @@ -403,7 +403,7 @@ test("a purchase walks the steps a buyer expects, and the links set before payin // a link of the kind the other field holds is refused, and Save takes focus to it await link.fill("https://smp8.simplex.im/c#notacontactA") - await expect(page.getByText("This is a channel link. Paste a contact address here.")).toBeVisible() + await expect(page.getByText("This is a channel link. Please paste a contact address here.")).toBeVisible() await shot(page, "N12f-link-wrong-kind") await page.getByRole("button", { name: "Save links" }).click() await expect(link).toBeFocused() @@ -685,12 +685,12 @@ test("Continue on the links step waits for a link being checked, and takes focus await page.getByRole("button", { name: "Register" }).click() const step = onStep(page) await step.getByRole("textbox", { name: "Link", exact: true }).fill(`${contactLink("W0")}?x=${"a".repeat(LINK_MAX_BYTES)}`) - await expect(step.getByText("This link is too long.")).toBeVisible() + await expect(step.getByText("This link is too long. Please use the short link.")).toBeVisible() await step.getByRole("textbox", { name: "Link", exact: true }).fill(contactLink("W0")) await expect(step.locator(".link-field").first()).toHaveAttribute("data-state", "ok") await step.getByRole("button", { name: "Add a channel link" }).click() await step.getByRole("textbox", { name: "Channel" }).fill(contactLink("W1")) - await expect(step.getByText("This is a contact address. Paste a channel link here.")).toBeVisible() + await expect(step.getByText("This is a contact address. Please paste a channel link here.")).toBeVisible() await step.getByRole("button", { name: "Continue" }).click() await expect(step.getByRole("textbox", { name: "Channel" })).toBeFocused() await expect(step.getByRole("heading", { name: LINKS_HEADING })).toBeVisible() @@ -754,7 +754,7 @@ test("a card order waits for Stripe, blocks a second card order meanwhile, then // a whole amount has no cents, as the search and the order showed it await expect(onStep(page).locator(".screen-head .lead")).toContainText(/\u00b7 \$\d+ \/ 2 years$/) await expect(onStep(page).getByRole("button", { name: /^Pay \$\d+$/ })).toBeVisible() - await expect(onStep(page).getByText("The card form is Stripe's. Nothing is charged until you pay.")).toBeVisible() + await expect(onStep(page).getByText("The card form is provided by Stripe. Your card will be charged only when you press Pay.")).toBeVisible() // the development stand-in says what it is, and the invoice can be cancelled from the form as from a crypto invoice await expect(onStep(page).locator(".stripe > .label")).toHaveText("Test card form: no Stripe key is set, so Pay simulates a payment.") await expect(onStep(page).getByRole("button", { name: "Cancel this invoice" })).toBeVisible() @@ -770,7 +770,7 @@ test("a card order waits for Stripe, blocks a second card order meanwhile, then await expect(page.getByText("You have an order waiting to be confirmed")).toBeVisible() await expect(payButton(page)).toBeDisabled() await shot(page, "N3e-open-card-order") - await page.getByRole("button", { name: "Open the waiting order" }).click() + await page.getByRole("button", { name: "Open the other order" }).click() await control(request, `settle/${invoiceId}`) await waitRegistered(page, label) @@ -783,7 +783,7 @@ test("a card payment Stripe has not confirmed, with nothing paid, can still be c await expect(page.getByText("Waiting for Stripe to confirm")).toBeVisible() await onStep(page).getByRole("button", { name: "Cancel this invoice" }).click() await expect(page.getByRole("heading", { name: "Invoice closed" })).toBeVisible() - await expect(page.getByText("This invoice was cancelled and nothing was received.")).toBeVisible() + await expect(page.getByText("This invoice is closed. No payment was received.")).toBeVisible() }) // The Stripe frame reloads whenever its form is taken out of the page, so the card screen takes another tab's writes in place. @@ -826,9 +826,9 @@ test("a cancelled invoice leads back to its name to order again, and expired inv const { invoiceId } = await startOrder(page, label, { method: "btc" }) const cancels: string[] = [] page.on("request", (r) => { if (r.url().endsWith("/cancel")) cancels.push(r.url()) }) - await page.getByText("Cancel this invoice").dblclick() + await page.getByText("Cancel this invoice", { exact: true }).dblclick() await expect(page.getByRole("heading", { name: "Invoice closed" })).toBeVisible() - await expect(page.getByText("This invoice was cancelled and nothing was received.")).toBeVisible() + await expect(page.getByText("This invoice is closed. No payment was received.")).toBeVisible() expect(cancels).toHaveLength(1) await shot(page, "N4b-cancelled") @@ -852,7 +852,7 @@ test("a cancelled invoice leads back to its name to order again, and expired inv expect(await checkoutOwnerCode(page).catch(() => null), "the checkout ended").toBeNull() expect(await orderOwnerCode(page, second), "the new order's name code").toBe(ownerCode) await control(request, `expire/${second}`) - await expect(page.getByText("Nothing was received before it closed.")).toBeVisible() + await expect(page.getByText("This invoice is closed. No payment was received.")).toBeVisible() await expect(page.getByRole("heading", { name: "Invoice closed" })).toBeVisible() await shot(page, "N4c-expired") @@ -861,7 +861,7 @@ test("a cancelled invoice leads back to its name to order again, and expired inv const third = new URL(page.url()).searchParams.get("order")! await control(request, `partial/${third}`) await control(request, `expire/${third}`) - await expect(page.getByText(/BTC arrived, which is not the full amount/)).toBeVisible() + await expect(page.getByText(/BTC was received, which is not the full amount/)).toBeVisible() await shot(page, "N4d-expired-partial") await page.goto("/#/names") @@ -872,7 +872,7 @@ test("a name searched again after its invoice was cancelled keeps that order's n const label = uniqueLabel("keep") const { invoiceId, ownerCode } = await startOrder(page, label, { method: "btc" }) await page.getByRole("button", { name: "Cancel this invoice" }).click() - await expect(page.getByText("This invoice was cancelled and nothing was received.")).toBeVisible() + await expect(page.getByText("This invoice is closed. No payment was received.")).toBeVisible() await search(page, label) await onStep(page).getByRole("button", { name: "Register" }).click() @@ -929,8 +929,8 @@ test("a replaced invoice leads to its new order until a late payment reaches it" await control(request, `settle/${invoiceId}`) for (const p of [page, restored]) { await p.goto(`/?order=${invoiceId}`) - await expect(p.getByText("The payment arrived after this invoice had closed")).toBeVisible() - await expect(onStep(p).getByText(/Once confirmed|not the full amount/), "all of it arrived and is credited").toHaveCount(0) + await expect(p.getByText("The payment was received after the invoice closed")).toBeVisible() + await expect(onStep(p).getByText(/once confirmed|not the full amount/), "all of it arrived and is credited").toHaveCount(0) await expect(p.getByRole("heading", { name: "Invoice closed" })).toBeVisible() expect(new URL(p.url()).searchParams.get("order")).toBe(invoiceId) await p.goto("/#/names") @@ -953,8 +953,8 @@ test("an invoice that received part of its payment and was replaced leads on to const second = new URL(page.url()).searchParams.get("order")! await control(request, `settle/${invoiceId}`) await page.goto(`/?order=${invoiceId}`) - await expect(page.getByText("The payment arrived after this invoice had closed")).toBeVisible() - await expect(onStep(page).getByText(/Once confirmed|not the full amount/), "the rest arrived and all of it is credited").toHaveCount(0) + await expect(page.getByText("The payment was received after the invoice closed")).toBeVisible() + await expect(onStep(page).getByText(/once confirmed|not the full amount/), "the rest arrived and all of it is credited").toHaveCount(0) await page.goto("/#/names") await expect(page.locator(".list-row:visible", { hasText: `${label}.simplex` }).locator(".chip")).toHaveText(["Waiting for payment", "Paid late"]) await page.goto(`/?order=${invoiceId}`) @@ -969,7 +969,7 @@ test("an invoice that closed while its payment was confirming says a payment rea await control(request, `expire/${invoiceId}`) await page.reload() await expect(page.getByRole("heading", { name: "Invoice closed" })).toBeVisible() - await expect(page.getByText("A payment did not complete before the invoice closed.")).toBeVisible() + await expect(page.getByText("The payment was received after the invoice closed.")).toBeVisible() await shot(page, "N4e-expired-confirming") await page.goto("/#/names") const row = page.locator(".list-row:visible", { hasText: `${label}.simplex` }) @@ -992,18 +992,16 @@ test("an overpaid invoice registers its name, even where the service reads its d await page.unrouteAll({ behavior: "ignoreErrors" }) }) -const KEPT_LATE = "kept as your balance, or refunded on request; Your names shows it." - test("a part payment on a closed invoice, once credited, says so and gets an invoice for the whole price of the same name in the main button's place", async ({ page, request }) => { const label = uniqueLabel("rest") const { invoiceId } = await startOrder(page, label, { method: "btc" }) await control(request, `partial/${invoiceId}`) await control(request, `expire/${invoiceId}`) const actions = onStep(page).locator(".actions-row") - await expect(page.getByText(`0.00078 BTC arrived, which is not the full amount. Once confirmed, it is ${KEPT_LATE}`)).toBeVisible() + await expect(page.getByText("0.00078 BTC was received, which is not the full amount. It will be added to your balance once confirmed.")).toBeVisible() const place = await actions.locator(".btn").boundingBox() await control(request, `settle/${invoiceId}`, { paid: "0.00078" }) - await expect(page.getByText(`0.00078 BTC arrived, which is not the full amount. It is ${KEPT_LATE}`)).toBeVisible() + await expect(page.getByText("0.00078 BTC was received, which is not the full amount. It is in your balance.")).toBeVisible() await expect(actions.locator(".btn"), "one main action").toHaveText(["Get a new invoice"]) expect(await actions.locator(".btn").boundingBox(), "the main button stays where it was").toEqual(place) await expect(actions.locator(".alt a")).toHaveText(["Get a refund"]) @@ -1024,8 +1022,8 @@ test("a whole payment after the close, once credited, says so and offers a new i const { invoiceId } = await startOrder(page, label, { method: "xmr" }) await control(request, `expire/${invoiceId}`) await control(request, `settle/${invoiceId}`) - await expect(page.getByText(`The payment arrived after this invoice had closed, so nothing was registered. It is ${KEPT_LATE}`)).toBeVisible() - await expect(onStep(page).getByText(/Once confirmed|not the full amount/)).toHaveCount(0) + await expect(page.getByText("The payment was received after the invoice closed. It is in your balance.")).toBeVisible() + await expect(onStep(page).getByText(/once confirmed|not the full amount/)).toHaveCount(0) await expect(onStep(page).locator(".actions-row .alt a")).toHaveText(["Get a refund"]) await expect(onStep(page).getByRole("button", { name: "Get a new invoice" })).toBeVisible() }) @@ -1045,9 +1043,9 @@ test("an invoice past its rate window that part of the payment reached stays ope await control(request, `overdue/${invoiceId}`) await page.reload() await expect(onStep(page).getByRole("heading", { name: "Pay with Bitcoin" })).toBeVisible() - await expect(page.getByText(/^Part of the payment arrived: [\d.]+ of [\d.]+ BTC is seen\.$/)).toBeVisible() + await expect(page.getByText(/^Part of the payment was received\.$/)).toBeVisible() await expect(page.getByText(INVOICE_EXPIRED)).toBeVisible() - await expect(page.getByText(/Invoice valid for|Send the remaining/), "no countdown and no ask for the rest").toHaveCount(0) + await expect(page.getByText(/Invoice valid for|send the remaining/), "no countdown and no ask for the rest").toHaveCount(0) for (const control of payMore(page)) await expect(control).toHaveCount(0) await expect(onStep(page).getByText(/rest to send|Open in wallet/i), "nothing that asks for more is drawn, hidden or not").toHaveCount(0) await expect(onStep(page).getByRole("button", { name: "Copy Bitcoin address" })).toBeVisible() @@ -1089,7 +1087,7 @@ test("a part-paid invoice whose rate window ends in view swaps the countdown for }) await page.reload() const held = page.getByText(/Invoice valid for \d+:\d\d/) - const rest = page.getByText(/^Send the remaining/) + const rest = page.getByText(/^Please send the remaining/) await expect(held).toBeVisible() await expect(rest).toBeVisible() for (const control of payMore(page)) await expect(control).toBeVisible() @@ -1175,21 +1173,21 @@ test("Cancel this invoice reads as working while its request runs, and as itself answer() await expect(link).toHaveAccessibleName("Cancel this invoice") await expect(link).not.toHaveAttribute("aria-disabled") - await expect(page.getByText("The invoice could not be cancelled now. Try again in a moment.")).toBeVisible() + await expect(page.getByText("The invoice was not cancelled. Please try again in a moment.")).toBeVisible() }) test("a cancel refused for a rate limit keeps the invoice payable and says so until the wait is over", async ({ page }) => { await startOrder(page, uniqueLabel("cxh"), { method: "btc" }) await page.route("**/api/invoice/*/cancel", (route) => route.fulfill({ status: 429, headers: { "retry-after": "2" }, json: { type: "rate_limited" } })) - const cancel = onStep(page).getByText("Cancel this invoice") + const cancel = onStep(page).getByText("Cancel this invoice", { exact: true }) await cancel.click() - await expect(page.locator("[aria-hidden=true]", { hasText: /^The invoice is still open\. Try again in/ })).toBeVisible() + await expect(page.locator("[aria-hidden=true]", { hasText: /^Too many attempts\. Please try again in/ })).toBeVisible() await expect(onStep(page).getByRole("heading", { name: "Pay with Bitcoin" })).toBeVisible() await page.unroute("**/api/invoice/*/cancel") await expect(page.getByText("Too many attempts")).toHaveCount(0, { timeout: 10_000 }) await cancel.click() await expect(page.getByRole("heading", { name: "Invoice closed" })).toBeVisible() - await expect(page.getByText("This invoice was cancelled and nothing was received.")).toBeVisible() + await expect(page.getByText("This invoice is closed. No payment was received.")).toBeVisible() }) test("a restored browser that never opened another browser's newer invoice finds it through the code", async ({ page, browser, request }) => { @@ -1255,7 +1253,7 @@ test("a forgotten order whose code's lookup is rate limited waits as asked, then await page.route(`**/api/invoice/${invoiceId}*`, (route) => route.fulfill({ status: 404, json: { type: "not_found" } })) await control(request, "search", { findLimitSeconds: 2 }) await page.goto(`/?order=${invoiceId}`) - await expect(page.getByRole("heading", { name: "This order could not be loaded" })).toBeVisible() + await expect(page.getByRole("heading", { name: "The order could not be loaded now" })).toBeVisible() // with nothing newer than this order, the lookup ends at the dead link once the limit is over await expect(page.getByRole("heading", { name: "This link does not work" })).toBeVisible({ timeout: 10_000 }) await control(request, "search", { findLimitSeconds: 0 }) @@ -1275,12 +1273,12 @@ test("a card form that does not load says so and offers a new invoice", async ({ await page.route("https://js.stripe.com/**", (route) => route.abort()) await page.reload() await expect(page.getByRole("heading", { name: "Card payment not confirmed" })).toBeVisible() - await expect(page.getByText("Stripe's form was blocked or failed to load. Nothing was charged.")).toBeVisible() + await expect(page.getByText("The card form did not load, so your card was not charged. Please reload the page.")).toBeVisible() await shot(page, "N10a-card-not-loaded") await page.getByRole("button", { name: "Get a new invoice" }).click() await page.waitForURL((url) => url.searchParams.get("order") !== invoiceId) await expect(page.getByRole("heading", { name: "Card payment not confirmed" })).toBeVisible() - await expect(page.getByText("Stripe's form was blocked or failed to load. Nothing was charged.")).toBeVisible() + await expect(page.getByText("The card form did not load, so your card was not charged. Please reload the page.")).toBeVisible() // or the coins: the card invoice is cancelled and the name ordered again, paid with the coin chosen const card = new URL(page.url()).searchParams.get("order")! await page.getByRole("button", { name: "Pay with Monero" }).click() @@ -1302,7 +1300,7 @@ test("a card form that Stripe cannot load says so and offers a new invoice, rath await page.route("https://js.stripe.com/**", (route) => route.fulfill({ contentType: "text/javascript", body: STRIPE_FORM_FAILS })) await page.reload() await expect(page.getByRole("heading", { name: "Card payment not confirmed" })).toBeVisible() - await expect(page.getByText("Stripe's form was blocked or failed to load. Nothing was charged.")).toBeVisible() + await expect(page.getByText("The card form did not load, so your card was not charged. Please reload the page.")).toBeVisible() await expect(page.getByRole("button", { name: "Get a new invoice" })).toBeEnabled() }) @@ -1326,7 +1324,7 @@ for (const [stalled, answer] of STALLS) { await expect(page.getByRole("heading", { name: "Pay by card" })).toBeVisible() await expect(payButton(page)).toBeDisabled() await expect(page.getByRole("heading", { name: "Card payment not confirmed" })).toBeVisible({ timeout: CARD_FORM_TIMEOUT_MS + CARD_FORM_SLACK_MS }) - await expect(page.getByText("Stripe's form was blocked or failed to load. Nothing was charged.")).toBeVisible() + await expect(page.getByText("The card form did not load, so your card was not charged. Please reload the page.")).toBeVisible() await expect(page.getByRole("button", { name: "Get a new invoice" })).toBeEnabled() }) } @@ -1392,8 +1390,8 @@ test("on a phone, a long name wraps beside its chats on Check your order, the ch // how often a pay page checks its name again (NAME_CHECK_MS in src/views/order.ts) const NAME_CHECK_MINUTES = 5 -const AVAILABLE = /^The name is available \(checked at \d\d:\d\d\)\. If someone registers it before you pay and the registration succeeds, what you paid is kept as your balance for another name, or refunded on request\.$/ -const TAKEN = /^Someone has registered this name \(checked at \d\d:\d\d\)\. Don't pay this invoice: cancel it and choose another name\.$/ +const AVAILABLE = /^The name is available at \d\d:\d\d\.$/ +const TAKEN = /^Taken at \d\d:\d\d\. Please don't pay: cancel this invoice and choose another name\.$/ const takenAnswer = (route: Route) => route.fulfill({ json: registeredAnswer(`0x${"00".repeat(19)}01`, Math.floor(Date.now() / 1000) + 365 * 86400, { contact: "", channel: "" }) }) // the heading, the note, the payment's details and the link under them: where each is and how tall const payPlaces = (page: Page) => page.evaluate(() => ["h1", ".name-check", ":is(.card.pay, .stripe)", ".actions-row .alt"] diff --git a/webapp/e2e/robustness.spec.ts b/webapp/e2e/robustness.spec.ts index 75ecabc..4c7fac2 100644 --- a/webapp/e2e/robustness.spec.ts +++ b/webapp/e2e/robustness.spec.ts @@ -103,21 +103,21 @@ test("an unpaid invoice is pointed at from checkout without blocking a new order const { invoiceId } = await startOrder(page, first, { method: "btc" }) await search(page, uniqueLabel("second")) await toReview(page) - await expect(page.getByText("Another order is waiting for its payment.")).toBeVisible() + await expect(page.getByText("Another order is open.")).toBeVisible() await expect(page.getByRole("link", { name: "Open that order" })).toHaveAttribute("href", `/?order=${invoiceId}`) await expect(payButton(page)).toBeEnabled() await shot(page, "N3e2-open-invoice") }) -test("the line on another order follows it, saying when it is confirming and going once it is paid", async ({ page, request }) => { +test("the line on another order follows it, staying while it is confirming and going once it is paid", async ({ page, request }) => { const { invoiceId } = await startOrder(page, uniqueLabel("follow"), { method: "btc" }) await search(page, uniqueLabel("after")) // the terms left unticked, so focus stays where the review put it await toReview(page, false) const line = onStep(page).locator(".pay-with > .note") - await expect(line).toHaveText("Another order is waiting for its payment. Open that order") + await expect(line).toHaveText("Another order is open. Open that order") await control(request, `confirming/${invoiceId}`) - await expect(line).toHaveText("Another order is confirming its payment. Open that order") + await expect(line).toHaveText("Another order is open. Open that order") await control(request, `settle/${invoiceId}`) await expect(line).toHaveCount(0) await expect(onStep(page).getByRole("heading", { name: "Check your order" })).toBeFocused() @@ -130,8 +130,8 @@ test("Get a new invoice keeps an invoice the service would not cancel", async ({ await page.reload() await expect(page.getByRole("heading", { name: "Card payment not confirmed" })).toBeVisible() const answers = [ - { status: 409, body: { type: "funded" }, text: "A payment has reached this invoice, so it is kept." }, - { status: 503, body: { type: "provider_unavailable" }, text: "The invoice could not be cancelled now." }, + { status: 409, body: { type: "funded" }, text: "A payment was received, so the invoice cannot be cancelled." }, + { status: 503, body: { type: "provider_unavailable" }, text: "The invoice was not cancelled." }, ] for (const answer of answers) { await page.route("**/api/invoice/*/cancel", (route) => route.fulfill({ status: answer.status, json: answer.body })) @@ -142,7 +142,7 @@ test("Get a new invoice keeps an invoice the service would not cancel", async ({ } await page.route("**/api/invoice/*/cancel", (route) => route.fulfill({ status: 429, headers: { "retry-after": "2" }, json: { type: "rate_limited" } })) await page.getByRole("button", { name: "Get a new invoice" }).click() - await expect(page.locator("[aria-hidden=true]", { hasText: /^The invoice is still open\. Try again in/ })).toBeVisible() + await expect(page.locator("[aria-hidden=true]", { hasText: /^Too many attempts\. Please try again in/ })).toBeVisible() await expect(page).toHaveURL(new RegExp(`order=${invoiceId}`)) }) @@ -189,10 +189,10 @@ test("a selection refused for a name taken meanwhile says the name is no longer test("a partly paid invoice offers no cancel", async ({ page, request }) => { const { invoiceId } = await startOrder(page, uniqueLabel("part"), { method: "btc" }) - await expect(page.getByText("Cancel this invoice")).toBeVisible() + await expect(page.getByText("Cancel this invoice", { exact: true })).toBeVisible() await control(request, `partial/${invoiceId}`) - await expect(page.getByText("Part of the payment arrived")).toBeVisible() - await expect(page.getByText("Cancel this invoice")).toHaveCount(0) + await expect(page.getByText("Part of the payment was received")).toBeVisible() + await expect(page.getByText("Cancel this invoice", { exact: true })).toHaveCount(0) }) test("Your names tells part-paid and confirming orders from unpaid ones, and a new invoice replaces an unpaid one", async ({ page, request }) => { @@ -227,7 +227,7 @@ test("full storage that still reads is warned about on the name code step, which await search(page, uniqueLabel("full")) await toCodeStep(page) await expect(onStep(page).getByText("This code could not be saved in this browser")).toBeVisible() - await expect(onStep(page).getByText("Save a copy now: it will be the only one.")).toBeVisible() + await expect(onStep(page).getByText("Please save a copy now.")).toBeVisible() await expect(await shownCode(page)).toHaveText(await checkoutOwnerCode(page)) await savedToReview(page) await payButton(page).click() @@ -255,9 +255,9 @@ test("a payment that arrives after expiry turns the open page into the late page const label = uniqueLabel("late") const { invoiceId } = await startOrder(page, label, { method: "btc" }) await control(request, `expire/${invoiceId}`) - await expect(page.getByText("Nothing was received before it closed.")).toBeVisible() + await expect(page.getByText("This invoice is closed. No payment was received.")).toBeVisible() await control(request, `settle/${invoiceId}`) - await expect(page.getByText("The payment arrived after this invoice had closed")).toBeVisible() + await expect(page.getByText("The payment was received after the invoice closed")).toBeVisible() await expect(page.getByRole("heading", { name: "Invoice closed" })).toBeVisible() // credited to the order's balance, the late money offers a refund beside a new invoice await expect(onStep(page).getByRole("button", { name: "Get a refund" })).toBeVisible() @@ -276,14 +276,14 @@ test("money paid after the close that the service cannot credit by itself sends await control(request, `expire/${invoiceId}`) await control(request, `late/${invoiceId}`, { waiting: "support" }) await control(request, `settle/${invoiceId}`) - await expect(onStep(page).getByText(`It is not credited to your balance by itself: contact support via chat@simplex.chat or SimpleX, and include order reference ${invoiceId}.`)).toBeVisible() + await expect(onStep(page).getByText(`To have it credited, please contact support via chat@simplex.chat or SimpleX, with the name and the order reference ${invoiceId}.`)).toBeVisible() await expect(onStep(page).getByRole("button", { name: "Get a refund" })).toHaveCount(0) const reads: string[] = [] page.on("request", (r) => { if (r.url().includes(`/api/invoice/${invoiceId}`)) reads.push(r.url()) }) await page.waitForTimeout(7_000) expect(reads, "no reads once only support can credit it").toEqual([]) await page.goto("/#/names") - await expect(page.locator(".list-row:not([data-key^='balance-'])", { hasText: `${label}.simplex` }).locator(".sub")).toContainText(`Paid after the invoice closed; contact support via chat@simplex.chat or SimpleX, and include order reference ${invoiceId}, to have it credited`) + await expect(page.locator(".list-row:not([data-key^='balance-'])", { hasText: `${label}.simplex` }).locator(".sub")).toContainText(`Paid after the invoice closed; contact support via chat@simplex.chat or SimpleX, with the name and the order reference ${invoiceId}, to have it credited`) }) test("an order left before its wait ends asks for this browser in Your names", async ({ page, request }) => { @@ -437,7 +437,7 @@ test("paying by card during an outage keeps the order on screen", async ({ page await onStep(page).getByRole("button", { name: /^Pay \$/ }).click() await expect(page.getByRole("heading", { name: "Paying by card" })).toBeVisible() await page.waitForTimeout(4000) - await expect(page.getByRole("heading", { name: "This order could not be loaded" })).toHaveCount(0) + await expect(page.getByRole("heading", { name: "The order could not be loaded now" })).toHaveCount(0) await page.unroute("**/api/**") }) @@ -445,9 +445,9 @@ test("a rate-limited cancel holds, and the hold outlives the page drawing itself const { invoiceId } = await startOrder(page, uniqueLabel("hold"), { method: "btc" }) let cancels = 0 await page.route("**/cancel", (route) => { cancels++; return route.fulfill({ status: 429, headers: { "retry-after": "20" }, json: { type: "rate_limited" } }) }) - await page.getByText("Cancel this invoice").click() - await expect(page.getByText("Too many attempts")).toBeVisible() - await page.getByText("Cancel this invoice").click() + await page.getByText("Cancel this invoice", { exact: true }).click() + await expect(page.getByText("Too many attempts", { exact: true })).toBeVisible() + await page.getByText("Cancel this invoice", { exact: true }).click() expect(cancels).toBe(1) // the invoice closes and the page draws its expired state: the new button starts held await control(request, `expire/${invoiceId}`) @@ -456,7 +456,7 @@ test("a rate-limited cancel holds, and the hold outlives the page drawing itself await expect(page.getByText("Too many attempts")).toBeVisible() // the other actions of the tab wait too: search is paused, and adding a name code would wait await page.getByRole("link", { name: "SimpleX names" }).click() - await expect(page.getByText(/Searching is paused: try again in \d+ seconds/).first()).toBeVisible() + await expect(page.getByText(/Too many attempts\. Please try again in \d+ seconds/).first()).toBeVisible() await page.locator("body > header").getByRole("link", { name: "Check your code" }).click() await codeField(page).fill(await page.evaluate(() => Object.values(localStorage).map((v) => { try { return JSON.parse(v).ownerCode as string } catch { return "" } }).find(Boolean)!)) await expect(page.getByRole("button", { name: "Add to Your names" })).toBeDisabled() @@ -467,7 +467,7 @@ test("Back from a paused order keeps the order paused", async ({ page }) => { await toReview(page) await page.route("**/api/invoice", (route) => route.request().method() === "POST" ? route.fulfill({ status: 429, headers: { "retry-after": "20" }, json: { type: "rate_limited" } }) : route.continue()) await payButton(page).click() - await expect(page.locator(".outcome .notice span[aria-hidden=true]")).toHaveText(/^Too many orders were tried from here\. Try again in \d+ seconds\.$/) + await expect(page.locator(".outcome .notice span[aria-hidden=true]")).toHaveText(/^Too many attempts\. Please try again in \d+ seconds\.$/) await page.goBack() await expect(page.getByRole("heading", { name: CODE_HEADING })).toBeVisible() await page.goForward() @@ -492,7 +492,7 @@ test("an order on its way keeps its method as sent until it is answered", async await page.getByRole("radio", { name: "Monero" }).dispatchEvent("click") await expect(page.getByRole("radio", { name: "Bitcoin" })).toHaveAttribute("aria-checked", "true") answer() - await expect(page.getByRole("heading", { name: "That did not go through" })).toBeVisible() + await expect(page.getByRole("heading", { name: "The order could not be placed" })).toBeVisible() await page.unrouteAll({ behavior: "wait" }) }) @@ -505,7 +505,7 @@ test("Find the order shows a wait met elsewhere in the tab", async ({ page, requ await other.goto("/#/code") // a name code's verdict looks for its orders, which the limit refuses await codeField(other).fill((await other.evaluate(() => Object.keys(localStorage).find((k) => k.startsWith("simplex-names:pending:"))!.split(":").pop()))!) - await expect(other.locator(".code-entry .verdict")).toContainText("Too many checks just now") + await expect(other.locator(".code-entry .verdict")).toContainText("Too many attempts") await other.getByRole("link", { name: "Your names" }).click() await expect(other.locator(".list-row .chip", { hasText: /Try again in \d+ seconds/ })).toBeVisible() await expect(other.getByText("Find the order")).toHaveAttribute("aria-disabled", "true") @@ -597,13 +597,13 @@ for (const other of ["Monero", "a code"]) { await copy.waitForURL(/\?order=/) expect(new URL(copy.url()).searchParams.get("order"), "the order's one invoice").toBe(invoiceId) await expect(copy.getByRole("heading", { name: "Pay with Bitcoin" })).toBeVisible() - const why = `This name already has a Bitcoin invoice from an earlier try, so it opened instead of ${other === "Monero" ? "a new Monero one" : "using your code"}.` + const why = "You already have an open invoice for this name." await expect(onStep(copy).getByText(why)).toBeVisible() await copy.getByRole("link", { name: "Your names" }).first().click() await copy.locator(".list-row").getByRole("button", { name: "Open" }).first().click() await expect(copy.getByRole("heading", { name: "Pay with Bitcoin" })).toBeVisible() expect(new URL(copy.url()).searchParams.get("order"), "the same invoice opened again").toBe(invoiceId) - await expect(onStep(copy).locator(".note", { hasText: "earlier try" }), "the line is said once").toHaveCount(0) + await expect(onStep(copy).locator(".note", { hasText: why }), "the line is said once").toHaveCount(0) await copy.close() }) } diff --git a/webapp/e2e/scan.spec.ts b/webapp/e2e/scan.spec.ts index f0e2b9d..001cd8d 100644 --- a/webapp/e2e/scan.spec.ts +++ b/webapp/e2e/scan.spec.ts @@ -15,7 +15,7 @@ const LAPTOP = { width: 1280, height: 900 } const FAKE_CAMERA = "--use-fake-device-for-media-stream" // a link the service takes, whose QR code the fake camera shows const SCANNED_LINK = contactLink("Scan") -const NO_CAMERA = "Allow the camera, or paste the link." +const NO_CAMERA = "The camera could not be used. Please allow it, or paste the link." // Playwright's headless shell has no cameras at all; the full Chromium, in its own headless mode, has the fake one const withCamera = (args: string[]) => chromium.launch({ channel: "chromium", args }) @@ -147,7 +147,7 @@ test("the camera reads a name code's QR code into the Code field of Check your c await expect(scan, "a laptop's camera faces its reader").toBeHidden() await page.setViewportSize(PHONE) await scan.click() - await expect(page.getByRole("dialog", { name: "Scan a QR code" })).toContainText("Point the camera at the QR code of your name code.") + await expect(page.getByRole("dialog", { name: "Scan a QR code" })).toContainText("Point the camera at the QR code.") await expect(codeField(page)).toHaveValue(code, { timeout: 10_000 }) await expect(page.getByRole("dialog"), "the camera's view goes once it has read the code").toHaveCount(0) await expect(onStep(page).locator(".verdict"), "the code judged").not.toBeEmpty() @@ -165,7 +165,7 @@ test("a camera not allowed for the Code field says so", async ({ baseURL }) => { const page = await context.newPage() await page.goto("/#/code") await onStep(page).getByRole("button", { name: "Scan QR code" }).click() - await expect(onStep(page).locator(".verdict.bad")).toHaveText("The camera could not be used. Allow the camera, or paste the code.") + await expect(onStep(page).locator(".verdict.bad")).toHaveText("The camera could not be used. Please allow it, or paste the code.") await expect(page.getByRole("dialog")).toHaveCount(0) } finally { await browser.close() diff --git a/webapp/e2e/screens.spec.ts b/webapp/e2e/screens.spec.ts index c227bfd..e1df8a0 100644 --- a/webapp/e2e/screens.spec.ts +++ b/webapp/e2e/screens.spec.ts @@ -409,12 +409,12 @@ screen(134, "home-checking", async ({ page, request, id }) => { screen(136, "home-unchecked", async ({ page, request, id }) => { await control(request, "search", { chainDown: true }) await search(page, id) - await shown(page, "This name could not be checked.") + await shown(page, "The name could not be checked now.") }) screen(138, "home-paused", async ({ page, request, id }) => { await control(request, "search", { limitSeconds: 30 }) await search(page, id) - await shown(page, "Searching is paused") + await shown(page, "Too many attempts") }) screen(140, "home-available", async ({ page, id }) => { await search(page, id) @@ -536,7 +536,7 @@ screen(192, "home-chat-popup-unsafe-link", async ({ page }) => { screen(194, "home-codes-only-locked", async ({ page, request }) => { await control(request, "mode", { mode: "codes" }) await page.goto("/#/?name=bakery") - await shown(page, "Names can be registered with an investor code for now.") + await shown(page, "Names can be registered only with a code right now.") }) screen(196, "home-codes-only-uncovered", async (r) => { await control(r.request, "mode", { mode: "codes" }) @@ -585,7 +585,7 @@ const selectCode = async (r: Reach): Promise => { await searchHere(r.page, r.id) await toReview(r.page) await press(r.page, "Register with your code") - await heading(r.page, `${r.id}.simplex was taken`) + await heading(r.page, `${r.id}.simplex is no longer available`) await press(r.page, "Choose another name") await expect(nameField(r.page)).toBeVisible() } @@ -679,7 +679,7 @@ screen(262, "checkout-select-refused-other-order", async (r) => { }) await selectionAnswer(r.page, (route) => answer(route, 409, "order_exists")) await press(r.page, "Register with your payment") - await heading(r.page, "That did not go through") + await heading(r.page, "The order could not be placed") }) screen(264, "checkout-select-held", async (r) => { await selectReview(r) @@ -791,13 +791,13 @@ screen(1074, "checkout-review-open-order-confirming", async (r) => { await search(r.page, r.id) await toReview(r.page) await control(r.request, `confirming/${invoiceId}`) - await shown(r.page, "is confirming its payment") + await shown(r.page, "Another order is open.") }) screen(1076, "checkout-review-method-unavailable", async (r) => { await review(r) await control(r.request, "search", { invoiceError: "provider_unavailable" }) await payButton(r.page).click() - await shown(r.page, "temporarily unavailable") + await shown(r.page, "is unavailable right now") }) screen(1078, "checkout-review-hold", async (r) => { await review(r) @@ -933,7 +933,7 @@ screen(1122, "checkout-links-other-kind-field", async ({ page, id }) => { screen(1124, "checkout-links-refused-by-service", async ({ page, id }) => { await page.route("**/api/link/preview", (route) => answer(route, 400, "invalid_link")) await typedLink(page, id, contactLink("R0")) - await shown(page, "This link could not be opened.") + await shown(page, "This is not a SimpleX link.") }) screen(1126, "checkout-links-not-checked", async ({ page, id }) => { await page.route("**/api/link/preview", (route) => answer(route, 429, "rate_limited", 30)) @@ -944,7 +944,7 @@ screen(1128, "checkout-links-no-camera", async (r) => { const phone = await cameraPage(r, false) await linksStep(phone, r.id) await onStep(phone).getByRole("button", { name: "Scan QR code" }).click() - await shown(phone, "Allow the camera, or paste the link.") + await shown(phone, "Please allow it, or paste the link.") return phone }, { sizes: ["phone"] }) screen(1130, "checkout-links-scan-dialog", async (r) => { @@ -1163,9 +1163,9 @@ screen(1220, "checkout-status-taken", (r) => refusedOrder(r, async () => { await control(r.request, "take", { label: r.id }) await expect.poll(async () => (await searchName(r.request, r.id)).type, { timeout: REGISTRATION_MS }).toBe("registered") }, "This name is no longer available")) -screen(1222, "checkout-status-failed", (r) => refusedOrder(r, () => control(r.request, "search", { invoiceError: "internal" }), "That did not go through")) +screen(1222, "checkout-status-failed", (r) => refusedOrder(r, () => control(r.request, "search", { invoiceError: "internal" }), "The order could not be placed")) screen(1224, "checkout-status-failed-retrying", async (r) => { - await refusedOrder(r, () => control(r.request, "search", { invoiceError: "internal" }), "That did not go through") + await refusedOrder(r, () => control(r.request, "search", { invoiceError: "internal" }), "The order could not be placed") await r.page.route("**/api/invoice", posting(/\/api\/invoice$/, held)) await press(r.page, "Try again") await expect(onStep(r.page).getByRole("button", { name: "Try again" })).toHaveAttribute("aria-busy", "true") @@ -1178,7 +1178,7 @@ screen(1228, "checkout-status-unavailable-retrying", async (r) => { await expect(onStep(r.page).getByRole("button", { name: "Try again" })).toHaveAttribute("aria-busy", "true") }) screen(1230, "checkout-status-codes-only", (r) => refusedOrder(r, () => control(r.request, "mode", { mode: "codes" }), "Registration is by code only for now")) -screen(1232, "checkout-status-failed-sign-unread", (r) => refusedOrder(r, () => control(r.request, "search", { unreadSeconds: 60 }), "That did not go through")) +screen(1232, "checkout-status-failed-sign-unread", (r) => refusedOrder(r, () => control(r.request, "search", { unreadSeconds: 60 }), "The order could not be placed")) const linkRefusedAtPay = async (r: Reach, kind: "contact" | "channel") => { await search(r.page, r.id) await toReview(r.page) @@ -1231,19 +1231,19 @@ const registeringAs = async (r: Reach, change: Record) => { screen(2006, "order-registering-wait", async (r) => { await registeringAs(r, {}) - await shown(r.page, "Every new name waits a little") + await shown(r.page, "It will take a few minutes") }) screen(2008, "order-registering-signing", async (r) => { await registeringAs(r, { phase: committedPhase(r, r.now - 10) }) - await shown(r.page, "Registering the name.") + await shown(r.page, "It will take a few minutes") }) screen(2010, "order-registering-register-sent", async (r) => { await registeringAs(r, { phase: { type: "registering" }, registerTx: "0x03" }) - await shown(r.page, "Registering the name.") + await shown(r.page, "It will take a few minutes") }) screen(2012, "order-registering-stalled", async (r) => { await registeringAs(r, { phase: { type: "registering" }, registerTx: "0x03" }) - await shown(r.page, "Registering the name.") + await shown(r.page, "It will take a few minutes") await control(r.request, "clock", { now: r.now + 240 }) await r.page.clock.fastForward("04:00") await shown(r.page, "This is taking longer than usual") @@ -1331,12 +1331,12 @@ const outpaid = async (r: Reach) => { const { invoiceId } = await startOrder(r.page, r.id, { method: "btc" }) await control(r.request, `settle/${first}`) await control(r.request, `settle/${invoiceId}`) - await heading(r.page, `${r.id}.simplex was taken`) + await heading(r.page, `${r.id}.simplex is no longer available`) } screen(2056, "order-taken-outpaid", (r) => outpaid(r)) screen(2057, "order-taken-before-commit", async (r) => { await registeringAs(r, { phase: { type: "taken" }, commitTx: null, balance: BALANCE }) - await heading(r.page, `${r.id}.simplex was taken`) + await heading(r.page, `${r.id}.simplex is no longer available`) }) screen(2060, "order-failed-generic-paid", async (r) => { await failed(r, r.id) }) screen(2062, "order-failed-generic-paid-no-record", async (r) => { @@ -1359,7 +1359,7 @@ screen(2068, "order-failed-generic-code-limited", async (r) => { await codeFailed(r, r.id) await r.page.route("**/api/code/check", (route) => answer(route, 429, "rate_limited", 30)) await r.page.reload() - await shown(r.page, "Too many checks just now") + await shown(r.page, "Too many attempts") }) screen(2070, "order-failed-generic-code-refused", async (r) => { const { code } = await codeFailed(r, r.id) @@ -1477,7 +1477,7 @@ screen(2118, "order-pay-crypto-taken-on-chain", async ({ page, id }) => { await startOrder(page, id, { method: "btc" }) await answerName(page, id, TAKEN_ANSWER) await page.reload() - await shown(page, "Someone has registered this name") + await shown(page, "Taken at") }) screen(2120, "order-pay-crypto-unchecked", async ({ page, id }) => { await startOrder(page, id, { method: "btc" }) @@ -1495,7 +1495,7 @@ screen(2122, "order-pay-crypto-no-record", async (r) => { screen(2124, "order-pay-crypto-part-paid", async (r) => { const { invoiceId } = await startOrder(r.page, r.id, { method: "btc" }) await control(r.request, `partial/${invoiceId}`) - await shown(r.page, "Part of the payment arrived") + await shown(r.page, "Part of the payment was received") }) screen(2126, "order-pay-crypto-part-paid-expired", async (r) => { const { invoiceId } = await startOrder(r.page, r.id, { method: "btc" }) @@ -1517,7 +1517,7 @@ const copiedCheckout = async (page: Page, name: string, card: boolean): Promise< await chooseMethod(copy, card ? "Bitcoin" : "Monero") await payButton(copy).click() await copy.waitForURL(/\?order=/) - await shown(copy, "opened instead of") + await shown(copy, "You already have an open invoice for this name.") return copy } screen(2128, "order-pay-crypto-opened-instead", ({ page, id }) => copiedCheckout(page, id, false)) @@ -1525,7 +1525,7 @@ screen(2130, "order-pay-crypto-cancel-refused", async ({ page, id }) => { await startOrder(page, id, { method: "btc" }) await cancelAnswer(page, (route) => answer(route, 409, "funded")) await press(page, "Cancel this invoice") - await shown(page, "A payment has reached this invoice") + await shown(page, "A payment was received, so the invoice cannot be cancelled.") }) screen(2132, "order-pay-crypto-cancel-limited", async ({ page, id }) => { await startOrder(page, id, { method: "btc" }) @@ -1568,14 +1568,14 @@ screen(2142, "order-pay-card-cannot-persist", async ({ page, id }) => { } }) await startOrder(page, id, { method: "card" }) - await shown(page, "This browser cannot remember a card payment.") + await shown(page, "This order cannot be saved in this browser.") }) screen(2144, "order-pay-card-opened-instead", ({ page, id }) => copiedCheckout(page, id, true)) screen(2146, "order-pay-card-cancel-refused", async ({ page, id }) => { await startOrder(page, id, { method: "card" }) await cancelAnswer(page, (route) => answer(route, 409, "funded")) await press(page, "Cancel this invoice") - await shown(page, "A payment has reached this invoice") + await shown(page, "A payment was received, so the invoice cannot be cancelled.") }) screen(2148, "order-confirming-crypto", async (r) => { const { invoiceId } = await startOrder(r.page, r.id, { method: "btc" }) @@ -1692,7 +1692,7 @@ screen(2179, "order-ended", async (r) => { await waitRegistered(r.page, r.id) await control(r.request, `unregister/${registrationId}`) await r.page.reload() - await heading(r.page, "Registration ended") + await heading(r.page, "Registration cancelled") }) screen(2180, "order-taken-chain", async (r) => { await takenOrder(r.page, r.request, r.id) }) screen(2182, "order-taken-reserved", async (r) => { @@ -1705,7 +1705,7 @@ screen(2182, "order-taken-reserved", async (r) => { screen(2184, "order-taken-no-record", async (r) => { const { invoiceId } = await takenOrder(r.page, r.request, r.id) const other = await elsewhere(r, `/?order=${invoiceId}`) - await heading(other, `${r.id}.simplex was taken`) + await heading(other, `${r.id}.simplex is no longer available`) return other }) screen(2186, "order-taken-balance-spent", async (r) => { @@ -1732,7 +1732,7 @@ const codeTaken = async (r: Reach) => { } screen(2194, "order-taken-code", async (r) => { await codeTaken(r) - await heading(r.page, `${r.id}.simplex was taken`) + await heading(r.page, `${r.id}.simplex is no longer available`) }) screen(2196, "order-taken-code-reserved", async (r) => { await codeTaken(r) @@ -1741,9 +1741,9 @@ screen(2196, "order-taken-code-reserved", async (r) => { }) screen(2198, "order-taken-code-no-record", async (r) => { const registrationId = await codeTaken(r) - await heading(r.page, `${r.id}.simplex was taken`) + await heading(r.page, `${r.id}.simplex is no longer available`) const other = await elsewhere(r, `/?registration=${registrationId}`) - await heading(other, `${r.id}.simplex was taken`) + await heading(other, `${r.id}.simplex is no longer available`) return other }) const closed = async (r: Reach, method: "btc" | "card" = "btc") => { @@ -1778,41 +1778,41 @@ const closedPart = async (r: Reach) => { } screen(2208, "order-closed-received-confirming", async (r) => { await closedPart(r) - await shown(r.page, "which is not the full amount. Once confirmed") + await shown(r.page, "which is not the full amount. It will be added to your balance once confirmed") }) screen(2210, "order-closed-received-crediting", async (r) => { const { invoiceId, paidPart } = await closedPart(r) await control(r.request, `late/${invoiceId}`, { waiting: "crediting" }) await control(r.request, `settle/${invoiceId}`, { paid: paidPart }) - await shown(r.page, "Once credited") + await shown(r.page, "It will be added to your balance shortly") }) screen(2212, "order-closed-received-support", async (r) => { const { invoiceId } = await closedPart(r) await control(r.request, `late/${invoiceId}`, { waiting: "support" }) - await shown(r.page, "It is not credited to your balance by itself") + await shown(r.page, "To have it credited, please") }) const receivedOffer = async (r: Reach) => { const { invoiceId, paidPart } = await closedPart(r) await control(r.request, `settle/${invoiceId}`, { paid: paidPart }) - await shown(r.page, "It is kept as your balance") + await shown(r.page, "It is in your balance") return invoiceId } screen(2214, "order-closed-received-offer", async (r) => { await receivedOffer(r) }) screen(2216, "order-closed-late-confirming", async (r) => { const invoiceId = await closed(r) await control(r.request, `confirming/${invoiceId}`) - await shown(r.page, "A payment did not complete before the invoice closed") + await shown(r.page, "The payment was received after the invoice closed") }) screen(2218, "order-closed-paid-late-offer", async (r) => { const invoiceId = await closed(r) await control(r.request, `settle/${invoiceId}`) - await shown(r.page, "The payment arrived after this invoice had closed") + await shown(r.page, "The payment was received after the invoice closed") }) screen(2220, "order-closed-paid-late-support", async (r) => { const invoiceId = await closed(r) await control(r.request, `late/${invoiceId}`, { waiting: "support" }) await control(r.request, `settle/${invoiceId}`) - await shown(r.page, "It is not credited to your balance by itself") + await shown(r.page, "To have it credited, please") }) screen(2222, "order-closed-replaced", async (r) => { const old = await closed(r) @@ -1853,7 +1853,7 @@ screen(2242, "order-reorder-cancel-refused", async (r) => { await cardFormFailed(r) await cancelAnswer(r.page, (route) => answer(route, 409, "funded")) await press(r.page, "Get a new invoice") - await shown(r.page, "A payment has reached this invoice, so it is kept.") + await shown(r.page, "A payment was received, so the invoice cannot be cancelled.") }) screen(2244, "order-reorder-name-unchecked", async ({ page, id }) => { await startOrder(page, id, { method: "btc" }) @@ -1861,7 +1861,7 @@ screen(2244, "order-reorder-name-unchecked", async ({ page, id }) => { await heading(page, "Invoice closed") await page.route("**/api/name/**", (route) => answer(route, 503, "unavailable")) await press(page, "Order the name again") - await shown(page, "The name could not be checked now.") + await shown(page, "A new invoice was not created.") }) screen(2246, "order-price-changed", async (r) => { await closed(r) @@ -1872,7 +1872,7 @@ screen(2246, "order-price-changed", async (r) => { screen(2248, "order-unreadable", async ({ page, id }) => { await page.route(`**/api/invoice/inv-${id}*`, (route) => answer(route, 500, "internal")) await page.goto(`/?order=inv-${id}`) - await heading(page, "This order could not be loaded") + await heading(page, "The order could not be loaded now") }) screen(2250, "order-loading", async ({ page, id }) => { await page.route(`**/api/invoice/inv-${id}*`, held) @@ -1916,7 +1916,7 @@ screen(3008, "names-balance-outpaid", async (r) => { }) screen(3009, "names-balance-taken-before-commit", async (r) => { await registeringAs(r, { phase: { type: "taken" }, commitTx: null, balance: BALANCE }) - await heading(r.page, `${r.id}.simplex was taken`) + await heading(r.page, `${r.id}.simplex is no longer available`) await r.page.goto("/#/names") await expect(r.page.locator(".list-row", { hasText: r.id }).first()).toBeVisible() await r.page.waitForTimeout(1500) @@ -1957,7 +1957,7 @@ screen(3013, "names-row-ended", async (r) => { await waitRegistered(r.page, r.id) await control(r.request, `unregister/${registrationId}`) await r.page.goto("/#/names") - await expect(r.page.locator(".list-row", { hasText: r.id }).locator(".chip")).toHaveText("Ended") + await expect(r.page.locator(".list-row", { hasText: r.id }).locator(".chip")).toHaveText("Cancelled") }) const seenListReloaded = async (r: Reach, unread: (page: Page) => Promise) => { await codeOrder(r, r.id) @@ -2143,7 +2143,7 @@ screen(3044, "names-rows-progress", async (r) => { await searchHere(r.page, "rows-taken-code") await toReview(r.page) await press(r.page, "Register with your code") - await heading(r.page, "rows-taken-code.simplex was taken") + await heading(r.page, "rows-taken-code.simplex is no longer available") await control(r.request, "search", { unsentSeconds: 120 }) await useCode(r.page, await issued(r)) await searchHere(r.page, "rows-committing") @@ -2242,7 +2242,7 @@ screen(3054, "names-pending-held", async (r) => { const tab = await r.page.context().newPage() await tab.goto("/#/code") await codeField(tab).fill(ownerCode) - await shown(tab, "Too many checks just now") + await shown(tab, "Too many attempts") await tab.getByRole("link", { name: "Your names" }).first().click() await heading(tab, "Your names") await expect(listRow(tab, r.id)).toBeVisible() @@ -2436,18 +2436,18 @@ screen(3124, "names-edit-unreadable", async (r) => { await kept(r, `reg-${r.id}`, null, r.id) await r.page.route(`**/api/registration/reg-${r.id}*`, (route) => answer(route, 503, "provider_unavailable")) await r.page.goto(`/#/edit/reg-${r.id}`) - await shown(r.page, "The name could not be read now") + await shown(r.page, "The name could not be loaded now") }) screen(3125, "names-edit-unregistered", async (r) => { await editFaked(r, { phase: registeredPhase(START_S + 2 * YEAR_S) }, () => AVAILABLE_AGAIN) - await shown(r.page, "The name could not be read now") + await shown(r.page, "The name could not be loaded now") }) screen(3126, "names-edit-unreadable-reading", async (r) => { await kept(r, `reg-${r.id}`, null, r.id) let reads = 0 await r.page.route(`**/api/registration/reg-${r.id}*`, (route) => reads++ === 0 ? answer(route, 503, "provider_unavailable") : held()) await r.page.goto(`/#/edit/reg-${r.id}`) - await shown(r.page, "The name could not be read now") + await shown(r.page, "The name could not be loaded now") await press(r.page, "Try again") await r.page.waitForTimeout(500) }) @@ -2461,14 +2461,14 @@ screen(3130, "names-edit-expired-from", async (r) => { }) screen(3132, "names-edit-expired-taken", async (r) => { await editFaked(r, { phase: registeredPhase(r.now - 100 * 86400) }, (order) => registeredFor(order, r.now + YEAR_S, OTHER_OWNER)) - await shown(r.page, "This name has expired") + await shown(r.page, "This name has another owner") }) screen(3133, "names-edit-ended", async (r) => { const { registrationId } = await codeOrder(r, r.id) await waitRegistered(r.page, r.id) await control(r.request, `unregister/${registrationId}`) await r.page.goto(`/#/edit/${registrationId}`) - await shown(r.page, "The registration was ended") + await shown(r.page, "The registration was cancelled") }) screen(3134, "names-edit-other-owner", async (r) => { const expiresAt = START_S + 2 * YEAR_S @@ -2479,7 +2479,7 @@ screen(3136, "names-edit-elsewhere", async (r) => { const registrationId = await registered(r, r.id) await ownerSetsResolver(await ownerCodeOf(r.page, registrationId), r.id, OTHER_OWNER) await r.page.goto(`/#/edit/${registrationId}`) - await shown(r.page, "This name's links are kept elsewhere") + await shown(r.page, "This name's links are kept by another resolver") }) screen(3138, "names-edit-not-registered", async (r) => { await control(r.request, "search", { unsentSeconds: 120 }) @@ -2541,10 +2541,10 @@ screen(3160, "names-edit-moved", async (r) => { records: { ...json.found.records, contact: contactLink("MV"), channel: channelLink("MV"), nonce: json.found.records.nonce + 2 } } } }) }) await press(r.page, SAVE) - await shown(r.page, "An earlier save") + await shown(r.page, "The links were changed elsewhere") await expect(onStep(r.page).locator(".link-field .entity:not(.skeleton)")).toHaveCount(2) }) -screen(3162, "names-edit-refused", (r) => saveWith(r, (route) => answer(route, 400, "bad_request"), "The links were not saved.")) +screen(3162, "names-edit-refused", (r) => saveWith(r, (route) => answer(route, 400, "bad_request"), "Not saved.")) screen(3164, "names-edit-held", (r) => saveWith(r, (route) => answer(route, 429, "rate_limited", 30), "Too many attempts")) screen(3166, "names-edit-held-at-open", async (r) => { const registrationId = await registered(r, r.id) @@ -2627,7 +2627,7 @@ const editCamera = async (r: Reach, grant: boolean) => { } screen(3190, "names-edit-field-camera-refused", async (r) => { const phone = await editCamera(r, false) - await shown(phone, "Allow the camera, or paste the link.") + await shown(phone, "Please allow it, or paste the link.") return phone }, { sizes: ["phone"] }) screen(3192, "names-edit-field-scanning", async (r) => { diff --git a/webapp/e2e/screens/checkout-code-no-storage-desktop.png b/webapp/e2e/screens/checkout-code-no-storage-desktop.png index 656c7b0..b395cd0 100644 Binary files a/webapp/e2e/screens/checkout-code-no-storage-desktop.png and b/webapp/e2e/screens/checkout-code-no-storage-desktop.png differ diff --git a/webapp/e2e/screens/checkout-code-no-storage-phone.png b/webapp/e2e/screens/checkout-code-no-storage-phone.png index d2c69be..1eeada9 100644 Binary files a/webapp/e2e/screens/checkout-code-no-storage-phone.png and b/webapp/e2e/screens/checkout-code-no-storage-phone.png differ diff --git a/webapp/e2e/screens/checkout-code-saved-desktop.png b/webapp/e2e/screens/checkout-code-saved-desktop.png index e93fd42..60dd60a 100644 Binary files a/webapp/e2e/screens/checkout-code-saved-desktop.png and b/webapp/e2e/screens/checkout-code-saved-desktop.png differ diff --git a/webapp/e2e/screens/checkout-code-saved-phone.png b/webapp/e2e/screens/checkout-code-saved-phone.png index 59b7b44..af42461 100644 Binary files a/webapp/e2e/screens/checkout-code-saved-phone.png and b/webapp/e2e/screens/checkout-code-saved-phone.png differ diff --git a/webapp/e2e/screens/checkout-code-shown-desktop.png b/webapp/e2e/screens/checkout-code-shown-desktop.png index da9fc35..96afc40 100644 Binary files a/webapp/e2e/screens/checkout-code-shown-desktop.png and b/webapp/e2e/screens/checkout-code-shown-desktop.png differ diff --git a/webapp/e2e/screens/checkout-code-shown-phone.png b/webapp/e2e/screens/checkout-code-shown-phone.png index 25be6d2..f356f24 100644 Binary files a/webapp/e2e/screens/checkout-code-shown-phone.png and b/webapp/e2e/screens/checkout-code-shown-phone.png differ diff --git a/webapp/e2e/screens/checkout-code-unsaved-desktop.png b/webapp/e2e/screens/checkout-code-unsaved-desktop.png index 265400a..5729083 100644 Binary files a/webapp/e2e/screens/checkout-code-unsaved-desktop.png and b/webapp/e2e/screens/checkout-code-unsaved-desktop.png differ diff --git a/webapp/e2e/screens/checkout-code-unsaved-phone.png b/webapp/e2e/screens/checkout-code-unsaved-phone.png index f5819b5..c7c023f 100644 Binary files a/webapp/e2e/screens/checkout-code-unsaved-phone.png and b/webapp/e2e/screens/checkout-code-unsaved-phone.png differ diff --git a/webapp/e2e/screens/checkout-community-terms-changed-desktop.png b/webapp/e2e/screens/checkout-community-terms-changed-desktop.png index b7a0270..a91abca 100644 Binary files a/webapp/e2e/screens/checkout-community-terms-changed-desktop.png and b/webapp/e2e/screens/checkout-community-terms-changed-desktop.png differ diff --git a/webapp/e2e/screens/checkout-community-terms-changed-phone.png b/webapp/e2e/screens/checkout-community-terms-changed-phone.png index 36fc37c..03a764d 100644 Binary files a/webapp/e2e/screens/checkout-community-terms-changed-phone.png and b/webapp/e2e/screens/checkout-community-terms-changed-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-bot-desktop.png b/webapp/e2e/screens/checkout-links-bot-desktop.png index 5b67237..8d7f152 100644 Binary files a/webapp/e2e/screens/checkout-links-bot-desktop.png and b/webapp/e2e/screens/checkout-links-bot-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-bot-phone.png b/webapp/e2e/screens/checkout-links-bot-phone.png index 50e7065..b15361b 100644 Binary files a/webapp/e2e/screens/checkout-links-bot-phone.png and b/webapp/e2e/screens/checkout-links-bot-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-both-desktop.png b/webapp/e2e/screens/checkout-links-both-desktop.png index dd8d88e..3d8ac29 100644 Binary files a/webapp/e2e/screens/checkout-links-both-desktop.png and b/webapp/e2e/screens/checkout-links-both-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-both-phone.png b/webapp/e2e/screens/checkout-links-both-phone.png index 334ced5..3fcc7a1 100644 Binary files a/webapp/e2e/screens/checkout-links-both-phone.png and b/webapp/e2e/screens/checkout-links-both-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-business-desktop.png b/webapp/e2e/screens/checkout-links-business-desktop.png index 9a91abd..89be6b3 100644 Binary files a/webapp/e2e/screens/checkout-links-business-desktop.png and b/webapp/e2e/screens/checkout-links-business-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-business-phone.png b/webapp/e2e/screens/checkout-links-business-phone.png index 0978b39..c3d7bfe 100644 Binary files a/webapp/e2e/screens/checkout-links-business-phone.png and b/webapp/e2e/screens/checkout-links-business-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-channel-desktop.png b/webapp/e2e/screens/checkout-links-channel-desktop.png index f2e2bc8..ed48f00 100644 Binary files a/webapp/e2e/screens/checkout-links-channel-desktop.png and b/webapp/e2e/screens/checkout-links-channel-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-channel-phone.png b/webapp/e2e/screens/checkout-links-channel-phone.png index a56c920..6d63f42 100644 Binary files a/webapp/e2e/screens/checkout-links-channel-phone.png and b/webapp/e2e/screens/checkout-links-channel-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-checking-desktop.png b/webapp/e2e/screens/checkout-links-checking-desktop.png index b1f6df0..139c345 100644 Binary files a/webapp/e2e/screens/checkout-links-checking-desktop.png and b/webapp/e2e/screens/checkout-links-checking-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-checking-phone.png b/webapp/e2e/screens/checkout-links-checking-phone.png index b022f74..a532b41 100644 Binary files a/webapp/e2e/screens/checkout-links-checking-phone.png and b/webapp/e2e/screens/checkout-links-checking-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-contact-desktop.png b/webapp/e2e/screens/checkout-links-contact-desktop.png index 8e43210..9d41e62 100644 Binary files a/webapp/e2e/screens/checkout-links-contact-desktop.png and b/webapp/e2e/screens/checkout-links-contact-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-contact-phone.png b/webapp/e2e/screens/checkout-links-contact-phone.png index 3277eee..3423578 100644 Binary files a/webapp/e2e/screens/checkout-links-contact-phone.png and b/webapp/e2e/screens/checkout-links-contact-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-continue-checking-desktop.png b/webapp/e2e/screens/checkout-links-continue-checking-desktop.png index d637d86..72ee0a8 100644 Binary files a/webapp/e2e/screens/checkout-links-continue-checking-desktop.png and b/webapp/e2e/screens/checkout-links-continue-checking-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-continue-checking-phone.png b/webapp/e2e/screens/checkout-links-continue-checking-phone.png index db5f7fb..0002908 100644 Binary files a/webapp/e2e/screens/checkout-links-continue-checking-phone.png and b/webapp/e2e/screens/checkout-links-continue-checking-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-empty-camera-phone.png b/webapp/e2e/screens/checkout-links-empty-camera-phone.png index d96f422..17660c0 100644 Binary files a/webapp/e2e/screens/checkout-links-empty-camera-phone.png and b/webapp/e2e/screens/checkout-links-empty-camera-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-empty-desktop.png b/webapp/e2e/screens/checkout-links-empty-desktop.png index 50dc454..36213d7 100644 Binary files a/webapp/e2e/screens/checkout-links-empty-desktop.png and b/webapp/e2e/screens/checkout-links-empty-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-empty-phone.png b/webapp/e2e/screens/checkout-links-empty-phone.png index 9c0dd27..30982e9 100644 Binary files a/webapp/e2e/screens/checkout-links-empty-phone.png and b/webapp/e2e/screens/checkout-links-empty-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-forms-now-taken-desktop.png b/webapp/e2e/screens/checkout-links-forms-now-taken-desktop.png index 174fdeb..89d0b1c 100644 Binary files a/webapp/e2e/screens/checkout-links-forms-now-taken-desktop.png and b/webapp/e2e/screens/checkout-links-forms-now-taken-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-forms-now-taken-phone.png b/webapp/e2e/screens/checkout-links-forms-now-taken-phone.png index 0bbefa6..3308e33 100644 Binary files a/webapp/e2e/screens/checkout-links-forms-now-taken-phone.png and b/webapp/e2e/screens/checkout-links-forms-now-taken-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-kept-raw-desktop.png b/webapp/e2e/screens/checkout-links-kept-raw-desktop.png index e41c006..8f19189 100644 Binary files a/webapp/e2e/screens/checkout-links-kept-raw-desktop.png and b/webapp/e2e/screens/checkout-links-kept-raw-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-kept-raw-phone.png b/webapp/e2e/screens/checkout-links-kept-raw-phone.png index 51dfd35..61c3fdd 100644 Binary files a/webapp/e2e/screens/checkout-links-kept-raw-phone.png and b/webapp/e2e/screens/checkout-links-kept-raw-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-no-camera-phone.png b/webapp/e2e/screens/checkout-links-no-camera-phone.png index f017fb3..1c5cab9 100644 Binary files a/webapp/e2e/screens/checkout-links-no-camera-phone.png and b/webapp/e2e/screens/checkout-links-no-camera-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-no-profile-desktop.png b/webapp/e2e/screens/checkout-links-no-profile-desktop.png index b9df3aa..07044fa 100644 Binary files a/webapp/e2e/screens/checkout-links-no-profile-desktop.png and b/webapp/e2e/screens/checkout-links-no-profile-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-no-profile-phone.png b/webapp/e2e/screens/checkout-links-no-profile-phone.png index 77949cd..813e642 100644 Binary files a/webapp/e2e/screens/checkout-links-no-profile-phone.png and b/webapp/e2e/screens/checkout-links-no-profile-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-noncanonical-key-desktop.png b/webapp/e2e/screens/checkout-links-noncanonical-key-desktop.png index 71119ac..d387648 100644 Binary files a/webapp/e2e/screens/checkout-links-noncanonical-key-desktop.png and b/webapp/e2e/screens/checkout-links-noncanonical-key-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-noncanonical-key-phone.png b/webapp/e2e/screens/checkout-links-noncanonical-key-phone.png index 213cc17..6934cfb 100644 Binary files a/webapp/e2e/screens/checkout-links-noncanonical-key-phone.png and b/webapp/e2e/screens/checkout-links-noncanonical-key-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-not-a-link-desktop.png b/webapp/e2e/screens/checkout-links-not-a-link-desktop.png index a448f92..a9a413c 100644 Binary files a/webapp/e2e/screens/checkout-links-not-a-link-desktop.png and b/webapp/e2e/screens/checkout-links-not-a-link-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-not-a-link-phone.png b/webapp/e2e/screens/checkout-links-not-a-link-phone.png index 77992d4..ce46528 100644 Binary files a/webapp/e2e/screens/checkout-links-not-a-link-phone.png and b/webapp/e2e/screens/checkout-links-not-a-link-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-not-checked-desktop.png b/webapp/e2e/screens/checkout-links-not-checked-desktop.png index 2d216de..b1e06d0 100644 Binary files a/webapp/e2e/screens/checkout-links-not-checked-desktop.png and b/webapp/e2e/screens/checkout-links-not-checked-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-not-checked-phone.png b/webapp/e2e/screens/checkout-links-not-checked-phone.png index 65e86ef..c5f7568 100644 Binary files a/webapp/e2e/screens/checkout-links-not-checked-phone.png and b/webapp/e2e/screens/checkout-links-not-checked-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-other-kind-field-desktop.png b/webapp/e2e/screens/checkout-links-other-kind-field-desktop.png index 9ef9b74..1cf8546 100644 Binary files a/webapp/e2e/screens/checkout-links-other-kind-field-desktop.png and b/webapp/e2e/screens/checkout-links-other-kind-field-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-other-kind-field-phone.png b/webapp/e2e/screens/checkout-links-other-kind-field-phone.png index cebaca7..fa43efd 100644 Binary files a/webapp/e2e/screens/checkout-links-other-kind-field-phone.png and b/webapp/e2e/screens/checkout-links-other-kind-field-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-other-kind-given-desktop.png b/webapp/e2e/screens/checkout-links-other-kind-given-desktop.png index 4a189cb..9aa6d40 100644 Binary files a/webapp/e2e/screens/checkout-links-other-kind-given-desktop.png and b/webapp/e2e/screens/checkout-links-other-kind-given-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-other-kind-given-phone.png b/webapp/e2e/screens/checkout-links-other-kind-given-phone.png index 160b934..c52bc05 100644 Binary files a/webapp/e2e/screens/checkout-links-other-kind-given-phone.png and b/webapp/e2e/screens/checkout-links-other-kind-given-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-picture-desktop.png b/webapp/e2e/screens/checkout-links-picture-desktop.png index 57931b0..41bc39b 100644 Binary files a/webapp/e2e/screens/checkout-links-picture-desktop.png and b/webapp/e2e/screens/checkout-links-picture-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-picture-phone.png b/webapp/e2e/screens/checkout-links-picture-phone.png index 0541ba2..5cb0d18 100644 Binary files a/webapp/e2e/screens/checkout-links-picture-phone.png and b/webapp/e2e/screens/checkout-links-picture-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-refused-by-service-desktop.png b/webapp/e2e/screens/checkout-links-refused-by-service-desktop.png index eaea9c3..be688ab 100644 Binary files a/webapp/e2e/screens/checkout-links-refused-by-service-desktop.png and b/webapp/e2e/screens/checkout-links-refused-by-service-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-refused-by-service-phone.png b/webapp/e2e/screens/checkout-links-refused-by-service-phone.png index 94d818a..87bbe51 100644 Binary files a/webapp/e2e/screens/checkout-links-refused-by-service-phone.png and b/webapp/e2e/screens/checkout-links-refused-by-service-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-scan-dialog-phone.png b/webapp/e2e/screens/checkout-links-scan-dialog-phone.png index 2ef4ea8..0409d2d 100644 Binary files a/webapp/e2e/screens/checkout-links-scan-dialog-phone.png and b/webapp/e2e/screens/checkout-links-scan-dialog-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-second-empty-desktop.png b/webapp/e2e/screens/checkout-links-second-empty-desktop.png index 8c52fc1..17029e8 100644 Binary files a/webapp/e2e/screens/checkout-links-second-empty-desktop.png and b/webapp/e2e/screens/checkout-links-second-empty-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-second-empty-phone.png b/webapp/e2e/screens/checkout-links-second-empty-phone.png index 9e1cf7b..e570e3f 100644 Binary files a/webapp/e2e/screens/checkout-links-second-empty-phone.png and b/webapp/e2e/screens/checkout-links-second-empty-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-second-not-a-link-desktop.png b/webapp/e2e/screens/checkout-links-second-not-a-link-desktop.png index 8c884d7..474ed58 100644 Binary files a/webapp/e2e/screens/checkout-links-second-not-a-link-desktop.png and b/webapp/e2e/screens/checkout-links-second-not-a-link-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-second-not-a-link-phone.png b/webapp/e2e/screens/checkout-links-second-not-a-link-phone.png index ac9849c..77dda66 100644 Binary files a/webapp/e2e/screens/checkout-links-second-not-a-link-phone.png and b/webapp/e2e/screens/checkout-links-second-not-a-link-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-several-desktop.png b/webapp/e2e/screens/checkout-links-several-desktop.png index 0fbdc1d..be54035 100644 Binary files a/webapp/e2e/screens/checkout-links-several-desktop.png and b/webapp/e2e/screens/checkout-links-several-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-several-phone.png b/webapp/e2e/screens/checkout-links-several-phone.png index 369c341..d29233e 100644 Binary files a/webapp/e2e/screens/checkout-links-several-phone.png and b/webapp/e2e/screens/checkout-links-several-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-simplex-without-h-desktop.png b/webapp/e2e/screens/checkout-links-simplex-without-h-desktop.png index a6f0852..ad9f781 100644 Binary files a/webapp/e2e/screens/checkout-links-simplex-without-h-desktop.png and b/webapp/e2e/screens/checkout-links-simplex-without-h-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-simplex-without-h-phone.png b/webapp/e2e/screens/checkout-links-simplex-without-h-phone.png index 57cff3d..138ce69 100644 Binary files a/webapp/e2e/screens/checkout-links-simplex-without-h-phone.png and b/webapp/e2e/screens/checkout-links-simplex-without-h-phone.png differ diff --git a/webapp/e2e/screens/checkout-links-too-long-desktop.png b/webapp/e2e/screens/checkout-links-too-long-desktop.png index 216689b..2974c3c 100644 Binary files a/webapp/e2e/screens/checkout-links-too-long-desktop.png and b/webapp/e2e/screens/checkout-links-too-long-desktop.png differ diff --git a/webapp/e2e/screens/checkout-links-too-long-phone.png b/webapp/e2e/screens/checkout-links-too-long-phone.png index 2a1332a..0800bd9 100644 Binary files a/webapp/e2e/screens/checkout-links-too-long-phone.png and b/webapp/e2e/screens/checkout-links-too-long-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-field-covering-desktop.png b/webapp/e2e/screens/checkout-review-code-field-covering-desktop.png index 7a2f2a7..658afca 100644 Binary files a/webapp/e2e/screens/checkout-review-code-field-covering-desktop.png and b/webapp/e2e/screens/checkout-review-code-field-covering-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-field-covering-phone.png b/webapp/e2e/screens/checkout-review-code-field-covering-phone.png index 290a279..fac7ef2 100644 Binary files a/webapp/e2e/screens/checkout-review-code-field-covering-phone.png and b/webapp/e2e/screens/checkout-review-code-field-covering-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-scan-dialog-phone.png b/webapp/e2e/screens/checkout-review-code-scan-dialog-phone.png index da64db1..73dddcf 100644 Binary files a/webapp/e2e/screens/checkout-review-code-scan-dialog-phone.png and b/webapp/e2e/screens/checkout-review-code-scan-dialog-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-expired-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-expired-desktop.png index 50b98be..5438381 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-expired-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-expired-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-expired-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-expired-phone.png index 422b1ac..513c400 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-expired-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-expired-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-mistyped-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-mistyped-desktop.png index 0d8e828..ced863e 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-mistyped-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-mistyped-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-mistyped-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-mistyped-phone.png index 959d17e..8876894 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-mistyped-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-mistyped-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-name-code-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-name-code-desktop.png index 49cea6c..69c800e 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-name-code-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-name-code-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-name-code-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-name-code-phone.png index 9c93178..4c59b6b 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-name-code-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-name-code-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-no-camera-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-no-camera-phone.png index 37defca..1e7af6d 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-no-camera-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-no-camera-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-not-checked-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-not-checked-desktop.png index bcab5bd..d8f97af 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-not-checked-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-not-checked-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-not-checked-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-not-checked-phone.png index ad74045..8e6db79 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-not-checked-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-not-checked-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-not-covering-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-not-covering-desktop.png index b01fe22..b1896c7 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-not-covering-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-not-covering-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-not-covering-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-not-covering-phone.png index d64e7e1..1d1ffc0 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-not-covering-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-not-covering-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-not-issued-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-not-issued-desktop.png index 486660a..de08389 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-not-issued-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-not-issued-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-not-issued-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-not-issued-phone.png index ace58b4..3da0700 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-not-issued-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-not-issued-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-desktop.png index 0677aa5..8d528b0 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-phone.png index b8a4ec3..553c925 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-rate-limited-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-reserved-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-reserved-desktop.png index 86a4b15..8e10785 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-reserved-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-reserved-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-desktop.png index 1ab31dc..c210c29 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-phone.png index b96fd40..6d16f43 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-reserved-own-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-reserved-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-reserved-phone.png index ff1a1b1..2d71b50 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-reserved-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-reserved-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-revoked-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-revoked-desktop.png index 135955f..5ad2f73 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-revoked-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-revoked-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-revoked-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-revoked-phone.png index 4281eea..d47bed6 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-revoked-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-revoked-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-unfinished-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-unfinished-desktop.png index 0655366..18b8417 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-unfinished-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-unfinished-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-unfinished-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-unfinished-phone.png index 3228b10..1307bbd 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-unfinished-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-unfinished-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-unpaid-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-unpaid-desktop.png index ea00bc8..c6a8110 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-unpaid-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-unpaid-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-unpaid-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-unpaid-phone.png index d6ece1a..359a1eb 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-unpaid-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-unpaid-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-used-desktop.png b/webapp/e2e/screens/checkout-review-code-verdict-used-desktop.png index 7fdda7c..740bd95 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-used-desktop.png and b/webapp/e2e/screens/checkout-review-code-verdict-used-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-code-verdict-used-phone.png b/webapp/e2e/screens/checkout-review-code-verdict-used-phone.png index 4ffc2e3..0d8a7bc 100644 Binary files a/webapp/e2e/screens/checkout-review-code-verdict-used-phone.png and b/webapp/e2e/screens/checkout-review-code-verdict-used-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-method-unavailable-desktop.png b/webapp/e2e/screens/checkout-review-method-unavailable-desktop.png index b646e3d..95194eb 100644 Binary files a/webapp/e2e/screens/checkout-review-method-unavailable-desktop.png and b/webapp/e2e/screens/checkout-review-method-unavailable-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-method-unavailable-phone.png b/webapp/e2e/screens/checkout-review-method-unavailable-phone.png index bcf6d61..107d377 100644 Binary files a/webapp/e2e/screens/checkout-review-method-unavailable-phone.png and b/webapp/e2e/screens/checkout-review-method-unavailable-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-open-order-confirming-desktop.png b/webapp/e2e/screens/checkout-review-open-order-confirming-desktop.png index a23ab87..9b6617e 100644 Binary files a/webapp/e2e/screens/checkout-review-open-order-confirming-desktop.png and b/webapp/e2e/screens/checkout-review-open-order-confirming-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-open-order-confirming-phone.png b/webapp/e2e/screens/checkout-review-open-order-confirming-phone.png index 3193f51..62c9367 100644 Binary files a/webapp/e2e/screens/checkout-review-open-order-confirming-phone.png and b/webapp/e2e/screens/checkout-review-open-order-confirming-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-open-order-desktop.png b/webapp/e2e/screens/checkout-review-open-order-desktop.png index 480c25a..73fa836 100644 Binary files a/webapp/e2e/screens/checkout-review-open-order-desktop.png and b/webapp/e2e/screens/checkout-review-open-order-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-open-order-phone.png b/webapp/e2e/screens/checkout-review-open-order-phone.png index 787b045..34e02f4 100644 Binary files a/webapp/e2e/screens/checkout-review-open-order-phone.png and b/webapp/e2e/screens/checkout-review-open-order-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-terms-changed-desktop.png b/webapp/e2e/screens/checkout-review-terms-changed-desktop.png index 0901ea8..4a8c4db 100644 Binary files a/webapp/e2e/screens/checkout-review-terms-changed-desktop.png and b/webapp/e2e/screens/checkout-review-terms-changed-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-terms-changed-phone.png b/webapp/e2e/screens/checkout-review-terms-changed-phone.png index 278cfe2..2edc7c4 100644 Binary files a/webapp/e2e/screens/checkout-review-terms-changed-phone.png and b/webapp/e2e/screens/checkout-review-terms-changed-phone.png differ diff --git a/webapp/e2e/screens/checkout-review-waiting-card-desktop.png b/webapp/e2e/screens/checkout-review-waiting-card-desktop.png index 9e3641a..64b8cb7 100644 Binary files a/webapp/e2e/screens/checkout-review-waiting-card-desktop.png and b/webapp/e2e/screens/checkout-review-waiting-card-desktop.png differ diff --git a/webapp/e2e/screens/checkout-review-waiting-card-phone.png b/webapp/e2e/screens/checkout-review-waiting-card-phone.png index 5179226..5b8b8d6 100644 Binary files a/webapp/e2e/screens/checkout-review-waiting-card-phone.png and b/webapp/e2e/screens/checkout-review-waiting-card-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-held-desktop.png b/webapp/e2e/screens/checkout-select-held-desktop.png index b078b38..4de825e 100644 Binary files a/webapp/e2e/screens/checkout-select-held-desktop.png and b/webapp/e2e/screens/checkout-select-held-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-held-phone.png b/webapp/e2e/screens/checkout-select-held-phone.png index 2fc25ab..9f2b37e 100644 Binary files a/webapp/e2e/screens/checkout-select-held-phone.png and b/webapp/e2e/screens/checkout-select-held-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-failed-desktop.png b/webapp/e2e/screens/checkout-select-refused-failed-desktop.png index c3195a8..3a8b713 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-failed-desktop.png and b/webapp/e2e/screens/checkout-select-refused-failed-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-failed-phone.png b/webapp/e2e/screens/checkout-select-refused-failed-phone.png index 096260b..f832ace 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-failed-phone.png and b/webapp/e2e/screens/checkout-select-refused-failed-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-other-order-desktop.png b/webapp/e2e/screens/checkout-select-refused-other-order-desktop.png index c3195a8..3a8b713 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-other-order-desktop.png and b/webapp/e2e/screens/checkout-select-refused-other-order-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-other-order-phone.png b/webapp/e2e/screens/checkout-select-refused-other-order-phone.png index 096260b..f832ace 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-other-order-phone.png and b/webapp/e2e/screens/checkout-select-refused-other-order-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-price-desktop.png b/webapp/e2e/screens/checkout-select-refused-price-desktop.png index a2f67f8..ac73b50 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-price-desktop.png and b/webapp/e2e/screens/checkout-select-refused-price-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-price-phone.png b/webapp/e2e/screens/checkout-select-refused-price-phone.png index 52cf7ca..e39989d 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-price-phone.png and b/webapp/e2e/screens/checkout-select-refused-price-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-unavailable-desktop.png b/webapp/e2e/screens/checkout-select-refused-unavailable-desktop.png index 8cba17e..40cb168 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-unavailable-desktop.png and b/webapp/e2e/screens/checkout-select-refused-unavailable-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-unavailable-phone.png b/webapp/e2e/screens/checkout-select-refused-unavailable-phone.png index 4d77856..322055a 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-unavailable-phone.png and b/webapp/e2e/screens/checkout-select-refused-unavailable-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-selected-elsewhere-desktop.png b/webapp/e2e/screens/checkout-select-selected-elsewhere-desktop.png index 3fef276..a02a98d 100644 Binary files a/webapp/e2e/screens/checkout-select-selected-elsewhere-desktop.png and b/webapp/e2e/screens/checkout-select-selected-elsewhere-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-selected-elsewhere-phone.png b/webapp/e2e/screens/checkout-select-selected-elsewhere-phone.png index 8858a5e..479d96f 100644 Binary files a/webapp/e2e/screens/checkout-select-selected-elsewhere-phone.png and b/webapp/e2e/screens/checkout-select-selected-elsewhere-phone.png differ diff --git a/webapp/e2e/screens/checkout-select-terms-changed-desktop.png b/webapp/e2e/screens/checkout-select-terms-changed-desktop.png index 458902b..8f64a01 100644 Binary files a/webapp/e2e/screens/checkout-select-terms-changed-desktop.png and b/webapp/e2e/screens/checkout-select-terms-changed-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-terms-changed-phone.png b/webapp/e2e/screens/checkout-select-terms-changed-phone.png index 2ae348f..115cc7d 100644 Binary files a/webapp/e2e/screens/checkout-select-terms-changed-phone.png and b/webapp/e2e/screens/checkout-select-terms-changed-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-codes-only-desktop.png b/webapp/e2e/screens/checkout-status-codes-only-desktop.png index 4782171..cdc59db 100644 Binary files a/webapp/e2e/screens/checkout-status-codes-only-desktop.png and b/webapp/e2e/screens/checkout-status-codes-only-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-codes-only-phone.png b/webapp/e2e/screens/checkout-status-codes-only-phone.png index 06f6774..ed614ba 100644 Binary files a/webapp/e2e/screens/checkout-status-codes-only-phone.png and b/webapp/e2e/screens/checkout-status-codes-only-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-failed-desktop.png b/webapp/e2e/screens/checkout-status-failed-desktop.png index c3195a8..3a8b713 100644 Binary files a/webapp/e2e/screens/checkout-status-failed-desktop.png and b/webapp/e2e/screens/checkout-status-failed-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-failed-phone.png b/webapp/e2e/screens/checkout-status-failed-phone.png index 096260b..f832ace 100644 Binary files a/webapp/e2e/screens/checkout-status-failed-phone.png and b/webapp/e2e/screens/checkout-status-failed-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-failed-retrying-desktop.png b/webapp/e2e/screens/checkout-status-failed-retrying-desktop.png index 382d604..9b715a1 100644 Binary files a/webapp/e2e/screens/checkout-status-failed-retrying-desktop.png and b/webapp/e2e/screens/checkout-status-failed-retrying-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-failed-retrying-phone.png b/webapp/e2e/screens/checkout-status-failed-retrying-phone.png index 6273629..8c2d5c7 100644 Binary files a/webapp/e2e/screens/checkout-status-failed-retrying-phone.png and b/webapp/e2e/screens/checkout-status-failed-retrying-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-failed-sign-unread-desktop.png b/webapp/e2e/screens/checkout-status-failed-sign-unread-desktop.png index c3195a8..3a8b713 100644 Binary files a/webapp/e2e/screens/checkout-status-failed-sign-unread-desktop.png and b/webapp/e2e/screens/checkout-status-failed-sign-unread-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-failed-sign-unread-phone.png b/webapp/e2e/screens/checkout-status-failed-sign-unread-phone.png index 096260b..f832ace 100644 Binary files a/webapp/e2e/screens/checkout-status-failed-sign-unread-phone.png and b/webapp/e2e/screens/checkout-status-failed-sign-unread-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-price-changed-desktop.png b/webapp/e2e/screens/checkout-status-price-changed-desktop.png index 07fb00a..a0fb988 100644 Binary files a/webapp/e2e/screens/checkout-status-price-changed-desktop.png and b/webapp/e2e/screens/checkout-status-price-changed-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-price-changed-phone.png b/webapp/e2e/screens/checkout-status-price-changed-phone.png index f844d11..7f38780 100644 Binary files a/webapp/e2e/screens/checkout-status-price-changed-phone.png and b/webapp/e2e/screens/checkout-status-price-changed-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-too-many-desktop.png b/webapp/e2e/screens/checkout-status-too-many-desktop.png index b078b38..4de825e 100644 Binary files a/webapp/e2e/screens/checkout-status-too-many-desktop.png and b/webapp/e2e/screens/checkout-status-too-many-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-too-many-ended-desktop.png b/webapp/e2e/screens/checkout-status-too-many-ended-desktop.png index 89e44e4..8967401 100644 Binary files a/webapp/e2e/screens/checkout-status-too-many-ended-desktop.png and b/webapp/e2e/screens/checkout-status-too-many-ended-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-too-many-ended-phone.png b/webapp/e2e/screens/checkout-status-too-many-ended-phone.png index a499318..909af84 100644 Binary files a/webapp/e2e/screens/checkout-status-too-many-ended-phone.png and b/webapp/e2e/screens/checkout-status-too-many-ended-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-too-many-phone.png b/webapp/e2e/screens/checkout-status-too-many-phone.png index 2fc25ab..9f2b37e 100644 Binary files a/webapp/e2e/screens/checkout-status-too-many-phone.png and b/webapp/e2e/screens/checkout-status-too-many-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-unavailable-desktop.png b/webapp/e2e/screens/checkout-status-unavailable-desktop.png index 8cba17e..40cb168 100644 Binary files a/webapp/e2e/screens/checkout-status-unavailable-desktop.png and b/webapp/e2e/screens/checkout-status-unavailable-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-unavailable-phone.png b/webapp/e2e/screens/checkout-status-unavailable-phone.png index 4d77856..322055a 100644 Binary files a/webapp/e2e/screens/checkout-status-unavailable-phone.png and b/webapp/e2e/screens/checkout-status-unavailable-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-unavailable-retrying-desktop.png b/webapp/e2e/screens/checkout-status-unavailable-retrying-desktop.png index 0c434d8..eb84347 100644 Binary files a/webapp/e2e/screens/checkout-status-unavailable-retrying-desktop.png and b/webapp/e2e/screens/checkout-status-unavailable-retrying-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-unavailable-retrying-phone.png b/webapp/e2e/screens/checkout-status-unavailable-retrying-phone.png index 1d6594c..4ca664b 100644 Binary files a/webapp/e2e/screens/checkout-status-unavailable-retrying-phone.png and b/webapp/e2e/screens/checkout-status-unavailable-retrying-phone.png differ diff --git a/webapp/e2e/screens/home-available-code-short-desktop.png b/webapp/e2e/screens/home-available-code-short-desktop.png index 998e8c3..3a42d4f 100644 Binary files a/webapp/e2e/screens/home-available-code-short-desktop.png and b/webapp/e2e/screens/home-available-code-short-desktop.png differ diff --git a/webapp/e2e/screens/home-available-code-short-phone.png b/webapp/e2e/screens/home-available-code-short-phone.png index a408f31..44c9b77 100644 Binary files a/webapp/e2e/screens/home-available-code-short-phone.png and b/webapp/e2e/screens/home-available-code-short-phone.png differ diff --git a/webapp/e2e/screens/home-available-terms-unreadable-desktop.png b/webapp/e2e/screens/home-available-terms-unreadable-desktop.png index 5a31b27..f668e12 100644 Binary files a/webapp/e2e/screens/home-available-terms-unreadable-desktop.png and b/webapp/e2e/screens/home-available-terms-unreadable-desktop.png differ diff --git a/webapp/e2e/screens/home-available-terms-unreadable-phone.png b/webapp/e2e/screens/home-available-terms-unreadable-phone.png index 4d26c38..60c4750 100644 Binary files a/webapp/e2e/screens/home-available-terms-unreadable-phone.png and b/webapp/e2e/screens/home-available-terms-unreadable-phone.png differ diff --git a/webapp/e2e/screens/home-codes-only-locked-desktop.png b/webapp/e2e/screens/home-codes-only-locked-desktop.png index 31df6f4..cf2787a 100644 Binary files a/webapp/e2e/screens/home-codes-only-locked-desktop.png and b/webapp/e2e/screens/home-codes-only-locked-desktop.png differ diff --git a/webapp/e2e/screens/home-codes-only-locked-phone.png b/webapp/e2e/screens/home-codes-only-locked-phone.png index 78d61ed..99af5d1 100644 Binary files a/webapp/e2e/screens/home-codes-only-locked-phone.png and b/webapp/e2e/screens/home-codes-only-locked-phone.png differ diff --git a/webapp/e2e/screens/home-codes-only-uncovered-desktop.png b/webapp/e2e/screens/home-codes-only-uncovered-desktop.png index aafc207..9e15f09 100644 Binary files a/webapp/e2e/screens/home-codes-only-uncovered-desktop.png and b/webapp/e2e/screens/home-codes-only-uncovered-desktop.png differ diff --git a/webapp/e2e/screens/home-codes-only-uncovered-phone.png b/webapp/e2e/screens/home-codes-only-uncovered-phone.png index cecc813..9bbc4a5 100644 Binary files a/webapp/e2e/screens/home-codes-only-uncovered-phone.png and b/webapp/e2e/screens/home-codes-only-uncovered-phone.png differ diff --git a/webapp/e2e/screens/home-paused-desktop.png b/webapp/e2e/screens/home-paused-desktop.png index 2c3cca2..98e4530 100644 Binary files a/webapp/e2e/screens/home-paused-desktop.png and b/webapp/e2e/screens/home-paused-desktop.png differ diff --git a/webapp/e2e/screens/home-paused-phone.png b/webapp/e2e/screens/home-paused-phone.png index d890fde..03a7b23 100644 Binary files a/webapp/e2e/screens/home-paused-phone.png and b/webapp/e2e/screens/home-paused-phone.png differ diff --git a/webapp/e2e/screens/home-rule-chars-desktop.png b/webapp/e2e/screens/home-rule-chars-desktop.png index a519179..0f8d10a 100644 Binary files a/webapp/e2e/screens/home-rule-chars-desktop.png and b/webapp/e2e/screens/home-rule-chars-desktop.png differ diff --git a/webapp/e2e/screens/home-rule-chars-phone.png b/webapp/e2e/screens/home-rule-chars-phone.png index 98412c3..123b318 100644 Binary files a/webapp/e2e/screens/home-rule-chars-phone.png and b/webapp/e2e/screens/home-rule-chars-phone.png differ diff --git a/webapp/e2e/screens/home-rule-long-desktop.png b/webapp/e2e/screens/home-rule-long-desktop.png index c2d4f66..1ec6432 100644 Binary files a/webapp/e2e/screens/home-rule-long-desktop.png and b/webapp/e2e/screens/home-rule-long-desktop.png differ diff --git a/webapp/e2e/screens/home-rule-long-phone.png b/webapp/e2e/screens/home-rule-long-phone.png index 962fec9..a0fcb7f 100644 Binary files a/webapp/e2e/screens/home-rule-long-phone.png and b/webapp/e2e/screens/home-rule-long-phone.png differ diff --git a/webapp/e2e/screens/home-rule-short-desktop.png b/webapp/e2e/screens/home-rule-short-desktop.png index 3ba90ee..a0098f2 100644 Binary files a/webapp/e2e/screens/home-rule-short-desktop.png and b/webapp/e2e/screens/home-rule-short-desktop.png differ diff --git a/webapp/e2e/screens/home-rule-short-phone.png b/webapp/e2e/screens/home-rule-short-phone.png index 120070c..64e5a88 100644 Binary files a/webapp/e2e/screens/home-rule-short-phone.png and b/webapp/e2e/screens/home-rule-short-phone.png differ diff --git a/webapp/e2e/screens/home-select-code-short-desktop.png b/webapp/e2e/screens/home-select-code-short-desktop.png index 3dc091a..cc6b4a5 100644 Binary files a/webapp/e2e/screens/home-select-code-short-desktop.png and b/webapp/e2e/screens/home-select-code-short-desktop.png differ diff --git a/webapp/e2e/screens/home-select-code-short-phone.png b/webapp/e2e/screens/home-select-code-short-phone.png index caad90d..8a413ce 100644 Binary files a/webapp/e2e/screens/home-select-code-short-phone.png and b/webapp/e2e/screens/home-select-code-short-phone.png differ diff --git a/webapp/e2e/screens/home-select-failed-order-desktop.png b/webapp/e2e/screens/home-select-failed-order-desktop.png index e6512cc..c768253 100644 Binary files a/webapp/e2e/screens/home-select-failed-order-desktop.png and b/webapp/e2e/screens/home-select-failed-order-desktop.png differ diff --git a/webapp/e2e/screens/home-select-failed-order-phone.png b/webapp/e2e/screens/home-select-failed-order-phone.png index b88f570..66dc27a 100644 Binary files a/webapp/e2e/screens/home-select-failed-order-phone.png and b/webapp/e2e/screens/home-select-failed-order-phone.png differ diff --git a/webapp/e2e/screens/home-select-selected-elsewhere-desktop.png b/webapp/e2e/screens/home-select-selected-elsewhere-desktop.png index 622c58b..81cfd71 100644 Binary files a/webapp/e2e/screens/home-select-selected-elsewhere-desktop.png and b/webapp/e2e/screens/home-select-selected-elsewhere-desktop.png differ diff --git a/webapp/e2e/screens/home-select-selected-elsewhere-phone.png b/webapp/e2e/screens/home-select-selected-elsewhere-phone.png index 1f1df79..289ed96 100644 Binary files a/webapp/e2e/screens/home-select-selected-elsewhere-phone.png and b/webapp/e2e/screens/home-select-selected-elsewhere-phone.png differ diff --git a/webapp/e2e/screens/home-select-terms-unreadable-desktop.png b/webapp/e2e/screens/home-select-terms-unreadable-desktop.png index 6dc478c..571a38c 100644 Binary files a/webapp/e2e/screens/home-select-terms-unreadable-desktop.png and b/webapp/e2e/screens/home-select-terms-unreadable-desktop.png differ diff --git a/webapp/e2e/screens/home-select-terms-unreadable-phone.png b/webapp/e2e/screens/home-select-terms-unreadable-phone.png index b96bb93..c3a0797 100644 Binary files a/webapp/e2e/screens/home-select-terms-unreadable-phone.png and b/webapp/e2e/screens/home-select-terms-unreadable-phone.png differ diff --git a/webapp/e2e/screens/home-select-unpaid-desktop.png b/webapp/e2e/screens/home-select-unpaid-desktop.png index f2caf9f..e979dbe 100644 Binary files a/webapp/e2e/screens/home-select-unpaid-desktop.png and b/webapp/e2e/screens/home-select-unpaid-desktop.png differ diff --git a/webapp/e2e/screens/home-select-unpaid-phone.png b/webapp/e2e/screens/home-select-unpaid-phone.png index a6c6429..ec0ea33 100644 Binary files a/webapp/e2e/screens/home-select-unpaid-phone.png and b/webapp/e2e/screens/home-select-unpaid-phone.png differ diff --git a/webapp/e2e/screens/home-unchecked-desktop.png b/webapp/e2e/screens/home-unchecked-desktop.png index 924e9dd..f2a6405 100644 Binary files a/webapp/e2e/screens/home-unchecked-desktop.png and b/webapp/e2e/screens/home-unchecked-desktop.png differ diff --git a/webapp/e2e/screens/home-unchecked-phone.png b/webapp/e2e/screens/home-unchecked-phone.png index 6d7e3d0..c040955 100644 Binary files a/webapp/e2e/screens/home-unchecked-phone.png and b/webapp/e2e/screens/home-unchecked-phone.png differ diff --git a/webapp/e2e/screens/home-yours-expired-again-taken-desktop.png b/webapp/e2e/screens/home-yours-expired-again-taken-desktop.png index abd98ae..13006d8 100644 Binary files a/webapp/e2e/screens/home-yours-expired-again-taken-desktop.png and b/webapp/e2e/screens/home-yours-expired-again-taken-desktop.png differ diff --git a/webapp/e2e/screens/home-yours-expired-again-taken-phone.png b/webapp/e2e/screens/home-yours-expired-again-taken-phone.png index 36bc3cd..91a725b 100644 Binary files a/webapp/e2e/screens/home-yours-expired-again-taken-phone.png and b/webapp/e2e/screens/home-yours-expired-again-taken-phone.png differ diff --git a/webapp/e2e/screens/home-yours-expired-desktop.png b/webapp/e2e/screens/home-yours-expired-desktop.png index 388d90b..d7c2868 100644 Binary files a/webapp/e2e/screens/home-yours-expired-desktop.png and b/webapp/e2e/screens/home-yours-expired-desktop.png differ diff --git a/webapp/e2e/screens/home-yours-expired-phone.png b/webapp/e2e/screens/home-yours-expired-phone.png index 85e9cc6..4453366 100644 Binary files a/webapp/e2e/screens/home-yours-expired-phone.png and b/webapp/e2e/screens/home-yours-expired-phone.png differ diff --git a/webapp/e2e/screens/names-check-add-held-desktop.png b/webapp/e2e/screens/names-check-add-held-desktop.png index 99bc43d..14a81d4 100644 Binary files a/webapp/e2e/screens/names-check-add-held-desktop.png and b/webapp/e2e/screens/names-check-add-held-desktop.png differ diff --git a/webapp/e2e/screens/names-check-add-held-phone.png b/webapp/e2e/screens/names-check-add-held-phone.png index e936ba7..a48a2d2 100644 Binary files a/webapp/e2e/screens/names-check-add-held-phone.png and b/webapp/e2e/screens/names-check-add-held-phone.png differ diff --git a/webapp/e2e/screens/names-check-add-none-desktop.png b/webapp/e2e/screens/names-check-add-none-desktop.png index 1beaf0f..2e8bd08 100644 Binary files a/webapp/e2e/screens/names-check-add-none-desktop.png and b/webapp/e2e/screens/names-check-add-none-desktop.png differ diff --git a/webapp/e2e/screens/names-check-add-none-phone.png b/webapp/e2e/screens/names-check-add-none-phone.png index c532215..6fe3a75 100644 Binary files a/webapp/e2e/screens/names-check-add-none-phone.png and b/webapp/e2e/screens/names-check-add-none-phone.png differ diff --git a/webapp/e2e/screens/names-check-add-other-desktop.png b/webapp/e2e/screens/names-check-add-other-desktop.png index 4f3e4c6..2a14530 100644 Binary files a/webapp/e2e/screens/names-check-add-other-desktop.png and b/webapp/e2e/screens/names-check-add-other-desktop.png differ diff --git a/webapp/e2e/screens/names-check-add-other-phone.png b/webapp/e2e/screens/names-check-add-other-phone.png index 4e6564f..4f84e13 100644 Binary files a/webapp/e2e/screens/names-check-add-other-phone.png and b/webapp/e2e/screens/names-check-add-other-phone.png differ diff --git a/webapp/e2e/screens/names-check-add-unasked-desktop.png b/webapp/e2e/screens/names-check-add-unasked-desktop.png index 5b93b96..7ba4cac 100644 Binary files a/webapp/e2e/screens/names-check-add-unasked-desktop.png and b/webapp/e2e/screens/names-check-add-unasked-desktop.png differ diff --git a/webapp/e2e/screens/names-check-add-unasked-phone.png b/webapp/e2e/screens/names-check-add-unasked-phone.png index 7643d61..b37e817 100644 Binary files a/webapp/e2e/screens/names-check-add-unasked-phone.png and b/webapp/e2e/screens/names-check-add-unasked-phone.png differ diff --git a/webapp/e2e/screens/names-check-adding-desktop.png b/webapp/e2e/screens/names-check-adding-desktop.png index a0f8caa..a9d3ee6 100644 Binary files a/webapp/e2e/screens/names-check-adding-desktop.png and b/webapp/e2e/screens/names-check-adding-desktop.png differ diff --git a/webapp/e2e/screens/names-check-adding-phone.png b/webapp/e2e/screens/names-check-adding-phone.png index 3ff5798..ff8cead 100644 Binary files a/webapp/e2e/screens/names-check-adding-phone.png and b/webapp/e2e/screens/names-check-adding-phone.png differ diff --git a/webapp/e2e/screens/names-check-camera-refused-phone.png b/webapp/e2e/screens/names-check-camera-refused-phone.png index df45c85..0bdaa3d 100644 Binary files a/webapp/e2e/screens/names-check-camera-refused-phone.png and b/webapp/e2e/screens/names-check-camera-refused-phone.png differ diff --git a/webapp/e2e/screens/names-check-from-order-desktop.png b/webapp/e2e/screens/names-check-from-order-desktop.png index 5feab01..08d7de4 100644 Binary files a/webapp/e2e/screens/names-check-from-order-desktop.png and b/webapp/e2e/screens/names-check-from-order-desktop.png differ diff --git a/webapp/e2e/screens/names-check-from-order-phone.png b/webapp/e2e/screens/names-check-from-order-phone.png index 3134127..79a80ab 100644 Binary files a/webapp/e2e/screens/names-check-from-order-phone.png and b/webapp/e2e/screens/names-check-from-order-phone.png differ diff --git a/webapp/e2e/screens/names-check-mistyped-desktop.png b/webapp/e2e/screens/names-check-mistyped-desktop.png index 9951248..90f62e7 100644 Binary files a/webapp/e2e/screens/names-check-mistyped-desktop.png and b/webapp/e2e/screens/names-check-mistyped-desktop.png differ diff --git a/webapp/e2e/screens/names-check-mistyped-phone.png b/webapp/e2e/screens/names-check-mistyped-phone.png index 292373c..df45895 100644 Binary files a/webapp/e2e/screens/names-check-mistyped-phone.png and b/webapp/e2e/screens/names-check-mistyped-phone.png differ diff --git a/webapp/e2e/screens/names-check-owner-found-desktop.png b/webapp/e2e/screens/names-check-owner-found-desktop.png index 31a6465..2282e1a 100644 Binary files a/webapp/e2e/screens/names-check-owner-found-desktop.png and b/webapp/e2e/screens/names-check-owner-found-desktop.png differ diff --git a/webapp/e2e/screens/names-check-owner-found-phone.png b/webapp/e2e/screens/names-check-owner-found-phone.png index 7c068bc..70bc4c6 100644 Binary files a/webapp/e2e/screens/names-check-owner-found-phone.png and b/webapp/e2e/screens/names-check-owner-found-phone.png differ diff --git a/webapp/e2e/screens/names-check-owner-none-desktop.png b/webapp/e2e/screens/names-check-owner-none-desktop.png index 9449b49..6ce96f7 100644 Binary files a/webapp/e2e/screens/names-check-owner-none-desktop.png and b/webapp/e2e/screens/names-check-owner-none-desktop.png differ diff --git a/webapp/e2e/screens/names-check-owner-none-phone.png b/webapp/e2e/screens/names-check-owner-none-phone.png index e2e5359..ec623e9 100644 Binary files a/webapp/e2e/screens/names-check-owner-none-phone.png and b/webapp/e2e/screens/names-check-owner-none-phone.png differ diff --git a/webapp/e2e/screens/names-check-owner-other-desktop.png b/webapp/e2e/screens/names-check-owner-other-desktop.png index 5995f6b..840357a 100644 Binary files a/webapp/e2e/screens/names-check-owner-other-desktop.png and b/webapp/e2e/screens/names-check-owner-other-desktop.png differ diff --git a/webapp/e2e/screens/names-check-owner-other-phone.png b/webapp/e2e/screens/names-check-owner-other-phone.png index 294ff75..f087488 100644 Binary files a/webapp/e2e/screens/names-check-owner-other-phone.png and b/webapp/e2e/screens/names-check-owner-other-phone.png differ diff --git a/webapp/e2e/screens/names-check-owner-rate-limited-desktop.png b/webapp/e2e/screens/names-check-owner-rate-limited-desktop.png index 159b308..e3f0e41 100644 Binary files a/webapp/e2e/screens/names-check-owner-rate-limited-desktop.png and b/webapp/e2e/screens/names-check-owner-rate-limited-desktop.png differ diff --git a/webapp/e2e/screens/names-check-owner-rate-limited-phone.png b/webapp/e2e/screens/names-check-owner-rate-limited-phone.png index cd9eeae..d57967f 100644 Binary files a/webapp/e2e/screens/names-check-owner-rate-limited-phone.png and b/webapp/e2e/screens/names-check-owner-rate-limited-phone.png differ diff --git a/webapp/e2e/screens/names-check-owner-unchecked-desktop.png b/webapp/e2e/screens/names-check-owner-unchecked-desktop.png index 77915ec..1878810 100644 Binary files a/webapp/e2e/screens/names-check-owner-unchecked-desktop.png and b/webapp/e2e/screens/names-check-owner-unchecked-desktop.png differ diff --git a/webapp/e2e/screens/names-check-owner-unchecked-phone.png b/webapp/e2e/screens/names-check-owner-unchecked-phone.png index 424e618..0a508a7 100644 Binary files a/webapp/e2e/screens/names-check-owner-unchecked-phone.png and b/webapp/e2e/screens/names-check-owner-unchecked-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-expired-desktop.png b/webapp/e2e/screens/names-check-prepaid-expired-desktop.png index a0f24b6..0182f58 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-expired-desktop.png and b/webapp/e2e/screens/names-check-prepaid-expired-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-expired-phone.png b/webapp/e2e/screens/names-check-prepaid-expired-phone.png index bc5729e..0b5f812 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-expired-phone.png and b/webapp/e2e/screens/names-check-prepaid-expired-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-rate-limited-desktop.png b/webapp/e2e/screens/names-check-prepaid-rate-limited-desktop.png index ff2eca4..f632e9a 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-rate-limited-desktop.png and b/webapp/e2e/screens/names-check-prepaid-rate-limited-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-rate-limited-phone.png b/webapp/e2e/screens/names-check-prepaid-rate-limited-phone.png index e73e1b7..e4d5eb8 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-rate-limited-phone.png and b/webapp/e2e/screens/names-check-prepaid-rate-limited-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-reserved-desktop.png b/webapp/e2e/screens/names-check-prepaid-reserved-desktop.png index 4a6dc96..4316d35 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-reserved-desktop.png and b/webapp/e2e/screens/names-check-prepaid-reserved-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-reserved-phone.png b/webapp/e2e/screens/names-check-prepaid-reserved-phone.png index 9d14e2d..798e7ed 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-reserved-phone.png and b/webapp/e2e/screens/names-check-prepaid-reserved-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-revoked-desktop.png b/webapp/e2e/screens/names-check-prepaid-revoked-desktop.png index a7477ba..4b25023 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-revoked-desktop.png and b/webapp/e2e/screens/names-check-prepaid-revoked-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-revoked-phone.png b/webapp/e2e/screens/names-check-prepaid-revoked-phone.png index 1029688..b24814a 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-revoked-phone.png and b/webapp/e2e/screens/names-check-prepaid-revoked-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unchecked-desktop.png b/webapp/e2e/screens/names-check-prepaid-unchecked-desktop.png index b08abb5..e0c65a4 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unchecked-desktop.png and b/webapp/e2e/screens/names-check-prepaid-unchecked-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unchecked-phone.png b/webapp/e2e/screens/names-check-prepaid-unchecked-phone.png index 12e55db..2dceb19 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unchecked-phone.png and b/webapp/e2e/screens/names-check-prepaid-unchecked-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unknown-desktop.png b/webapp/e2e/screens/names-check-prepaid-unknown-desktop.png index d5c745c..82477e5 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unknown-desktop.png and b/webapp/e2e/screens/names-check-prepaid-unknown-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unknown-phone.png b/webapp/e2e/screens/names-check-prepaid-unknown-phone.png index cde024f..ca6e0f1 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unknown-phone.png and b/webapp/e2e/screens/names-check-prepaid-unknown-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unpaid-desktop.png b/webapp/e2e/screens/names-check-prepaid-unpaid-desktop.png index 719c44c..bdc0ebf 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unpaid-desktop.png and b/webapp/e2e/screens/names-check-prepaid-unpaid-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unpaid-phone.png b/webapp/e2e/screens/names-check-prepaid-unpaid-phone.png index 1eccad7..7380f56 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unpaid-phone.png and b/webapp/e2e/screens/names-check-prepaid-unpaid-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unused-desktop.png b/webapp/e2e/screens/names-check-prepaid-unused-desktop.png index 4da9db0..802aa75 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unused-desktop.png and b/webapp/e2e/screens/names-check-prepaid-unused-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-unused-phone.png b/webapp/e2e/screens/names-check-prepaid-unused-phone.png index af4d92c..7de7f28 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-unused-phone.png and b/webapp/e2e/screens/names-check-prepaid-unused-phone.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-used-desktop.png b/webapp/e2e/screens/names-check-prepaid-used-desktop.png index 45e9888..9dff4f6 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-used-desktop.png and b/webapp/e2e/screens/names-check-prepaid-used-desktop.png differ diff --git a/webapp/e2e/screens/names-check-prepaid-used-phone.png b/webapp/e2e/screens/names-check-prepaid-used-phone.png index a196714..984eb13 100644 Binary files a/webapp/e2e/screens/names-check-prepaid-used-phone.png and b/webapp/e2e/screens/names-check-prepaid-used-phone.png differ diff --git a/webapp/e2e/screens/names-check-scanning-phone.png b/webapp/e2e/screens/names-check-scanning-phone.png index f8ecce4..b34ee9f 100644 Binary files a/webapp/e2e/screens/names-check-scanning-phone.png and b/webapp/e2e/screens/names-check-scanning-phone.png differ diff --git a/webapp/e2e/screens/names-check-unfinished-desktop.png b/webapp/e2e/screens/names-check-unfinished-desktop.png index 8e53849..6333d03 100644 Binary files a/webapp/e2e/screens/names-check-unfinished-desktop.png and b/webapp/e2e/screens/names-check-unfinished-desktop.png differ diff --git a/webapp/e2e/screens/names-check-unfinished-phone.png b/webapp/e2e/screens/names-check-unfinished-phone.png index 17f08c9..6492f7a 100644 Binary files a/webapp/e2e/screens/names-check-unfinished-phone.png and b/webapp/e2e/screens/names-check-unfinished-phone.png differ diff --git a/webapp/e2e/screens/names-edit-checking-link-desktop.png b/webapp/e2e/screens/names-edit-checking-link-desktop.png index bd4defb..a5eaad7 100644 Binary files a/webapp/e2e/screens/names-edit-checking-link-desktop.png and b/webapp/e2e/screens/names-edit-checking-link-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-checking-link-phone.png b/webapp/e2e/screens/names-edit-checking-link-phone.png index c4476f0..2d5b051 100644 Binary files a/webapp/e2e/screens/names-edit-checking-link-phone.png and b/webapp/e2e/screens/names-edit-checking-link-phone.png differ diff --git a/webapp/e2e/screens/names-edit-config-unread-desktop.png b/webapp/e2e/screens/names-edit-config-unread-desktop.png index 9f4ece2..7e50a43 100644 Binary files a/webapp/e2e/screens/names-edit-config-unread-desktop.png and b/webapp/e2e/screens/names-edit-config-unread-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-config-unread-phone.png b/webapp/e2e/screens/names-edit-config-unread-phone.png index e6212ae..f5ad815 100644 Binary files a/webapp/e2e/screens/names-edit-config-unread-phone.png and b/webapp/e2e/screens/names-edit-config-unread-phone.png differ diff --git a/webapp/e2e/screens/names-edit-elsewhere-desktop.png b/webapp/e2e/screens/names-edit-elsewhere-desktop.png index a483bed..304e44c 100644 Binary files a/webapp/e2e/screens/names-edit-elsewhere-desktop.png and b/webapp/e2e/screens/names-edit-elsewhere-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-elsewhere-phone.png b/webapp/e2e/screens/names-edit-elsewhere-phone.png index 5a34830..ba434ce 100644 Binary files a/webapp/e2e/screens/names-edit-elsewhere-phone.png and b/webapp/e2e/screens/names-edit-elsewhere-phone.png differ diff --git a/webapp/e2e/screens/names-edit-ended-desktop.png b/webapp/e2e/screens/names-edit-ended-desktop.png index 8661c2f..0a0d831 100644 Binary files a/webapp/e2e/screens/names-edit-ended-desktop.png and b/webapp/e2e/screens/names-edit-ended-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-ended-phone.png b/webapp/e2e/screens/names-edit-ended-phone.png index 21010ca..f749f33 100644 Binary files a/webapp/e2e/screens/names-edit-ended-phone.png and b/webapp/e2e/screens/names-edit-ended-phone.png differ diff --git a/webapp/e2e/screens/names-edit-expired-from-desktop.png b/webapp/e2e/screens/names-edit-expired-from-desktop.png index 8929a6a..b005058 100644 Binary files a/webapp/e2e/screens/names-edit-expired-from-desktop.png and b/webapp/e2e/screens/names-edit-expired-from-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-expired-from-phone.png b/webapp/e2e/screens/names-edit-expired-from-phone.png index 69e922a..24113bc 100644 Binary files a/webapp/e2e/screens/names-edit-expired-from-phone.png and b/webapp/e2e/screens/names-edit-expired-from-phone.png differ diff --git a/webapp/e2e/screens/names-edit-expired-now-desktop.png b/webapp/e2e/screens/names-edit-expired-now-desktop.png index 1e37e0c..2a50b63 100644 Binary files a/webapp/e2e/screens/names-edit-expired-now-desktop.png and b/webapp/e2e/screens/names-edit-expired-now-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-expired-now-phone.png b/webapp/e2e/screens/names-edit-expired-now-phone.png index ed1553d..a86e028 100644 Binary files a/webapp/e2e/screens/names-edit-expired-now-phone.png and b/webapp/e2e/screens/names-edit-expired-now-phone.png differ diff --git a/webapp/e2e/screens/names-edit-expired-taken-desktop.png b/webapp/e2e/screens/names-edit-expired-taken-desktop.png index 3473192..4449b75 100644 Binary files a/webapp/e2e/screens/names-edit-expired-taken-desktop.png and b/webapp/e2e/screens/names-edit-expired-taken-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-expired-taken-phone.png b/webapp/e2e/screens/names-edit-expired-taken-phone.png index bf34240..9ba30af 100644 Binary files a/webapp/e2e/screens/names-edit-expired-taken-phone.png and b/webapp/e2e/screens/names-edit-expired-taken-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-camera-refused-phone.png b/webapp/e2e/screens/names-edit-field-camera-refused-phone.png index ed6d2c0..24dcbe1 100644 Binary files a/webapp/e2e/screens/names-edit-field-camera-refused-phone.png and b/webapp/e2e/screens/names-edit-field-camera-refused-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-kind-held-empty-desktop.png b/webapp/e2e/screens/names-edit-field-kind-held-empty-desktop.png index 29f95b9..80878ff 100644 Binary files a/webapp/e2e/screens/names-edit-field-kind-held-empty-desktop.png and b/webapp/e2e/screens/names-edit-field-kind-held-empty-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-kind-held-empty-phone.png b/webapp/e2e/screens/names-edit-field-kind-held-empty-phone.png index d7fc856..27d0321 100644 Binary files a/webapp/e2e/screens/names-edit-field-kind-held-empty-phone.png and b/webapp/e2e/screens/names-edit-field-kind-held-empty-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-kind-held-filled-desktop.png b/webapp/e2e/screens/names-edit-field-kind-held-filled-desktop.png index d46298d..a606dbd 100644 Binary files a/webapp/e2e/screens/names-edit-field-kind-held-filled-desktop.png and b/webapp/e2e/screens/names-edit-field-kind-held-filled-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-kind-held-filled-phone.png b/webapp/e2e/screens/names-edit-field-kind-held-filled-phone.png index 2ed153d..6c50aa5 100644 Binary files a/webapp/e2e/screens/names-edit-field-kind-held-filled-phone.png and b/webapp/e2e/screens/names-edit-field-kind-held-filled-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-noncanonical-kept-desktop.png b/webapp/e2e/screens/names-edit-field-noncanonical-kept-desktop.png index 72924d0..a0add66 100644 Binary files a/webapp/e2e/screens/names-edit-field-noncanonical-kept-desktop.png and b/webapp/e2e/screens/names-edit-field-noncanonical-kept-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-noncanonical-kept-phone.png b/webapp/e2e/screens/names-edit-field-noncanonical-kept-phone.png index d845cbb..f0fc70c 100644 Binary files a/webapp/e2e/screens/names-edit-field-noncanonical-kept-phone.png and b/webapp/e2e/screens/names-edit-field-noncanonical-kept-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-noncanonical-typed-desktop.png b/webapp/e2e/screens/names-edit-field-noncanonical-typed-desktop.png index 139cfb3..c6d3c38 100644 Binary files a/webapp/e2e/screens/names-edit-field-noncanonical-typed-desktop.png and b/webapp/e2e/screens/names-edit-field-noncanonical-typed-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-noncanonical-typed-phone.png b/webapp/e2e/screens/names-edit-field-noncanonical-typed-phone.png index d6289ee..acd73e0 100644 Binary files a/webapp/e2e/screens/names-edit-field-noncanonical-typed-phone.png and b/webapp/e2e/screens/names-edit-field-noncanonical-typed-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-not-a-link-desktop.png b/webapp/e2e/screens/names-edit-field-not-a-link-desktop.png index 3be8ca4..a46972c 100644 Binary files a/webapp/e2e/screens/names-edit-field-not-a-link-desktop.png and b/webapp/e2e/screens/names-edit-field-not-a-link-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-not-a-link-phone.png b/webapp/e2e/screens/names-edit-field-not-a-link-phone.png index 0c68836..d3c041e 100644 Binary files a/webapp/e2e/screens/names-edit-field-not-a-link-phone.png and b/webapp/e2e/screens/names-edit-field-not-a-link-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-not-kind-desktop.png b/webapp/e2e/screens/names-edit-field-not-kind-desktop.png index f692aaa..5c29c0f 100644 Binary files a/webapp/e2e/screens/names-edit-field-not-kind-desktop.png and b/webapp/e2e/screens/names-edit-field-not-kind-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-not-kind-phone.png b/webapp/e2e/screens/names-edit-field-not-kind-phone.png index 9660705..a6dc4dc 100644 Binary files a/webapp/e2e/screens/names-edit-field-not-kind-phone.png and b/webapp/e2e/screens/names-edit-field-not-kind-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-other-kind-empty-desktop.png b/webapp/e2e/screens/names-edit-field-other-kind-empty-desktop.png index 71c8c57..f8d7f8c 100644 Binary files a/webapp/e2e/screens/names-edit-field-other-kind-empty-desktop.png and b/webapp/e2e/screens/names-edit-field-other-kind-empty-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-other-kind-empty-phone.png b/webapp/e2e/screens/names-edit-field-other-kind-empty-phone.png index 407902b..e840de6 100644 Binary files a/webapp/e2e/screens/names-edit-field-other-kind-empty-phone.png and b/webapp/e2e/screens/names-edit-field-other-kind-empty-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-other-kind-filled-desktop.png b/webapp/e2e/screens/names-edit-field-other-kind-filled-desktop.png index 2f7b199..6e37523 100644 Binary files a/webapp/e2e/screens/names-edit-field-other-kind-filled-desktop.png and b/webapp/e2e/screens/names-edit-field-other-kind-filled-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-other-kind-filled-phone.png b/webapp/e2e/screens/names-edit-field-other-kind-filled-phone.png index 48f9fb6..bd3cd87 100644 Binary files a/webapp/e2e/screens/names-edit-field-other-kind-filled-phone.png and b/webapp/e2e/screens/names-edit-field-other-kind-filled-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-refused-desktop.png b/webapp/e2e/screens/names-edit-field-refused-desktop.png index 1ce7543..b69c651 100644 Binary files a/webapp/e2e/screens/names-edit-field-refused-desktop.png and b/webapp/e2e/screens/names-edit-field-refused-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-refused-phone.png b/webapp/e2e/screens/names-edit-field-refused-phone.png index 7c81313..17d93db 100644 Binary files a/webapp/e2e/screens/names-edit-field-refused-phone.png and b/webapp/e2e/screens/names-edit-field-refused-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-scanning-phone.png b/webapp/e2e/screens/names-edit-field-scanning-phone.png index 519f74b..fd36a2e 100644 Binary files a/webapp/e2e/screens/names-edit-field-scanning-phone.png and b/webapp/e2e/screens/names-edit-field-scanning-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-several-desktop.png b/webapp/e2e/screens/names-edit-field-several-desktop.png index 029be0b..853052f 100644 Binary files a/webapp/e2e/screens/names-edit-field-several-desktop.png and b/webapp/e2e/screens/names-edit-field-several-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-several-phone.png b/webapp/e2e/screens/names-edit-field-several-phone.png index 27d0ead..de5908e 100644 Binary files a/webapp/e2e/screens/names-edit-field-several-phone.png and b/webapp/e2e/screens/names-edit-field-several-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-simplex-no-host-desktop.png b/webapp/e2e/screens/names-edit-field-simplex-no-host-desktop.png index c468ed7..16957a6 100644 Binary files a/webapp/e2e/screens/names-edit-field-simplex-no-host-desktop.png and b/webapp/e2e/screens/names-edit-field-simplex-no-host-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-simplex-no-host-phone.png b/webapp/e2e/screens/names-edit-field-simplex-no-host-phone.png index d323186..140e76b 100644 Binary files a/webapp/e2e/screens/names-edit-field-simplex-no-host-phone.png and b/webapp/e2e/screens/names-edit-field-simplex-no-host-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-too-long-desktop.png b/webapp/e2e/screens/names-edit-field-too-long-desktop.png index 35ccbd0..bc77b40 100644 Binary files a/webapp/e2e/screens/names-edit-field-too-long-desktop.png and b/webapp/e2e/screens/names-edit-field-too-long-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-too-long-phone.png b/webapp/e2e/screens/names-edit-field-too-long-phone.png index 3d03d86..35e8dd0 100644 Binary files a/webapp/e2e/screens/names-edit-field-too-long-phone.png and b/webapp/e2e/screens/names-edit-field-too-long-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-unanswered-desktop.png b/webapp/e2e/screens/names-edit-field-unanswered-desktop.png index 77aa12c..06bd5d8 100644 Binary files a/webapp/e2e/screens/names-edit-field-unanswered-desktop.png and b/webapp/e2e/screens/names-edit-field-unanswered-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-unanswered-phone.png b/webapp/e2e/screens/names-edit-field-unanswered-phone.png index 2ff76ab..67bbc27 100644 Binary files a/webapp/e2e/screens/names-edit-field-unanswered-phone.png and b/webapp/e2e/screens/names-edit-field-unanswered-phone.png differ diff --git a/webapp/e2e/screens/names-edit-field-uppercase-type-desktop.png b/webapp/e2e/screens/names-edit-field-uppercase-type-desktop.png index 0cb2ec8..296e5e3 100644 Binary files a/webapp/e2e/screens/names-edit-field-uppercase-type-desktop.png and b/webapp/e2e/screens/names-edit-field-uppercase-type-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-field-uppercase-type-phone.png b/webapp/e2e/screens/names-edit-field-uppercase-type-phone.png index 60acc1b..fa90acd 100644 Binary files a/webapp/e2e/screens/names-edit-field-uppercase-type-phone.png and b/webapp/e2e/screens/names-edit-field-uppercase-type-phone.png differ diff --git a/webapp/e2e/screens/names-edit-form-both-desktop.png b/webapp/e2e/screens/names-edit-form-both-desktop.png index 584c2dc..32a9279 100644 Binary files a/webapp/e2e/screens/names-edit-form-both-desktop.png and b/webapp/e2e/screens/names-edit-form-both-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-form-both-phone.png b/webapp/e2e/screens/names-edit-form-both-phone.png index d389150..1a42117 100644 Binary files a/webapp/e2e/screens/names-edit-form-both-phone.png and b/webapp/e2e/screens/names-edit-form-both-phone.png differ diff --git a/webapp/e2e/screens/names-edit-form-empty-desktop.png b/webapp/e2e/screens/names-edit-form-empty-desktop.png index fb5e9b3..f8a0d63 100644 Binary files a/webapp/e2e/screens/names-edit-form-empty-desktop.png and b/webapp/e2e/screens/names-edit-form-empty-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-form-empty-phone.png b/webapp/e2e/screens/names-edit-form-empty-phone.png index 2c2107e..1fe534e 100644 Binary files a/webapp/e2e/screens/names-edit-form-empty-phone.png and b/webapp/e2e/screens/names-edit-form-empty-phone.png differ diff --git a/webapp/e2e/screens/names-edit-form-last-edit-desktop.png b/webapp/e2e/screens/names-edit-form-last-edit-desktop.png index a192226..cb61c43 100644 Binary files a/webapp/e2e/screens/names-edit-form-last-edit-desktop.png and b/webapp/e2e/screens/names-edit-form-last-edit-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-form-last-edit-phone.png b/webapp/e2e/screens/names-edit-form-last-edit-phone.png index 159f8e8..f052ce1 100644 Binary files a/webapp/e2e/screens/names-edit-form-last-edit-phone.png and b/webapp/e2e/screens/names-edit-form-last-edit-phone.png differ diff --git a/webapp/e2e/screens/names-edit-form-none-left-desktop.png b/webapp/e2e/screens/names-edit-form-none-left-desktop.png index 232fe88..387495d 100644 Binary files a/webapp/e2e/screens/names-edit-form-none-left-desktop.png and b/webapp/e2e/screens/names-edit-form-none-left-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-form-none-left-phone.png b/webapp/e2e/screens/names-edit-form-none-left-phone.png index 2c06fbc..ac8c073 100644 Binary files a/webapp/e2e/screens/names-edit-form-none-left-phone.png and b/webapp/e2e/screens/names-edit-form-none-left-phone.png differ diff --git a/webapp/e2e/screens/names-edit-form-one-desktop.png b/webapp/e2e/screens/names-edit-form-one-desktop.png index b1c8540..fe29afa 100644 Binary files a/webapp/e2e/screens/names-edit-form-one-desktop.png and b/webapp/e2e/screens/names-edit-form-one-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-form-one-phone.png b/webapp/e2e/screens/names-edit-form-one-phone.png index c37b167..19d468c 100644 Binary files a/webapp/e2e/screens/names-edit-form-one-phone.png and b/webapp/e2e/screens/names-edit-form-one-phone.png differ diff --git a/webapp/e2e/screens/names-edit-held-at-open-desktop.png b/webapp/e2e/screens/names-edit-held-at-open-desktop.png index f416f05..202a305 100644 Binary files a/webapp/e2e/screens/names-edit-held-at-open-desktop.png and b/webapp/e2e/screens/names-edit-held-at-open-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-held-at-open-phone.png b/webapp/e2e/screens/names-edit-held-at-open-phone.png index e628a30..3619a0b 100644 Binary files a/webapp/e2e/screens/names-edit-held-at-open-phone.png and b/webapp/e2e/screens/names-edit-held-at-open-phone.png differ diff --git a/webapp/e2e/screens/names-edit-held-desktop.png b/webapp/e2e/screens/names-edit-held-desktop.png index 4ee6b49..4ee56e3 100644 Binary files a/webapp/e2e/screens/names-edit-held-desktop.png and b/webapp/e2e/screens/names-edit-held-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-held-phone.png b/webapp/e2e/screens/names-edit-held-phone.png index fbee5e5..b9c6a7d 100644 Binary files a/webapp/e2e/screens/names-edit-held-phone.png and b/webapp/e2e/screens/names-edit-held-phone.png differ diff --git a/webapp/e2e/screens/names-edit-limited-desktop.png b/webapp/e2e/screens/names-edit-limited-desktop.png index fae563d..e94e953 100644 Binary files a/webapp/e2e/screens/names-edit-limited-desktop.png and b/webapp/e2e/screens/names-edit-limited-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-limited-phone.png b/webapp/e2e/screens/names-edit-limited-phone.png index a730ee8..b484d52 100644 Binary files a/webapp/e2e/screens/names-edit-limited-phone.png and b/webapp/e2e/screens/names-edit-limited-phone.png differ diff --git a/webapp/e2e/screens/names-edit-moved-desktop.png b/webapp/e2e/screens/names-edit-moved-desktop.png index 152fc8c..4e20615 100644 Binary files a/webapp/e2e/screens/names-edit-moved-desktop.png and b/webapp/e2e/screens/names-edit-moved-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-moved-phone.png b/webapp/e2e/screens/names-edit-moved-phone.png index da5f366..3bd8ac6 100644 Binary files a/webapp/e2e/screens/names-edit-moved-phone.png and b/webapp/e2e/screens/names-edit-moved-phone.png differ diff --git a/webapp/e2e/screens/names-edit-not-registered-desktop.png b/webapp/e2e/screens/names-edit-not-registered-desktop.png index df6d0ef..20b0e89 100644 Binary files a/webapp/e2e/screens/names-edit-not-registered-desktop.png and b/webapp/e2e/screens/names-edit-not-registered-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-not-registered-phone.png b/webapp/e2e/screens/names-edit-not-registered-phone.png index adaa25b..4190429 100644 Binary files a/webapp/e2e/screens/names-edit-not-registered-phone.png and b/webapp/e2e/screens/names-edit-not-registered-phone.png differ diff --git a/webapp/e2e/screens/names-edit-nothing-desktop.png b/webapp/e2e/screens/names-edit-nothing-desktop.png index fbc0ef8..77a37de 100644 Binary files a/webapp/e2e/screens/names-edit-nothing-desktop.png and b/webapp/e2e/screens/names-edit-nothing-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-nothing-phone.png b/webapp/e2e/screens/names-edit-nothing-phone.png index 7714e1c..fb94b52 100644 Binary files a/webapp/e2e/screens/names-edit-nothing-phone.png and b/webapp/e2e/screens/names-edit-nothing-phone.png differ diff --git a/webapp/e2e/screens/names-edit-other-owner-desktop.png b/webapp/e2e/screens/names-edit-other-owner-desktop.png index aca0ec0..19f7b4f 100644 Binary files a/webapp/e2e/screens/names-edit-other-owner-desktop.png and b/webapp/e2e/screens/names-edit-other-owner-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-other-owner-phone.png b/webapp/e2e/screens/names-edit-other-owner-phone.png index a5c58d6..8d7b4c1 100644 Binary files a/webapp/e2e/screens/names-edit-other-owner-phone.png and b/webapp/e2e/screens/names-edit-other-owner-phone.png differ diff --git a/webapp/e2e/screens/names-edit-refused-desktop.png b/webapp/e2e/screens/names-edit-refused-desktop.png index 8278d77..08e9fb0 100644 Binary files a/webapp/e2e/screens/names-edit-refused-desktop.png and b/webapp/e2e/screens/names-edit-refused-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-refused-phone.png b/webapp/e2e/screens/names-edit-refused-phone.png index 0a519cf..e7d0022 100644 Binary files a/webapp/e2e/screens/names-edit-refused-phone.png and b/webapp/e2e/screens/names-edit-refused-phone.png differ diff --git a/webapp/e2e/screens/names-edit-saved-desktop.png b/webapp/e2e/screens/names-edit-saved-desktop.png index 0855b67..8db716f 100644 Binary files a/webapp/e2e/screens/names-edit-saved-desktop.png and b/webapp/e2e/screens/names-edit-saved-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-saved-phone.png b/webapp/e2e/screens/names-edit-saved-phone.png index 513951a..ab38df0 100644 Binary files a/webapp/e2e/screens/names-edit-saved-phone.png and b/webapp/e2e/screens/names-edit-saved-phone.png differ diff --git a/webapp/e2e/screens/names-edit-sending-desktop.png b/webapp/e2e/screens/names-edit-sending-desktop.png index d25206b..89e0ebf 100644 Binary files a/webapp/e2e/screens/names-edit-sending-desktop.png and b/webapp/e2e/screens/names-edit-sending-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-sending-phone.png b/webapp/e2e/screens/names-edit-sending-phone.png index c20bb0b..af8180d 100644 Binary files a/webapp/e2e/screens/names-edit-sending-phone.png and b/webapp/e2e/screens/names-edit-sending-phone.png differ diff --git a/webapp/e2e/screens/names-edit-unanswered-desktop.png b/webapp/e2e/screens/names-edit-unanswered-desktop.png index 29e8edd..b6f03b6 100644 Binary files a/webapp/e2e/screens/names-edit-unanswered-desktop.png and b/webapp/e2e/screens/names-edit-unanswered-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-unanswered-phone.png b/webapp/e2e/screens/names-edit-unanswered-phone.png index 02bea49..8adaa47 100644 Binary files a/webapp/e2e/screens/names-edit-unanswered-phone.png and b/webapp/e2e/screens/names-edit-unanswered-phone.png differ diff --git a/webapp/e2e/screens/names-edit-unreadable-desktop.png b/webapp/e2e/screens/names-edit-unreadable-desktop.png index d0c376b..70c39a0 100644 Binary files a/webapp/e2e/screens/names-edit-unreadable-desktop.png and b/webapp/e2e/screens/names-edit-unreadable-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-unreadable-phone.png b/webapp/e2e/screens/names-edit-unreadable-phone.png index 09037c7..7ca9577 100644 Binary files a/webapp/e2e/screens/names-edit-unreadable-phone.png and b/webapp/e2e/screens/names-edit-unreadable-phone.png differ diff --git a/webapp/e2e/screens/names-edit-unreadable-reading-desktop.png b/webapp/e2e/screens/names-edit-unreadable-reading-desktop.png index 52aa68d..7af5617 100644 Binary files a/webapp/e2e/screens/names-edit-unreadable-reading-desktop.png and b/webapp/e2e/screens/names-edit-unreadable-reading-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-unreadable-reading-phone.png b/webapp/e2e/screens/names-edit-unreadable-reading-phone.png index a281080..11fb8d5 100644 Binary files a/webapp/e2e/screens/names-edit-unreadable-reading-phone.png and b/webapp/e2e/screens/names-edit-unreadable-reading-phone.png differ diff --git a/webapp/e2e/screens/names-edit-unregistered-desktop.png b/webapp/e2e/screens/names-edit-unregistered-desktop.png index 5f119fa..752366a 100644 Binary files a/webapp/e2e/screens/names-edit-unregistered-desktop.png and b/webapp/e2e/screens/names-edit-unregistered-desktop.png differ diff --git a/webapp/e2e/screens/names-edit-unregistered-phone.png b/webapp/e2e/screens/names-edit-unregistered-phone.png index 2f131bf..4cccd31 100644 Binary files a/webapp/e2e/screens/names-edit-unregistered-phone.png and b/webapp/e2e/screens/names-edit-unregistered-phone.png differ diff --git a/webapp/e2e/screens/names-pending-config-unread-desktop.png b/webapp/e2e/screens/names-pending-config-unread-desktop.png index 46064fd..85275eb 100644 Binary files a/webapp/e2e/screens/names-pending-config-unread-desktop.png and b/webapp/e2e/screens/names-pending-config-unread-desktop.png differ diff --git a/webapp/e2e/screens/names-pending-config-unread-phone.png b/webapp/e2e/screens/names-pending-config-unread-phone.png index 9756dc1..e08087d 100644 Binary files a/webapp/e2e/screens/names-pending-config-unread-phone.png and b/webapp/e2e/screens/names-pending-config-unread-phone.png differ diff --git a/webapp/e2e/screens/names-popup-refund-desktop.png b/webapp/e2e/screens/names-popup-refund-desktop.png index 48ca0fa..b22f019 100644 Binary files a/webapp/e2e/screens/names-popup-refund-desktop.png and b/webapp/e2e/screens/names-popup-refund-desktop.png differ diff --git a/webapp/e2e/screens/names-popup-refund-phone.png b/webapp/e2e/screens/names-popup-refund-phone.png index adcce5b..c53076e 100644 Binary files a/webapp/e2e/screens/names-popup-refund-phone.png and b/webapp/e2e/screens/names-popup-refund-phone.png differ diff --git a/webapp/e2e/screens/names-row-ended-desktop.png b/webapp/e2e/screens/names-row-ended-desktop.png index 5fbe003..d44d8b0 100644 Binary files a/webapp/e2e/screens/names-row-ended-desktop.png and b/webapp/e2e/screens/names-row-ended-desktop.png differ diff --git a/webapp/e2e/screens/names-row-ended-phone.png b/webapp/e2e/screens/names-row-ended-phone.png index bb1d99a..8712619 100644 Binary files a/webapp/e2e/screens/names-row-ended-phone.png and b/webapp/e2e/screens/names-row-ended-phone.png differ diff --git a/webapp/e2e/screens/names-row-lapsed-unsigned-desktop.png b/webapp/e2e/screens/names-row-lapsed-unsigned-desktop.png index 91618b0..c183e02 100644 Binary files a/webapp/e2e/screens/names-row-lapsed-unsigned-desktop.png and b/webapp/e2e/screens/names-row-lapsed-unsigned-desktop.png differ diff --git a/webapp/e2e/screens/names-row-lapsed-unsigned-phone.png b/webapp/e2e/screens/names-row-lapsed-unsigned-phone.png index a0d8376..c6bbc88 100644 Binary files a/webapp/e2e/screens/names-row-lapsed-unsigned-phone.png and b/webapp/e2e/screens/names-row-lapsed-unsigned-phone.png differ diff --git a/webapp/e2e/screens/names-rows-invoices-desktop.png b/webapp/e2e/screens/names-rows-invoices-desktop.png index bb4d5d5..7603a9f 100644 Binary files a/webapp/e2e/screens/names-rows-invoices-desktop.png and b/webapp/e2e/screens/names-rows-invoices-desktop.png differ diff --git a/webapp/e2e/screens/names-rows-invoices-phone.png b/webapp/e2e/screens/names-rows-invoices-phone.png index 0ff49e2..a012747 100644 Binary files a/webapp/e2e/screens/names-rows-invoices-phone.png and b/webapp/e2e/screens/names-rows-invoices-phone.png differ diff --git a/webapp/e2e/screens/names-rows-progress-desktop.png b/webapp/e2e/screens/names-rows-progress-desktop.png index c638954..f839295 100644 Binary files a/webapp/e2e/screens/names-rows-progress-desktop.png and b/webapp/e2e/screens/names-rows-progress-desktop.png differ diff --git a/webapp/e2e/screens/names-rows-progress-phone.png b/webapp/e2e/screens/names-rows-progress-phone.png index ca4e1c6..80097dd 100644 Binary files a/webapp/e2e/screens/names-rows-progress-phone.png and b/webapp/e2e/screens/names-rows-progress-phone.png differ diff --git a/webapp/e2e/screens/names-rows-registered-desktop.png b/webapp/e2e/screens/names-rows-registered-desktop.png index a449544..56f1820 100644 Binary files a/webapp/e2e/screens/names-rows-registered-desktop.png and b/webapp/e2e/screens/names-rows-registered-desktop.png differ diff --git a/webapp/e2e/screens/names-rows-registered-phone.png b/webapp/e2e/screens/names-rows-registered-phone.png index 0c0b659..d6f82d5 100644 Binary files a/webapp/e2e/screens/names-rows-registered-phone.png and b/webapp/e2e/screens/names-rows-registered-phone.png differ diff --git a/webapp/e2e/screens/order-card-form-failed-codes-only-desktop.png b/webapp/e2e/screens/order-card-form-failed-codes-only-desktop.png index b81772a..81c2772 100644 Binary files a/webapp/e2e/screens/order-card-form-failed-codes-only-desktop.png and b/webapp/e2e/screens/order-card-form-failed-codes-only-desktop.png differ diff --git a/webapp/e2e/screens/order-card-form-failed-codes-only-phone.png b/webapp/e2e/screens/order-card-form-failed-codes-only-phone.png index 92e8d19..4ccbdde 100644 Binary files a/webapp/e2e/screens/order-card-form-failed-codes-only-phone.png and b/webapp/e2e/screens/order-card-form-failed-codes-only-phone.png differ diff --git a/webapp/e2e/screens/order-card-form-failed-desktop.png b/webapp/e2e/screens/order-card-form-failed-desktop.png index c7637fb..02071b2 100644 Binary files a/webapp/e2e/screens/order-card-form-failed-desktop.png and b/webapp/e2e/screens/order-card-form-failed-desktop.png differ diff --git a/webapp/e2e/screens/order-card-form-failed-no-record-desktop.png b/webapp/e2e/screens/order-card-form-failed-no-record-desktop.png index 7fa6bb7..60f86bf 100644 Binary files a/webapp/e2e/screens/order-card-form-failed-no-record-desktop.png and b/webapp/e2e/screens/order-card-form-failed-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-card-form-failed-no-record-phone.png b/webapp/e2e/screens/order-card-form-failed-no-record-phone.png index be3f11c..9d6711a 100644 Binary files a/webapp/e2e/screens/order-card-form-failed-no-record-phone.png and b/webapp/e2e/screens/order-card-form-failed-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-card-form-failed-phone.png b/webapp/e2e/screens/order-card-form-failed-phone.png index f318716..2aaea89 100644 Binary files a/webapp/e2e/screens/order-card-form-failed-phone.png and b/webapp/e2e/screens/order-card-form-failed-phone.png differ diff --git a/webapp/e2e/screens/order-card-slow-desktop.png b/webapp/e2e/screens/order-card-slow-desktop.png index e0c3a63..aa0afd2 100644 Binary files a/webapp/e2e/screens/order-card-slow-desktop.png and b/webapp/e2e/screens/order-card-slow-desktop.png differ diff --git a/webapp/e2e/screens/order-card-slow-phone.png b/webapp/e2e/screens/order-card-slow-phone.png index 07a9036..615a608 100644 Binary files a/webapp/e2e/screens/order-card-slow-phone.png and b/webapp/e2e/screens/order-card-slow-phone.png differ diff --git a/webapp/e2e/screens/order-card-slow-seen-desktop.png b/webapp/e2e/screens/order-card-slow-seen-desktop.png index e74d374..ff3fb74 100644 Binary files a/webapp/e2e/screens/order-card-slow-seen-desktop.png and b/webapp/e2e/screens/order-card-slow-seen-desktop.png differ diff --git a/webapp/e2e/screens/order-card-slow-seen-phone.png b/webapp/e2e/screens/order-card-slow-seen-phone.png index 03364cb..a498e17 100644 Binary files a/webapp/e2e/screens/order-card-slow-seen-phone.png and b/webapp/e2e/screens/order-card-slow-seen-phone.png differ diff --git a/webapp/e2e/screens/order-closed-cancelled-desktop.png b/webapp/e2e/screens/order-closed-cancelled-desktop.png index 7c17698..6acd525 100644 Binary files a/webapp/e2e/screens/order-closed-cancelled-desktop.png and b/webapp/e2e/screens/order-closed-cancelled-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-cancelled-phone.png b/webapp/e2e/screens/order-closed-cancelled-phone.png index 5567d7a..dce8a8d 100644 Binary files a/webapp/e2e/screens/order-closed-cancelled-phone.png and b/webapp/e2e/screens/order-closed-cancelled-phone.png differ diff --git a/webapp/e2e/screens/order-closed-codes-only-desktop.png b/webapp/e2e/screens/order-closed-codes-only-desktop.png index cdff2c6..6ec4b91 100644 Binary files a/webapp/e2e/screens/order-closed-codes-only-desktop.png and b/webapp/e2e/screens/order-closed-codes-only-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-codes-only-phone.png b/webapp/e2e/screens/order-closed-codes-only-phone.png index d5f9890..f571aa3 100644 Binary files a/webapp/e2e/screens/order-closed-codes-only-phone.png and b/webapp/e2e/screens/order-closed-codes-only-phone.png differ diff --git a/webapp/e2e/screens/order-closed-expired-card-desktop.png b/webapp/e2e/screens/order-closed-expired-card-desktop.png index 481ffd5..0de1e38 100644 Binary files a/webapp/e2e/screens/order-closed-expired-card-desktop.png and b/webapp/e2e/screens/order-closed-expired-card-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-expired-card-phone.png b/webapp/e2e/screens/order-closed-expired-card-phone.png index cd28e50..aa1114f 100644 Binary files a/webapp/e2e/screens/order-closed-expired-card-phone.png and b/webapp/e2e/screens/order-closed-expired-card-phone.png differ diff --git a/webapp/e2e/screens/order-closed-expired-crypto-desktop.png b/webapp/e2e/screens/order-closed-expired-crypto-desktop.png index 751710e..c2e7ee9 100644 Binary files a/webapp/e2e/screens/order-closed-expired-crypto-desktop.png and b/webapp/e2e/screens/order-closed-expired-crypto-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-expired-crypto-phone.png b/webapp/e2e/screens/order-closed-expired-crypto-phone.png index 7e374fe..8849d43 100644 Binary files a/webapp/e2e/screens/order-closed-expired-crypto-phone.png and b/webapp/e2e/screens/order-closed-expired-crypto-phone.png differ diff --git a/webapp/e2e/screens/order-closed-expired-no-record-desktop.png b/webapp/e2e/screens/order-closed-expired-no-record-desktop.png index 6087cdd..c17343f 100644 Binary files a/webapp/e2e/screens/order-closed-expired-no-record-desktop.png and b/webapp/e2e/screens/order-closed-expired-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-expired-no-record-phone.png b/webapp/e2e/screens/order-closed-expired-no-record-phone.png index 35c19aa..2511e45 100644 Binary files a/webapp/e2e/screens/order-closed-expired-no-record-phone.png and b/webapp/e2e/screens/order-closed-expired-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-closed-late-confirming-desktop.png b/webapp/e2e/screens/order-closed-late-confirming-desktop.png index 3b4ddf2..9c41f62 100644 Binary files a/webapp/e2e/screens/order-closed-late-confirming-desktop.png and b/webapp/e2e/screens/order-closed-late-confirming-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-late-confirming-phone.png b/webapp/e2e/screens/order-closed-late-confirming-phone.png index d00aa1d..a5daa0b 100644 Binary files a/webapp/e2e/screens/order-closed-late-confirming-phone.png and b/webapp/e2e/screens/order-closed-late-confirming-phone.png differ diff --git a/webapp/e2e/screens/order-closed-paid-late-offer-desktop.png b/webapp/e2e/screens/order-closed-paid-late-offer-desktop.png index 913b6b3..97ad59d 100644 Binary files a/webapp/e2e/screens/order-closed-paid-late-offer-desktop.png and b/webapp/e2e/screens/order-closed-paid-late-offer-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-paid-late-offer-phone.png b/webapp/e2e/screens/order-closed-paid-late-offer-phone.png index 344824e..343dee8 100644 Binary files a/webapp/e2e/screens/order-closed-paid-late-offer-phone.png and b/webapp/e2e/screens/order-closed-paid-late-offer-phone.png differ diff --git a/webapp/e2e/screens/order-closed-paid-late-support-desktop.png b/webapp/e2e/screens/order-closed-paid-late-support-desktop.png index fe3e363..f331083 100644 Binary files a/webapp/e2e/screens/order-closed-paid-late-support-desktop.png and b/webapp/e2e/screens/order-closed-paid-late-support-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-paid-late-support-phone.png b/webapp/e2e/screens/order-closed-paid-late-support-phone.png index 85196e2..e6df8d9 100644 Binary files a/webapp/e2e/screens/order-closed-paid-late-support-phone.png and b/webapp/e2e/screens/order-closed-paid-late-support-phone.png differ diff --git a/webapp/e2e/screens/order-closed-received-confirming-desktop.png b/webapp/e2e/screens/order-closed-received-confirming-desktop.png index 7c1de56..1a4cb78 100644 Binary files a/webapp/e2e/screens/order-closed-received-confirming-desktop.png and b/webapp/e2e/screens/order-closed-received-confirming-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-received-confirming-phone.png b/webapp/e2e/screens/order-closed-received-confirming-phone.png index ea13a8b..45384d6 100644 Binary files a/webapp/e2e/screens/order-closed-received-confirming-phone.png and b/webapp/e2e/screens/order-closed-received-confirming-phone.png differ diff --git a/webapp/e2e/screens/order-closed-received-crediting-desktop.png b/webapp/e2e/screens/order-closed-received-crediting-desktop.png index 1a11d3a..8beaca2 100644 Binary files a/webapp/e2e/screens/order-closed-received-crediting-desktop.png and b/webapp/e2e/screens/order-closed-received-crediting-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-received-crediting-phone.png b/webapp/e2e/screens/order-closed-received-crediting-phone.png index df04513..f633d21 100644 Binary files a/webapp/e2e/screens/order-closed-received-crediting-phone.png and b/webapp/e2e/screens/order-closed-received-crediting-phone.png differ diff --git a/webapp/e2e/screens/order-closed-received-offer-desktop.png b/webapp/e2e/screens/order-closed-received-offer-desktop.png index 2a73e84..f54b5c6 100644 Binary files a/webapp/e2e/screens/order-closed-received-offer-desktop.png and b/webapp/e2e/screens/order-closed-received-offer-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-received-offer-phone.png b/webapp/e2e/screens/order-closed-received-offer-phone.png index 050856a..bf939d5 100644 Binary files a/webapp/e2e/screens/order-closed-received-offer-phone.png and b/webapp/e2e/screens/order-closed-received-offer-phone.png differ diff --git a/webapp/e2e/screens/order-closed-received-support-desktop.png b/webapp/e2e/screens/order-closed-received-support-desktop.png index 0146987..47975d3 100644 Binary files a/webapp/e2e/screens/order-closed-received-support-desktop.png and b/webapp/e2e/screens/order-closed-received-support-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-received-support-phone.png b/webapp/e2e/screens/order-closed-received-support-phone.png index 1fed568..952eb05 100644 Binary files a/webapp/e2e/screens/order-closed-received-support-phone.png and b/webapp/e2e/screens/order-closed-received-support-phone.png differ diff --git a/webapp/e2e/screens/order-closed-replaced-desktop.png b/webapp/e2e/screens/order-closed-replaced-desktop.png index a8e1430..e2225f1 100644 Binary files a/webapp/e2e/screens/order-closed-replaced-desktop.png and b/webapp/e2e/screens/order-closed-replaced-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-replaced-phone.png b/webapp/e2e/screens/order-closed-replaced-phone.png index edc0707..70a08a1 100644 Binary files a/webapp/e2e/screens/order-closed-replaced-phone.png and b/webapp/e2e/screens/order-closed-replaced-phone.png differ diff --git a/webapp/e2e/screens/order-closed-terms-asked-desktop.png b/webapp/e2e/screens/order-closed-terms-asked-desktop.png index 77021de..3c538ae 100644 Binary files a/webapp/e2e/screens/order-closed-terms-asked-desktop.png and b/webapp/e2e/screens/order-closed-terms-asked-desktop.png differ diff --git a/webapp/e2e/screens/order-closed-terms-asked-phone.png b/webapp/e2e/screens/order-closed-terms-asked-phone.png index a4cc556..a63b136 100644 Binary files a/webapp/e2e/screens/order-closed-terms-asked-phone.png and b/webapp/e2e/screens/order-closed-terms-asked-phone.png differ diff --git a/webapp/e2e/screens/order-confirming-card-seen-desktop.png b/webapp/e2e/screens/order-confirming-card-seen-desktop.png index d94facd..daba360 100644 Binary files a/webapp/e2e/screens/order-confirming-card-seen-desktop.png and b/webapp/e2e/screens/order-confirming-card-seen-desktop.png differ diff --git a/webapp/e2e/screens/order-confirming-card-seen-phone.png b/webapp/e2e/screens/order-confirming-card-seen-phone.png index ffcaa75..3960b25 100644 Binary files a/webapp/e2e/screens/order-confirming-card-seen-phone.png and b/webapp/e2e/screens/order-confirming-card-seen-phone.png differ diff --git a/webapp/e2e/screens/order-confirming-card-submitted-desktop.png b/webapp/e2e/screens/order-confirming-card-submitted-desktop.png index 3bd7202..1e1048f 100644 Binary files a/webapp/e2e/screens/order-confirming-card-submitted-desktop.png and b/webapp/e2e/screens/order-confirming-card-submitted-desktop.png differ diff --git a/webapp/e2e/screens/order-confirming-card-submitted-phone.png b/webapp/e2e/screens/order-confirming-card-submitted-phone.png index 27805e9..03e3c72 100644 Binary files a/webapp/e2e/screens/order-confirming-card-submitted-phone.png and b/webapp/e2e/screens/order-confirming-card-submitted-phone.png differ diff --git a/webapp/e2e/screens/order-confirming-crypto-desktop.png b/webapp/e2e/screens/order-confirming-crypto-desktop.png index 187ac48..f6fe4b2 100644 Binary files a/webapp/e2e/screens/order-confirming-crypto-desktop.png and b/webapp/e2e/screens/order-confirming-crypto-desktop.png differ diff --git a/webapp/e2e/screens/order-confirming-crypto-phone.png b/webapp/e2e/screens/order-confirming-crypto-phone.png index c189de0..0067e53 100644 Binary files a/webapp/e2e/screens/order-confirming-crypto-phone.png and b/webapp/e2e/screens/order-confirming-crypto-phone.png differ diff --git a/webapp/e2e/screens/order-confirming-crypto-settle-desktop.png b/webapp/e2e/screens/order-confirming-crypto-settle-desktop.png index 700b6be..ef533fc 100644 Binary files a/webapp/e2e/screens/order-confirming-crypto-settle-desktop.png and b/webapp/e2e/screens/order-confirming-crypto-settle-desktop.png differ diff --git a/webapp/e2e/screens/order-confirming-crypto-settle-phone.png b/webapp/e2e/screens/order-confirming-crypto-settle-phone.png index f7947f5..6a8128c 100644 Binary files a/webapp/e2e/screens/order-confirming-crypto-settle-phone.png and b/webapp/e2e/screens/order-confirming-crypto-settle-phone.png differ diff --git a/webapp/e2e/screens/order-ended-desktop.png b/webapp/e2e/screens/order-ended-desktop.png index aa86856..56f1343 100644 Binary files a/webapp/e2e/screens/order-ended-desktop.png and b/webapp/e2e/screens/order-ended-desktop.png differ diff --git a/webapp/e2e/screens/order-ended-phone.png b/webapp/e2e/screens/order-ended-phone.png index 63b3b6e..861afcc 100644 Binary files a/webapp/e2e/screens/order-ended-phone.png and b/webapp/e2e/screens/order-ended-phone.png differ diff --git a/webapp/e2e/screens/order-failed-action-failed-desktop.png b/webapp/e2e/screens/order-failed-action-failed-desktop.png index b79e738..5e20d39 100644 Binary files a/webapp/e2e/screens/order-failed-action-failed-desktop.png and b/webapp/e2e/screens/order-failed-action-failed-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-action-failed-phone.png b/webapp/e2e/screens/order-failed-action-failed-phone.png index 1afdf93..d82b13b 100644 Binary files a/webapp/e2e/screens/order-failed-action-failed-phone.png and b/webapp/e2e/screens/order-failed-action-failed-phone.png differ diff --git a/webapp/e2e/screens/order-failed-action-limited-desktop.png b/webapp/e2e/screens/order-failed-action-limited-desktop.png index 1c2061a..6f7e4c1 100644 Binary files a/webapp/e2e/screens/order-failed-action-limited-desktop.png and b/webapp/e2e/screens/order-failed-action-limited-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-action-limited-phone.png b/webapp/e2e/screens/order-failed-action-limited-phone.png index 3231372..ac24f41 100644 Binary files a/webapp/e2e/screens/order-failed-action-limited-phone.png and b/webapp/e2e/screens/order-failed-action-limited-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-kept-desktop.png b/webapp/e2e/screens/order-failed-generic-code-kept-desktop.png index 79625ec..ce1c7bd 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-kept-desktop.png and b/webapp/e2e/screens/order-failed-generic-code-kept-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-kept-phone.png b/webapp/e2e/screens/order-failed-generic-code-kept-phone.png index 9a98416..5d7e3b7 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-kept-phone.png and b/webapp/e2e/screens/order-failed-generic-code-kept-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-limited-desktop.png b/webapp/e2e/screens/order-failed-generic-code-limited-desktop.png index 0de3a8f..0ea6e4a 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-limited-desktop.png and b/webapp/e2e/screens/order-failed-generic-code-limited-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-limited-phone.png b/webapp/e2e/screens/order-failed-generic-code-limited-phone.png index c1e7f91..74c2ae7 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-limited-phone.png and b/webapp/e2e/screens/order-failed-generic-code-limited-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-no-record-desktop.png b/webapp/e2e/screens/order-failed-generic-code-no-record-desktop.png index 9d986f1..307c25c 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-no-record-desktop.png and b/webapp/e2e/screens/order-failed-generic-code-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-no-record-phone.png b/webapp/e2e/screens/order-failed-generic-code-no-record-phone.png index d8bd4da..0d8fd09 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-no-record-phone.png and b/webapp/e2e/screens/order-failed-generic-code-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-refused-desktop.png b/webapp/e2e/screens/order-failed-generic-code-refused-desktop.png index 46a509f..6ebb647 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-refused-desktop.png and b/webapp/e2e/screens/order-failed-generic-code-refused-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-refused-phone.png b/webapp/e2e/screens/order-failed-generic-code-refused-phone.png index 40c8526..069da7b 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-refused-phone.png and b/webapp/e2e/screens/order-failed-generic-code-refused-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-unchecked-desktop.png b/webapp/e2e/screens/order-failed-generic-code-unchecked-desktop.png index bed6890..abe9fe3 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-unchecked-desktop.png and b/webapp/e2e/screens/order-failed-generic-code-unchecked-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-code-unchecked-phone.png b/webapp/e2e/screens/order-failed-generic-code-unchecked-phone.png index 1fb4427..545b121 100644 Binary files a/webapp/e2e/screens/order-failed-generic-code-unchecked-phone.png and b/webapp/e2e/screens/order-failed-generic-code-unchecked-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-paid-desktop.png b/webapp/e2e/screens/order-failed-generic-paid-desktop.png index 14321c0..9fe0c10 100644 Binary files a/webapp/e2e/screens/order-failed-generic-paid-desktop.png and b/webapp/e2e/screens/order-failed-generic-paid-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-paid-no-record-desktop.png b/webapp/e2e/screens/order-failed-generic-paid-no-record-desktop.png index 1a60ab6..d859877 100644 Binary files a/webapp/e2e/screens/order-failed-generic-paid-no-record-desktop.png and b/webapp/e2e/screens/order-failed-generic-paid-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-generic-paid-no-record-phone.png b/webapp/e2e/screens/order-failed-generic-paid-no-record-phone.png index 530bab1..84d9bab 100644 Binary files a/webapp/e2e/screens/order-failed-generic-paid-no-record-phone.png and b/webapp/e2e/screens/order-failed-generic-paid-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-failed-generic-paid-phone.png b/webapp/e2e/screens/order-failed-generic-paid-phone.png index 27e6bca..5787d40 100644 Binary files a/webapp/e2e/screens/order-failed-generic-paid-phone.png and b/webapp/e2e/screens/order-failed-generic-paid-phone.png differ diff --git a/webapp/e2e/screens/order-failed-month-code-desktop.png b/webapp/e2e/screens/order-failed-month-code-desktop.png index b09ef17..b9c22b4 100644 Binary files a/webapp/e2e/screens/order-failed-month-code-desktop.png and b/webapp/e2e/screens/order-failed-month-code-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-month-code-phone.png b/webapp/e2e/screens/order-failed-month-code-phone.png index d62c95e..6eca5b1 100644 Binary files a/webapp/e2e/screens/order-failed-month-code-phone.png and b/webapp/e2e/screens/order-failed-month-code-phone.png differ diff --git a/webapp/e2e/screens/order-failed-month-paid-desktop.png b/webapp/e2e/screens/order-failed-month-paid-desktop.png index f5b30c8..4a50516 100644 Binary files a/webapp/e2e/screens/order-failed-month-paid-desktop.png and b/webapp/e2e/screens/order-failed-month-paid-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-month-paid-phone.png b/webapp/e2e/screens/order-failed-month-paid-phone.png index ba5da0d..fbd3f2f 100644 Binary files a/webapp/e2e/screens/order-failed-month-paid-phone.png and b/webapp/e2e/screens/order-failed-month-paid-phone.png differ diff --git a/webapp/e2e/screens/order-failed-name-gone-since-desktop.png b/webapp/e2e/screens/order-failed-name-gone-since-desktop.png index 30099cd..b991985 100644 Binary files a/webapp/e2e/screens/order-failed-name-gone-since-desktop.png and b/webapp/e2e/screens/order-failed-name-gone-since-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-name-gone-since-phone.png b/webapp/e2e/screens/order-failed-name-gone-since-phone.png index 8f2ce74..91249cc 100644 Binary files a/webapp/e2e/screens/order-failed-name-gone-since-phone.png and b/webapp/e2e/screens/order-failed-name-gone-since-phone.png differ diff --git a/webapp/e2e/screens/order-failed-signature-code-desktop.png b/webapp/e2e/screens/order-failed-signature-code-desktop.png index 2a889e0..7ca4133 100644 Binary files a/webapp/e2e/screens/order-failed-signature-code-desktop.png and b/webapp/e2e/screens/order-failed-signature-code-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-signature-code-phone.png b/webapp/e2e/screens/order-failed-signature-code-phone.png index 740707c..b2a650a 100644 Binary files a/webapp/e2e/screens/order-failed-signature-code-phone.png and b/webapp/e2e/screens/order-failed-signature-code-phone.png differ diff --git a/webapp/e2e/screens/order-failed-signature-paid-desktop.png b/webapp/e2e/screens/order-failed-signature-paid-desktop.png index 11ef3a1..3b1130b 100644 Binary files a/webapp/e2e/screens/order-failed-signature-paid-desktop.png and b/webapp/e2e/screens/order-failed-signature-paid-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-signature-paid-phone.png b/webapp/e2e/screens/order-failed-signature-paid-phone.png index 0f54788..d905a39 100644 Binary files a/webapp/e2e/screens/order-failed-signature-paid-phone.png and b/webapp/e2e/screens/order-failed-signature-paid-phone.png differ diff --git a/webapp/e2e/screens/order-failed-signature-refused-code-desktop.png b/webapp/e2e/screens/order-failed-signature-refused-code-desktop.png index 22ceb40..64f4a07 100644 Binary files a/webapp/e2e/screens/order-failed-signature-refused-code-desktop.png and b/webapp/e2e/screens/order-failed-signature-refused-code-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-signature-refused-code-phone.png b/webapp/e2e/screens/order-failed-signature-refused-code-phone.png index 163e8dc..a2728e2 100644 Binary files a/webapp/e2e/screens/order-failed-signature-refused-code-phone.png and b/webapp/e2e/screens/order-failed-signature-refused-code-phone.png differ diff --git a/webapp/e2e/screens/order-failed-signature-refused-paid-desktop.png b/webapp/e2e/screens/order-failed-signature-refused-paid-desktop.png index 0e8f469..0533489 100644 Binary files a/webapp/e2e/screens/order-failed-signature-refused-paid-desktop.png and b/webapp/e2e/screens/order-failed-signature-refused-paid-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-signature-refused-paid-phone.png b/webapp/e2e/screens/order-failed-signature-refused-paid-phone.png index 9828407..fbb3e4d 100644 Binary files a/webapp/e2e/screens/order-failed-signature-refused-paid-phone.png and b/webapp/e2e/screens/order-failed-signature-refused-paid-phone.png differ diff --git a/webapp/e2e/screens/order-failed-unread-code-desktop.png b/webapp/e2e/screens/order-failed-unread-code-desktop.png index 2e35d48..a805261 100644 Binary files a/webapp/e2e/screens/order-failed-unread-code-desktop.png and b/webapp/e2e/screens/order-failed-unread-code-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-unread-code-phone.png b/webapp/e2e/screens/order-failed-unread-code-phone.png index 2854507..d3dfbb7 100644 Binary files a/webapp/e2e/screens/order-failed-unread-code-phone.png and b/webapp/e2e/screens/order-failed-unread-code-phone.png differ diff --git a/webapp/e2e/screens/order-failed-unread-paid-desktop.png b/webapp/e2e/screens/order-failed-unread-paid-desktop.png index 4cf72be..c356dbd 100644 Binary files a/webapp/e2e/screens/order-failed-unread-paid-desktop.png and b/webapp/e2e/screens/order-failed-unread-paid-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-unread-paid-no-record-desktop.png b/webapp/e2e/screens/order-failed-unread-paid-no-record-desktop.png index 2518260..d6f79d4 100644 Binary files a/webapp/e2e/screens/order-failed-unread-paid-no-record-desktop.png and b/webapp/e2e/screens/order-failed-unread-paid-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-failed-unread-paid-no-record-phone.png b/webapp/e2e/screens/order-failed-unread-paid-no-record-phone.png index 268c54a..9ba4b3e 100644 Binary files a/webapp/e2e/screens/order-failed-unread-paid-no-record-phone.png and b/webapp/e2e/screens/order-failed-unread-paid-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-failed-unread-paid-phone.png b/webapp/e2e/screens/order-failed-unread-paid-phone.png index c80208f..4c6e2ab 100644 Binary files a/webapp/e2e/screens/order-failed-unread-paid-phone.png and b/webapp/e2e/screens/order-failed-unread-paid-phone.png differ diff --git a/webapp/e2e/screens/order-lapsed-no-record-desktop.png b/webapp/e2e/screens/order-lapsed-no-record-desktop.png index fb9ed0b..3001051 100644 Binary files a/webapp/e2e/screens/order-lapsed-no-record-desktop.png and b/webapp/e2e/screens/order-lapsed-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-lapsed-no-record-phone.png b/webapp/e2e/screens/order-lapsed-no-record-phone.png index de34b5a..2d085d3 100644 Binary files a/webapp/e2e/screens/order-lapsed-no-record-phone.png and b/webapp/e2e/screens/order-lapsed-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-not-on-device-desktop.png b/webapp/e2e/screens/order-not-on-device-desktop.png index 8ac9234..b8b5cdb 100644 Binary files a/webapp/e2e/screens/order-not-on-device-desktop.png and b/webapp/e2e/screens/order-not-on-device-desktop.png differ diff --git a/webapp/e2e/screens/order-not-on-device-phone.png b/webapp/e2e/screens/order-not-on-device-phone.png index cb2b197..ccf78f3 100644 Binary files a/webapp/e2e/screens/order-not-on-device-phone.png and b/webapp/e2e/screens/order-not-on-device-phone.png differ diff --git a/webapp/e2e/screens/order-pay-btc-available-desktop.png b/webapp/e2e/screens/order-pay-btc-available-desktop.png index d64d978..b129ed5 100644 Binary files a/webapp/e2e/screens/order-pay-btc-available-desktop.png and b/webapp/e2e/screens/order-pay-btc-available-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-btc-available-phone.png b/webapp/e2e/screens/order-pay-btc-available-phone.png index 8b71e25..6d65ab3 100644 Binary files a/webapp/e2e/screens/order-pay-btc-available-phone.png and b/webapp/e2e/screens/order-pay-btc-available-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-available-desktop.png b/webapp/e2e/screens/order-pay-card-available-desktop.png index edd8033..4f7986c 100644 Binary files a/webapp/e2e/screens/order-pay-card-available-desktop.png and b/webapp/e2e/screens/order-pay-card-available-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-available-phone.png b/webapp/e2e/screens/order-pay-card-available-phone.png index 65210f8..7722d35 100644 Binary files a/webapp/e2e/screens/order-pay-card-available-phone.png and b/webapp/e2e/screens/order-pay-card-available-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-cancel-refused-desktop.png b/webapp/e2e/screens/order-pay-card-cancel-refused-desktop.png index 755db2e..708c221 100644 Binary files a/webapp/e2e/screens/order-pay-card-cancel-refused-desktop.png and b/webapp/e2e/screens/order-pay-card-cancel-refused-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-cancel-refused-phone.png b/webapp/e2e/screens/order-pay-card-cancel-refused-phone.png index a291cb2..fd79a47 100644 Binary files a/webapp/e2e/screens/order-pay-card-cancel-refused-phone.png and b/webapp/e2e/screens/order-pay-card-cancel-refused-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-cannot-persist-desktop.png b/webapp/e2e/screens/order-pay-card-cannot-persist-desktop.png index abe661c..ad41e1d 100644 Binary files a/webapp/e2e/screens/order-pay-card-cannot-persist-desktop.png and b/webapp/e2e/screens/order-pay-card-cannot-persist-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-cannot-persist-phone.png b/webapp/e2e/screens/order-pay-card-cannot-persist-phone.png index bbf5429..e4070ab 100644 Binary files a/webapp/e2e/screens/order-pay-card-cannot-persist-phone.png and b/webapp/e2e/screens/order-pay-card-cannot-persist-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-declined-desktop.png b/webapp/e2e/screens/order-pay-card-declined-desktop.png index eb92475..9ba95c0 100644 Binary files a/webapp/e2e/screens/order-pay-card-declined-desktop.png and b/webapp/e2e/screens/order-pay-card-declined-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-declined-phone.png b/webapp/e2e/screens/order-pay-card-declined-phone.png index b1b6c5f..59b0645 100644 Binary files a/webapp/e2e/screens/order-pay-card-declined-phone.png and b/webapp/e2e/screens/order-pay-card-declined-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-held-by-order-desktop.png b/webapp/e2e/screens/order-pay-card-held-by-order-desktop.png index 3cfec09..0637ada 100644 Binary files a/webapp/e2e/screens/order-pay-card-held-by-order-desktop.png and b/webapp/e2e/screens/order-pay-card-held-by-order-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-held-by-order-phone.png b/webapp/e2e/screens/order-pay-card-held-by-order-phone.png index 0667582..6b6b55e 100644 Binary files a/webapp/e2e/screens/order-pay-card-held-by-order-phone.png and b/webapp/e2e/screens/order-pay-card-held-by-order-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-no-record-desktop.png b/webapp/e2e/screens/order-pay-card-no-record-desktop.png index 6464872..91a0806 100644 Binary files a/webapp/e2e/screens/order-pay-card-no-record-desktop.png and b/webapp/e2e/screens/order-pay-card-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-no-record-phone.png b/webapp/e2e/screens/order-pay-card-no-record-phone.png index c66dc72..81d7e84 100644 Binary files a/webapp/e2e/screens/order-pay-card-no-record-phone.png and b/webapp/e2e/screens/order-pay-card-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-opened-instead-desktop.png b/webapp/e2e/screens/order-pay-card-opened-instead-desktop.png index 0461399..7560ce1 100644 Binary files a/webapp/e2e/screens/order-pay-card-opened-instead-desktop.png and b/webapp/e2e/screens/order-pay-card-opened-instead-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-opened-instead-phone.png b/webapp/e2e/screens/order-pay-card-opened-instead-phone.png index 2abc8f7..8a3aa0a 100644 Binary files a/webapp/e2e/screens/order-pay-card-opened-instead-phone.png and b/webapp/e2e/screens/order-pay-card-opened-instead-phone.png differ diff --git a/webapp/e2e/screens/order-pay-card-taken-on-chain-desktop.png b/webapp/e2e/screens/order-pay-card-taken-on-chain-desktop.png index 96391d0..2e8d4ad 100644 Binary files a/webapp/e2e/screens/order-pay-card-taken-on-chain-desktop.png and b/webapp/e2e/screens/order-pay-card-taken-on-chain-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-card-taken-on-chain-phone.png b/webapp/e2e/screens/order-pay-card-taken-on-chain-phone.png index 78ca3a7..7d8820e 100644 Binary files a/webapp/e2e/screens/order-pay-card-taken-on-chain-phone.png and b/webapp/e2e/screens/order-pay-card-taken-on-chain-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-cancel-limited-desktop.png b/webapp/e2e/screens/order-pay-crypto-cancel-limited-desktop.png index a348fb5..072e471 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-cancel-limited-desktop.png and b/webapp/e2e/screens/order-pay-crypto-cancel-limited-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-cancel-limited-phone.png b/webapp/e2e/screens/order-pay-crypto-cancel-limited-phone.png index a409da1..b611952 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-cancel-limited-phone.png and b/webapp/e2e/screens/order-pay-crypto-cancel-limited-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-cancel-refused-desktop.png b/webapp/e2e/screens/order-pay-crypto-cancel-refused-desktop.png index 5da79b1..31784b2 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-cancel-refused-desktop.png and b/webapp/e2e/screens/order-pay-crypto-cancel-refused-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-cancel-refused-phone.png b/webapp/e2e/screens/order-pay-crypto-cancel-refused-phone.png index 41adb64..db6797d 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-cancel-refused-phone.png and b/webapp/e2e/screens/order-pay-crypto-cancel-refused-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-held-by-order-desktop.png b/webapp/e2e/screens/order-pay-crypto-held-by-order-desktop.png index 4996d43..2d099d0 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-held-by-order-desktop.png and b/webapp/e2e/screens/order-pay-crypto-held-by-order-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-held-by-order-phone.png b/webapp/e2e/screens/order-pay-crypto-held-by-order-phone.png index c26421c..3962d0d 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-held-by-order-phone.png and b/webapp/e2e/screens/order-pay-crypto-held-by-order-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-opened-instead-desktop.png b/webapp/e2e/screens/order-pay-crypto-opened-instead-desktop.png index c9c5e00..37671a8 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-opened-instead-desktop.png and b/webapp/e2e/screens/order-pay-crypto-opened-instead-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-opened-instead-phone.png b/webapp/e2e/screens/order-pay-crypto-opened-instead-phone.png index bfff1b0..76f71fc 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-opened-instead-phone.png and b/webapp/e2e/screens/order-pay-crypto-opened-instead-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-part-paid-desktop.png b/webapp/e2e/screens/order-pay-crypto-part-paid-desktop.png index dd3ac3e..17aa81b 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-part-paid-desktop.png and b/webapp/e2e/screens/order-pay-crypto-part-paid-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-part-paid-expired-desktop.png b/webapp/e2e/screens/order-pay-crypto-part-paid-expired-desktop.png index bb1e5ff..1dac518 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-part-paid-expired-desktop.png and b/webapp/e2e/screens/order-pay-crypto-part-paid-expired-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-part-paid-expired-phone.png b/webapp/e2e/screens/order-pay-crypto-part-paid-expired-phone.png index 0625eab..fb04bb5 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-part-paid-expired-phone.png and b/webapp/e2e/screens/order-pay-crypto-part-paid-expired-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-part-paid-phone.png b/webapp/e2e/screens/order-pay-crypto-part-paid-phone.png index 6b131df..bb473b1 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-part-paid-phone.png and b/webapp/e2e/screens/order-pay-crypto-part-paid-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-taken-on-chain-desktop.png b/webapp/e2e/screens/order-pay-crypto-taken-on-chain-desktop.png index 0dbf7bb..96b5ebc 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-taken-on-chain-desktop.png and b/webapp/e2e/screens/order-pay-crypto-taken-on-chain-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-taken-on-chain-phone.png b/webapp/e2e/screens/order-pay-crypto-taken-on-chain-phone.png index dae00d2..e5dca99 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-taken-on-chain-phone.png and b/webapp/e2e/screens/order-pay-crypto-taken-on-chain-phone.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-unchecked-desktop.png b/webapp/e2e/screens/order-pay-crypto-unchecked-desktop.png index 8727f80..8c048d6 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-unchecked-desktop.png and b/webapp/e2e/screens/order-pay-crypto-unchecked-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-crypto-unchecked-phone.png b/webapp/e2e/screens/order-pay-crypto-unchecked-phone.png index f38c26a..f9e9551 100644 Binary files a/webapp/e2e/screens/order-pay-crypto-unchecked-phone.png and b/webapp/e2e/screens/order-pay-crypto-unchecked-phone.png differ diff --git a/webapp/e2e/screens/order-pay-xmr-available-desktop.png b/webapp/e2e/screens/order-pay-xmr-available-desktop.png index 9a8e9c1..74d1260 100644 Binary files a/webapp/e2e/screens/order-pay-xmr-available-desktop.png and b/webapp/e2e/screens/order-pay-xmr-available-desktop.png differ diff --git a/webapp/e2e/screens/order-pay-xmr-available-phone.png b/webapp/e2e/screens/order-pay-xmr-available-phone.png index 59701e4..3d0a7ac 100644 Binary files a/webapp/e2e/screens/order-pay-xmr-available-phone.png and b/webapp/e2e/screens/order-pay-xmr-available-phone.png differ diff --git a/webapp/e2e/screens/order-price-changed-desktop.png b/webapp/e2e/screens/order-price-changed-desktop.png index 1e1cb50..d2cb894 100644 Binary files a/webapp/e2e/screens/order-price-changed-desktop.png and b/webapp/e2e/screens/order-price-changed-desktop.png differ diff --git a/webapp/e2e/screens/order-price-changed-phone.png b/webapp/e2e/screens/order-price-changed-phone.png index 48167d8..c2785ef 100644 Binary files a/webapp/e2e/screens/order-price-changed-phone.png and b/webapp/e2e/screens/order-price-changed-phone.png differ diff --git a/webapp/e2e/screens/order-registered-links-desktop.png b/webapp/e2e/screens/order-registered-links-desktop.png index 69c7291..62c275c 100644 Binary files a/webapp/e2e/screens/order-registered-links-desktop.png and b/webapp/e2e/screens/order-registered-links-desktop.png differ diff --git a/webapp/e2e/screens/order-registered-links-phone.png b/webapp/e2e/screens/order-registered-links-phone.png index 69c6bdb..031e1bd 100644 Binary files a/webapp/e2e/screens/order-registered-links-phone.png and b/webapp/e2e/screens/order-registered-links-phone.png differ diff --git a/webapp/e2e/screens/order-registered-no-links-desktop.png b/webapp/e2e/screens/order-registered-no-links-desktop.png index 6447dd4..40eeb41 100644 Binary files a/webapp/e2e/screens/order-registered-no-links-desktop.png and b/webapp/e2e/screens/order-registered-no-links-desktop.png differ diff --git a/webapp/e2e/screens/order-registered-no-links-phone.png b/webapp/e2e/screens/order-registered-no-links-phone.png index 932498a..c890b9a 100644 Binary files a/webapp/e2e/screens/order-registered-no-links-phone.png and b/webapp/e2e/screens/order-registered-no-links-phone.png differ diff --git a/webapp/e2e/screens/order-registering-committing-desktop.png b/webapp/e2e/screens/order-registering-committing-desktop.png index 8cf3152..b104883 100644 Binary files a/webapp/e2e/screens/order-registering-committing-desktop.png and b/webapp/e2e/screens/order-registering-committing-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-committing-phone.png b/webapp/e2e/screens/order-registering-committing-phone.png index 30f3696..484f1ff 100644 Binary files a/webapp/e2e/screens/order-registering-committing-phone.png and b/webapp/e2e/screens/order-registering-committing-phone.png differ diff --git a/webapp/e2e/screens/order-registering-community-terms-asked-desktop.png b/webapp/e2e/screens/order-registering-community-terms-asked-desktop.png index cc84a7b..e279472 100644 Binary files a/webapp/e2e/screens/order-registering-community-terms-asked-desktop.png and b/webapp/e2e/screens/order-registering-community-terms-asked-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-community-terms-asked-phone.png b/webapp/e2e/screens/order-registering-community-terms-asked-phone.png index 850a9c7..cd33a5e 100644 Binary files a/webapp/e2e/screens/order-registering-community-terms-asked-phone.png and b/webapp/e2e/screens/order-registering-community-terms-asked-phone.png differ diff --git a/webapp/e2e/screens/order-registering-lapsed-desktop.png b/webapp/e2e/screens/order-registering-lapsed-desktop.png index 504ee11..67adf44 100644 Binary files a/webapp/e2e/screens/order-registering-lapsed-desktop.png and b/webapp/e2e/screens/order-registering-lapsed-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-lapsed-phone.png b/webapp/e2e/screens/order-registering-lapsed-phone.png index 08e80be..ff4dd3e 100644 Binary files a/webapp/e2e/screens/order-registering-lapsed-phone.png and b/webapp/e2e/screens/order-registering-lapsed-phone.png differ diff --git a/webapp/e2e/screens/order-registering-name-registered-meanwhile-desktop.png b/webapp/e2e/screens/order-registering-name-registered-meanwhile-desktop.png index 99046c9..2c12b91 100644 Binary files a/webapp/e2e/screens/order-registering-name-registered-meanwhile-desktop.png and b/webapp/e2e/screens/order-registering-name-registered-meanwhile-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-name-registered-meanwhile-phone.png b/webapp/e2e/screens/order-registering-name-registered-meanwhile-phone.png index d6f74b4..cdc6dab 100644 Binary files a/webapp/e2e/screens/order-registering-name-registered-meanwhile-phone.png and b/webapp/e2e/screens/order-registering-name-registered-meanwhile-phone.png differ diff --git a/webapp/e2e/screens/order-registering-name-reserved-meanwhile-desktop.png b/webapp/e2e/screens/order-registering-name-reserved-meanwhile-desktop.png index 36fa12f..25bc86b 100644 Binary files a/webapp/e2e/screens/order-registering-name-reserved-meanwhile-desktop.png and b/webapp/e2e/screens/order-registering-name-reserved-meanwhile-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-name-reserved-meanwhile-phone.png b/webapp/e2e/screens/order-registering-name-reserved-meanwhile-phone.png index 6b3b754..011bd70 100644 Binary files a/webapp/e2e/screens/order-registering-name-reserved-meanwhile-phone.png and b/webapp/e2e/screens/order-registering-name-reserved-meanwhile-phone.png differ diff --git a/webapp/e2e/screens/order-registering-no-record-committing-desktop.png b/webapp/e2e/screens/order-registering-no-record-committing-desktop.png index 9b76dc8..a7cbb53 100644 Binary files a/webapp/e2e/screens/order-registering-no-record-committing-desktop.png and b/webapp/e2e/screens/order-registering-no-record-committing-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-no-record-committing-phone.png b/webapp/e2e/screens/order-registering-no-record-committing-phone.png index f0ac4bc..80a5228 100644 Binary files a/webapp/e2e/screens/order-registering-no-record-committing-phone.png and b/webapp/e2e/screens/order-registering-no-record-committing-phone.png differ diff --git a/webapp/e2e/screens/order-registering-no-record-signed-desktop.png b/webapp/e2e/screens/order-registering-no-record-signed-desktop.png index b7f96d1..b932dc2 100644 Binary files a/webapp/e2e/screens/order-registering-no-record-signed-desktop.png and b/webapp/e2e/screens/order-registering-no-record-signed-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-no-record-signed-phone.png b/webapp/e2e/screens/order-registering-no-record-signed-phone.png index 24e1f07..c88a5b4 100644 Binary files a/webapp/e2e/screens/order-registering-no-record-signed-phone.png and b/webapp/e2e/screens/order-registering-no-record-signed-phone.png differ diff --git a/webapp/e2e/screens/order-registering-no-record-wait-desktop.png b/webapp/e2e/screens/order-registering-no-record-wait-desktop.png index babf395..2465343 100644 Binary files a/webapp/e2e/screens/order-registering-no-record-wait-desktop.png and b/webapp/e2e/screens/order-registering-no-record-wait-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-no-record-wait-phone.png b/webapp/e2e/screens/order-registering-no-record-wait-phone.png index d02b81a..2d3740a 100644 Binary files a/webapp/e2e/screens/order-registering-no-record-wait-phone.png and b/webapp/e2e/screens/order-registering-no-record-wait-phone.png differ diff --git a/webapp/e2e/screens/order-registering-register-sent-desktop.png b/webapp/e2e/screens/order-registering-register-sent-desktop.png index 5c141cd..b1d3d5c 100644 Binary files a/webapp/e2e/screens/order-registering-register-sent-desktop.png and b/webapp/e2e/screens/order-registering-register-sent-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-register-sent-phone.png b/webapp/e2e/screens/order-registering-register-sent-phone.png index 04bcb9c..79270df 100644 Binary files a/webapp/e2e/screens/order-registering-register-sent-phone.png and b/webapp/e2e/screens/order-registering-register-sent-phone.png differ diff --git a/webapp/e2e/screens/order-registering-signature-refused-desktop.png b/webapp/e2e/screens/order-registering-signature-refused-desktop.png index 60afc15..ad87b8d 100644 Binary files a/webapp/e2e/screens/order-registering-signature-refused-desktop.png and b/webapp/e2e/screens/order-registering-signature-refused-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-signature-refused-phone.png b/webapp/e2e/screens/order-registering-signature-refused-phone.png index 79917ba..3d3287e 100644 Binary files a/webapp/e2e/screens/order-registering-signature-refused-phone.png and b/webapp/e2e/screens/order-registering-signature-refused-phone.png differ diff --git a/webapp/e2e/screens/order-registering-signing-desktop.png b/webapp/e2e/screens/order-registering-signing-desktop.png index 675920e..f703a36 100644 Binary files a/webapp/e2e/screens/order-registering-signing-desktop.png and b/webapp/e2e/screens/order-registering-signing-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-signing-phone.png b/webapp/e2e/screens/order-registering-signing-phone.png index 0d14816..4d5cbf1 100644 Binary files a/webapp/e2e/screens/order-registering-signing-phone.png and b/webapp/e2e/screens/order-registering-signing-phone.png differ diff --git a/webapp/e2e/screens/order-registering-stalled-desktop.png b/webapp/e2e/screens/order-registering-stalled-desktop.png index 6169136..25174bd 100644 Binary files a/webapp/e2e/screens/order-registering-stalled-desktop.png and b/webapp/e2e/screens/order-registering-stalled-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-stalled-phone.png b/webapp/e2e/screens/order-registering-stalled-phone.png index 8280aa0..4d25a0d 100644 Binary files a/webapp/e2e/screens/order-registering-stalled-phone.png and b/webapp/e2e/screens/order-registering-stalled-phone.png differ diff --git a/webapp/e2e/screens/order-registering-terms-asked-desktop.png b/webapp/e2e/screens/order-registering-terms-asked-desktop.png index a1d99d4..8da049b 100644 Binary files a/webapp/e2e/screens/order-registering-terms-asked-desktop.png and b/webapp/e2e/screens/order-registering-terms-asked-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-terms-asked-phone.png b/webapp/e2e/screens/order-registering-terms-asked-phone.png index 868bdec..891d726 100644 Binary files a/webapp/e2e/screens/order-registering-terms-asked-phone.png and b/webapp/e2e/screens/order-registering-terms-asked-phone.png differ diff --git a/webapp/e2e/screens/order-registering-terms-ticked-desktop.png b/webapp/e2e/screens/order-registering-terms-ticked-desktop.png index 667b30a..49749cf 100644 Binary files a/webapp/e2e/screens/order-registering-terms-ticked-desktop.png and b/webapp/e2e/screens/order-registering-terms-ticked-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-terms-ticked-phone.png b/webapp/e2e/screens/order-registering-terms-ticked-phone.png index 81f9241..7c4e835 100644 Binary files a/webapp/e2e/screens/order-registering-terms-ticked-phone.png and b/webapp/e2e/screens/order-registering-terms-ticked-phone.png differ diff --git a/webapp/e2e/screens/order-registering-wait-desktop.png b/webapp/e2e/screens/order-registering-wait-desktop.png index 9e164fa..c36bb1a 100644 Binary files a/webapp/e2e/screens/order-registering-wait-desktop.png and b/webapp/e2e/screens/order-registering-wait-desktop.png differ diff --git a/webapp/e2e/screens/order-registering-wait-phone.png b/webapp/e2e/screens/order-registering-wait-phone.png index bc706da..aee92c7 100644 Binary files a/webapp/e2e/screens/order-registering-wait-phone.png and b/webapp/e2e/screens/order-registering-wait-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-cancel-refused-desktop.png b/webapp/e2e/screens/order-reorder-cancel-refused-desktop.png index 4166d87..c2d8725 100644 Binary files a/webapp/e2e/screens/order-reorder-cancel-refused-desktop.png and b/webapp/e2e/screens/order-reorder-cancel-refused-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-cancel-refused-phone.png b/webapp/e2e/screens/order-reorder-cancel-refused-phone.png index 034829a..0ce695e 100644 Binary files a/webapp/e2e/screens/order-reorder-cancel-refused-phone.png and b/webapp/e2e/screens/order-reorder-cancel-refused-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-codes-only-desktop.png b/webapp/e2e/screens/order-reorder-codes-only-desktop.png index 7abad58..352e0c0 100644 Binary files a/webapp/e2e/screens/order-reorder-codes-only-desktop.png and b/webapp/e2e/screens/order-reorder-codes-only-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-codes-only-phone.png b/webapp/e2e/screens/order-reorder-codes-only-phone.png index b47aa39..9cdd398 100644 Binary files a/webapp/e2e/screens/order-reorder-codes-only-phone.png and b/webapp/e2e/screens/order-reorder-codes-only-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-failed-desktop.png b/webapp/e2e/screens/order-reorder-failed-desktop.png index 12360dc..d07afee 100644 Binary files a/webapp/e2e/screens/order-reorder-failed-desktop.png and b/webapp/e2e/screens/order-reorder-failed-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-failed-phone.png b/webapp/e2e/screens/order-reorder-failed-phone.png index 4e989a7..7311dcb 100644 Binary files a/webapp/e2e/screens/order-reorder-failed-phone.png and b/webapp/e2e/screens/order-reorder-failed-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-limited-desktop.png b/webapp/e2e/screens/order-reorder-limited-desktop.png index 7a595f0..841b5ba 100644 Binary files a/webapp/e2e/screens/order-reorder-limited-desktop.png and b/webapp/e2e/screens/order-reorder-limited-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-limited-phone.png b/webapp/e2e/screens/order-reorder-limited-phone.png index 8a54aac..d992846 100644 Binary files a/webapp/e2e/screens/order-reorder-limited-phone.png and b/webapp/e2e/screens/order-reorder-limited-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-name-unchecked-desktop.png b/webapp/e2e/screens/order-reorder-name-unchecked-desktop.png index e706201..8be9cb2 100644 Binary files a/webapp/e2e/screens/order-reorder-name-unchecked-desktop.png and b/webapp/e2e/screens/order-reorder-name-unchecked-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-name-unchecked-phone.png b/webapp/e2e/screens/order-reorder-name-unchecked-phone.png index 6d2f9a4..849475c 100644 Binary files a/webapp/e2e/screens/order-reorder-name-unchecked-phone.png and b/webapp/e2e/screens/order-reorder-name-unchecked-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-no-orders-desktop.png b/webapp/e2e/screens/order-reorder-no-orders-desktop.png index 6d82dbd..94b32fb 100644 Binary files a/webapp/e2e/screens/order-reorder-no-orders-desktop.png and b/webapp/e2e/screens/order-reorder-no-orders-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-no-orders-phone.png b/webapp/e2e/screens/order-reorder-no-orders-phone.png index 72bf49e..0c5a83e 100644 Binary files a/webapp/e2e/screens/order-reorder-no-orders-phone.png and b/webapp/e2e/screens/order-reorder-no-orders-phone.png differ diff --git a/webapp/e2e/screens/order-reorder-provider-unavailable-desktop.png b/webapp/e2e/screens/order-reorder-provider-unavailable-desktop.png index 54721af..c677b51 100644 Binary files a/webapp/e2e/screens/order-reorder-provider-unavailable-desktop.png and b/webapp/e2e/screens/order-reorder-provider-unavailable-desktop.png differ diff --git a/webapp/e2e/screens/order-reorder-provider-unavailable-phone.png b/webapp/e2e/screens/order-reorder-provider-unavailable-phone.png index d25eed2..5995024 100644 Binary files a/webapp/e2e/screens/order-reorder-provider-unavailable-phone.png and b/webapp/e2e/screens/order-reorder-provider-unavailable-phone.png differ diff --git a/webapp/e2e/screens/order-taken-balance-spent-desktop.png b/webapp/e2e/screens/order-taken-balance-spent-desktop.png index a651813..f08552d 100644 Binary files a/webapp/e2e/screens/order-taken-balance-spent-desktop.png and b/webapp/e2e/screens/order-taken-balance-spent-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-balance-spent-phone.png b/webapp/e2e/screens/order-taken-balance-spent-phone.png index dd2e8d5..5c1f23a 100644 Binary files a/webapp/e2e/screens/order-taken-balance-spent-phone.png and b/webapp/e2e/screens/order-taken-balance-spent-phone.png differ diff --git a/webapp/e2e/screens/order-taken-before-commit-desktop.png b/webapp/e2e/screens/order-taken-before-commit-desktop.png index c13c788..2970be9 100644 Binary files a/webapp/e2e/screens/order-taken-before-commit-desktop.png and b/webapp/e2e/screens/order-taken-before-commit-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-before-commit-phone.png b/webapp/e2e/screens/order-taken-before-commit-phone.png index 35805ea..bdf3b84 100644 Binary files a/webapp/e2e/screens/order-taken-before-commit-phone.png and b/webapp/e2e/screens/order-taken-before-commit-phone.png differ diff --git a/webapp/e2e/screens/order-taken-chain-desktop.png b/webapp/e2e/screens/order-taken-chain-desktop.png index 024ed17..11a2f1f 100644 Binary files a/webapp/e2e/screens/order-taken-chain-desktop.png and b/webapp/e2e/screens/order-taken-chain-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-chain-phone.png b/webapp/e2e/screens/order-taken-chain-phone.png index baf00e4..49a4b22 100644 Binary files a/webapp/e2e/screens/order-taken-chain-phone.png and b/webapp/e2e/screens/order-taken-chain-phone.png differ diff --git a/webapp/e2e/screens/order-taken-code-desktop.png b/webapp/e2e/screens/order-taken-code-desktop.png index 50e63ed..bfa4543 100644 Binary files a/webapp/e2e/screens/order-taken-code-desktop.png and b/webapp/e2e/screens/order-taken-code-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-code-no-record-desktop.png b/webapp/e2e/screens/order-taken-code-no-record-desktop.png index 657b312..46112fb 100644 Binary files a/webapp/e2e/screens/order-taken-code-no-record-desktop.png and b/webapp/e2e/screens/order-taken-code-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-code-no-record-phone.png b/webapp/e2e/screens/order-taken-code-no-record-phone.png index 82a9129..1676f66 100644 Binary files a/webapp/e2e/screens/order-taken-code-no-record-phone.png and b/webapp/e2e/screens/order-taken-code-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-taken-code-phone.png b/webapp/e2e/screens/order-taken-code-phone.png index c4adb20..cd57c81 100644 Binary files a/webapp/e2e/screens/order-taken-code-phone.png and b/webapp/e2e/screens/order-taken-code-phone.png differ diff --git a/webapp/e2e/screens/order-taken-codes-only-desktop.png b/webapp/e2e/screens/order-taken-codes-only-desktop.png index af9fa1b..9f89bc3 100644 Binary files a/webapp/e2e/screens/order-taken-codes-only-desktop.png and b/webapp/e2e/screens/order-taken-codes-only-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-codes-only-phone.png b/webapp/e2e/screens/order-taken-codes-only-phone.png index bc97e8e..7662fde 100644 Binary files a/webapp/e2e/screens/order-taken-codes-only-phone.png and b/webapp/e2e/screens/order-taken-codes-only-phone.png differ diff --git a/webapp/e2e/screens/order-taken-no-record-desktop.png b/webapp/e2e/screens/order-taken-no-record-desktop.png index e74b5ec..033710a 100644 Binary files a/webapp/e2e/screens/order-taken-no-record-desktop.png and b/webapp/e2e/screens/order-taken-no-record-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-no-record-phone.png b/webapp/e2e/screens/order-taken-no-record-phone.png index 8c4f69d..229afa1 100644 Binary files a/webapp/e2e/screens/order-taken-no-record-phone.png and b/webapp/e2e/screens/order-taken-no-record-phone.png differ diff --git a/webapp/e2e/screens/order-taken-outpaid-desktop.png b/webapp/e2e/screens/order-taken-outpaid-desktop.png index 51014b7..4c82542 100644 Binary files a/webapp/e2e/screens/order-taken-outpaid-desktop.png and b/webapp/e2e/screens/order-taken-outpaid-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-outpaid-phone.png b/webapp/e2e/screens/order-taken-outpaid-phone.png index 9805763..e963011 100644 Binary files a/webapp/e2e/screens/order-taken-outpaid-phone.png and b/webapp/e2e/screens/order-taken-outpaid-phone.png differ diff --git a/webapp/e2e/screens/order-taken-reserved-desktop.png b/webapp/e2e/screens/order-taken-reserved-desktop.png index c7bbc9f..7c36a5e 100644 Binary files a/webapp/e2e/screens/order-taken-reserved-desktop.png and b/webapp/e2e/screens/order-taken-reserved-desktop.png differ diff --git a/webapp/e2e/screens/order-taken-reserved-phone.png b/webapp/e2e/screens/order-taken-reserved-phone.png index f51e3bd..1548ff9 100644 Binary files a/webapp/e2e/screens/order-taken-reserved-phone.png and b/webapp/e2e/screens/order-taken-reserved-phone.png differ diff --git a/webapp/e2e/screens/order-unknown-link-desktop.png b/webapp/e2e/screens/order-unknown-link-desktop.png index 235b08c..90e8990 100644 Binary files a/webapp/e2e/screens/order-unknown-link-desktop.png and b/webapp/e2e/screens/order-unknown-link-desktop.png differ diff --git a/webapp/e2e/screens/order-unknown-link-phone.png b/webapp/e2e/screens/order-unknown-link-phone.png index 374ae75..05dd576 100644 Binary files a/webapp/e2e/screens/order-unknown-link-phone.png and b/webapp/e2e/screens/order-unknown-link-phone.png differ diff --git a/webapp/e2e/screens/order-unreadable-desktop.png b/webapp/e2e/screens/order-unreadable-desktop.png index c3d6ae9..b7687f8 100644 Binary files a/webapp/e2e/screens/order-unreadable-desktop.png and b/webapp/e2e/screens/order-unreadable-desktop.png differ diff --git a/webapp/e2e/screens/order-unreadable-phone.png b/webapp/e2e/screens/order-unreadable-phone.png index 7c3821b..c8147ce 100644 Binary files a/webapp/e2e/screens/order-unreadable-phone.png and b/webapp/e2e/screens/order-unreadable-phone.png differ diff --git a/webapp/e2e/search.spec.ts b/webapp/e2e/search.spec.ts index ead88f1..184c19e 100644 --- a/webapp/e2e/search.spec.ts +++ b/webapp/e2e/search.spec.ts @@ -20,10 +20,10 @@ test("search answers every kind of name", async ({ page, request }) => { await shot(page, "N1a-typed") await search(page, "abc") - await expect(page.getByText(/3 letters\. A name has 6 letters or more/)).toBeVisible() + await expect(page.getByText(/3 letters\. Please use 6 letters or more/)).toBeVisible() await shot(page, "N1b-short") await search(page, "bad_name") - await expect(page.getByText(/^Use only a\W+z, 0\W+9 and single hyphens between them\.$/)).toBeVisible() + await expect(page.getByText(/^Please use only a\W+z, 0\W+9 and single hyphens between them\.$/)).toBeVisible() await shot(page, "N1c-chars") await search(page, "bakery") @@ -61,11 +61,11 @@ test("search answers every kind of name", async ({ page, request }) => { await control(request, "search", { chainDown: true }) await search(page, uniqueLabel("down")) - await expect(page.locator(".answer .line")).toHaveText("This name could not be checked. Try again") + await expect(page.locator(".answer .line")).toHaveText("The name could not be checked now. Try again") await shot(page, "N2d-unchecked") await control(request, "search", { chainDown: false, limitSeconds: 30 }) await search(page, uniqueLabel("lim")) - await expect(page.locator(".answer [aria-hidden=true]", { hasText: /^Searching is paused: try again in \d+ seconds\.$/ })).toBeVisible() + await expect(page.locator(".answer [aria-hidden=true]", { hasText: /^Too many attempts\. Please try again in \d+ seconds\.$/ })).toBeVisible() await expect(page.getByRole("button", { name: "Search" })).toBeDisabled() await shot(page, "N2e-rate-limited") }) @@ -113,7 +113,7 @@ test("the checkout explains every refusal and keeps the order", async ({ page, r await control(request, "search", { invoiceError: "provider_unavailable" }) await pay() - await expect(page.getByText("Bitcoin is temporarily unavailable")).toBeVisible() + await expect(page.getByText("Bitcoin is unavailable right now")).toBeVisible() await shot(page, "N3a-method-unavailable") await page.getByRole("radio", { name: "Monero" }).click() @@ -126,9 +126,9 @@ test("the checkout explains every refusal and keeps the order", async ({ page, r await control(request, "search", { invoiceError: "internal" }) await pay() - await expect(page.getByRole("heading", { name: "That did not go through" })).toBeVisible() - await expect(page.getByText("Nothing was charged. If this happens again, contact support via chat@simplex.chat or SimpleX.")).toBeVisible() - await expect(page.locator(".notice", { hasText: "Nothing was charged" }).getByRole("link", { name: "SimpleX", exact: true })).toHaveAttribute("href", /^https:\/\/smp6\.simplex\.im\/a#/) + await expect(page.getByRole("heading", { name: "The order could not be placed" })).toBeVisible() + await expect(page.getByText("Please try again. If this happens again, contact support via chat@simplex.chat or SimpleX.")).toBeVisible() + await expect(page.locator(".notice", { hasText: "Please try again" }).getByRole("link", { name: "SimpleX", exact: true })).toHaveAttribute("href", /^https:\/\/smp6\.simplex\.im\/a#/) await shot(page, "N3d-failed") // Try again sends the same order again, which meets the next refusal await control(request, "search", { invoiceError: "catalog_changed" }) @@ -161,7 +161,7 @@ test("without storage the name code step says the code shown is the only copy, a await search(page, label) await toCodeStep(page) await expect(onStep(page).getByText("This code could not be saved in this browser")).toBeVisible() - await expect(onStep(page).getByText("Save a copy now: it will be the only one.")).toBeVisible() + await expect(onStep(page).getByText("Please save a copy now.")).toBeVisible() await shot(page, "N3f-no-storage") await page.goto("/") const { invoiceId } = await startOrder(page, label, { method: "btc" }) @@ -235,7 +235,7 @@ test("a name code's lookup refused for a rate limit counts down its wait, and th await page.goto("/#/code") await codeField(page).fill(ownerCode) const count = page.locator(".code-entry .verdict [aria-hidden=true]") - await expect(count).toHaveText(/^Too many checks just now\. Your code may be fine\. Checking again in \d seconds\.$/) + await expect(count).toHaveText(/^Too many attempts\. Checking again in \d seconds\.$/) const add = page.getByRole("button", { name: "Add to Your names" }) await expect(add).toHaveCount(0) // once the wait is over, the code is judged again by itself @@ -277,8 +277,8 @@ test("Back to a search from the links step shows its answer at once", async ({ p }) for (const [failure, change, shown] of [ - ["the service is down", { chainDown: true }, "This name could not be checked"], - ["searching is rate limited", { limitSeconds: 10 }, "Searching is paused"], + ["the service is down", { chainDown: true }, "The name could not be checked now"], + ["searching is rate limited", { limitSeconds: 10 }, "Too many attempts"], ] as const) { test(`Back to a search whose check fails because ${failure} no longer offers the remembered answer`, async ({ page, request }) => { await search(page, uniqueLabel("backfail")) @@ -300,7 +300,7 @@ test("a search pause reads the same after leaving the page and coming back", asy await page.getByLabel("Name", { exact: true }).fill(uniqueLabel("pauseback")) await page.getByLabel("Name", { exact: true }).press("Enter") const notice = page.locator(".answer .line") - await expect(notice).toContainText("Searching is paused: try again in") + await expect(notice).toContainText("Too many attempts. Please try again in") const before = (await notice.innerText()).replace(/try again in \d+ seconds?/g, "") await page.getByRole("link", { name: "Your names" }).first().click() await expect(page.getByRole("heading", { name: "Your names" })).toBeVisible() @@ -328,7 +328,7 @@ test("search shows an expired name of yours with when it ran out and when it can await page.route("**/api/name/**", (route) => route.fulfill({ json: registeredAnswer(OWNER, expiresAt, { contact: "", channel: "" }, [], 0, GRACE_S) })) await page.goto(`/#/?name=${label}`) await expect(page.locator(".answer .row")).toContainText("Expired") - await expect(page.locator(".answer .line")).toHaveText(`Its registration ran out on ${dateOf(expiresAt)}. It can be registered again from ${dateOf(expiresAt + GRACE_S)}.`) + await expect(page.locator(".answer .line")).toHaveText(`Expired: ${dateOf(expiresAt)}. Anybody can register it from ${dateOf(expiresAt + GRACE_S)}.`) }) const SEARCH_RTT_MS = 300 @@ -345,12 +345,12 @@ test("as a search pause ends, the paused line gives way to a checking line rathe await control(request, "search", { limitSeconds: 1 }) await page.getByLabel("Name", { exact: true }).fill(uniqueLabel("resume")) await page.getByLabel("Name", { exact: true }).press("Enter") - await expect(page.locator(".answer .line", { hasText: "Searching is paused" })).toBeVisible() + await expect(page.locator(".answer .line", { hasText: "Too many attempts" })).toBeVisible() await expect(page.locator(".answer .row")).toBeVisible({ timeout: 30_000 }) const frames = await recordedFrames(page) - const paused = frames.findIndex((f) => f.startsWith("Searching is paused")) + const paused = frames.findIndex((f) => f.startsWith("Too many attempts")) const answered = frames.indexOf("answer") expect(paused, "a frame with the paused line").toBeGreaterThanOrEqual(0) const between = [...new Set(frames.slice(paused, answered))] - expect(between.filter((f) => !f.startsWith("Searching is paused") && f !== "Checking the name…"), "what showed between the pause and the answer").toEqual([]) + expect(between.filter((f) => !f.startsWith("Too many attempts") && f !== "Checking the name…"), "what showed between the pause and the answer").toEqual([]) }) diff --git a/webapp/e2e/taken.spec.ts b/webapp/e2e/taken.spec.ts index 3ac2a87..5ba0dda 100644 --- a/webapp/e2e/taken.spec.ts +++ b/webapp/e2e/taken.spec.ts @@ -22,20 +22,20 @@ const phaseOf = async (request: APIRequestContext, invoiceId: string) => ((await test("an order another buyer's paid order took first shows no stage done, as it never committed", async ({ page }) => { await paidOrder(page, "outpaid", { phase: { type: "taken" }, balance: { amount: 10000, refunded: 0 } }) - await expect(onStep(page).locator(".screen-head .lead")).toHaveText("Someone has taken this name.") + await expect(onStep(page).locator(".screen-head .lead")).toHaveCount(0) await expect(onStep(page).locator(".stage.done")).toHaveCount(0) await expect(onStep(page).locator(".stage.failed")).toHaveText("Committing") }) test("a paid order whose signature the service refused says to contact support in a whole sentence", async ({ page }) => { await paidOrder(page, "refused", { phase: { type: "failed", reason: "signatureRefused" }, commitTx: "0x02" }) - await expect(onStep(page).locator(".notice", { hasText: "The name could not be registered" })).toContainText("and include order reference inv-refused.") + await expect(onStep(page).locator(".notice", { hasText: "The name could not be registered" })).toContainText("with the name and the order reference inv-refused.") }) test("a name taken first keeps its payment as its balance, with which a name selected for the order is registered, owned by the same code", async ({ page, request }) => { const label = uniqueLabel("tk") const { invoiceId, ownerCode } = await takenOrder(page, request, label) - await expect(onStep(page).locator(".notice", { hasText: "What you paid is kept as your balance." })).toBeVisible() + await expect(onStep(page).locator(".notice", { hasText: "What you paid is in your balance." })).toBeVisible() await expect(onStep(page).locator(".stage.failed")).toHaveText("Taken") await expect(page.getByText(`Reference ${invoiceId}`)).toBeVisible() await shot(page, "N8-taken") @@ -84,7 +84,7 @@ test("a paid order whose name was reserved meanwhile says so, and keeps its paym await expect(page.getByRole("heading", { name: `${label}.simplex is reserved` })).toBeVisible({ timeout: REGISTRATION_MS }) await expect(onStep(page).locator(".lead")).toHaveText("It was reserved meanwhile, so it can't be registered.") await expect(onStep(page).locator(".stage.failed")).toHaveText("Reserved") - await expect(onStep(page).locator(".notice", { hasText: "What you paid is kept as your balance." })).toBeVisible() + await expect(onStep(page).locator(".notice", { hasText: "What you paid is in your balance." })).toBeVisible() await expect(onStep(page).getByRole("button", { name: "Choose another name" })).toBeEnabled() }) @@ -126,8 +126,8 @@ test("a failed registration keeps its payment for support, also in another tab", // the page's sentence for the service's reason, then what the buyer can do, with support's address for the reference below const alert = onStep(page).locator(".notice", { hasText: "The name could not be registered" }) // the lead above already says the payment is kept - await expect(onStep(page).locator(".screen-head .lead")).toHaveText("Your payment is kept. Write to support.") - await expect(alert).toHaveText(`The name could not be registeredContact support via chat@simplex.chat or SimpleX, and include order reference ${invoiceId}.`) + await expect(onStep(page).locator(".screen-head .lead")).toHaveText("Your payment is kept.") + await expect(alert).toHaveText(`The name could not be registeredPlease contact support via chat@simplex.chat or SimpleX, with the name and the order reference ${invoiceId}.`) await expect(alert.getByRole("link", { name: "chat@simplex.chat" })).toHaveAttribute("href", "mailto:chat@simplex.chat") await expect(alert.getByRole("link", { name: "SimpleX", exact: true })).toHaveAttribute("href", /^https:\/\/smp6\.simplex\.im\/a#/) // the order's line centred under the heading and its lead, as it is when it is the lead @@ -140,7 +140,7 @@ test("a failed registration keeps its payment for support, also in another tab", const other = await page.context().newPage() await other.goto(`/?order=${invoiceId}`) await expect(other.getByRole("heading", { name: "Paid, not registered" })).toBeVisible() - await expect(onStep(other).locator(".screen-head .lead")).toHaveText("Your payment is kept. Write to support.") + await expect(onStep(other).locator(".screen-head .lead")).toHaveText("Your payment is kept.") for (const tab of [page, other]) { await expect(tab.getByRole("button", { name: "Try again" })).toHaveCount(0) await expect(tab.getByRole("button", { name: "Choose another name" })).toHaveCount(0) @@ -177,7 +177,7 @@ test("an order failed while its page was not read says until when the name stays const view = await (await request.get(`${MOCK}/api/registration/${registrationId}`)).json() as { phase: { heldUntil: string } } const until = dateOf(Date.parse(view.phase.heldUntil) / 1000) await expect(onStep(page).locator(".notice", { hasText: "The order was not opened for 3 days" })).toHaveText( - `The order was not opened for 3 daysYour payment is received. Until ${until}, this service accepts no other order for the name. Choose Continue to sign the registration again, or contact support via chat@simplex.chat or SimpleX, and include order reference ${invoiceId}.`) + `The order was not opened for 3 daysPlease choose Continue before ${until} to finish the registration, or contact support via chat@simplex.chat or SimpleX, with the name and the order reference ${invoiceId}.`) await expect(page.getByRole("button", { name: "Choose another name" })).toHaveCount(0) await page.unrouteAll({ behavior: "wait" }) await onStep(page).getByRole("button", { name: "Continue" }).click() @@ -229,7 +229,7 @@ test("a late payment to a replaced invoice is kept by a restored browser after a await waitRegistered(restored, next) await control(request, `partial/${invoiceId}`) await restored.goto(`/?order=${invoiceId}`) - await expect(restored.getByText(/BTC arrived, which is not the full amount/)).toBeVisible() + await expect(restored.getByText(/BTC was received, which is not the full amount/)).toBeVisible() await restored.goto("/#/names") // the taken order and the replaced one that the money reached each have a row of the name await expect(restored.locator(".list-row:visible", { hasText: `${label}.simplex` }).filter({ hasText: "Part of the payment arrived; kept as your balance" })).toHaveCount(1) diff --git a/webapp/e2e/track.spec.ts b/webapp/e2e/track.spec.ts index 2a8a3cb..7563caf 100644 --- a/webapp/e2e/track.spec.ts +++ b/webapp/e2e/track.spec.ts @@ -234,7 +234,7 @@ const CARD_SIZES = [{ width: 1280, height: 800 }, { width: 600, height: 800 }, { const PHONE_WIDTH = 520 // the least room between Stripe's note under Cancel and the invest note under the step const ROOM_ABOVE_INVEST = 16 -const FORGETFUL = /^This browser cannot remember a card payment\. After paying, keep this page open until it moves on\. Reloading would show the card form again\.$/ +const FORGETFUL = /^This order cannot be saved in this browser\. Please keep this page open until the payment is confirmed\.$/ // the card page's parts top to bottom, as the eye reads them const CARD_PARTS = ["heading", "lead", "notice", "form", "button", "cancel", "stripeNote", "invest"] as const @@ -305,6 +305,7 @@ async function cardFits(page: Page, notice: RegExp, open: () => Promise, { expect(stripeNote!.top, `${where}: Stripe's note under Cancel`).toBeGreaterThanOrEqual(cancel!.bottom) expect(invest!.top - stripeNote!.bottom, `${where}: the room between Stripe's note and the invest note`).toBeGreaterThanOrEqual(ROOM_ABOVE_INVEST) expect(await offCentre(onStep(page).locator(".stripe-note")), `${where}: Stripe's note centred`).toBeLessThanOrEqual(1) + expect(await page.evaluate(() => document.scrollingElement!.scrollWidth), `${where}: the page no wider than the window`).toBeLessThanOrEqual(size.width) if (!scrolls && formPx <= room && FIT_SIZES.some((fit) => fit.width === size.width && fit.height === size.height)) expect(await overflow(page), where).toBe(0) // an error line under a field: the form grows past its room by the line, and Pay and what follows move down with it await growCard(page, ERROR_LINE_PX) @@ -363,7 +364,7 @@ test.describe(() => { const copy = await page.context().newPage() await copy.addInitScript(([key, value]) => { if (!sessionStorage.getItem(key)) sessionStorage.setItem(key, value) }, [CHECKOUT_KEY, checkout]) await withStripeKey(copy) - await cardFits(copy, /^This name already has a card invoice from an earlier try, so it opened instead of a new Bitcoin one\.$/, async () => { + await cardFits(copy, /^You already have an open invoice for this name\.$/, async () => { await copy.goto("/#/checkout") await copy.getByRole("radio", { name: "Bitcoin" }).click() await payButton(copy).click() @@ -467,7 +468,7 @@ test.describe(() => { { cryptoAmountPaid: "0.00156", cryptoAmountDue: "0", paidInFull: true }), "Invoice closed") await expect(onStep(page).getByRole("button", { name: "Get a refund" })).toBeVisible() await shown("o3-paid-not-registered", invoiceOf(order, "paid", { phase: { type: "failed", reason: "registryRefused" }, commitTx: "0x02" }), "Paid, not registered") - await shown("o4-taken", invoiceOf(order, "paid", { phase: { type: "taken" }, commitTx: "0x02", balance: { amount: 10000, refunded: 0 } }), /was taken$/) + await shown("o4-taken", invoiceOf(order, "paid", { phase: { type: "taken" }, commitTx: "0x02", balance: { amount: 10000, refunded: 0 } }), /is no longer available$/) await expect(onStep(page).getByRole("button", { name: "Get a refund" })).toBeVisible() // a taken order seen in a browser without its code, which says where to add the code const elsewhere = await browser.newContext() @@ -489,7 +490,7 @@ test.describe(() => { await page.getByRole("radio", { name: "Card" }).click() await page.route("**/api/invoice", (route) => route.request().method() === "POST" ? route.fulfill({ status: 503, json: { type: "provider_unavailable" } }) : route.continue()) await payButton(page).click() - await expect(onStep(page).getByText("Card is temporarily unavailable")).toBeVisible() + await expect(onStep(page).getByText("Card is unavailable right now")).toBeVisible() await fitsWindow(page, "o6-review-code-and-method-refused", frames) await page.unroute("**/api/invoice") await page.route("**/api/invoice", (route) => route.request().method() === "POST" ? route.fulfill({ status: 409, json: { type: "catalog_changed", price: 12345 } }) : route.continue()) @@ -524,7 +525,7 @@ test(`Edit links fits both windows with its answer, for a name of ${MAX_LABEL_LE await onStep(page).getByRole("textbox", { name: "Link", exact: true }).fill(contactLink("E4")) await previewsShown(page) await onStep(page).getByRole("button", { name: "Save links" }).click() - await expect(onStep(page).getByText("An earlier save got there first")).toBeVisible() + await expect(onStep(page).getByText("The links were changed elsewhere")).toBeVisible() await previewsShown(page) await fitsWindow(page, "e2-edit-links-moved", frames) oneFrame(frames) @@ -552,7 +553,7 @@ const homeTops = (page: Page) => page.evaluate(() => ["h1", ".search-field"].map test("a step's lead breaks where the mockup does on a laptop: in two even lines, or at its line break", async ({ page }) => { await search(page, uniqueLabel("lead")) await page.getByRole("button", { name: "Register" }).click() - await expect(lineStarts(onStep(page).locator(".lead"))).resolves.toEqual(["P", "o"]) + await expect(lineStarts(onStep(page).locator(".lead"))).resolves.toEqual(["P", "c"]) await page.goto("/#/code") await expect(lineStarts(onStep(page).locator(".lead"))).resolves.toEqual(["A", "A"]) }) @@ -647,16 +648,16 @@ test("the registering page keeps its heading still on a phone from the commit to await useCode(page, code) await search(page, label) await toReview(page) - // each frame's heading top and the words under the clock, while the heading is the registering page's + // each frame's heading top and its active stage, while the heading is the registering page's await recordFrames(page, () => { const heading = document.querySelector("body > main h1") - const note = document.querySelector(".countdown p")?.firstChild?.textContent ?? "" - return heading?.textContent!.startsWith("Registering") ? [Math.round(heading.getBoundingClientRect().top), note] : null + const stage = document.querySelector(".stage.active")?.textContent ?? "" + return heading?.textContent!.startsWith("Registering") ? [Math.round(heading.getBoundingClientRect().top), stage] : null }) await onStep(page).getByRole("button", { name: "Register with your code" }).click() await waitRegistered(page, label) const frames = await recordedFrames<[number, string]>(page) - expect(new Set(frames.map(([, note]) => note)).size, "the page went through more than one stage").toBeGreaterThan(1) + expect(new Set(frames.map(([, stage]) => stage)).size, "the page went through more than one stage").toBeGreaterThan(1) expect([...new Set(frames.map(([top]) => top))], "the heading's top in each frame").toHaveLength(1) }) @@ -731,14 +732,14 @@ test.describe(() => { test("a commit that does not move on for longer than usual says so in its words' place, and nothing moves", async ({ page, request }) => { await heldAtCommit(page, request, "stall", async () => { const words = page.locator(".countdown p > :not(.sizer)") - await expect(words).toHaveText("Placing your order. The wait starts once it is in.") + await expect(words).toHaveText("It will take a few minutes and will continue automatically.") const before = await registeringPlaces(page) // the page reads the time by the service's Date header, which now says the commit has stood still past its margin await page.route("**/api/registration/*", async (route) => { const response = await route.fetch() await route.fulfill({ response, headers: { ...response.headers(), date: new Date(Date.now() + AHEAD_MS).toUTCString() } }) }) - await expect(words).toHaveText("This is taking longer than usual. It continues by itself.") + await expect(words).toHaveText("This is taking longer than usual. It will continue automatically.") expect(await registeringPlaces(page), "the heading, the countdown, its words' cell and the reference").toEqual(before) // a long poll the route still holds would fail once the test ends await page.unrouteAll({ behavior: "ignoreErrors" }) @@ -802,10 +803,10 @@ test("a part paid takes the name's note with its notice, the payment keeping its await expect(onStep(page).getByText("The name is available")).toBeVisible() const before = await headingAt(page) await control(request, `partial/${invoiceId}`) - await expect(onStep(page).locator(".notice.warn", { hasText: "Part of the payment arrived" })).toBeVisible() + await expect(onStep(page).locator(".notice.warn", { hasText: "Part of the payment was received" })).toBeVisible() expect(await headingAt(page), `the heading at ${size.width}x${size.height}`).toEqual(before) expect(await overflow(page), `the page's overflow at ${size.width}x${size.height}`).toBe(0) - await expect(onStep(page).getByText(/^Part of the payment arrived: [\d.]+ of [\d.]+ BTC is seen\./)).toBeVisible() + await expect(onStep(page).getByText(/^Part of the payment was received\./)).toBeVisible() await expect(onStep(page).locator(".name-check")).toHaveCount(0) } await shot(page, "names-u1-part-paid") @@ -878,7 +879,7 @@ test("a line on another order waiting comes into the review below its heading, t for (const size of FIT_SIZES) { await page.setViewportSize(size) await toFullReview(page, uniqueLabel("other")) - await expect(onStep(page).getByText("Another order is waiting for its payment.")).toBeVisible() + await expect(onStep(page).getByText("Another order is open.")).toBeVisible() await headingAt(page) const tops = [...new Set(await recordedFrames(page))] expect(tops, `the review heading's tops at ${size.width}x${size.height}`).toHaveLength(1) @@ -976,7 +977,7 @@ test("a refused link reads as a line under its field, and a refused code in a bo const link = step.getByRole("textbox", { name: "Link", exact: true }) await link.fill("https://example.com/x#nothing") const refusal = step.locator(".field-error") - await expect(refusal).toHaveText("This is not a SimpleX contact address or channel link.") + await expect(refusal).toHaveText("This is not a SimpleX link. Please copy the link from the SimpleX app.") const [drawn, box] = [(await refusal.boundingBox())!, (await step.locator(".link-field .field").boundingBox())!] expect({ under: Math.round(drawn.y - box.y - box.height), icon: await refusal.locator("svg").count() }, `the refused link at ${size.width}x${size.height}`).toEqual({ under: 8, icon: 0 }) await page.goto("/#/code") @@ -1069,7 +1070,7 @@ for (const length of [25, MAX_LABEL_LENGTH]) { await step.getByRole("button", { name: "Add a channel link" }).click() const before = await headingAt(page) await step.getByRole("textbox", { name: "Channel" }).fill(contactLink("V3")) - await expect(step.locator(".field-error")).toHaveText("This is a contact address. Paste a channel link here.") + await expect(step.locator(".field-error")).toHaveText("This is a contact address. Please paste a channel link here.") expect(await headingAt(page), `the heading at ${size.width}x${size.height}`).toEqual(before) expect(await overflow(page), `the page's overflow at ${size.width}x${size.height}`).toBe(0) await fitsWindow(page, `links-refused-${length}`) diff --git a/webapp/src/screens/checkout.ts b/webapp/src/screens/checkout.ts index 6abe6ad..0ca6793 100644 --- a/webapp/src/screens/checkout.ts +++ b/webapp/src/screens/checkout.ts @@ -10,7 +10,7 @@ export type Refusal = "price-changed" | "too-many" | "failed" | "taken" | "unava export type CheckoutKind = CheckoutStep | `status:${Refusal}` export interface WaitingOrder { registrationId: string; invoiceId: string } -interface OpenOrder { invoiceId: string; confirming: boolean } +interface OpenOrder { invoiceId: string } export interface CheckoutState { step: CheckoutStep diff --git a/webapp/src/screens/hold.ts b/webapp/src/screens/hold.ts index 0c8b999..b67a238 100644 --- a/webapp/src/screens/hold.ts +++ b/webapp/src/screens/hold.ts @@ -1,3 +1,4 @@ // a wait the service asked for: when it ends, on the service's clock, and the words said before the countdown export interface Hold { until: number; lead: string } export const NO_LEAD = "" +export const LIMITED_LEAD = "Too many attempts. Please " diff --git a/webapp/src/screens/names.ts b/webapp/src/screens/names.ts index 732b200..97b8abe 100644 --- a/webapp/src/screens/names.ts +++ b/webapp/src/screens/names.ts @@ -2,7 +2,7 @@ import { holdsPayment, type CodeState, type Found, type InvoiceView, type LateWa import { YEAR_S } from "../crypto/registration.ts" import { dateOf, dollars, methodName } from "../format.ts" import { type CodeRecord, type OrderRecord, orderUrl, type PendingCode } from "../store.ts" -import { type Hold, NO_LEAD } from "./hold.ts" +import { type Hold, LIMITED_LEAD, NO_LEAD } from "./hold.ts" export interface RowSeen { view: RegistrationView; invoice: InvoiceView | null; answer?: SearchAnswer | null } export type CodeCheck = CodeState | "unchecked" @@ -170,7 +170,7 @@ export const waitsToSign = (view: RegistrationView, now: number) => const PHASE_CHIPS: Record, [string, string]> = { unpaid: ["Waiting for payment", "warn"], queued: ["Registering", "brand"], committing: ["Registering", "brand"], committed: ["Registering", "brand"], registering: ["Registering", "brand"], - registered: ["Registered", "ok"], ended: ["Ended", "bad"], taken: ["Taken first", "warn"], failed: ["Not registered", "bad"], + registered: ["Registered", "ok"], ended: ["Cancelled", "bad"], taken: ["Taken first", "warn"], failed: ["Not registered", "bad"], } const CHIPS = { @@ -238,9 +238,9 @@ type RefusalKind = "none" | "unasked" | "other" export interface Refusal { title: string; text: string; again: boolean } // why a name code found no order to add; only the service's not answering can change by asking again export const REFUSALS: Record = { - none: { title: "No order was found for this code", text: "The service has no order registered to its wallet.", again: false }, - unasked: { title: "The service could not be asked now", text: "Your code is fine to try again in a moment.", again: true }, - other: { title: "This code does not open the order", text: "The order found for it was made with another code.", again: false }, + none: { title: "No order was found for this name code", text: "", again: false }, + unasked: { title: "The code could not be checked now", text: "Please try again in a moment.", again: true }, + other: { title: "This order could not be opened with this name code", text: "Please contact support.", again: false }, } export interface RestoreState { busy: boolean; refusal: RefusalKind | null; hold: Hold | null } @@ -314,13 +314,7 @@ export function registrableAgain(expiresAt: number | null, { found }: SearchAnsw return { when: "taken" } } -export const ranOut = (expiresAt: number | null) => `Its registration ran out${expiresAt ? ` on ${dateOf(expiresAt)}` : ""}.` - -export function againLine(expiresAt: number | null, answer: SearchAnswer, now: number): string { - const again = registrableAgain(expiresAt, answer, now) - if (again.when === "now") return "Search it to register it again." - return again.when === "from" ? `It can be registered again from ${dateOf(again.at)}.` : "It has been registered again since." -} +export const ranOut = (expiresAt: number | null) => `Your registration of this name expired${expiresAt ? ` on ${dateOf(expiresAt)}` : ""}.` // Each Save is one edit of the name's yearly count, whatever it changes, and returns 365 days after it was made, so the // oldest counted edit, or this one when none was counted, is the next to return. At is the service's time in seconds. @@ -338,7 +332,7 @@ export function editsLine(f: EditForm): string { } // a Save is one transaction, so a Save that fails changed no link -export const NOT_SAVED = "The links were not saved." +export const NOT_SAVED = "Not saved." const owns = (found: Extract, owner: string) => found.owner.toLowerCase() === owner.toLowerCase() @@ -381,7 +375,7 @@ function applyToForm(f: EditForm, e: EditEvent): EditForm { return { ...saved, saving: false, result: "saved", settled: Object.keys(changesOf(saved)).length === 0 } } case "save-unanswered": return { ...f, saving: false, unanswered: true, result: "unanswered", edits: e.counted ? spent(f.edits, e.at) : f.edits } - case "save-held": return { ...f, saving: false, result: null, hold: { until: e.until, lead: `${NOT_SAVED} ` } } + case "save-held": return { ...f, saving: false, result: null, hold: { until: e.until, lead: LIMITED_LEAD } } // the edits line says when they return case "save-limited": return { ...f, saving: false, result: null, edits: { left: 0, nextAt: e.nextAt } } case "save-refused": { diff --git a/webapp/src/screens/order.ts b/webapp/src/screens/order.ts index 487dbfc..e36d5f9 100644 --- a/webapp/src/screens/order.ts +++ b/webapp/src/screens/order.ts @@ -141,7 +141,7 @@ function apply(s: OrderState, e: OrderEvent): OrderState { } const RETRY_CODE_NOTES: Record = { - code_used: ["Your code was used for another name", "A code registers one name only."], + code_used: ["Your code was used for another name", ""], code_invalid: ["This code is not valid", "The service no longer accepts it."], code_expired: ["This code has expired", "An expired code cannot register a name."], } @@ -169,8 +169,7 @@ export function reduce(state: OrderState, event: OrderEvent): OrderState { // The code is said to be kept only once the service says so; a browser that restored the order has not got its code. export function failedLead({ invoice, codeRefused, codeKept, record }: OrderState): string { - const kept = invoice ? "Your payment is kept. " : codeRefused ? "Your code can no longer be used for it. " : record?.prepaidCode && codeKept ? "Your code is kept. " : "" - return `${kept}Write to support.` + return invoice ? "Your payment is kept." : codeRefused ? "" : record?.prepaidCode && codeKept ? "Your code is kept." : "" } const FAILED_TITLES: Record = { diff --git a/webapp/src/styles.css b/webapp/src/styles.css index 147638a..8b4aed4 100644 --- a/webapp/src/styles.css +++ b/webapp/src/styles.css @@ -500,9 +500,7 @@ html:not(.theming) .notice.name-check { transition: background-color 200ms, bord .stripe { border-radius: 16px; } /* the card page is drawn tighter, so its notice and Stripe's form fit above Pay, and Stripe's note goes under Cancel */ .screen-body:has(> .stripe) { gap: 10px; } -/* one line across the column, 355 px wide at 13 px, so it keeps clear of the invest note on the narrowest phone */ -.actions-row:has(.stripe-note) { container-type: inline-size; } -.actions-row .stripe-note { display: block; margin-top: 4px; font-size: min(13px, 100cqi / 28); line-height: 1.3; white-space: nowrap; } +.actions-row .stripe-note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; white-space: normal; text-wrap: balance; } /* Edit links' count of edits left: one line under Save, held while empty, its longest "You can edit links again on 29 September 2027." */ .actions-row:has(.edit-count) { container-type: inline-size; } .actions-row .edit-count { min-height: 1lh; font-size: min(var(--fs-small), 100cqi / 26); white-space: nowrap; } diff --git a/webapp/src/views/checkout.ts b/webapp/src/views/checkout.ts index 8fa2781..473ab57 100644 --- a/webapp/src/views/checkout.ts +++ b/webapp/src/views/checkout.ts @@ -15,7 +15,7 @@ import { type CheckoutStep, checkoutUrl, CODE_URL } from "../screens/routes.ts" import { ticked } from "../screens/terms.ts" import * as session from "../session.ts" import * as store from "../store.ts" -import { CODE_ERRORS, codeField, CODES_ONLY_TITLE, type CodeVerdict } from "./codes.ts" +import { CODE_ERRORS, codeField, CODES_ONLY_LINE, CODES_ONLY_TITLE, type CodeVerdict } from "./codes.ts" import { CHECKING_LINK, linkChat, linkFieldsFor, linksSettled } from "./links.ts" import { asStep, type Builder, currentRoute, draw, focusOn, go, goFrom, isRedraw, isRoute, kept, keptLive, limitScreen, outcome, redirect, refresh, screen, searchLink, supportVia, whenLeaving, @@ -147,7 +147,7 @@ async function showOpenOrder(signal: AbortSignal): Promise { const open = invoices.find(unpaid) if (!open || signal.aborted) return const show = (seen: api.InvoiceView | null) => { - const order = unpaid(seen) ? { invoiceId: open.invoiceId, confirming: seen.paidInFull === true } : null + const order = unpaid(seen) ? { invoiceId: open.invoiceId } : null if (!signal.aborted && JSON.stringify(order) !== JSON.stringify(state.openOrder)) dispatch({ type: "open-order-seen", order }) return order !== null } @@ -219,9 +219,9 @@ function methodsBlock({ checkout: c, openOrder: order, sending }: CheckoutState) methodMark(m), el("b", {}, methodName(m))) }) return el("section", { class: "pay-with" }, - order ? el("p", { class: "note other-order" }, `Another order ${order.confirming ? "is confirming its payment" : "is waiting for its payment"}. `, + order ? el("p", { class: "note other-order" }, "Another order is open. ", el("a", { class: "nowrap", href: store.invoiceUrl(order.invoiceId) }, "Open that order")) : null, - c.unavailable ? line("warn", "alert", `${methodName(c.unavailable)} is temporarily unavailable. Try another method, or come back later.`) : null, + c.unavailable ? line("warn", "alert", `${methodName(c.unavailable)} is unavailable right now. Please choose another way to pay.`) : null, el("div", { class: "methods", role: "radiogroup", "aria-label": "Pay with" }, ...radios)) } @@ -274,8 +274,8 @@ function removeLink(s: CheckoutState): HTMLAnchorElement | null { } const waitingNotice = (blocked: WaitingOrder) => el("section", { class: "pay-with" }, - alertBox("info", "info", "You have an order waiting to be confirmed", "A second order would be a second charge, so this one cannot start yet. When that payment is confirmed or expires, you can start a new one here."), - el("div", {}, btn("Open the waiting order", "quiet", () => go(store.invoiceUrl(blocked.invoiceId))))) + alertBox("info", "info", "You have an order waiting to be confirmed", "Please wait until your other card payment is confirmed."), + el("div", {}, btn("Open the other order", "quiet", () => go(store.invoiceUrl(blocked.invoiceId))))) const actionLabel = (text: string, s: CheckoutState) => s.sending && !s.busy ? "Sending your order…" : text @@ -328,7 +328,7 @@ function buildLinks(s: CheckoutState): HTMLElement { const skip = linked ? null : link("Skip for now", () => go(checkoutUrl("review"))) skip?.setAttribute("data-focus", "skip") return screen({ title: "Your name's links", back: searchLink(c.label, c.order?.registrationId), - lead: ["Paste your SimpleX contact address or channel link. ", el("span", { class: "nowrap" }, "You can change it later.")], + lead: ["Paste your SimpleX contact address or channel link. ", el("span", { class: "nowrap" }, "You can change them later.")], alt: skip, action: continueButton(() => void linksDone(links.fields()), !linked, awaitingChecks) }, el("span", { class: "label" }, "Link"), links.node) } @@ -337,11 +337,11 @@ function buildCode(s: CheckoutState): HTMLElement { const c = s.checkout const box = el("input", { type: "checkbox", checked: c.saved, disabled: s.sending, "data-focus": "saved" }) box.addEventListener("change", () => { if (!state.sending && !act({ type: "saved", saved: box.checked })) refresh() }) - return screen({ title: "Save your name code", lead: ["It is the only key to ", nameText(c.label, c.chain.tld, "."), " If you lose it, nothing can recover it."], back: checkoutUrl("links"), + return screen({ title: "Save your name code", lead: ["It is the only key to ", nameText(c.label, c.chain.tld, "."), " If you lose it, it cannot be recovered."], back: checkoutUrl("links"), action: continueButton(() => go(checkoutUrl("review")), !c.saved) }, codeDisplay(c.ownerCode!, "owner-code", true), - store.canPersist() ? el("p", { class: "note center" }, "Private windows and Tor Browser forget it when closed.") - : alertBox("danger", "alert", "This code could not be saved in this browser", "Save a copy now: it will be the only one."), + store.canPersist() ? el("p", { class: "note center" }, "It may be lost when the window is closed.") + : alertBox("danger", "alert", "This code could not be saved in this browser", "Please save a copy now."), el("label", { class: "check" }, box, el("span", { class: "box" }), SAVED_LABEL)) } @@ -380,7 +380,7 @@ function buildReview(s: CheckoutState, signal: AbortSignal): HTMLElement { function buildPriceChanged({ checkout: c }: CheckoutState): HTMLElement { return outcome({ tone: "warn", icon: "alert", title: "The price changed", - text: [nameText(c.label, c.chain.tld), ` costs ${dollars(c.price)} now; it changed while you were deciding. Nothing was charged.`], + text: ["The price of ", nameText(c.label, c.chain.tld), ` changed to ${dollars(c.price)}.`], action: btn("Search again", "", () => go(searchLink(c.label, c.order?.registrationId))) }) } @@ -398,7 +398,7 @@ function buildFailed(s: CheckoutState): HTMLElement { const c = s.checkout // the same order is sent again from here; Back leaves it for the search const retry = setAction(btn("Try again", "", () => void submitOrder()), s.busy, false) - return outcome({ tone: "danger", icon: "alert", title: "That did not go through", text: ["Nothing was charged. If this happens again, ", ...supportVia("contact"), "."], + return outcome({ tone: "danger", icon: "alert", title: "The order could not be placed", text: ["Please try again. If this happens again, ", ...supportVia("contact"), "."], action: retry, alt: link("Back", () => go(searchLink(c.label, c.order?.registrationId))) }) } @@ -407,15 +407,13 @@ const buildRefusedLink = (kind: LinkKind) => (): HTMLElement => function buildUnavailable(s: CheckoutState): HTMLElement { const retry = setAction(btn("Try again", "", () => void submitOrder()), s.busy, false) - return outcome({ tone: "warn", icon: "alert", title: NO_ORDERS, text: "Its terms can't be read now. Nothing was charged. Try again later.", + return outcome({ tone: "warn", icon: "alert", title: NO_ORDERS, text: "Please try again later.", action: retry, alt: link("Back", () => go(searchLink(s.checkout.label, s.checkout.order?.registrationId))) }) } // a page opened before the service took codes only; the code entered there registers the name searched again for free -function buildCodesOnly({ checkout: c }: CheckoutState): HTMLElement { - return outcome({ tone: "info", icon: "key", title: CODES_ONLY_TITLE, - text: [nameText(c.label, c.chain.tld), " can be registered with an investor code for now. Nothing was charged."], - action: btn("Enter a code", "", () => go(CODE_URL)) }) +function buildCodesOnly(): HTMLElement { + return outcome({ tone: "info", icon: "key", title: CODES_ONLY_TITLE, text: CODES_ONLY_LINE, action: btn("Enter a code", "", () => go(CODE_URL)) }) } const BUILDERS: Record> = { @@ -503,7 +501,7 @@ async function sendOrder(): Promise { // this name code already has a live order for the name, which it opens instead const own = await flow.ownOrderFor(c.ownerCode!, built.request.labelHash) if (!own) throw e - if (own.invoiceId && own.method !== chosen) openedInstead({ invoiceId: own.invoiceId, had: own.method, chosen }) + if (own.invoiceId && own.method !== chosen) openedInstead(own.invoiceId) done(store.orderUrl(own)) } } catch (e) { diff --git a/webapp/src/views/codes.ts b/webapp/src/views/codes.ts index ec30926..4a273a3 100644 --- a/webapp/src/views/codes.ts +++ b/webapp/src/views/codes.ts @@ -16,16 +16,16 @@ export type CodeVerdict = | { kind: "refused"; title: string; line: string; link?: string; checkAgainIn?: number } export const STATE_LINES: Record, [string, string]> = { - reserved: ["This code is being used for a name now", "Each code registers one name; this one is held by an unfinished registration."], - used: ["This code was already used", "Each code registers one name."], - revoked: ["This code is not valid: SimpleX withdrew it", ""], - expired: ["This code has expired", "It can no longer register a name."], - unpaid: ["This code is not paid for yet", "It works once its payment is confirmed."], + reserved: ["This code is in use by an unfinished order", ""], + used: ["This code was already used for a name", ""], + revoked: ["This code was withdrawn", "Please contact support."], + expired: ["This code has expired", "Please contact support."], + unpaid: ["This code is not paid for yet", "It can be used once its payment is confirmed."], } // what codes-only mode says, until the full launch opens payments export const CODES_ONLY_TITLE = "Registration is by code only for now" -export const CODES_ONLY_LINE = "Names can be registered with an investor code for now." +export const CODES_ONLY_LINE = "Names can be registered only with a code right now." const NOT_COVERING = "This code does not cover this name" @@ -39,33 +39,33 @@ export const CODE_ERRORS: Record = { code_not_covering: `${NOT_COVERING}.`, } -const coversLine = (code: session.AppliedCode) => `This code allows you to register a free name of ${code.minLength} or more letters, for ${code.years} years.` +export const useCodeFor = (minLength: number | null) => `Please use this code to register a free name with ${minLength} or more letters` +const coversLine = (code: session.AppliedCode) => `Use this code to register a free name with ${code.minLength} or more letters, for ${code.years} years.` const unused = (code: session.AppliedCode): CodeVerdict => ({ kind: "prepaid", code, line: coversLine(code) }) -const notCovering = (code: session.AppliedCode): CodeVerdict => ({ kind: "refused", title: NOT_COVERING, line: `It covers names of ${code.minLength} or more letters.` }) +const notCovering = (code: session.AppliedCode): CodeVerdict => ({ kind: "refused", title: useCodeFor(code.minLength), line: "" }) // a name code where a prepaid code pays for one name -const NAME_CODE: CodeVerdict = { kind: "refused", title: "This is a name code", line: "A code from SimpleX lets you register a free name." } +const NAME_CODE: CodeVerdict = { kind: "refused", title: "This is a name code, not a code for a free name", line: "" } -const MISTYPED: CodeVerdict = { kind: "refused", title: "This code is not valid", line: "Check it for a mistyped character." } -const NO_CAMERA: CodeVerdict = { kind: "refused", title: "The camera could not be used", line: "Allow the camera, or paste the code." } -const SCAN_HINT = "Point the camera at the QR code of your name code." -const UNFINISHED: CodeVerdict = { kind: "refused", title: "This is not a SimpleX names code", line: "Check it and try again." } +const MISTYPED: CodeVerdict = { kind: "refused", title: "This code is not valid", line: "Please check it for a typo." } +const NO_CAMERA: CodeVerdict = { kind: "refused", title: "The camera could not be used", line: "Please allow it, or paste the code." } +const SCAN_HINT = "Point the camera at the QR code." -const ownerLine = (name: string) => `Name code of ${name}.simplex. Adding it shows the name in Your names, where you can edit its links.` +const ownerLine = (name: string) => `Name code of ${name}.simplex.` // A refusal that asking again can change: a rate limit, after whose wait the code is checked again, or a service that did not answer. function notChecked(e: unknown): CodeVerdict { if (e instanceof api.ApiError && e.code === "rate_limited") { - return { kind: "refused", title: "Too many checks just now", line: "Your code may be fine.", checkAgainIn: e.retryAfter ?? api.LIMITED_WAIT_S } + return { kind: "refused", title: "Too many attempts", line: "", checkAgainIn: e.retryAfter ?? api.LIMITED_WAIT_S } } - return { kind: "refused", title: "The code could not be checked", line: "Try again in a moment." } + return { kind: "refused", title: "The code could not be checked now", line: "Please try again in a moment." } } // A name code is named by the order it restores, which only the code opens; a rate limit holds the tab's lookups too. async function judgeNameCode(text: string): Promise { try { const found = await flow.codeOrderOf(text) - if (found === "none") return { kind: "refused", title: "No order was found for this code", line: "The service has no order registered to its wallet." } - if (found === "other") return { kind: "refused", title: "This code does not open the order", line: "The order found for it was made with another code." } + if (found === "none") return { kind: "refused", title: "No order was found for this name code", line: "" } + if (found === "other") return { kind: "refused", title: "This order could not be opened with this name code", line: "Please contact support." } return { kind: "owner", found, line: ownerLine(found.name) } } catch (e) { holdFrom(e) @@ -95,7 +95,7 @@ async function judgeCode(text: string, signal: AbortSignal, forName?: string): P // well formed but unknown to the service: not a typo, which the check digit would have caught if (e instanceof api.ApiError && e.code === "code_invalid") { session.dropActiveCode(parsed.display) - return { kind: "refused", title: "This code is not valid: SimpleX did not issue it", line: "" } + return { kind: "refused", title: "This code was not issued by SimpleX", line: "" } } return notChecked(e) } @@ -135,7 +135,7 @@ function watchCode(input: HTMLInputElement, show: (v: CodeVerdict | null) => voi const done = () => { if (signal.aborted || codeProgress(input.value) !== "partial") return forget() - show(UNFINISHED) + show(MISTYPED) } input.addEventListener("keydown", (e) => { if (e.key === "Enter") done() }) // Chromium blurs the field as a redraw moves it, and the redraw gives focus back before the check diff --git a/webapp/src/views/hold.ts b/webapp/src/views/hold.ts index 626778c..4e7c251 100644 --- a/webapp/src/views/hold.ts +++ b/webapp/src/views/hold.ts @@ -41,6 +41,6 @@ export const secondsLeft = (hold: Hold) => Math.ceil((hold.until - serviceNow()) export function holdNotice(hold: Hold, signal: AbortSignal): HTMLElement { const line = el("span", {}) const notice = el("div", { class: "left mt-14" }, alertBox("warn", "clock", "Too many attempts", line)) - waitOut(line, secondsLeft(hold), (left) => `${hold.lead}Try again in ${left}.`, () => undefined, signal) + waitOut(line, secondsLeft(hold), (left) => hold.lead ? `${hold.lead}try again in ${left}.` : `Try again in ${left}.`, () => undefined, signal) return notice } diff --git a/webapp/src/views/links.ts b/webapp/src/views/links.ts index 3a1d7a4..1eea46d 100644 --- a/webapp/src/views/links.ts +++ b/webapp/src/views/links.ts @@ -16,10 +16,9 @@ const ANY_LINK = { name: "Link", placeholder: "Paste a contact address or channe const ANY_LINK_SCANNED = "Paste or scan a link" // styles.css's phone layout const PHONE = "(max-width: 520px)" -const NO_CAMERA = "Allow the camera, or paste the link." -const SCAN_HINT = "Point the camera at the QR code of your SimpleX address or channel link." -const NOT_A_LINK = "This is not a SimpleX contact address or channel link." -const linkName = (kind: LinkKind) => KIND_TEXT[kind].name +const NO_CAMERA = "The camera could not be used. Please allow it, or paste the link." +const SCAN_HINT = "Point the camera at the QR code of your link." +const NOT_A_LINK = "This is not a SimpleX link. Please copy the link from the SimpleX app." const otherKind = (kind: LinkKind): LinkKind => kind === "contact" ? "channel" : "contact" let linkFields = 0 @@ -69,9 +68,9 @@ export function linkChat(link: string, kind: LinkKind, name: string, key: string return place } -// What a field takes: a link of its kind, or of either kind, less a kind another field holds; `fieldOf` names the field for a kind, -// and `filled` tells whether the other field already holds a link of a kind. -interface Takes { kind: LinkKind | null; refused: () => LinkKind | null; fieldOf: (kind: LinkKind) => string; filled: (kind: LinkKind) => boolean } +// What a field takes: a link of its kind, or of either kind, less a kind another field holds; `filled` tells whether the +// other field already holds a link of a kind. +interface Takes { kind: LinkKind | null; refused: () => LinkKind | null; filled: (kind: LinkKind) => boolean } // data-state is "ok", "bad", "checking" or "empty"; save hears each good link with its kind and the field emptied, never one checked or refused. // `valueKind` is the record `value` came from, which a value kept as it is, such as several links, keeps. @@ -168,10 +167,9 @@ function linkField(takes: Takes, value: string, save: (v: string, kind: LinkKind const held = kind !== null && kind === takes.refused() ? kind : null if (problem || held) { const other = held ?? linkKind(link) - return refuse(problem === "long" ? "This link is too long." - : other && takes.filled(other) ? `This is a ${KIND_TEXT[other].noun}. Paste a ${KIND_TEXT[otherKind(other)].noun} here.` - : other ? `This is a ${linkName(other).toLowerCase()} link: paste it in the ${takes.fieldOf(other)} field.` - : takes.kind ? `Paste a SimpleX ${linkName(takes.kind).toLowerCase()} short link.` : NOT_A_LINK) + return refuse(problem === "long" ? "This link is too long. Please use the short link." + : other && takes.filled(other) ? `This is a ${KIND_TEXT[other].noun}. Please paste a ${KIND_TEXT[otherKind(other)].noun} here.` + : other ? `This is a ${KIND_TEXT[other].noun}. Please paste it in the other field.` : NOT_A_LINK) } if (known) { accept() @@ -195,7 +193,7 @@ function linkField(takes: Takes, value: string, save: (v: string, kind: LinkKind (left) => `The link could not be checked now. Checking again in ${left}.`, () => { if (mine === seq) void check() }, waiting.signal) return show(null, notice) } - refuse("This link could not be opened.") + refuse(NOT_A_LINK) } } // one scan at a time, ended with the field's page @@ -242,7 +240,6 @@ export function linkFieldsFor(links: api.Links, save: (kind: LinkKind, link: str let second: { kind: LinkKind; field: HTMLElement } | null = null let opening = true const told = (kind: LinkKind, link: string) => { if (!opening) save(kind, link) } - const fieldOf = (kind: LinkKind) => second?.kind === kind ? linkName(kind) : ANY_LINK.name const add = link("", () => addSecond(otherKind(held!), "", true)) const node = el("div", { class: "link-fields" }) const offerAdd = () => { @@ -250,14 +247,14 @@ export function linkFieldsFor(links: api.Links, save: (kind: LinkKind, link: str if (held) add.textContent = KIND_TEXT[otherKind(held)].add } const accepted = (field: HTMLElement | undefined) => field?.dataset.state === "ok" - const firstField = linkField({ kind: null, refused: () => second?.kind ?? null, fieldOf, filled: (kind) => second?.kind === kind && accepted(second.field) }, links[first], (value, kind) => { + const firstField = linkField({ kind: null, refused: () => second?.kind ?? null, filled: (kind) => second?.kind === kind && accepted(second.field) }, links[first], (value, kind) => { if (held && held !== kind) told(held, "") if (kind) told(kind, value) held = kind ?? (second ? held : null) offerAdd() }, first) const addSecond = (kind: LinkKind, value: string, focus: boolean) => { - const field = linkField({ kind, refused: () => null, fieldOf, filled: (other) => held === other && accepted(firstField) }, value, (v) => told(kind, v)) + const field = linkField({ kind, refused: () => null, filled: (other) => held === other && accepted(firstField) }, value, (v) => told(kind, v)) second = { kind, field } add.before(field) offerAdd() diff --git a/webapp/src/views/names.ts b/webapp/src/views/names.ts index 32fd92f..165fc9a 100644 --- a/webapp/src/views/names.ts +++ b/webapp/src/views/names.ts @@ -7,8 +7,8 @@ import { dateOf, dollars, SEP } from "../format.ts" import type { IconName } from "../icons.ts" import { balanceRows, type BalanceRow, CODE_CHIPS, EDIT_RETRY_MS, editable, editsLine, editsShort, hasLinks, linksAction, type EditEvent, type EditForm, type EditKind, type EditState, hasRecords, initialEdit, initialList, - againLine, initialRestore, lapsed, lateLine, ranOut, moneyReached, nameRows, ORDER_CHIP_WORDS, paidLine, type ListEvent, type ListState, NOT_SAVED, phaseChip, reduceEdit, - reduceList, reduceRestore, REFUSALS, ROW_CHIPS, rowsDrawn, unanswered, type RestoreEvent, type RestoreState, type RowSeen, type CodeCheck, screenOfEdit, type Stored, waitsToSign, + initialRestore, lapsed, lateLine, ranOut, moneyReached, nameRows, ORDER_CHIP_WORDS, paidLine, type ListEvent, type ListState, NOT_SAVED, phaseChip, reduceEdit, + reduceList, reduceRestore, REFUSALS, registrableAgain, ROW_CHIPS, rowsDrawn, unanswered, type RestoreEvent, type RestoreState, type RowSeen, type CodeCheck, screenOfEdit, type Stored, waitsToSign, } from "../screens/names.ts" import { checkoutUrl, CODE_URL, editUrl } from "../screens/routes.ts" import * as session from "../session.ts" @@ -265,12 +265,7 @@ function buildNames(s: ListState, signal: AbortSignal): HTMLElement { forgetQuestion(s)) } -const PROGRESS: Partial> = { - queued: "Paid, waiting to commit", - committing: "Committing", - committed: "Committed, waiting before it can register", - registering: "Registering on chain", -} +const REGISTERING: api.Phase[] = ["queued", "committing", "committed", "registering"] // a row's line goes on after a separator in lower case, as "free name with a code" after a step const continued = (text: string | null) => text ? text.charAt(0).toLowerCase() + text.slice(1) : text @@ -293,9 +288,8 @@ function subLine(o: store.OrderRecord, { view, invoice }: RowSeen, now: number): : [`${arrived}; `, ...contactSupport("contact", el("span", { class: "mono" }, invoice.invoiceId)), ", to have it credited"] } if (view.phase.type === "taken" && o.method === "code") return paid - if (waitsToSign(view, now)) return `Open the order so this browser can sign it${SEP}${continued(paid)}` - const progress = view.phase.type === "queued" && o.method === "code" ? "Waiting to commit" : PROGRESS[view.phase.type] - return progress ? `${progress}${SEP}${continued(paid)}` : paid + if (waitsToSign(view, now)) return paid + return REGISTERING.includes(view.phase.type) ? `Registering${SEP}${continued(paid)}` : paid } function codeToggle(id: string, shown: boolean): HTMLElement { @@ -304,8 +298,10 @@ function codeToggle(id: string, shown: boolean): HTMLElement { return toggle } +export const NAME_CODE_NOTE = "You need this code to control your name and edit the links. Never share it with us or anybody." + const rowCode = (code: string) => el("div", { class: "row-code" }, - el("p", { class: "note" }, "The name code owns the name and edits its links. Keep it safe."), + el("p", { class: "note" }, NAME_CODE_NOTE), codeDisplay(code), nameCodeQr(code)) function orderRow(o: store.OrderRecord, s: ListState): HTMLElement { @@ -461,7 +457,7 @@ async function addNameCode(verdict: Extract): Pr if (!isRoute(checkRoute)) return if (e instanceof api.ApiError && e.code === "not_found") return refuse("none") // the service asks for a wait before the next lookup; the button stays off until then, whatever is typed meanwhile - if (holdFrom(e)) return dispatchRestore({ type: "held", until: holdEnd(), lead: "Your code is fine. " }) + if (holdFrom(e)) return dispatchRestore({ type: "held", until: holdEnd(), lead: "Please " }) refuse(e instanceof api.ApiError ? "unasked" : "other") } } @@ -558,14 +554,15 @@ const notice = (ic: IconName, title: string, text: string): Builder = function buildExpired(s: EditState): HTMLElement { const { view, answer, now } = s.read! const expiresAt = api.expiresAtOf(view) - return editNotice(s, alertBox("info", "clock", "This name has expired", - `${ranOut(expiresAt)} Names are not renewed, so this page no longer edits its links. ${againLine(expiresAt, answer, now)}`)) + return editNotice(s, registrableAgain(expiresAt, answer, now).when === "taken" + ? alertBox("info", "clock", "This name has another owner", ranOut(expiresAt)) + : alertBox("info", "clock", "This name has expired", "Renewal is not implemented yet.")) } function buildUnreadable(s: EditState, signal: AbortSignal): HTMLElement { if (!s.reading) after(EDIT_RETRY_MS, readAgain, signal) return screen({ title: EDIT_TITLE, back: NAMES, lead: nameOf(s), action: setAction(btn("Try again", "", readAgain), s.reading, false) }, - alertBox("warn", "alert", "The name could not be read now", "This page tries again by itself.")) + alertBox("warn", "alert", "The name could not be loaded now", "Loading again in a few seconds.")) } function resultNode(f: EditForm, signal: AbortSignal): HTMLElement | null { @@ -574,11 +571,10 @@ function resultNode(f: EditForm, signal: AbortSignal): HTMLElement | null { case null: return null case "sending": return el("p", { class: "note" }, "Signing and sending…") case "nothing": return alertBox("info", "info", null, "Nothing has changed.") - case "saved": return alertBox("ok", "check", "Links saved", "The change is on chain; the app shows it within a few minutes.") - case "unanswered": return alertBox("warn", "clock", "No answer yet", "The change may still go through. Reload this page in a few minutes to see whether it did before saving again.") - case "moved": return alertBox("warn", "clock", "An earlier save got there first", - "It was still on its way when this one was signed. The fields now show the links on chain: change them and save again.") - case "refused": return alertBox("danger", "alert", NOT_SAVED, "Try again in a moment.") + case "saved": return alertBox("ok", "check", "Links saved", "The app shows them within a few minutes.") + case "unanswered": return alertBox("warn", "clock", "No answer yet", "Please reload in a few minutes to see if it was saved.") + case "moved": return alertBox("warn", "clock", "The links were changed elsewhere", "Please check the links and save again.") + case "refused": return alertBox("danger", "alert", NOT_SAVED, "Please try again in a moment.") } } @@ -646,7 +642,7 @@ function buildEditForm(s: EditState, signal: AbortSignal): HTMLElement { count.removeAttribute("tabindex") delete count.dataset.focus } - return screen({ title: EDIT_TITLE, back: NAMES, lead: [nameText(s.record!.label, s.record!.tld, "."), " Your name code signs the change; ", el("span", { class: "nowrap" }, "nothing to pay.")], action: save, alt: count }, + return screen({ title: EDIT_TITLE, back: NAMES, lead: [nameText(s.record!.label, s.record!.tld, "."), " Use your name code to sign the change. ", el("span", { class: "nowrap" }, "There is nothing to pay.")], action: save, alt: count }, el("span", { class: "label" }, "Link"), links.node, keptLive("edit-answer", undefined, answer)) } @@ -654,10 +650,10 @@ const EDIT_BUILDERS: Record> = { "edit-no-code": (s) => editNotice(s, alertBox("info", "key", "The name code is not in this browser", "Add it in Check your code to edit this name's links.")), "edit-unreadable": buildUnreadable, "edit-expired": buildExpired, - "edit-ended": notice("alert", "The registration was ended", "A payment for it was disputed, reversed or refunded in full, so this page no longer edits its links."), - "edit-in-app": notice("key", "This name has another owner", "Its owner changed, so this browser can no longer edit its links."), - "edit-elsewhere": notice("link", "This name's links are kept elsewhere", "It points at another resolver, so its links are not edited here."), - "edit-not-registered": notice("clock", "The name is not registered yet", "Its links can be edited once the registration is final."), + "edit-ended": notice("alert", "The registration was cancelled", "Its payment was disputed or refunded. Please contact support."), + "edit-in-app": notice("key", "This name has another owner", "Its links cannot be edited here."), + "edit-elsewhere": notice("link", "This name's links are kept by another resolver", "They cannot be edited here."), + "edit-not-registered": notice("clock", "The name is not registered yet", "The links can be edited once the name is registered."), edit: buildEditForm, } diff --git a/webapp/src/views/order.ts b/webapp/src/views/order.ts index 46c2f6c..4bb1d86 100644 --- a/webapp/src/views/order.ts +++ b/webapp/src/views/order.ts @@ -9,6 +9,7 @@ import { closedBalance, type ClosedCase, closedCase, coinOf, costOf, failedAlert, failedLead, finished, supportCase, type SupportCase, initialState, type Note, type OrderEvent, type OrderKind, type OrderState, readToSign, reduce, refusalsOf, RETRY_MS, retryDue, REVEAL_ATTEMPTS, revealDue, revealKey, screenOf, stalledAt, unpaidOrClosed, unreadDelay, wakeAt, askAgainDue, termsAskedAgain, termsToAgree, } from "../screens/order.ts" +import { LIMITED_LEAD } from "../screens/hold.ts" import { termsToSign, ticked } from "../screens/terms.ts" import { CODES_ONLY, codesOnly } from "../mode.ts" import type { LinkKind } from "../names.ts" @@ -17,8 +18,8 @@ import { hasLinks, linksAction } from "../screens/names.ts" import * as session from "../session.ts" import * as store from "../store.ts" import { type MountedCard, mountCard, publishableKey } from "../stripe.ts" -import { CODES_ONLY_TITLE } from "./codes.ts" -import { seenRegistered } from "./names.ts" +import { CODES_ONLY_LINE, CODES_ONLY_TITLE } from "./codes.ts" +import { NAME_CODE_NOTE, seenRegistered } from "./names.ts" import { holdEnd, holdEnder, holdFrom, holdNotice, tabHold } from "./hold.ts" import { loadNextRouteAfresh, UNKEPT_TICKS } from "./served-mode.ts" import { NO_ORDERS, termsBox } from "./terms.ts" @@ -35,7 +36,7 @@ const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)) const ORDER_NOTE = "order-note" const warning = (text: string): Note => ({ tone: "warn", icon: "alert", title: null, text }) const termsUnavailable = (e: unknown) => e instanceof api.ApiError && e.code === "terms_unavailable" -const noOrders = (lead: string) => warning(`${NO_ORDERS}. ${lead}Try again later.`) +const NO_ORDERS_NOTE = warning(`${NO_ORDERS}. Please try again later.`) let state: OrderState = initialState("", null) let opened = 0 @@ -358,7 +359,7 @@ function askAgain(record: store.OrderRecord): void { } // holdsFor is the screen's signal where the screen holds an action for the tab's wait -const noteLink = (link: NonNullable): Kid => "support" in link ? [...contactSupport("Contact", link.support), "."] : [el("a", { href: link.href }, link.text), link.after] +const noteLink = (link: NonNullable): Kid => "support" in link ? [...contactSupport("Please contact", link.support), "."] : [el("a", { href: link.href }, link.text), link.after] const noteText = (note: Note): Kid => note.link ? [note.text, noteLink(note.link)] : note.text export const noteBox = (note: Note) => alertBox(note.tone, note.icon, note.title, noteText(note)) @@ -366,19 +367,19 @@ function noteOf({ hold, note, codeCheckAt }: OrderState, holdsFor: AbortSignal | if (holdsFor && hold) return holdNotice(hold, holdsFor) if (note || !holdsFor || codeCheckAt === null) return note && noteBox(note) const line = el("span", {}) - const notice = alertBox("warn", "clock", "Too many checks just now", line) - waitOut(line, Math.max(1, Math.ceil((codeCheckAt - api.serviceNow()) / 1000)), (left) => `Your code may be fine. Checking again in ${left}.`, () => undefined, holdsFor) + const notice = alertBox("warn", "clock", "Too many attempts", line) + waitOut(line, Math.max(1, Math.ceil((codeCheckAt - api.serviceNow()) / 1000)), (left) => `Checking again in ${left}.`, () => undefined, holdsFor) return notice } const actionNote = (s: OrderState, holdsFor: AbortSignal | null) => keptLive(ORDER_NOTE, undefined, noteOf(s, holdsFor)) function buildUnreadable({ reference }: OrderState): HTMLElement { - return outcome({ tone: "warn", icon: "alert", title: "This order could not be loaded", text: "The page keeps trying. If it does not load, quote the reference below.", reference }) + return outcome({ tone: "warn", icon: "alert", title: "The order could not be loaded now", text: "Loading again in a few seconds.", reference }) } function buildUnknownLink(): HTMLElement { - return outcome({ tone: "info", icon: "link", title: "This link does not work", text: "It names no order this service knows. Check the link, or start again.", + return outcome({ tone: "info", icon: "link", title: "This link does not work", text: "No order has this reference. Please check the link.", action: btn("Search a name", "", () => go("/#/")) }) } @@ -410,11 +411,9 @@ const TICKER: Record<"btc" | "xmr", string> = { btc: "BTC", xmr: "XMR" } const WALLET = "Open in wallet" // the invoice an earlier try made, which a checkout opened in place of paying as it chose; said until its page is left -let instead: { invoiceId: string; had: string; chosen: string } | null = null -export const openedInstead = (opened: typeof instead) => { instead = opened } -const methodWord = (method: string) => method === "card" ? "card" : methodName(method) -const insteadWords = (invoice: api.InvoiceView) => instead?.invoiceId !== invoice.invoiceId ? null - : `This name already has a ${methodWord(instead.had)} invoice from an earlier try, so it opened instead of ${instead.chosen === "code" ? "using your code" : `a new ${methodWord(instead.chosen)} one`}.` +let instead: string | null = null +export const openedInstead = (invoiceId: string) => { instead = invoiceId } +const insteadWords = (invoice: api.InvoiceView) => instead !== invoice.invoiceId ? null : "You already have an open invoice for this name." const insteadLine = (invoice: api.InvoiceView) => { const words = insteadWords(invoice) return words && el("p", { class: "note" }, words) @@ -439,7 +438,7 @@ function validLine(invoice: api.InvoiceView, signal: AbortSignal): HTMLElement { // every few minutes. A browser without the order's record does not know the name's length, which the search needs. const NAME_CHECK_MS = 5 * 60_000 const NAME_NOTE = "name-note" -let nameCheck: { invoiceId: string; taken: boolean; held: boolean; at: number } | null = null +let nameCheck: { invoiceId: string; taken: boolean; at: number } | null = null let nameWatch: { invoiceId: string; timer?: ReturnType } | null = null // the payment's details on the pay page in view, which a name taken meanwhile turns off let payDetails: HTMLElement | null = null @@ -460,7 +459,7 @@ function watchName(s: OrderState): void { try { const answer = await api.searchName(labelHash, length, readSite().chainId) if (nameWatch !== watch) return - nameCheck = { invoiceId, taken: answer.found.type === "registered" || answer.found.type === "taken", held: answer.found.type === "taken", at: Date.now() } + nameCheck = { invoiceId, taken: answer.found.type === "registered" || answer.found.type === "taken", at: Date.now() } showNameCheck() } catch (e) { next = api.retryDelay(e, RETRY_MS) ?? NAME_CHECK_MS @@ -493,7 +492,7 @@ function cardWords(s: OrderState): { tone: Note["tone"] | null; words: Kid[] }[] const opened = insteadWords(s.invoice!) return [ s.note && { tone: s.note.tone, words: [s.note.title && [el("b", {}, `${s.note.title}.`), " "], noteText(s.note)] }, - store.canPersist() ? null : { tone: "warn" as const, words: [el("b", {}, "This browser cannot remember a card payment."), " After paying, keep this page open until it moves on. Reloading would show the card form again."] }, + store.canPersist() ? null : { tone: "warn" as const, words: [el("b", {}, "This order cannot be saved in this browser."), " Please keep this page open until the payment is confirmed."] }, opened === null ? null : { tone: null, words: [opened] }, ].filter((said) => said !== null) } @@ -507,12 +506,10 @@ function fillNameNote(note: HTMLElement, s: OrderState): void { note.dataset.shown = shown const taken = nameTaken() const time = timeOf(nameCheck?.at ?? Date.now()) - const dontPay = "Don't pay this invoice: cancel it and choose another name." + const dontPay = "Please don't pay: cancel this invoice and choose another name." // the card page says them in brief, so Stripe's form fits above Pay with a name of 63 letters - const free: Kid[] = card ? [el("b", {}, "Available"), ` at ${time}. If someone registers it first, you keep the payment as balance.`] - : [el("b", {}, "The name is available"), ` (checked at ${time}). `, - "If someone registers it before you pay and the registration succeeds, what you paid is kept as your balance for another name, or refunded on request."] - const gone: Kid[] = card || nameCheck?.held ? [el("b", {}, "Taken"), ` at ${time}. ${dontPay}`] : [el("b", {}, "Someone has registered this name"), ` (checked at ${time}). `, dontPay] + const free: Kid[] = [el("b", {}, card ? "Available" : "The name is available"), ` at ${time}.`] + const gone: Kid[] = [el("b", {}, "Taken"), ` at ${time}. ${dontPay}`] const said = taken ? gone : other?.words ?? free note.replaceChildren(...[free, gone, ...others.map((o) => o.words)].map((words) => { const sentence = el("span", {}, ...words) @@ -544,8 +541,8 @@ function turnOff(details: T, off: boolean): T { return details } -const partSeen = (invoice: api.InvoiceView, coin: "btc" | "xmr") => `Part of the payment arrived: ${invoice.cryptoAmountPaid} of ${invoice.cryptoAmount} ${TICKER[coin]} is seen.` -const restAsked = (invoice: api.InvoiceView, coin: "btc" | "xmr") => `Send the remaining ${invoice.cryptoAmountDue} ${TICKER[coin]} to the same address.` +const PART_SEEN = "Part of the payment was received." +const restAsked = (invoice: api.InvoiceView, coin: "btc" | "xmr") => `Please send the remaining ${invoice.cryptoAmountDue} ${TICKER[coin]} to the same address.` const INVOICE_EXPIRED = "The invoice expired before the full amount arrived. Don't send more; what you sent is kept as your balance." // A part-paid invoice stays open past its rate window until it closes, and past the window asks for no more: of its @@ -553,7 +550,7 @@ const INVOICE_EXPIRED = "The invoice expired before the full amount arrived. Don // hidden in place, so nothing on the screen moves. function partLines(invoice: api.InvoiceView, coin: "btc" | "xmr", payMore: (HTMLElement | null)[], signal: AbortSignal): { notice: Kid; rate: HTMLElement; ended: boolean } { const left = () => (Date.parse(invoice.expiresAt) - api.serviceNow()) / 1000 - if (left() <= 0) return { notice: partSeen(invoice, coin), rate: el("span", {}, INVOICE_EXPIRED), ended: true } + if (left() <= 0) return { notice: PART_SEEN, rate: el("span", {}, INVOICE_EXPIRED), ended: true } const rest = el("span", {}, restAsked(invoice, coin)) const time = el("span", {}) const held = el("span", {}, "Waiting for the rest of the payment", SEP, "Invoice valid for ", time) @@ -565,7 +562,7 @@ function partLines(invoice: api.InvoiceView, coin: "btc" | "xmr", payMore: (HTML expired.classList.remove("sizer") } }, signal) - return { notice: [partSeen(invoice, coin), " ", rest], rate: el("span", { class: "sized" }, held, expired), ended: false } + return { notice: [PART_SEEN, " ", rest], rate: el("span", { class: "sized" }, held, expired), ended: false } } function cancelLink(s: OrderState): HTMLAnchorElement { @@ -667,7 +664,7 @@ async function payByCard(): Promise { dispatch({ type: "card-submitted", at }) } -const STRIPE_NOTE = "The card form is Stripe's. Nothing is charged until you pay." +const STRIPE_NOTE = "The card form is provided by Stripe. Your card will be charged only when you press Pay." function buildPayCard(s: OrderState): HTMLElement { const invoice = s.invoice! @@ -693,10 +690,9 @@ const withoutRecord = (cls: string, text = "Enter your name code") => btn(text, // in codes-only mode a prepaid code is the only way to a name: nothing here orders or pays again const codeAction = () => btn("Register with code", "", () => go(CODE_URL)) // a page opened before the service took codes only, refused a new invoice -const CODES_ONLY_NOTE: Note = { tone: "warn", icon: "key", title: CODES_ONLY_TITLE, text: "Nothing was charged. ", link: { text: "Enter a code", href: CODE_URL, after: "." } } +const CODES_ONLY_NOTE: Note = { tone: "warn", icon: "key", title: CODES_ONLY_TITLE, text: `${CODES_ONLY_LINE} `, link: { text: "Enter a code", href: CODE_URL, after: "." } } const CLOSED_TITLE = "Invoice closed" -const KEPT_LATE = "kept as your balance, or refunded on request; Your names shows it." const partlyPaid = (invoice: api.InvoiceView) => Number(invoice.cryptoAmountPaid ?? "0") > 0 function buildClosed(s: OrderState, signal: AbortSignal): HTMLElement { @@ -747,29 +743,29 @@ async function agreedFirst(gen: number, record: store.OrderRecord, invoice: api. if (!quote) return true return termsOrAsk(gen, record, api.signedTermsOf(invoice.registration.terms), quote) !== null } catch (e) { - if (!holdOn(e, "The invoice is still open. ", gen)) { - answer(gen, { type: "reorder-failed", note: termsUnavailable(e) ? noOrders("The invoice is still open. ") : warning("The name could not be checked now. Try again in a moment.") }) + if (!holdOn(e, LIMITED_LEAD, gen)) { + answer(gen, { type: "reorder-failed", note: termsUnavailable(e) ? NO_ORDERS_NOTE : warning("A new invoice was not created. Please try again in a moment.") }) } return false } } // a late credit the service cannot make by itself, which support makes by hand -const creditBySupport = (reference: string): Kid[] => [" It is not credited to your balance by itself: ", ...contactSupport("contact", reference), "."] +const creditBySupport = (reference: string): Kid[] => [" To have it credited, please ", ...contactSupport("contact", reference), "."] -const KEPT_ONCE: Record, string> = { confirming: "Once confirmed, it is", crediting: "Once credited, it is" } +const KEPT_ONCE: Record, string> = { confirming: "It will be added to your balance once confirmed.", crediting: "It will be added to your balance shortly." } function closedWords(closed: Exclude, inv: api.InvoiceView, view: api.RegistrationView): [Tone, Kid] { const waiting = view.latePayment - const kept = (lead: string): Kid => waiting === "support" ? [lead, creditBySupport(inv.invoiceId)] : `${lead} ${waiting ? KEPT_ONCE[waiting] : "It is"} ${KEPT_LATE}` + const kept = (lead: string): Kid => waiting === "support" ? [lead, creditBySupport(inv.invoiceId)] : `${lead} ${waiting ? KEPT_ONCE[waiting] : "It is in your balance."}` switch (closed) { - case "paid-late": return ["warn", kept("The payment arrived after this invoice had closed, so nothing was registered.")] - case "cancelled": return ["info", "This invoice was cancelled and nothing was received."] + case "paid-late": return ["warn", kept("The payment was received after the invoice closed.")] + case "cancelled": return ["info", "This invoice is closed. No payment was received."] case "received": { const coin = coinOf(inv) - return ["warn", kept(coin && partlyPaid(inv) && !inv.paidInFull ? `${inv.cryptoAmountPaid} ${TICKER[coin]} arrived, which is not the full amount.` : "A payment did not complete before the invoice closed.")] + return ["warn", kept(coin && partlyPaid(inv) && !inv.paidInFull ? `${inv.cryptoAmountPaid} ${TICKER[coin]} was received, which is not the full amount.` : "The payment was received after the invoice closed.")] } - case "expired": return ["info", inv.cryptoCurrency ? "Nothing was received before it closed." : "Nothing was paid before it closed."] + case "expired": return ["info", "This invoice is closed. No payment was received."] } } @@ -796,8 +792,8 @@ async function orderAgain(record: store.OrderRecord): Promise { try { quote = await flow.quoteOf(record.label) } catch (e) { - if (holdOn(e, "Nothing was charged. ", gen)) return - return answer(gen, { type: "reorder-failed", note: termsUnavailable(e) ? noOrders("Nothing was charged. ") : warning("The name could not be checked now. Try again in a moment.") }) + if (holdOn(e, LIMITED_LEAD, gen)) return + return answer(gen, { type: "reorder-failed", note: termsUnavailable(e) ? NO_ORDERS_NOTE : warning("A new invoice was not created. Please try again in a moment.") }) } if (!isOpen(gen)) return if (!quote) return go(searchLink(record.label)) @@ -822,8 +818,8 @@ function buildCardUnconfirmed(s: OrderState, signal: AbortSignal): HTMLElement { const reorders = formFailed && !codesOnly() holdEnds(signal)(s.hold !== null) return outcome({ tone: "warn", icon: "alert", title: "Card payment not confirmed", reference: inv.invoiceId, - text: formFailed ? "Stripe's form was blocked or failed to load. Nothing was charged." - : "The payment has not been confirmed. This page keeps checking: come back to it later, or quote the reference below.", + text: formFailed ? "The card form did not load, so your card was not charged. Please reload the page." + : "Please check this page later. If the payment is still not confirmed, enter the card again.", extra: actionNote(s, reorders && s.record !== null ? signal : null), agreement: reorders ? agreement(s, "reorder") : null, action: cardAction(s, formFailed), alt: reorders && s.record ? coinLinks(s) : null }) } @@ -865,9 +861,9 @@ async function cancelBeforeReorder(invoice: api.InvoiceView, gen: number): Promi if (record && after.status !== "paid") store.updateOrder(record.registrationId, { cancelled: true }) } catch (e) { const code = e instanceof api.ApiError ? e.code : "network" - if (holdOn(e, "The invoice is still open. ", gen)) return false + if (holdOn(e, LIMITED_LEAD, gen)) return false if (code !== "not_open") { - say(code === "funded" ? "A payment has reached this invoice, so it is kept." : "The invoice could not be cancelled now. Try again in a moment.") + say(code === "funded" ? "A payment was received, so the invoice cannot be cancelled." : "The invoice was not cancelled. Please try again in a moment.") return false } try { @@ -882,7 +878,7 @@ async function cancelBeforeReorder(invoice: api.InvoiceView, gen: number): Promi return false } if (after.status === "paid" || !api.holdsPayment(after)) return true - say("A payment has reached this invoice, so it is kept. Quote the reference below.") + say("A payment was received, so the invoice cannot be cancelled. Quote the reference below.") return false } @@ -902,9 +898,9 @@ async function cancelInvoice(): Promise { answer(gen, { type: "cancel-answered" }) return reread(gen) } - if (e instanceof api.ApiError && e.code === "funded") return answer(gen, { type: "cancel-failed", note: warning("A payment has reached this invoice, so it cannot be cancelled.") }) - if (holdOn(e, "The invoice is still open. ", gen)) return - answer(gen, { type: "cancel-failed", note: warning("The invoice could not be cancelled now. Try again in a moment.") }) + if (e instanceof api.ApiError && e.code === "funded") return answer(gen, { type: "cancel-failed", note: warning("A payment was received, so the invoice cannot be cancelled.") }) + if (holdOn(e, LIMITED_LEAD, gen)) return + answer(gen, { type: "cancel-failed", note: warning("The invoice was not cancelled. Please try again in a moment.") }) } } @@ -912,9 +908,8 @@ function buildConfirming(s: OrderState): HTMLElement { const invoice = s.invoice! const coin = coinOf(invoice) const notice = coin - ? alertBox("info", "clock", confirmations(invoice.requiredConfirmations ?? 1), - `${invoice.cryptoAmount} ${TICKER[coin]} arrived. Registration starts once it confirms; this page moves on by itself.`) - : alertBox("info", "clock", "Waiting for Stripe to\u00a0confirm", "Stripe usually confirms within a minute. Registration starts by itself; this page moves on.") + ? alertBox("info", "clock", confirmations(invoice.requiredConfirmations ?? 1), "Payment received. Waiting for network confirmations.") + : alertBox("info", "clock", "Waiting for Stripe to\u00a0confirm", "Payment received. Waiting for Stripe, usually under a minute.") // a card Stripe has not confirmed can still be cancelled while nothing is paid, as an unpaid crypto invoice can const cancel = !coin && !invoice.amountPaid ? cancelLink(s) : null return screen({ title: coin ? "Confirming your payment" : "Paying by card", lead: orderLine(s), alt: cancel }, notice, referenceLine(invoice.invoiceId), actionNote(s, null)) @@ -937,7 +932,7 @@ function reorder(): void { function buildPriceChanged({ record, invoice, price }: OrderState): HTMLElement { const { label } = record! - return outcome({ tone: "warn", icon: "alert", title: "The price changed", text: [nameText(label, readSite().tld), ` costs ${dollars(price!)} now. Nothing was charged.`], + return outcome({ tone: "warn", icon: "alert", title: "The price changed", text: ["The price of ", nameText(label, readSite().tld), ` changed to ${dollars(price!)}.`], action: btn("Search again", "", () => go(searchLink(label))), reference: invoice!.invoiceId }) } @@ -980,17 +975,17 @@ async function newInvoice(invoice: api.InvoiceView, record: store.OrderRecord | } if (e instanceof api.ApiError && e.code === "catalog_changed" && typeof e.body.price === "number") return dispatch({ type: "price-changed", price: e.body.price }) if (e instanceof api.TermsChanged) return askTerms(gen, record.label, e, true) - if (termsUnavailable(e)) return dispatch({ type: "reorder-failed", note: noOrders("Nothing was charged. ") }) + if (termsUnavailable(e)) return dispatch({ type: "reorder-failed", note: NO_ORDERS_NOTE }) if (e instanceof api.ApiError && e.code === CODES_ONLY) { loadNextRouteAfresh() return dispatch({ type: "reorder-failed", note: CODES_ONLY_NOTE }) } if (e instanceof api.ApiError && e.code === "provider_unavailable") { return dispatch({ type: "reorder-failed", note: { tone: "warn", icon: "alert", title: `${methodName(method)} is unavailable right now`, - text: "Nothing was charged. Try again later, or ", link: { text: "order the name again", href: searchLink(record.label), after: " to pay another way." } } }) + text: "Please ", link: { text: "order the name again", href: searchLink(record.label), after: " to pay another way." } } }) } - if (holdOn(e, "Nothing was charged. ", gen)) return - dispatch({ type: "reorder-failed", note: { tone: "warn", icon: "alert", title: "That did not go through", text: "Nothing was charged. Try again in a moment." } }) + if (holdOn(e, LIMITED_LEAD, gen)) return + dispatch({ type: "reorder-failed", note: { tone: "warn", icon: "alert", title: "The order could not be placed", text: "A new invoice was not created. Please try again in a moment." } }) } } @@ -1029,11 +1024,9 @@ function leadOf(s: OrderState): Kid { return "Keep this page open until the name is registered." } -const WAIT_NOTE = "Every new name waits a little, so nobody who sees your order can take the name first." -const COMMIT_NOTE = "Placing your order. The wait starts once it is in." +const WAIT_NOTE = "It will take a few minutes and will continue automatically." const LAPSED_NOTE = "The name was not signed in time" -const REGISTERING_NOTE = "Registering the name. It is yours in a moment." -const STALL_NOTE = "This is taking longer than usual. It continues by itself." +const STALL_NOTE = "This is taking longer than usual. It will continue automatically." function buildRegistering(s: OrderState, signal: AbortSignal): HTMLElement { const view = s.view! @@ -1061,17 +1054,17 @@ function buildRegistering(s: OrderState, signal: AbortSignal): HTMLElement { if (!clockNode.querySelector("svg")) clockNode.replaceChildren(icon("clock")) if (lapsed) return say(note, LAPSED_NOTE) if (stalled !== null && api.serviceNow() >= stalled) return say(note, STALL_NOTE) - if (view.phase.type !== "committed") return say(note, view.phase.type === "registering" ? REGISTERING_NOTE : COMMIT_NOTE) + if (view.phase.type !== "committed") return say(note, WAIT_NOTE) waitsSeen.delete(view.id) if (view.label === null && (refused || termsToAgree(s))) say(note, "The registration is not signed yet.") - else say(note, REGISTERING_NOTE) + else say(note, WAIT_NOTE) } onTheSecond(() => waitLeft(view), tick, signal) return screen({ title: headingOf(s), lead: leadOf(s), action: refused ? btn("Try again", "", tryAgain) : null }, steps, // the note keeps the height of its longest words, so the page keeps still as they change - el("div", { class: "countdown" }, clockNode, el("p", {}, note, el("span", { class: "sizer", "aria-hidden": "true" }, WAIT_NOTE))), - refused ? alertBox("danger", "alert", "The name could not be signed", "The service refused the signed registration.") : null, + el("div", { class: "countdown" }, clockNode, el("p", {}, note, el("span", { class: "sizer", "aria-hidden": "true" }, STALL_NOTE))), + refused ? alertBox("danger", "alert", "The name could not be signed", "Please try again.") : null, referenceLine(s.invoice?.invoiceId ?? view.id), termsAskedAgain(s) ? agreement(s, "reveal") : null) } @@ -1111,8 +1104,7 @@ export const REFUSED_LINK: Record = { export const REPLACE_LINK = "Replace or remove it to register the name." function buildNotOnDevice({ view, invoice }: OrderState): HTMLElement { - return outcome({ tone: "info", icon: "key", title: "The name code is not in this browser", - text: ["This order registers a name to ", el("span", { class: "nowrap" }, shortAddress(view!.owner)), `. Its code was made in the browser it was ${view!.payment.type === "code" ? "ordered" : "bought"} in. Enter the code you saved to carry on here.`], + return outcome({ tone: "info", icon: "key", title: "The name code is not in this browser", text: "Please enter the name code you saved for this order.", action: btn("Enter your name code", "", () => go(CODE_FROM_ORDER_URL)), reference: invoice?.invoiceId ?? view!.id }) } @@ -1127,9 +1119,9 @@ function buildRegistered(s: OrderState): HTMLElement { const qr = el("div", { class: "code-qr" }) const { tld } = readSite() return screen({ title: [label ? gradName(label, tld) : "The name", " is\u00a0yours"], lead: registeredLead(view, s.record), action: registeredAction(s.record) }, - code ? [el("div", { class: "card use" }, el("h2", {}, "Use in the app"), + code ? [el("div", { class: "card use" }, el("h2", {}, "Use your name in the app"), el("p", {}, "In SimpleX, open Your SimpleX address, tap Set SimpleX name and enter ", nameText(label ?? "", tld, "."), " For a channel, set it in the channel's profile.")), - el("p", { class: "note center" }, "Keep your name code: it owns the name and edits its links."), + el("p", { class: "note center" }, NAME_CODE_NOTE), codeDisplay(code, "owner-code", true, (shown) => refill(qr, shown && nameCodeQr(code))), // under the code and over its QR, so showing the code moves it and nothing above it el("div", { class: "yours-edit center" }, btn(linksAction(hasLinks(s.record!, null)), "quiet small", () => go(editUrl(view.id)))), qr] : null) @@ -1143,8 +1135,8 @@ function registeredLead(view: api.RegistrationView, record: store.OrderRecord | function buildEnded({ view, record, invoice }: OrderState): HTMLElement { const label = labelOf(view!, record) - return outcome({ tone: "warn", icon: "alert", title: "Registration ended", - text: ["The registration of ", label ? nameText(label, readSite().tld) : "the name", " was ended because a payment for it was disputed, reversed or refunded in full."], + return outcome({ tone: "warn", icon: "alert", title: "Registration cancelled", + text: ["The registration of ", label ? nameText(label, readSite().tld) : "the name", " was cancelled because its payment was disputed or refunded."], action: codesOnly() ? codeAction() : btn("Search a name", "", () => go(searchLink(""))), reference: invoice?.invoiceId ?? view!.id }) } @@ -1154,13 +1146,13 @@ function buildTaken(s: OrderState): HTMLElement { const { view: taken, record, invoice } = s const view = taken! const label = labelOf(view, record) - const uses = codesOnly() ? " You can ask for a refund." : " Choose another name, or ask for a refund." + const uses = codesOnly() ? " You can ask for a refund." : " Please choose another name, or ask for a refund." const note = !invoice ? null : api.paymentKept(view) - ? el("div", { class: "notice plain" }, el("b", {}, "What you paid is kept as your balance."), uses, " Your names shows the balance.") + ? el("div", { class: "notice plain" }, el("b", {}, "What you paid is in your balance."), uses) : el("div", { class: "notice plain" }, el("b", {}, "What you paid went to your balance."), " It has been refunded since; Your names shows it.") const reserved = s.nameStatus === "reserved" - const title = label ? [gradName(label, readSite().tld), reserved ? " is\u00a0reserved" : " was\u00a0taken"] : reserved ? "The name is reserved" : "The name was taken" - return screen({ title, lead: reserved ? "It was reserved meanwhile, so it can't be registered." : "Someone has taken this name.", + const title = label ? [gradName(label, readSite().tld), reserved ? " is\u00a0reserved" : " is no longer available"] : reserved ? "The name is reserved" : "The name is no longer available" + return screen({ title, lead: reserved ? "It was reserved meanwhile, so it can't be registered." : undefined, ...balanceActions(s) }, api.takenByOrder(view) ? stages(["failed", "", ""]) : stages(["done", "done", "failed"], reserved ? "Reserved" : "Taken"), note, @@ -1198,7 +1190,7 @@ function buildFailed(s: OrderState, signal: AbortSignal): HTMLElement { return screen({ title: invoice ? "Paid, not registered" : "Not registered", lead: settled ? undefined : failedLead(s), action }, el("p", { class: "note center" }, ...orderLine(s)), stages(failedAt), - alertBox("danger", "alert", failedAlert(s), settled ? supportText(settled, view, reference) : [...contactSupport("Contact", reference), "."]), + alertBox("danger", "alert", failedAlert(s), settled ? supportText(settled, view, reference) : [...contactSupport("Please contact", reference), "."]), actionNote(s, signal), referenceLine(reference)) } @@ -1206,15 +1198,14 @@ function buildFailed(s: OrderState, signal: AbortSignal): HTMLElement { function supportText(settled: SupportCase, view: api.RegistrationView, reference: string): Kid[] { const code = view.payment.type === "code" const contact = contactSupport("contact", reference) - const received = code ? "Your code is received" : "Your payment is received" - if (settled === "signatureRefused") return [`${received}, please `, ...contact, "."] + if (settled === "signatureRefused") return [`${code ? "Your code is kept" : "Your payment is kept"}. Please `, ...contact, "."] if (settled === "unread") { const until = view.phase.type === "failed" && view.phase.heldUntil ? dateOf(Date.parse(view.phase.heldUntil) / 1000) : "" - return [`${received}. Until ${until}, this service accepts no other order for the name. Choose Continue to sign the registration again, or `, ...contact, "."] + return [`Please choose Continue before ${until} to finish the registration, or `, ...contact, "."] } return code - ? ["Your code is released. If it has not expired, use it for another name. Otherwise, ", ...contact, "."] - : ["The money paid for this order has been added to its balance. To have it refunded, ", ...contact, "."] + ? ["Your code is released. Use it for another name. If it has expired, please ", ...contact, "."] + : ["Your payment is in your balance. Please choose another name, or for a refund, ", ...contact, "."] } async function continueOrder(): Promise { @@ -1226,8 +1217,8 @@ async function continueOrder(): Promise { await api.reveal(view.id, await flow.revealFor(record, view.duration, await api.signFor(view.labelHash, view.owner))) reread(gen) } catch (e) { - if (holdOn(e, "Nothing changed. ", gen)) return - answer(gen, { type: "continue-failed", note: warning("That did not go through. Nothing changed. Try again in a moment.") }) + if (holdOn(e, LIMITED_LEAD, gen)) return + answer(gen, { type: "continue-failed", note: warning("That did not work. Please try again in a moment.") }) reread(gen) } } diff --git a/webapp/src/views/search.ts b/webapp/src/views/search.ts index 0d91829..0e01b2f 100644 --- a/webapp/src/views/search.ts +++ b/webapp/src/views/search.ts @@ -5,11 +5,11 @@ import { labelHash } from "../crypto/registration.ts" import { hex } from "../crypto/wallet.ts" import { btn, el, icon, type Kid, line, link, NO_AUTOFILL, setAction, waitOut } from "../dom.ts" import * as flow from "../flow.ts" -import { dollars, letters } from "../format.ts" +import { dateOf, dollars, letters } from "../format.ts" import { codesOnly } from "../mode.ts" -import { foldLabel, MAX_LABEL_LENGTH } from "../names.ts" -import type { Hold } from "../screens/hold.ts" -import { againLine, ranOut } from "../screens/names.ts" +import { foldLabel, MAX_LABEL_LENGTH, MIN_LABEL_LENGTH } from "../names.ts" +import { type Hold, LIMITED_LEAD } from "../screens/hold.ts" +import { ranOut, registrableAgain } from "../screens/names.ts" import { checkoutUrl, CODE_URL } from "../screens/routes.ts" import { type Answer, codeCover, coverOf, initialSearch, type Opening, reduce, returnedTo, screenOf, searchDue, type SearchEvent, @@ -19,13 +19,12 @@ import * as session from "../session.ts" import * as store from "../store.ts" import { type Builder, CONTACT_EMAIL, currentRoute, draw, go, historyPlace, isRedraw, isRoute, kept, keptLive, SIMPLEX_SUPPORT, throughHistory } from "./shell.ts" import { chatButton } from "./chats.ts" -import { CODES_ONLY_LINE } from "./codes.ts" +import { CODES_ONLY_LINE, useCodeFor } from "./codes.ts" import { holdEnd, holdEnder, holdFrom, holdNotice, secondsLeft, tabHold } from "./hold.ts" import { NO_ORDERS, rowName } from "./terms.ts" // word joiners keep "a–z" and "0–9" whole: a line may otherwise break after their dash const RANGES = "a\u2060–\u2060z, 0\u2060–\u20609" -const RULE = `A name has 6 letters or more: ${RANGES} and single hyphens between them.` // the landing's words (simplex.domains index.html:287-288) const HEADLINE = "Your SimpleX domain" @@ -105,14 +104,14 @@ async function runSearch(label: string, seq: number): Promise { return dispatch({ type: "unanswered", seq }) } if (!awaited()) return - dispatch({ type: "answered", seq, label, answer, mine: mineFor(hash, answer), now: api.serviceNow() }) + dispatch({ type: "answered", seq, label, answer, mine: mineFor(hash, answer) !== undefined, now: api.serviceNow() }) if (answer.found.type === "available" || answer.found.type === "taken") void pointAtOwnOrder(label, hash, page) } -function mineFor(hash: string, { found }: api.SearchAnswer): boolean { - if (found.type !== "registered") return false +function mineFor(hash: string, { found }: api.SearchAnswer): store.OrderRecord | undefined { + if (found.type !== "registered") return undefined const owner = found.owner.toLowerCase() - return store.orders().some((o) => o.request.labelHash === hash && o.owner.toLowerCase() === owner) + return store.orders().find((o) => o.request.labelHash === hash && o.owner.toLowerCase() === owner) } // the reads of this browser's orders for the name last answered available, which Register waits for @@ -267,8 +266,8 @@ function answerOf(s: SearchState, retry: () => void, signal: AbortSignal): Kid { if (s.paused && s.hold) return pauseLine(s.hold, signal) const answer = s.answer if (answer?.kind === "rule") return ruleLine(answer) - if (answer?.kind === "uncovered") return line("bad", "alert", `${letters(answer.label.length)}. Your code covers names of ${answer.minLength} or more letters.`) - if (answer?.kind === "unchecked") return line("warn", "alert", "This name could not be checked. ", link("Try again", retry)) + if (answer?.kind === "uncovered") return line("bad", "alert", `${letters(answer.label.length)}. ${useCodeFor(answer.minLength)}.`) + if (answer?.kind === "unchecked") return line("warn", "alert", "The name could not be checked now. ", link("Try again", retry)) if (answer?.kind !== "found") return answer?.kind === "checking" ? line("", "clock", "Checking the name…") : null const available = flow.availableOf(answer.answer) if (available) return availableAnswer(s, answer.label, available, signal) @@ -285,14 +284,15 @@ function reservedAnswer(label: string, answer: api.SearchAnswer): Kid[] { } function ruleLine({ label, problem }: Extract): HTMLElement { - const text = problem === "short" ? `${letters(label.length)}. ${RULE}` : problem === "long" ? `${letters(label.length)}. A name has at most ${MAX_LABEL_LENGTH}.` : `Use only ${RANGES} and single hyphens between them.` + const text = problem === "short" ? `${letters(label.length)}. Please use ${MIN_LABEL_LENGTH} letters or more.` + : problem === "long" ? `${letters(label.length)}. Please use ${MAX_LABEL_LENGTH} letters or fewer.` : `Please use only ${RANGES} and single hyphens between them.` return line("bad", "alert", text) } function pauseLine(hold: Hold, signal: AbortSignal): HTMLElement { const count = el("span", {}) const node = el("p", { class: "line warn" }, icon("clock"), count) - waitOut(count, secondsLeft(hold), (left) => `Searching is paused: try again in ${left}.`, () => undefined, signal) + waitOut(count, secondsLeft(hold), (left) => `${LIMITED_LEAD}try again in ${left}.`, () => undefined, signal) return node } @@ -318,11 +318,10 @@ function availableAnswer(s: SearchState, label: string, answer: flow.Available, el("span", { class: "soft" }, ` / ${api.termYears(answer.community, (free ?? paid)?.years ?? answer.years)} years`)] return [ el("div", { class: "card row buy" }, rowName(label, readSite().tld, answer.community, "community"), el("div", { class: "offer" }, el("span", { class: "deal" }, deal), button)), - !free && short ? el("p", { class: "hint" }, `Your code allows you to register a free name of ${short.minLength} or more letters. `, - el("span", { class: "nowrap" }, `This name has ${label.length}.`)) : null, + !free && short ? el("p", { class: "hint" }, `${letters(label.length)}. ${useCodeFor(short.minLength)}.`) : null, unpaid ? el("p", { class: "hint" }, `Your payment covers names at ${dollars(unpaid.paid)} for ${unpaid.years} years.`) : null, own ? line("", "info", "You already have an order for this name. ", el("a", { class: "nowrap", href: own }, "Open that order")) : null, - orderable ? null : line("warn", "alert", `${NO_ORDERS}. Try again later.`), + orderable ? null : line("warn", "alert", `${NO_ORDERS}. Please try again later.`), own || !s.hold ? null : holdNotice(s.hold, signal), ] } @@ -333,9 +332,13 @@ function takenAnswer(s: SearchState, found: Found, answer: api.SearchAnswer): Ki const registered = answer.found.type === "registered" ? answer.found : null // there are no renewals, so a name of ours past its expiry is over here, though the chain keeps it ours in its grace period const expiresAt = registered?.expiresAt ?? null - const lapsed = mine && expiresAt !== null && expiresAt < found.now / 1000 ? `${ranOut(expiresAt)} ${againLine(expiresAt, answer, found.now)}` : null + const again = mine && expiresAt !== null && expiresAt < found.now / 1000 ? registrableAgain(expiresAt, answer, found.now) : null + const order = again?.when === "taken" ? mineFor(hex(labelHash(label)), answer) : undefined + const lapsed = again === null || expiresAt === null ? null : again.when === "from" + ? `Expired: ${dateOf(expiresAt)}. Anybody can register it from ${dateOf(again.at)}.` + : [`${ranOut(expiresAt)} `, order && el("a", { href: store.orderUrl(order) }, "Open your order")] const own = answer.found.type === "taken" ? s.ownOrder : null - const whose = own ? null : mine ? (lapsed ? el("span", { class: "soft" }, "Expired") : el("a", { class: "nowrap", href: "/#/names" }, "Your name")) + const whose = own ? null : mine && again?.when !== "taken" ? (lapsed ? el("span", { class: "soft" }, "Expired") : el("a", { class: "nowrap", href: "/#/names" }, "Your name")) : el("span", { class: "soft" }, "Taken") const { tld } = readSite() const name = `${label}.${tld}` diff --git a/webapp/src/views/shell.ts b/webapp/src/views/shell.ts index 75265e7..9a26e2d 100644 --- a/webapp/src/views/shell.ts +++ b/webapp/src/views/shell.ts @@ -1,7 +1,7 @@ // The page's frame: theme switch and navigation between views; index.html draws the header and footer. import { alertBox, announce, btn, copyButton, el, fitNames, icon, type Kid, liveRegion, reducedMotion, refill, type Tone, waitOut } from "../dom.ts" import type { IconName } from "../icons.ts" -import type { Hold } from "../screens/hold.ts" +import { type Hold, LIMITED_LEAD } from "../screens/hold.ts" import * as session from "../session.ts" import * as store from "../store.ts" import { secondsLeft } from "./hold.ts" @@ -10,10 +10,10 @@ import { reloadedForRoute } from "./served-mode.ts" export const CONTACT_EMAIL = "chat@simplex.chat" export const SIMPLEX_SUPPORT = "https://smp6.simplex.im/a#lrdvu2d8A1GumSmoKb2krQmtKhWXq-tyGpHuM7aMwsw" -export const supportVia = (verb: "Contact" | "contact"): Kid[] => +export const supportVia = (verb: "Please contact" | "contact"): Kid[] => [`${verb} support via `, el("a", { class: "nowrap", href: `mailto:${CONTACT_EMAIL}` }, CONTACT_EMAIL), " or ", el("a", { href: SIMPLEX_SUPPORT, target: "_blank", rel: "noopener" }, "SimpleX")] -export const contactSupport = (verb: "Contact" | "contact", reference: Kid): Kid[] => [...supportVia(verb), ", and include order reference ", reference] +export const contactSupport = (verb: "Please contact" | "contact", reference: Kid): Kid[] => [...supportVia(verb), ", with the name and the order reference ", reference] let rerender: () => void = () => undefined @@ -279,15 +279,13 @@ export function outcome(o: Outcome): HTMLElement { actionsOf(o)) } -const LIMITED = "Too many orders were tried from here." - export function limitScreen(hold: Hold | null, again: () => void, back: string, signal: AbortSignal): HTMLElement { - const line = el("span", {}, `${LIMITED} Nothing was charged.`) + const line = el("span", {}, `${LIMITED_LEAD}try again.`) const tryAgain = btn("Try again", "", again) tryAgain.disabled = hold !== null const shown = outcome({ tone: "warn", icon: "clock", title: "Too many attempts", text: line, action: tryAgain, back }) // the count goes in once the line is in its notice, where its spoken copy goes beside it - if (hold) waitOut(line, Math.max(1, secondsLeft(hold)), (left) => `${LIMITED} Try again in ${left}.`, () => undefined, signal) + if (hold) waitOut(line, Math.max(1, secondsLeft(hold)), (left) => `${LIMITED_LEAD}try again in ${left}.`, () => undefined, signal) return shown } @@ -321,7 +319,7 @@ export function showRefund(reference: string, key: string): void { const copy = copyButton(reference, "field-copy", "Copy reference") showPopup(key, [ el("h2", { id: POPUP_TITLE }, "Refund"), - el("p", {}, ...contactSupport("Contact", reference), ". Support refunds what is left of your balance."), + el("p", {}, ...contactSupport("Please contact", reference), ". Support refunds what is left of your balance."), el("div", { class: "code-display" }, el("span", { class: "code-text" }, reference), el("span", { class: "code-buttons" }, copy)), ], copy) } diff --git a/webapp/src/views/terms.ts b/webapp/src/views/terms.ts index 176c6c4..5c2c192 100644 --- a/webapp/src/views/terms.ts +++ b/webapp/src/views/terms.ts @@ -3,7 +3,7 @@ import { el, icon, line, nameText, nameTitle } from "../dom.ts" import { blocksOf, spansOf } from "../markdown.ts" import { POPUP_TITLE, showPopup } from "./shell.ts" -const TERMS_CHANGED = "The Names Conditions changed. Accept them again." +const TERMS_CHANGED = "The Names Conditions changed. Please accept them to continue." const INFO_KEY = "community-info" const TERMS_KEY = "community-terms" export const CANT_SHOW = "The Names Conditions can't be shown now. Try again in a moment." diff --git a/webapp/test/build.test.ts b/webapp/test/build.test.ts index fbe221b..70a1c4e 100644 --- a/webapp/test/build.test.ts +++ b/webapp/test/build.test.ts @@ -4,7 +4,7 @@ import { describe, expect, it } from "vitest" const ROOT = fileURLToPath(new URL("..", import.meta.url)) const STAND_IN_LABEL = "Test card form: no Stripe key is set, so Pay simulates a payment." -const STRIPE_NOTE = "The card form is Stripe's. Nothing is charged until you pay." +const STRIPE_NOTE = "The card form is provided by Stripe. Your card will be charged only when you press Pay." const BUILD_MS = 120_000 // the JavaScript a build of the page ships, in the mode given diff --git a/webapp/test/screens-checkout.test.ts b/webapp/test/screens-checkout.test.ts index 20c0a58..1aaa1fb 100644 --- a/webapp/test/screens-checkout.test.ts +++ b/webapp/test/screens-checkout.test.ts @@ -9,7 +9,7 @@ const NOW = Date.parse("2026-10-17T12:00:00Z") const CHAIN = { resolver: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", sponsor: "0x0B306BF915C4d645ff596e518fAf3F9669b97016", chainId: 31337, tld: "simplex" } const CODE = { display: "SN6-AAAAA-BBBBB-CCCCC", minLength: 6, years: 3 } const WAITING = { registrationId: "reg-0", invoiceId: "inv-0" } -const OPEN_ORDER = { invoiceId: "inv-9", confirming: false } +const OPEN_ORDER = { invoiceId: "inv-9" } const TERMS = { hash: `0x${"21".repeat(32)}`, link: `https://git.simplex.chat/simplex-chat/simplex-chat/raw/commit/${"83".repeat(20)}/docs/general-terms.md#sha256=${"02".repeat(32)}` } const NEWER = { hash: `0x${"f6".repeat(32)}`, link: `https://git.simplex.chat/simplex-chat/simplex-chat/raw/commit/${"ff".repeat(20)}/docs/general-terms.md#sha256=${"ea".repeat(32)}` } const BAKERS = { for: "bakers and pastry chefs", years: 2 } @@ -186,11 +186,9 @@ describe("reduce", () => { it("open-order-seen points at an unpaid invoice", () => { expect(reduce(s, { type: "open-order-seen", order: OPEN_ORDER })).toEqual({ ...s, openOrder: OPEN_ORDER }) }) - it("open-order-seen follows that invoice: confirming, then paid or closed, when nothing is pointed at", () => { + it("open-order-seen follows that invoice until it is paid or closed, when nothing is pointed at", () => { const pointed = reduce(s, { type: "open-order-seen", order: OPEN_ORDER }) - const confirming = reduce(pointed, { type: "open-order-seen", order: { ...OPEN_ORDER, confirming: true } }) - expect(confirming.openOrder).toEqual({ ...OPEN_ORDER, confirming: true }) - expect(reduce(confirming, { type: "open-order-seen", order: null })).toEqual(s) + expect(reduce(pointed, { type: "open-order-seen", order: null })).toEqual(s) }) it("send-started marks the order on its way from this page", () => { expect(reduce(s, { type: "send-started" })).toEqual({ ...s, sending: true, busy: true }) diff --git a/webapp/test/screens-names.test.ts b/webapp/test/screens-names.test.ts index 727e870..e6d87aa 100644 --- a/webapp/test/screens-names.test.ts +++ b/webapp/test/screens-names.test.ts @@ -1,10 +1,10 @@ import { describe, expect, it } from "vitest" import type { Found, InvoiceView, Links, RecordEdits, RegistrationView, SearchAnswer } from "../src/api.ts" -import { type Hold, NO_LEAD } from "../src/screens/hold.ts" +import { type Hold, LIMITED_LEAD, NO_LEAD } from "../src/screens/hold.ts" import { balanceRows, changesOf, CODE_CHIPS, editable, editsLine, editsShort, hasLinks, linksAction, type EditEvent, type EditForm, type EditKind, type EditState, hasRecords, initialEdit, - initialList, initialRestore, lapsed, lateLine, listedOrders, nameRows, ORDER_CHIP_WORDS, rowShown, rowsDrawn, unanswered, paidLine, type ListEvent, type ListState, NOT_SAVED, phaseChip, reduceEdit, reduceList, reduceRestore, REFUSALS, - againLine, ranOut, registrableAgain, screenOfEdit, type Stored, waitsToSign, + initialList, initialRestore, lapsed, lateLine, listedOrders, nameRows, ORDER_CHIP_WORDS, rowShown, rowsDrawn, unanswered, paidLine, type ListEvent, type ListState, phaseChip, reduceEdit, reduceList, reduceRestore, REFUSALS, + ranOut, registrableAgain, screenOfEdit, type Stored, waitsToSign, } from "../src/screens/names.ts" import type { CodeRecord, OrderRecord, PendingCode } from "../src/store.ts" import { type ShortView, viewOf } from "./registration-view.ts" @@ -80,13 +80,10 @@ describe("list helpers", () => { expect(registrableAgain(expiresAt, registered(undefined, { gracePeriod: 3600 }), NOW)).toEqual({ when: "from", at: expiresAt + 3600 }) expect(registrableAgain(expiresAt, held, NOW)).toEqual({ when: "taken" }) }) - it("ranOut and againLine say when a name ran out and when it can be registered again, as the edit page and search show it", () => { + it("ranOut says when a name ran out, as the edit page and search show it", () => { const expiresAt = Date.parse("2028-11-16T12:00:00Z") / 1000 - expect(ranOut(expiresAt)).toBe("Its registration ran out on 16\u00a0November 2028.") - expect(ranOut(null)).toBe("Its registration ran out.") - expect(againLine(expiresAt, registered(), expiresAt * 1000 + 1000)).toBe("It can be registered again from 14\u00a0February 2029.") - expect(againLine(expiresAt, available, expiresAt * 1000)).toBe("Search it to register it again.") - expect(againLine(expiresAt, registered(undefined, { owner: APP }), (expiresAt + GRACE_S) * 1000)).toBe("It has been registered again since.") + expect(ranOut(expiresAt)).toBe("Your registration of this name expired on 16\u00a0November 2028.") + expect(ranOut(null)).toBe("Your registration of this name expired.") }) it("waitsToSign: a commit whose wait is over and whose name is still hidden", () => { const view = registration({ phase: "committed", revealAfter: NOW / 1000 - 1 }) @@ -112,7 +109,7 @@ describe("list helpers", () => { ["nothing paid", registration(), invoice(), record(), ["Waiting for payment", "warn"]], ["a registration under way", registration({ phase: "registering" }), null, record(), ["Registering", "brand"]], ["a registered name", registeredView(), null, record(), ["Registered", "ok"]], - ["a registration ended in its dispute period", registration({ phase: "ended", label: "alice" }), null, record(), ["Ended", "bad"]], + ["a registration ended in its dispute period", registration({ phase: "ended", label: "alice" }), null, record(), ["Cancelled", "bad"]], ["a name taken first", registration({ phase: "taken" }), null, record(), ["Taken first", "warn"]], ["a failed registration", registration({ phase: "failed" }), null, record(), ["Not registered", "bad"]], ] @@ -409,12 +406,12 @@ describe("restore", () => { }) it("edited takes the refusal away, unless the tab is waiting", () => { expect(reduceRestore({ ...start, refusal: "none" }, { type: "edited" })).toEqual(start) - const held = { ...start, hold: { until: NOW + 5000, lead: "Your code is fine. " } } + const held = { ...start, hold: { until: NOW + 5000, lead: "Please " } } expect(reduceRestore(held, { type: "edited" })).toBe(held) }) it("held ends the lookup and holds it with its words; hold-ended lets it go", () => { - const held = reduceRestore({ ...start, busy: true }, { type: "held", until: NOW + 5000, lead: "Your code is fine. " }) - expect(held).toEqual({ busy: false, refusal: null, hold: { until: NOW + 5000, lead: "Your code is fine. " } }) + const held = reduceRestore({ ...start, busy: true }, { type: "held", until: NOW + 5000, lead: "Please " }) + expect(held).toEqual({ busy: false, refusal: null, hold: { until: NOW + 5000, lead: "Please " } }) expect(reduceRestore(held, { type: "hold-ended" })).toEqual(start) }) it("REFUSALS: a refusal of the code itself waits for an edit; one of the service can be tried again", () => { @@ -535,10 +532,10 @@ describe("edit", () => { expect(form(reduceEdit(sending, { type: "save-unanswered", counted: false, at: NOW / 1000 }))).toMatchObject({ saving: false, unanswered: true, result: "unanswered", edits: { left: 3, nextAt: null } }) expect(form(reduceEdit(sending, { type: "save-unanswered", counted: true, at: NOW / 1000 })).edits).toEqual({ left: 2, nextAt: NOW / 1000 + YEAR_S }) }) - it("save-held holds Save, saying the links were not saved; hold-ended lets it go", () => { + it("save-held holds Save, saying there were too many attempts; hold-ended lets it go", () => { const both = reduceEdit(reduceEdit(reduceEdit(editing, { type: "field-changed", kind: "contact", value: "" }), { type: "field-changed", kind: "channel", value: CHANNEL }), { type: "save-started" }) const held = reduceEdit(both, { type: "save-held", until: NOW + 5000 }) - expect(form(held)).toMatchObject({ saving: false, result: null, nonce: 3, hold: { until: NOW + 5000, lead: `${NOT_SAVED} ` } }) + expect(form(held)).toMatchObject({ saving: false, result: null, nonce: 3, hold: { until: NOW + 5000, lead: LIMITED_LEAD } }) expect(form(reduceEdit(held, { type: "hold-ended" })).hold).toBeNull() }) it("save-refused after the nonce moved takes the chain's nonce and links", () => { diff --git a/webapp/test/screens-order.test.ts b/webapp/test/screens-order.test.ts index 37f22b5..49b894d 100644 --- a/webapp/test/screens-order.test.ts +++ b/webapp/test/screens-order.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vitest" import type { Acceptance, Community, InvoiceView, RegistrationView } from "../src/api.ts" -import { NO_LEAD } from "../src/screens/hold.ts" +import { LIMITED_LEAD, NO_LEAD } from "../src/screens/hold.ts" import { CARD_SLOW_MS, closedBalance, type ClosedCase, closedCase, costOf, failedAlert, failedLead, finished, initialState, type Note, type OrderEvent, type OrderKind, type OrderState, reduce, refusalsOf, RETRY_MS, retryRefusal, REVEAL_ATTEMPTS, revealDue, revealKey, screenOf, STALL_MARGIN_MS, stalledAt, TX_STALL_MS, unreadDelay, wakeAt, @@ -13,8 +13,8 @@ import { type ShortView as Short, viewOf } from "./registration-view.ts" const NOW = Date.parse("2026-10-17T12:00:00Z") const OWNER = "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed" const COMMITMENT = "0x9c1185a5c5e9fc54612808977ee8f548b2258d31b6c0a94e1ab9e1e8c4d6a0f1" -const USED: Note = { tone: "warn", icon: "key", title: "Your code was used for another name", text: "A code registers one name only." } -const WARN: Note = { tone: "warn", icon: "alert", title: null, text: "The invoice could not be cancelled now. Try again in a moment." } +const USED: Note = { tone: "warn", icon: "key", title: "Your code was used for another name", text: "" } +const WARN: Note = { tone: "warn", icon: "alert", title: null, text: "The invoice was not cancelled. Please try again in a moment." } const registration = (change: Short = {}): RegistrationView => viewOf({ id: "reg-1", version: 1, labelHash: "0x4f1b", label: null, owner: OWNER, commitment: COMMITMENT, sealed: "sealed-box", years: 2, duration: 2 * 365 * 86400, @@ -279,7 +279,7 @@ describe("reduce", () => { }) it("a code refused stays refused through a hold and a read of the same failed order", () => { const refused = { ...STATES.failed, codeRefused: true } - expect(reduce(refused, { type: "hold-started", until: NOW + 2000, lead: "Nothing changed. " }).codeRefused).toBe(true) + expect(reduce(refused, { type: "hold-started", until: NOW + 2000, lead: LIMITED_LEAD }).codeRefused).toBe(true) expect(reduce(refused, answered(refused, STATES.failed)).codeRefused).toBe(true) }) it("code-checked marks the failed order's code kept, which a read of the same failed order keeps and another screen forgets", () => { @@ -311,7 +311,7 @@ describe("reduce", () => { expect(reduce(working, { type: "price-changed", price: 2500 })).toMatchObject({ busy: null, price: 2500 }) }) it("a screen change leaves the last screen's note, action and hold words behind", () => { - const s = { ...paying, busy: "cancel" as const, note: WARN, hold: { until: NOW + 20_000, lead: "The invoice is still open. " } } + const s = { ...paying, busy: "cancel" as const, note: WARN, hold: { until: NOW + 20_000, lead: LIMITED_LEAD } } expect(reduce(s, answered(s, STATES["status:closed"]))).toMatchObject({ busy: null, note: null, hold: { until: NOW + 20_000, lead: NO_LEAD } }) }) }) @@ -319,11 +319,11 @@ describe("reduce", () => { describe("holds", () => { it("hold-started holds the actions, ending the one at work", () => { const working = reduce(STATES.failed, { type: "retry-started" }) - expect(reduce(working, { type: "hold-started", until: NOW + 2000, lead: "Nothing changed. " })).toEqual({ ...STATES.failed, hold: { until: NOW + 2000, lead: "Nothing changed. " } }) + expect(reduce(working, { type: "hold-started", until: NOW + 2000, lead: LIMITED_LEAD })).toEqual({ ...STATES.failed, hold: { until: NOW + 2000, lead: LIMITED_LEAD } }) }) it("a shorter hold met meanwhile does not cut a longer one", () => { const held = reduce(STATES.failed, { type: "hold-started", until: NOW + 20_000, lead: NO_LEAD }) - expect(reduce(held, { type: "hold-started", until: NOW + 2000, lead: "Nothing changed. " }).hold).toEqual({ until: NOW + 20_000, lead: "Nothing changed. " }) + expect(reduce(held, { type: "hold-started", until: NOW + 2000, lead: LIMITED_LEAD }).hold).toEqual({ until: NOW + 20_000, lead: LIMITED_LEAD }) }) it("hold-ended lets the actions go", () => { expect(reduce({ ...STATES.failed, hold: { until: NOW, lead: NO_LEAD } }, { type: "hold-ended" }).hold).toBeNull() @@ -406,17 +406,17 @@ describe("failedLead", () => { const failed = (invoice: InvoiceView | null, change: Partial = {}) => read(invoice, registration({ phase: "failed" }), { record: invoice ? record() : coded, ...change }) it("an invoice's payment is kept, for support", () => { - expect(failedLead(failed(crypto({ status: "paid", paidInFull: true })))).toBe("Your payment is kept. Write to support.") + expect(failedLead(failed(crypto({ status: "paid", paidInFull: true })))).toBe("Your payment is kept.") }) - it("a refused code says it can no longer pay", () => { - expect(failedLead(failed(null, { codeRefused: true }))).toBe("Your code can no longer be used for it. Write to support.") + it("a refused code is not said to be kept", () => { + expect(failedLead(failed(null, { codeRefused: true, codeKept: true }))).toBe("") }) it("a code is said to be kept only once the service says so", () => { - expect(failedLead(failed(null, { codeKept: true }))).toBe("Your code is kept. Write to support.") - expect(failedLead(failed(null)), "the check has not answered, or failed").toBe("Write to support.") + expect(failedLead(failed(null, { codeKept: true }))).toBe("Your code is kept.") + expect(failedLead(failed(null)), "the check has not answered, or failed").toBe("") }) it("a browser without the order's code is promised nothing of it, even once the service says it is unspent", () => { - expect(failedLead(failed(null, { record: null, codeKept: true }))).toBe("Write to support.") + expect(failedLead(failed(null, { record: null, codeKept: true }))).toBe("") }) })