Files
accounted/app/(dashboard)/dimensions/page.tsx
T
Jakob WennbergandClaude Fable 5 4352862845 feat(register): concept scenes 25-31 for the seven register pages (#1131)
Kunder, Leverantorer, Artiklar, Anstallda, Anlaggningstillgangar,
Kontoplan and Kostnadsstallen & projekt all move to the house language:
serif header with quiet secondary actions + primary pill, dry-table lists
(TH/TD from components/ui/dry-table, stagger-enter, clickable rows,
responsive column hiding), muted text for normal states with chips only
for exceptions (Verifierad, Inaktiv, Arkiverad, Avyttrad), and a muted
pgnote count footer. Kontoplan gets the scene 30 treatment: BAS 2026 chip,
Mina konton/BAS-katalogen seg with counts, class band rows as folds, and
the activation toggles preserved. Dimensions swaps its tabs for the house
seg with per-dimension counts and Tagga historik as a quiet header link.
Separate mobile card lists and Card wrappers are gone; all dialogs, sort
params, export menus, gating and load-more behavior preserved.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 22:24:25 +02:00

30 lines
1.2 KiB
TypeScript

import Link from 'next/link'
import { getTranslations } from 'next-intl/server'
import { QUIET_LINK_CLASS } from '@/components/ui/dry-table'
import DimensionsManager from '@/components/dimensions/DimensionsManager'
/**
* Kostnadsställen & projekt (dimension registry): a Redovisning-group
* register peer to Kontoplan. Reference/configuration surface: manage the
* dimension values (#OBJEKT) that voucher lines are tagged with. Reachable
* only via the nav row when company_settings.dimensions_enabled is on, but
* the page itself never gates: the toggle is UI visibility, not correctness
* (dimensions plan §2).
*/
export default async function DimensionsPage() {
const t = await getTranslations('nav')
return (
<div className="space-y-8">
{/* Page header (concept scene 31): title + quiet Tagga historik.
"Tagga historik" stays Swedish like the workbench it opens (PR6). */}
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<h1 className="font-display text-2xl leading-8 tracking-tight">{t('dimensions')}</h1>
<Link href="/dimensions/tagging" className={QUIET_LINK_CLASS}>
Tagga historik
</Link>
</div>
<DimensionsManager />
</div>
)
}