Show the new position ID (and upgrade result) in /direct-join

After submit, poll eth_getTransactionReceipt and read the member id from the
MemberRegistered event (topics[1]); surface it in a prominent success box plus
the activity log, instead of leaving the user to find it in Telegram. Same for
upgrades (shows the new level). Reverts are reported clearly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-08-18 06:22:07 -05:00
parent c5b5ef7f86
commit 962eacd44c
2 changed files with 33 additions and 4 deletions
+6
View File
@@ -64,6 +64,12 @@
<p style="color:var(--muted);font-size:12px;margin:0">Only use this if you need to send a specific amount. The auto amount is read live from the contract's own price table.</p>
</div>
<div id="result" class="dj-card dj-hide" style="border-color:var(--ok);background:rgba(123,224,161,.08);text-align:center">
<div style="font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--ok);font-weight:800">✅ Success — save this</div>
<div id="resultId" style="font-size:46px;font-weight:900;color:var(--gold);margin:6px 0;letter-spacing:-1px">—</div>
<div id="resultSub" style="color:var(--muted);font-size:14px"></div>
</div>
<div class="dj-card">
<h2 style="margin:0 0 8px;font-size:16px">Activity</h2>
<div id="logWrap"><div id="log"></div></div>