Public: anyone can read this; the crew can change it.

Unlink on Settings › Account (open-platform.sh login, parent forge) goes through the confirm page, which says how to link again #7988

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

torque/forge:torque/7964-unlink-on-settings-account-open-platform → main 1 commit fork

  • Merged. torque/7964-unlink-on-settings-account-open-platform was merged into main as 9b692f8.

Review

Sign in to review this change.
4 files changed +103 −7
src/web/pages/account.ts +2 −6
@@ -143,9 +143,7 @@ function edgeLinkView(ctx: Ctx): Html {
143143 return card(
144144 linked !== undefined
145145 ? html`<p>open-platform.sh: linked as <strong>${linked}</strong></p>
146 <form method="post" action="/settings/edge/unlink">
147 ${btn("Unlink", { type: "submit" })}
148 </form>`
146 ${confirmAction({ action: "/settings/edge/unlink", verb: "Unlink" })}`
149147 : html`<p>open-platform.sh: not linked</p>
150148 ${carried === undefined
151149 ? html`<p class="hint">Sign in through open-platform.sh, then come back here to link that login.</p>`
@@ -165,9 +163,7 @@ function parentLinkView(ctx: Ctx): Html {
165163 return card(
166164 linked
167165 ? html`<p>${host}: linked</p>
168 <form method="post" action="/settings/parent/unlink">
169 ${btn("Unlink", { type: "submit" })}
170 </form>`
166 ${confirmAction({ action: "/settings/parent/unlink", verb: "Unlink" })}`
171167 : html`<p>${host}: not linked</p>
172168 <form method="post" action="/settings/parent/link">
173169 ${btn(`Link ${host}`, { type: "submit" })}
src/web/pages/search.ts +20
@@ -568,6 +568,26 @@ const DESTRUCTIVE: {
568568 phrase: "",
569569 }),
570570 },
571 {
572 pattern: /^\/settings\/edge\/unlink$/,
573 describe: () => ({
574 verb: "Unlink",
575 title: "Unlink your open-platform.sh login?",
576 detail:
577 "You can no longer sign in here through open-platform.sh until you sign in that way and link it again on this page.",
578 phrase: "",
579 }),
580 },
581 {
582 pattern: /^\/settings\/parent\/unlink$/,
583 describe: () => ({
584 verb: "Unlink",
585 title: "Unlink the parent forge?",
586 detail:
587 "You can no longer sign in here through the parent forge until you link it again on this page. The last way in is never removed.",
588 phrase: "",
589 }),
590 },
571591 {
572592 pattern: /^\/([^/]+)\/([^/]+)\/settings\/proposal-tokens\/([^/]+)\/delete$/,
573593 describe: (m) => ({

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs