mockups: step 3 submits with a saved contact; Not yet variant
The new-contact fields were required while hidden, so the form never validated with a saved contact chosen; the server checks them when contact=new instead. Adds the "Not yet" state of the Points at tile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+24
−8
docs/superpowers/mockups/domains-account-kit/buy-pay.html+24 −8
CI passed — run details
diff --git a/docs/superpowers/mockups/domains-account-kit/buy-pay.html b/docs/superpowers/mockups/domains-account-kit/buy-pay.html| index 49fce272f..2001ea549 100644 |
| --- a/docs/superpowers/mockups/domains-account-kit/buy-pay.html |
| +++ b/docs/superpowers/mockups/domains-account-kit/buy-pay.html |
| @@ -1190,6 +1190,8 @@ |
| </header> |
| <main> |
| <style> |
| +/* Mockup annotation only, not for the console: labels each state when one file shows several. */ |
| +.mock-state { margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px dashed var(--rule); } |
| /* Mockup-only; becomes .contact-pick in console_chrome.html: radio rows on the variable-row list. */ |
| .contact-pick .envvar-row { align-items: center; cursor: pointer; } |
| /* Mockup-only; part of .contact-pick in console_chrome.html: the radio in the accent colour. */ |
| @@ -1244,17 +1246,18 @@ form:has(#contact-new:checked) .newcontact { display: block; } |
| </div> |
| <div class="newcontact"> |
| <div class="fields"> |
| - <p><label for="cnew-first">First name</label><input type="text" id="cnew-first" name="first" value="" autocomplete="given-name" required></p> |
| - <p><label for="cnew-last">Last name</label><input type="text" id="cnew-last" name="last" value="" autocomplete="family-name" required></p> |
| + <p><label for="cnew-first">First name</label><input type="text" id="cnew-first" name="first" value="" autocomplete="given-name"></p> |
| + <p><label for="cnew-last">Last name</label><input type="text" id="cnew-last" name="last" value="" autocomplete="family-name"></p> |
| <p><label for="cnew-company">Company (optional)</label><input type="text" id="cnew-company" name="company" value="" autocomplete="organization"></p> |
| - <p><label for="cnew-email">Email</label><input type="email" id="cnew-email" name="email" value="" autocomplete="email" required></p> |
| - <p><label for="cnew-phone">Phone</label><input type="text" inputmode="tel" id="cnew-phone" name="phone" value="" autocomplete="tel" required></p> |
| - <p><label for="cnew-street">Street and number</label><input type="text" id="cnew-street" name="street" value="" autocomplete="address-line1" required></p> |
| - <p><label for="cnew-city">City</label><input type="text" id="cnew-city" name="city" value="" autocomplete="address-level2" required></p> |
| - <p><label for="cnew-postcode">Postal code</label><input type="text" id="cnew-postcode" name="postcode" value="" autocomplete="postal-code" required></p> |
| - <p><label for="cnew-country">Country</label><select id="cnew-country" name="country" autocomplete="country" required><option value="">Choose</option><option value="GB">United Kingdom</option><option value="IE">Ireland</option><option value="US">United States</option></select></p> |
| + <p><label for="cnew-email">Email</label><input type="email" id="cnew-email" name="email" value="" autocomplete="email"></p> |
| + <p><label for="cnew-phone">Phone</label><input type="text" inputmode="tel" id="cnew-phone" name="phone" value="" autocomplete="tel"></p> |
| + <p><label for="cnew-street">Street and number</label><input type="text" id="cnew-street" name="street" value="" autocomplete="address-line1"></p> |
| + <p><label for="cnew-city">City</label><input type="text" id="cnew-city" name="city" value="" autocomplete="address-level2"></p> |
| + <p><label for="cnew-postcode">Postal code</label><input type="text" id="cnew-postcode" name="postcode" value="" autocomplete="postal-code"></p> |
| + <p><label for="cnew-country">Country</label><select id="cnew-country" name="country" autocomplete="country"><option value="">Choose</option><option value="GB">United Kingdom</option><option value="IE">Ireland</option><option value="US">United States</option></select></p> |
| </div> |
| <p class="small">Saved for next time.</p> |
| + <!-- Mockup: these fields are not "required" in HTML because they are hidden while a saved contact is chosen; the server checks them when contact=new. --> |
| </div> |
| <div class="settings-row"> |
| <a class="btn btn-secondary" href="/a/shop/domains/buy/app?name=example.com">Back</a> |
| @@ -1262,6 +1265,19 @@ form:has(#contact-new:checked) .newcontact { display: block; } |
| </div> |
| </form> |
| +<p class="small mock-state">Mockup: the same step when “Not yet” was chosen in step 2. Only the Points at tile changes.</p> |
| +<section class="tiles" aria-label="Your order, not pointed at an app"> |
| + <div class="tile"> |
| + <h2>Price</h2> |
| + <p class="tile-value">£12</p> |
| + <p class="tile-detail">example.com for one year</p> |
| + </div> |
| + <div class="tile"> |
| + <h2>Points at</h2> |
| + <p class="tile-value">Not yet</p> |
| + <p class="tile-detail">not pointed at an app yet</p> |
| + </div> |
| +</section> |
| </main> |
| <script> |