182a5dab16
family-chart 0.9.0 stacks all of a person's spouses on one gender-determined side, so someone with two spouses (e.g. a woman with two husbands) renders with both spouses piled above/below her and ambiguous child lines. Patch the library (via patch-package) so the person stays centered and their spouses split to alternating sides — spouse 1 above, spouse 2 below, further spouses farther out — and order each couple's children to match, so children descend from between the correct pair without crossed lines: - setupSpouses: keep the person centered; place spouses at alternating offsets and recenter the cluster on the person's slot. - sortChildrenWithSpouses: order children by spouse order (gender-independent) to match the new spouse positions. Adds patch-package + a postinstall hook, and COPY patches into the Dockerfile deps stage so the patch applies during `npm ci` in CI. Verified the patch re-applies on a clean install and the production build passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Justin Paul <justin@jpaul.me>
36 lines
941 B
JSON
36 lines
941 B
JSON
{
|
|
"name": "provenance-frontend",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"postinstall": "patch-package",
|
|
"gen:api": "openapi-typescript ./openapi.json -o ./lib/api/schema.d.ts --default-non-nullable false"
|
|
},
|
|
"dependencies": {
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"family-chart": "^0.9.0",
|
|
"lucide-react": "^0.469.0",
|
|
"next": "^15.1.0",
|
|
"openapi-fetch": "^0.13.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"tailwind-merge": "^2.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/node": "^22.10.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"openapi-typescript": "^7.5.0",
|
|
"patch-package": "^8.0.1",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.7.0"
|
|
}
|
|
}
|