From ea5803ff062be5012ec7ccf998f42063f18b8b8d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 31 Aug 2026 08:05:33 -0700 Subject: The migrate link stands under the profile editor's username field too — right where a coinos.io veteran is looking at the name they want to bring over MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr --- src/features/messages.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/features/messages.js b/src/features/messages.js index 4451569..ad83389 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -1901,6 +1901,14 @@ export function messagesFeature(ctx) { onInput: (ev) => { ui.profEdit.uname = ev.target.value.toLowerCase().replace(/[^a-z0-9._-]/g, ''); ev.target.value = ui.profEdit.uname; }, }), h('span', { class: 'muted', style: 'white-space:nowrap;padding:0 8px' }, '@' + myAddr.split('@')[1]))) : null, + // the migrate door, right where a coinos.io veteran is looking + // at the name they want to bring over (mainnet names only) + myAddr && myAddr.split('@')[1] === 'coinos.io' ? h('button', { + type: 'button', class: 'linklike small', style: 'align-self:flex-start', + onClick: () => { + location.href = `https://coinos.io/migrate?to=${encodeURIComponent(myAddr)}&back=${encodeURIComponent(location.origin + '/')}`; + }, + }, t('onbHaveCoinos')) : null, field(t('profDisplayName'), 'name'), field(t('profAbout'), 'about', '', true), field(t('profPicture'), 'picture', 'https://…'), -- cgit v1.2.3