diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 8345922..71d43d5 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -1,33 +1,33 @@ { - "permissions": { - "allow": [ - "Bash(pnpm check:*)", - "mcp__ide__getDiagnostics", - "mcp__plugin_svelte_svelte__svelte-autofixer", - "mcp__plugin_svelte_svelte__list-sections", - "Bash(pkill:*)", - "Bash(timeout 8 pnpm dev:*)", - "Bash(git checkout:*)", - "Bash(npx svelte-kit:*)", - "Bash(ls:*)", - "Bash(pnpm format:*)", - "Bash(pnpm add:*)", - "WebSearch", - "WebFetch(domain:github.com)", - "WebFetch(domain:flipclockjs.com)", - "WebFetch(domain:codepen.io)", - "WebFetch(domain:flo-bit.dev)", - "Bash(pnpm install)", - "Bash(pnpm install:*)", - "Bash(pnpm config:*)", - "Bash(lsof:*)", - "Bash(pnpm dev)", - "Bash(pnpm exec svelte-kit:*)", - "Bash(pnpm build:*)", - "Bash(pnpm remove:*)", - "Bash(grep:*)", - "Bash(find:*)", - "Bash(npx prettier:*)" - ] - } + "permissions": { + "allow": [ + "Bash(pnpm check:*)", + "mcp__ide__getDiagnostics", + "mcp__plugin_svelte_svelte__svelte-autofixer", + "mcp__plugin_svelte_svelte__list-sections", + "Bash(pkill:*)", + "Bash(timeout 8 pnpm dev:*)", + "Bash(git checkout:*)", + "Bash(npx svelte-kit:*)", + "Bash(ls:*)", + "Bash(pnpm format:*)", + "Bash(pnpm add:*)", + "WebSearch", + "WebFetch(domain:github.com)", + "WebFetch(domain:flipclockjs.com)", + "WebFetch(domain:codepen.io)", + "WebFetch(domain:flo-bit.dev)", + "Bash(pnpm install)", + "Bash(pnpm install:*)", + "Bash(pnpm config:*)", + "Bash(lsof:*)", + "Bash(pnpm dev)", + "Bash(pnpm exec svelte-kit:*)", + "Bash(pnpm build:*)", + "Bash(pnpm remove:*)", + "Bash(grep:*)", + "Bash(find:*)", + "Bash(npx prettier:*)" + ] + } } diff --git a/src/lib/cards/FriendsCard/FriendsCard.svelte b/src/lib/cards/FriendsCard/FriendsCard.svelte index c1ff18e..c4ac918 100644 --- a/src/lib/cards/FriendsCard/FriendsCard.svelte +++ b/src/lib/cards/FriendsCard/FriendsCard.svelte @@ -83,10 +83,7 @@ {@const olX = sizeClass === 'sm' ? 12 : sizeClass === 'md' ? 20 : 24} {@const olY = sizeClass === 'sm' ? 8 : sizeClass === 'md' ? 12 : 16}
-
+
{#each profiles as profile (profile.did)} getBlentoOrBskyProfile({ did: did as Did }).catch(() => undefined)) ); - profiles = results.filter( - (p): p is FriendsProfile => !!p && p.handle !== 'handle.invalid' - ); + profiles = results.filter((p): p is FriendsProfile => !!p && p.handle !== 'handle.invalid'); } function addFriend(actor: AppBskyActorDefs.ProfileViewBasic) { @@ -68,11 +66,7 @@ {#each dids as did (did)} {@const profile = getProfile(did)}
- + {profile?.handle ?? did} @@ -90,11 +84,7 @@ stroke="currentColor" class="size-3.5" > - +
diff --git a/src/lib/cards/FriendsCard/index.ts b/src/lib/cards/FriendsCard/index.ts index ca13d22..0afabcf 100644 --- a/src/lib/cards/FriendsCard/index.ts +++ b/src/lib/cards/FriendsCard/index.ts @@ -27,9 +27,7 @@ export const FriendsCardDefinition = { if (allDids.size === 0) return []; const profiles = await Promise.all( - Array.from(allDids).map((did) => - getBlentoOrBskyProfile({ did }).catch(() => undefined) - ) + Array.from(allDids).map((did) => getBlentoOrBskyProfile({ did }).catch(() => undefined)) ); return profiles.filter((p) => p && p.handle !== 'handle.invalid'); }, diff --git a/src/lib/website/EditableWebsite.svelte b/src/lib/website/EditableWebsite.svelte index c83c809..023a862 100644 --- a/src/lib/website/EditableWebsite.svelte +++ b/src/lib/website/EditableWebsite.svelte @@ -42,6 +42,7 @@ import Controls from './Controls.svelte'; import CardCommand from '$lib/components/card-command/CardCommand.svelte'; import { shouldMirror, mirrorLayout } from './layout-mirror'; + import { SvelteMap } from 'svelte/reactivity'; let { data @@ -262,7 +263,7 @@ function addAllCardTypes() { const groupOrder = ['Core', 'Social', 'Media', 'Content', 'Visual', 'Utilities', 'Games']; - const grouped = new Map(); + const grouped = new SvelteMap(); for (const def of AllCardDefinitions) { if (!def.name) continue;