Positioning redesign — implement docs/positioning/brief.md (14/16 tracks)#63
Closed
hb-agent wants to merge 0 commit into
Closed
Positioning redesign — implement docs/positioning/brief.md (14/16 tracks)#63hb-agent wants to merge 0 commit into
hb-agent wants to merge 0 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4fa9913 to
9552006
Compare
9552006 to
376987a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deep-flow implementation of the positioning brief locked in
docs/positioning/brief.md. 14 of 16 planned tracks landed in this PR; Tracks G (federation activity card) and I (group URL restructure) deferred to focused follow-up PRs due to size and risk. Seedocs/positioning-redesign/plan.mdfor the full status table.Process
docs/positioning-redesign/plan.md(deep-flow per AGENTS.md §26).docs/positioning-redesign/review-round-1.md.useCurrentActorhook).tsc --noEmitclean,eslintclean (32 pre-existing warnings, 0 errors),next buildclean (all routes).docs/positioning-redesign/review-round-1-impl.md.What changed (track-by-track)
useCurrentActor()hook — single source of truth for active identityprompt: "create"plumbed through/api/auth/login(best-effort hint per round-1 I7)/settings: DID (copyable + PLC link), resolved PDS, profile URL, created date (only when!isFallback)isFallback; data via/api/resolve-did(no client AT-Proto); import uses newmergeProfile()helper to preserve existing fields<UsernameCard groupDid=… />(existing API endpoint, gated by admin role)Explore · Feed · Create · Notifications · Profile; mobile sidebar + left rail add Apps/Build, rename Groups → Memberships;personal-only.tsroute key renamed<SigningAs>compose-time identity guard component on/create,/settings/edit-profile,/groups/create. In group mode shows the group identity primary + operator handle secondary ("You (@yourhandle) will be recorded as the operator")useUserProfile.isOwnProfilenow followsuseCurrentActor(), not personal DID — edit chrome follows active identity. Storage listener inOrgProviderfor multi-tab sync. Auto-switch-on-removal toast signal (autoSwitchedFrom)/for unauth visitors: hero with locked headline + value-statement, apps strip, network-effects section with Arrived from an app? sub-block (brief §1.3 secondary audience), closing CTA. Authenticated users still redirect to/@<handle>/settings— empty-state UI ready to consumeGET /api/oauth/clients/grantedwhen backend ships (conscious override of brief §A28 per operator decision)endorsementandactivity-contributorreasons cover brief §6.14; group-invite + audit-alert categories need new backend reasons (flagged for follow-up)Breaking changes
None. All changes are additive or modify component-internal behavior. Existing URLs unchanged (Track I — URL restructure — deferred).
Out of scope (follow-up PRs)
from {lexicon-author}+ View on ↗) + AppAffiliationRow on profile hero + counts breakdown by app. The shared foundation (src/lib/atproto/curated-apps.tswithinferLexiconAuthor()per round-1 plan A1) shipped with Track M; the activity-card and profile-hero integrations remain. ~450 lines isolated change./profile/[handleOrDid]/settings, middleware-rewrite fordid:paths, 301 redirects, extracted/groups/<DID>/{members,audit}). Highest-risk structural change (~600 lines); isolated as its own PR per AGENTS.md §26 reviewability guidance.cdn.bsky.appneed fetch +uploadBlob+ new BlobRef. Users currently upload manually via/settings/edit-profileafter import.mergeProfile()does read-modify-write without CID-based swap; race window is small and acceptable for v1.storagesync covers active-org changes but not auth-cookie changes across tabs.Test plan
/shows the marketing landing page (not redirect to/search)./redirects to/@<handle>as before./settingsshows the new Identity section between Username and Email; DID is copyable; PDS host is the user's resolved PDS (notPDS_URLconstant); Created date renders only when!isFallback.app.bsky.actor.profilehas populated fields, Import shows the preview. Import preserves any existing user-set fields (avatar/banner/pronouns) — verify viagetRecordafter.<UsernameCard>for handle editing./groups/createrejects handles outside 3–18 chars.Explore · Feed · Create · Notifications · Profile.<SigningAs>block on/createshows the group as primary identity and the operator handle in the secondary line.storagelistener./settingsshows Connected Apps (empty state visible) and Account section (Export · Sign out · Delete).npx tsc --noEmit,npx eslint src/, andnpx next buildall pass.🤖 Generated with Claude Code