import type { Did, Handle } from "@atcute/lexicons/syntax";
import type { ProfileRecord } from "#lib/api/records.ts";
import type { ProfileCounts, RepoCardData } from "#lib/components/profile/types.ts";
export const worstCaseIdentity = {
did: "did:plc:ewvi7nxzyoun6zhxrhs64oiz",
handle: "aleksandra-wisniewska-kowalczyk.northwind-industries-holdings.example.com"
} satisfies { did: Did; handle: Handle };
export const sparseIdentity = {
did: "did:plc:jo",
handle: "jo.example.com"
} satisfies { did: Did; handle: Handle };
export const worstCaseProfile = {
$type: "org.tangled.actor.profile",
description: [
"Staff engineer 👩🏽💻 at Northwind. Maintainer of Benachrichtigungseinstellungen-Synchronisierung and a dozen other things nobody asked for.",
"Docs: https://example.com/workspaces/northwind/projects/q3-launch/docs/9f8e7d6c5b4a?tab=comments&filter=unresolved",
"not bold & **not markdown**"
].join("\n"),
pronouns: "they/them or she/her",
location: "Szczebrzeszyn, Lubelskie, Rzeczpospolita",
links: [
"https://example.com/workspaces/northwind/projects/q3-launch/docs/9f8e7d6c5b4a?tab=comments&filter=unresolved",
"https://bartholomew-fitzgerald.northwind-industries-holdings.example.com",
"at://did:plc:ewvi7nxzyoun6zhxrhs64oiz/org.tangled.repo.manifest/self",
"https://a.co",
"https://example.org/~aleksandra"
]
} as ProfileRecord;
export const worstCaseOrganizationProfile = {
...worstCaseProfile,
isOrganization: true,
pronouns: undefined
} as ProfileRecord;
export const sparseProfile = { $type: "org.tangled.actor.profile" } as ProfileRecord;
export const worstCaseCounts: ProfileCounts = {
repos: 1284,
stars: 1_000_000,
strings: 0,
followers: 1,
following: 1284,
vouches: 999_999
};
export const sparseCounts: ProfileCounts = {
repos: 0,
stars: 0,
strings: 0,
followers: 0,
following: 0,
vouches: 0
};
const repo = (fields: Partial & { name: string }, index: number): RepoCardData => ({
repoDid: `did:plc:worstrepo${index}`,
ownerHandle: worstCaseIdentity.handle,
createdAt: "2026-08-01T00:00:00Z",
...fields
});
export const worstCaseRepos: RepoCardData[] = [
repo(
{
name: "northwind-industries-holdings-infrastructure-terraform-modules",
description:
"Terraform modules for every Northwind region, environment and account, including the ones we promised to delete in 2024 but still route payroll traffic through 🙃",
language: "HCL",
stars: 12_345,
forks: 1_284,
issues: 999,
pulls: 1
},
0
),
repo({ name: "j", language: "Rust", stars: 1, forks: 0 }, 1),
repo(
{
name: "Benachrichtigungseinstellungen",
description: "王秀英的通知设置同步工具,支持所有地区和所有语言。",
language: "TypeScript",
stars: 0
},
2
),
repo(
{
name: "نور-الهدى",
description: "أداة لمزامنة إعدادات الإشعارات عبر جميع الأجهزة",
language: "Go",
stars: 1_000_000
},
3
),
...Array.from({ length: 36 }, (_, index) =>
repo(
{
name: `service-${index}`,
description:
"A representative repository description that exercises normal wrapping.",
language: "Rust",
stars: index
},
index + 4
)
)
];