···3434 askForPlcToken: false,
3535 plcToken: null,
3636 plcStatus: null,
3737+ done: false,
3738 //advance
3839 showAdvance: false,
3940 createNewAccount: true,
···108109 this.plcStatus = 'Signing PLC operation...';
109110 await window.Migrator.signPlcOperation(this.plcToken);
110111 this.plcStatus = 'PLC operation signed successfully! Your account has been MOOved to the new PDS.';
112112+ this.done = true;
111113 // this.askForPlcToken = false;
112114 } catch (error) {
113115 this.error = error.message;
···248250 </div>
249251 <div x-show="error" x-text="error" class="error-message"></div>
250252 <div x-show="plcStatus" x-text="plcStatus" class="status-message"></div>
253253+ <div x-show="done" class="status-message">Congratulations! You have MOOved to a new PDS! Remember to use
254254+ your new PDS URL under "Hosting provider" when logging in on Bluesky. Can find more detail information
255255+ <a href="http://localhost:5173/info.html#cant-login">here.</a></div>
251256 <div>
252257 <button type="submit">Sign the papers</button>
253258 </div>
+32-2
public/info.html
···1313</head>
1414<body>
1515<div class="container">
1616- <h1>PDS MOOver</h1>
1616+ <h1><a href="/">PDS MOOver </a></h1>
1717 <div class="cow-image">
1818 <img src="/moo.webp" alt="Cartoon milk cow" style="max-width: 100%; max-height: 100%; object-fit: contain;">
1919 </div>
···4343 <h3>Table of contents</h3>
4444 <ol>
4545 <li><a href="#precautions">Precautions</a></li>
4646+ <li><a href="#cant-login">I can't log in?/Says my account is deactivated?</a></li>
4747+ <li><a href="#invalid-handle">My account says Invalid Handle?</a></li>
4648 <li><a href="#help">!!!!!HELP!!!!!</a></li>
4749 <li><a href="#why">Why doesn't PDS MOOver have xyz?</a></li>
4850 <li><a href="#done">Alright account migrated, now what?</a></li>
···7274 </p>
7375 </section>
74767777+ <section id="cant-login" class="section" style="text-align:left">
7878+ <h2>I can't log in?/Says my account is deactivated?</h2>
7979+ <p>When you move to a non Bluesky PDS you have to do an extra step on login.</p>
8080+ <ol>
8181+ <li>On the Sign in screen for <a href="https://bsky.app">bsky.app</a> or on the app click the top input
8282+ titled "Hosting provider" and has a globe icon and says Bluesky Social"
8383+ </li>
8484+ <li>Click the tab labeled custom</li>
8585+ <li>In the input for server address you put the same URL you used for the new PDS URL with the https://
8686+ like so <code>https://example.com</code></li>
8787+ <li>Click done and enter your new handle(or email) and password</li>
8888+ </ol>
8989+ </section>
9090+9191+ <section id="invalid-handle" class="section" style="text-align:left">
9292+ <h2>My account says Invalid Handle?</h2>
9393+ <p>It's a bit of a bug sometimes. I'm not sure what causes it, but usually mentioning your handle in a post
9494+ or reply fixes it.
9595+ Like <code>@fullhandle.newpds.com</code>, may or may not highlight it blue and autofill it but make sure
9696+ you have the
9797+ full handle and the @ like that. Can also check your handle with the <a
9898+ href="https://bsky-debug.app/handle">Bluesky Debug Page</a>. If you see green, and it says one
9999+ of
100100+ them pass you should be fine and just may take a while to update.</p>
101101+ </section>
102102+75103 <section id="help" class="section" style="text-align:left">
76104 <h2>!!!!!HELP!!!!!</h2>
77105 <p>If you're having issues with PDS MOOver first of all, I'm very sorry. I have tested this to the best of
···83111 if it created the account, repo is there but some blobs are missing. You can uncheck everything but
84112 "Migrate Missing Blobs", "Migrate Prefs", and "Migrate PLC record" and it will pick up after the account
85113 repo migration. It is odd in the fact that all the fields are required. That's just to cut down on logic
8686- to hopefully cut down on bugs. If you don't ever see the "Please enter your PLC Token" you can just
114114+ to hopefully cut down on bugs. If you don't ever see the "Please enter your PLC Token" and enter the
115115+ token sent to your email, you can just
87116 forget about it and call it a day if it's too much. Your old account is still active and working.</p>
88117 </section>
118118+8911990120 <section id="why" class="section" style="text-align:left">
91121 <h2>Why doesn't PDS MOOver have xyz?</h2>
+6-3
src/pdsmoover.js
···5959 * @param {string|null} twoFactorCode - Optional, but needed if it fails with 2fa required
6060 */
6161 async migrate(oldHandle, password, newPdsUrl, newEmail, newHandle, inviteCode, statusUpdateHandler = null, twoFactorCode = null) {
6262+6363+ //Copying the handle from bsky website adds some random unicodes on
6464+ oldHandle = oldHandle.replace('@', '').trim().replace(/[\u202A\u202C\u200E\u200F\u2066-\u2069]/g, '');
6265 //Resolves the did and finds the did document for the old PDS
6366 safeStatusUpdate(statusUpdateHandler, 'Resolving old PDS');
6467 const usersDid = await handleResolver.resolve(oldHandle);
···185188186189 for (const recordBlob of missingBlobs.data.blobs) {
187190 try {
188188- //TODO may move the status update here but would have it only update like every 10
191191+189192 const blobRes = await oldAgent.com.atproto.sync.getBlob({
190193 did: usersDid,
191194 cid: recordBlob.cid,
···198201 }
199202 missingUploadedBlobs++;
200203 } catch (error) {
201201- //TODO silently logging for now will do a missing blobs later
204204+ //TODO silently logging prob should list them so user can manually download
202205 console.error(error);
203203- this.missingBlobs.push(cid);
206206+ this.missingBlobs.push(recordBlob.cid);
204207 }
205208 }
206209 missingBlobCursor = missingBlobs.data.cursor;