2da9c71eb3
Bundles three separable concerns: - style(ui): badge audit + cleanup across 45 files — real-status chips use Badge variants (raw Tailwind colors dropped), non-status count/type/label chips demoted to muted text, clustered badges consolidated; 20 unused imports removed. - feat(bookkeeping): Kontoplan moved to a dedicated /chart-of-accounts route (nav + command palette wired); /bookkeeping shows the journal list only. - chore(skills): loop-* automation skills + design-scan workflow under .claude/. fix(reports): restored the destructive count badge on blocking errors in the periodisk sammanställning (EC Sales List) — a genuine status cue the audit had wrongly flattened; flagged by the PR reviewer and Swedish compliance bot, now clean. All CI green; compliance bots report no findings. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
635 B
TypeScript
22 lines
635 B
TypeScript
'use client'
|
|
|
|
import { useTranslations } from 'next-intl'
|
|
import { Badge } from '@/components/ui/badge'
|
|
import type { ExtensionCategory } from '@/lib/extensions/types'
|
|
|
|
const CATEGORY_LABEL_KEY: Record<ExtensionCategory, string> = {
|
|
accounting: 'category_accounting',
|
|
reports: 'category_reports',
|
|
import: 'category_import',
|
|
operations: 'category_operations',
|
|
}
|
|
|
|
export default function CategoryBadge({ category }: { category: ExtensionCategory }) {
|
|
const t = useTranslations('extensions')
|
|
return (
|
|
<Badge variant="outline" className="text-[10px] font-medium">
|
|
{t(CATEGORY_LABEL_KEY[category])}
|
|
</Badge>
|
|
)
|
|
}
|