chore(workspace): move the app to apps/app under a pnpm workspace (step 2)

144 files moved with git mv (pure renames). Root package.json delegates
dev/typecheck/test:run/lint/build to the packages; Node 24 LTS and
pnpm 10.13.1 pinned (.nvmrc, .node-version, engines, packageManager,
root devDependency, engine-strict). Dockerfile builds @faunosteo/app on
node:24-alpine and copies apps/app/dist; nginx and runtime config
unchanged. CI workflow for Gitea Actions. packages/ reserved (README only).
Docs synced: WORKSPACE.md, CLAUDE.md, README, DEPLOY, CHANGELOG, plan.
271/271 tests, typecheck, lint, build green from the root.
This commit is contained in:
bchanot committed 2026-10-08 21:51:13 +02:00
1 parent c8d48ab4cc
commit 8673475293
164 files changed
+348 -128

No files matched your search

@@ -0,0 +1,31 @@
import type { Report } from '@/domain/schema/report'
import AppHeader from '@/components/brand/AppHeader'
import Button from '@/components/ui/Button'
import { formatDate } from '@/lib/dates'
import { useT } from '@/i18n/useT'
import { useLocaleStore } from '@/state/localeStore'
export interface ReportHeaderProps {
report: Report
onEditInfos?: () => void
}
export default function ReportHeader({ report, onEditInfos }: ReportHeaderProps) {
const t = useT()
const locale = useLocaleStore((s) => s.locale)
return (
<AppHeader>
<div className="text-xs sm:text-sm text-right text-[var(--color-ink-muted)]">
<div className="text-[var(--color-ink)] font-medium truncate max-w-[10rem] sm:max-w-none">
{report.animal.name} · {report.owner.name}
</div>
<div className="hidden sm:block">{formatDate(report.date, locale)}</div>
</div>
{onEditInfos && (
<Button variant="secondary" size="sm" onClick={onEditInfos}>
{t('editor.edit_infos')}
</Button>
)}
</AppHeader>
)
}