Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
c888ca3
webapp: tests of the approved names page texts
evgeny-simplex Nov 26, 2026
97c2be0
webapp: shorter, polite and true texts on the names page
evgeny-simplex Nov 26, 2026
0411fe5
webapp: screen baselines with the approved names page texts
evgeny-simplex Nov 26, 2026
c523641
webapp: screen baselines of the countdowns and notes the texts changed
evgeny-simplex Nov 26, 2026
d64f497
webapp: restore the name mineFor of the search's own-order lookup
evgeny-simplex Nov 26, 2026
e0c7715
webapp: a refused cancel says that a payment was received
evgeny-simplex Nov 26, 2026
9cc7538
webapp: a taken order of an unknown name says it is no longer available
evgeny-simplex Nov 26, 2026
a9a214b
webapp: the README and TODO describe the approved names page texts
evgeny-simplex Nov 26, 2026
88940c0
webapp: screen baselines of the refused cancel's text
evgeny-simplex Nov 26, 2026
b49729f
webapp: Stripe's note wraps on a phone, so the card page fits its width
evgeny-simplex Nov 26, 2026
580a288
webapp: test that the link refusal fits two lines on a phone
evgeny-simplex Nov 26, 2026
0c86ca9
webapp: remove the open order's confirming flag, which no text reads
evgeny-simplex Nov 26, 2026
55bec32
webapp: TODO drops the items the approved texts resolved
evgeny-simplex Nov 26, 2026
d4bb0e4
webapp: screen baselines of the card page with Stripe's note wrapped
evgeny-simplex Nov 26, 2026
78fa6cf
webapp: TODO drops the not-covering item, whose verdict text was repl…
evgeny-simplex Nov 26, 2026
07974ab
webapp: TODO keeps the not-covering item for the two refusal screens
evgeny-simplex Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions webapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
Loading
Loading