chore(auth): merge updated identity parent

* commit '29c467ddcababf97b7df987155bd0e93acce6b72':
  test(desktop): stabilize off-relay video menu
  fix(desktop): keep sidebar within size limit

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
This commit is contained in:
Cea Stapleton Cordasco
2026-08-04 22:20:27 -05:00
3 changed files with 19 additions and 9 deletions
@@ -26,6 +26,19 @@ export function formatVerifiedUserLabel(
return chosen || verified || null;
}
export function formatVerifiedProfileLabel(
profile:
| Pick<Profile, "displayName" | "verifiedName" | "verifiedNameExpiresAt">
| null
| undefined,
): string | null {
return formatVerifiedUserLabel(
profile?.displayName,
profile?.verifiedName,
profile?.verifiedNameExpiresAt,
);
}
/**
* Deep-equal two profile lookups by value. Used to stabilise the merged
* `messageProfiles` reference at the ChannelScreen boundary: the underlying
@@ -52,7 +52,7 @@ import type {
} from "@/features/sidebar/ui/AppSidebar.types";
import { SidebarRelayConnectionCard } from "@/features/sidebar/ui/SidebarRelayConnectionCard";
import type { useSidebarRelayConnectionCard } from "@/features/sidebar/ui/useSidebarRelayConnectionCard";
import { formatVerifiedUserLabel } from "@/features/profile/lib/identity";
import { formatVerifiedProfileLabel } from "@/features/profile/lib/identity";
import {
SidebarLoadingContent,
useSidebarLoadingShape,
@@ -479,18 +479,13 @@ export function AppSidebar({
immediate: isSelectedDirectMessage,
timeoutMs: 400,
});
const resolvedProfileDisplayName = formatVerifiedUserLabel(
profile?.displayName,
profile?.verifiedName,
profile?.verifiedNameExpiresAt,
);
const { dmChannelLabels, dmParticipantsByChannelId, dmPresenceByChannelId } =
useDmSidebarMetadata({
currentPubkey,
directMessages,
enabled: shouldLoadDmMetadata,
fallbackDisplayName,
profileDisplayName: resolvedProfileDisplayName,
profileDisplayName: formatVerifiedProfileLabel(profile),
});
const sortedDirectMessages = React.useMemo(
() =>
@@ -510,7 +505,7 @@ export function AppSidebar({
streamChannels,
});
const resolvedDisplayName =
resolvedProfileDisplayName ||
formatVerifiedProfileLabel(profile) ||
fallbackDisplayName?.trim() ||
"Current identity";
const isCreatingAny =
+3 -1
View File
@@ -1077,7 +1077,9 @@ test("right-click menus expose distinct selectors for links, relay video, and of
sha: MENU_OFF_RELAY_VIDEO_SHA,
filename: "external-clip.mp4",
});
const offRelayPlayer = page.getByTestId("video-player").last();
const offRelayPlayer = page
.getByTestId("video-player")
.filter({ has: page.locator(`video[src="${MENU_OFF_RELAY_VIDEO_URL}"]`) });
await expect(offRelayPlayer).toBeVisible();
await offRelayPlayer.click({ button: "right", force: true });