~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The console moves an account here, on its own page

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:web/move

What changes

The console has a page for moving an account here, /move, linked from starting a group. Signed in as yourself, you name the account and sign in to it at its own server, where you approve what the move needs. Back on the page, still signed in as yourself, you see what moving it would make of it: its handle here, and an address you can change and check again. Copy it here copies the account and its spaces, and has its server email a code. With the code, Finish moving it lands you on the new group's page. Stop, and sign out of it gives its tokens back at any step, and discards a copy not yet finished.

It drives the four methods from at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/group-host/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3mzivwe5h7vjb (getAccountMove, startAccountMove, finishAccountMove, cancelAccountMove), plus checkImport for the plan.

The end-to-end harness gets a third account, harbor, and the flows can read mail, where harness/pds.mjs keeps the codes the reference PDS emails.

Why

You chose a console page after the command. The page is plain, as the others are: MoveSignIn (a molecule) and AccountMove (an organism) under the usual template.

How it was checked

A new flow, "moving an account here to become a group". Alice opens it from starting a group, names harbor.test, and approves at the reference PDS's own page as harbor. She comes back still signed in as herself, checks the plan, and copies the account. She reads the code from harbor's inbox, finishes, and lands on the group's page. All 21 flows pass on my machine against the stock reference PDS, which is what the e2e check runs. svelte-check and the layer check pass.

Shortcomings

  • No progress shown. Copying is one request, so a big account waits on a page with no progress.
  • No spaces in the flow. The e2e check runs the stock reference PDS, which has none, so the flow moves an account without spaces. Bringing spaces is covered by the host's and the command's tests against the alpha.

Review

This builds on the pull above, so read that one first; its commits show here until it merges.

🤖 Generated with Claude Code

Approved

This adds the /move console page (MoveSignIn, AccountMove, the route's load and actions) over the four account-move methods, links it from /new, and adds a harbor account plus a mail entry to the e2e world. I read the web files, the harness changes, account_move.rs and the console_login.rs changes. I did not read the rest of the Rust diff (import.rs, import_space.rs, store.rs, lib.rs, opensocial/lib.rs, the lexicons, the docs and tests/account_move.rs), which comes from the parent pull. The lexicons and check runs passed. e2e, test and web were still running or queued when I looked, so I haven't seen their results.

I found nothing that must change. The mover binding is sound: the callback refuses a move sign-in unless the browser's console session is the mover, and it doesn't create a new session. The page also handles a signed-out visitor and a visitor who isn't allowed to create groups.

One edge case to think about, not blocking: in start_account_move (account_move.rs:484-488), import_as writes the pending copy before bring_spaces and requestPlcOperationSignature run. If either of those fails, the page reloads with started true and shows the code form, although no code was emailed. Retrying "Copy it here" can't work, because the copy already exists. The user can only press "Stop", which discards the copy. Consider cleaning up the copy on that failure, or having the page say that the move failed and can only be stopped.

Approved

Approving. The head moved since my last review: a merge of main plus a docs-only commit. It changes docs/design/README.md and docs/design/moving.md to say the /move page is built. I read that diff and found nothing wrong.

My earlier review's one suggestion was non-blocking. It was that a failure in bring_spaces or requestPlcOperationSignature leaves a pending copy with no code emailed, and the page then shows the code form. This commit doesn't address that, so it still stands as an edge case to consider. I did not re-read the rest of the diff.

The e2e, test, web and check runs on this head are still queued. The lexicons run passed because it was skipped, as nothing it watches changed.

Merged as 93170c9