Skip to content

fix(web): open the profile view when "My Profile" is clicked#461

Open
horacioh wants to merge 1 commit into
mainfrom
claude/fix-mobile-profile-option-BCdD8
Open

fix(web): open the profile view when "My Profile" is clicked#461
horacioh wants to merge 1 commit into
mainfrom
claude/fix-mobile-profile-option-BCdD8

Conversation

@horacioh
Copy link
Copy Markdown
Collaborator

The account menu used key: 'profile' to navigate, but on web the
profile view is rendered for key: 'site-profile'. Even though the
URL produced by both was equivalent, the in-memory NavContext kept
the wrong key after internal navigation, so ResourcePage fell
through to render the home document instead of the profile.

Use key: 'site-profile' with tab: 'profile' (matching the rest
of the web app) so both the mobile sheet and the desktop dropdown
in the account footer open the account's profile.

The account menu used `key: 'profile'` to navigate, but on web the
profile view is rendered for `key: 'site-profile'`. Even though the
URL produced by both was equivalent, the in-memory NavContext kept
the wrong key after internal navigation, so `ResourcePage` fell
through to render the home document instead of the profile.

Use `key: 'site-profile'` with `tab: 'profile'` (matching the rest
of the web app) so both the mobile sheet and the desktop dropdown
in the account footer open the account's profile.
@horacioh
Copy link
Copy Markdown
Collaborator Author

@ericvicenti why web has a different key for profiles than the desktop app?

@ericvicenti
Copy link
Copy Markdown
Collaborator

Maybe we have a bug here, but to provide some context: on desktop app, the profile exists as a standalone page, and it should show activity for all sites. On web, it only exists within the same site, and the activity is meant to be filtered to that specific site.

So I guess that is the main explanation for there being different keys

@ericvicenti
Copy link
Copy Markdown
Collaborator

On desktop the site-specific profiles also exist. But when you navigate to the profile it will take you to the generic one that exists outside the site

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.

3 participants