Skip to content

fix(profile): only link to data recovery from the active account's profile - #23

Merged
DocNR merged 2 commits into
mainfrom
fix/profile-restore-link-active-account
Sep 26, 2026
Merged

DocNR merged 2 commits into
mainfrom
fix/profile-restore-link-active-account

Conversation

@DocNR

@DocNR DocNR commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #22 (data recovery by @dmnyc).

  • Profile link fix. The Restore link on your own profile showed in any column that signs as one of your paired accounts, but the data recovery page always works on the active account. From a column for a paired account that isn't active, the link opened recovery for a different account than the one on screen, without saying which. The link now shows only when the column signs as the active account. The page is still reachable from Settings.
  • RTL. The profile field values in the recovery review are user-generated text, so they get dir="auto" per the RTL rules in CLAUDE.md.
  • Release note. v26.16.0 entry announcing data recovery, so What's new shows it (feat(settings): data recovery for clobbered lists #22 shipped without one).

A later improvement could make the recovery page use the column's account (useAccountScopeOptional()) instead of the active one, so Restore works from any paired account's column. That's a larger change and not part of this PR.

Testing

  • New data-recovery-link.spec.ts. The "paired account that isn't active" case fails on the old rule (expected true to be false) and passes with the fix.
  • npm run build, npx tsc -b, npm run lint (0 errors; 1 existing warning in BookmarksColumnBody.tsx), full suite: 977 passed, 1 skipped.
  • Not tested by hand in the app.

🤖 Generated with Claude Code

DocNR and others added 2 commits September 26, 2026 10:06
…ofile

The Restore link on your own profile showed in any column that signs as
one of your paired accounts, but the data recovery page always scans and
restores the active account. From a column for a paired account that
isn't active, the link opened recovery for a different account than the
one on screen, without saying so.

The link now shows only when the column signs as the active account.
Also marks the profile field values in the recovery review dir="auto",
since they are user-generated text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying jank with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d011f4
Status: ✅  Deploy successful!
Preview URL: https://b3d57a9a.jank-4ii.pages.dev
Branch Preview URL: https://fix-profile-restore-link-act.jank-4ii.pages.dev

View logs

@DocNR
DocNR merged commit e33ebce into main Sep 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant