refactor(ui): migrate remaining inline pages to the concept design language (#1470)

* refactor(ui): migrate remaining inline pages to the concept design language

Catch-up pass for surfaces the 2026-07 UI migration missed:

- Bankavstämning: de-boxed toolbar, dry-table sections (preview, omatchade
  verifikationer, ignorerade, matchade), instructional copy moved behind the
  page "?" (HelpPopover via FocusedReport, sv+en), AttnLine for the dirty-
  dates hint, EmptyState for the blank page, space-y-8 rhythm.
- Report detail views (trial balance, income statement, balance sheet,
  resultat-/balansrapport, reskontror, huvudbok, grundbok, dimension-P&L):
  shared Skeleton/Error/EmptyState shells, border-2 totals bands flattened
  to hairline cards with font-display tabular-nums headline numbers,
  ReportSectionTable rebuilt on the group-band idiom, font-mono money ->
  tabular-nums, house tablist for Förenklad/Detaljerad, GL filter de-boxed
  onto Input primitives, verdicts follow chips-mark-exceptions.
- Extensions browse: PageHeader, locked section headers, rounded-lg
  secondary icon tiles, flat hover shift on cards, p-6 content.
- Återkommande fakturor: page-level list moved off ui/table onto dry-table
  with hover-revealed quiet row actions; Skeleton loading.
- Help: EmptyState for no search hits, flat hover shift on resource links.
- Chart of accounts: spinner loading blocks -> Skeleton rows.
- Kunskap graph + salary calendar popovers: rounded-lg, Input/Textarea
  primitives instead of hand-rolled shadow-sm controls.

No logic, endpoint, or data changes. Verified via sandbox screenshots;
lint 0 errors, 13214 tests green.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(ui): review triage: skip empty industry sectors, keyboard path to schedule edit

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Jakob Wennberg <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
Jakob Wennberg
2026-08-08 16:40:19 +02:00
committed by GitHub
co-authored by Claude Fable 5 Jakob Wennberg
parent 645ed0a53e
commit 02a5d10538
17 changed files with 781 additions and 883 deletions
+1
View File
File diff suppressed because one or more lines are too long
@@ -72,8 +72,8 @@ export default async function ExtensionDetailPage({
{/* Header */}
<div className="flex items-start justify-between gap-4 mb-8">
<div className="flex items-start gap-4">
<div className="flex h-14 w-14 items-center justify-center rounded-xl bg-primary/10 flex-shrink-0">
<Icon className="h-7 w-7 text-primary" />
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-secondary flex-shrink-0">
<Icon className="h-6 w-6 text-foreground" />
</div>
<div>
<h1 className="font-display text-2xl leading-8 tracking-tight">{extensionName}</h1>
@@ -95,14 +95,14 @@ export default async function ExtensionDetailPage({
{/* Details */}
<div className="space-y-6">
<div>
<h2 className="text-sm font-semibold mb-2">{t('description_heading')}</h2>
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-2">{t('description_heading')}</h2>
<p className="text-sm text-muted-foreground leading-relaxed">
{extensionLongDescription}
</p>
</div>
<div>
<h2 className="text-sm font-semibold mb-2">{t('data_source_heading')}</h2>
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-2">{t('data_source_heading')}</h2>
<p className="text-sm text-muted-foreground">
{dataPatternLabels[definition.dataPattern]}
</p>
+3 -3
View File
@@ -40,8 +40,8 @@ export default async function SectorExtensionsPage({
{/* Header */}
<div className="flex items-start gap-4 mb-8">
<div className="flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10 flex-shrink-0">
<Icon className="h-6 w-6 text-primary" />
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-secondary flex-shrink-0">
<Icon className="h-6 w-6 text-foreground" />
</div>
<div>
<h1 className="font-display text-2xl leading-8 tracking-tight">{sectorName}</h1>
@@ -50,7 +50,7 @@ export default async function SectorExtensionsPage({
</div>
{/* Extensions grid */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 stagger-enter">
{sector.extensions.map(ext => (
<ExtensionCard key={ext.slug} extension={ext} />
))}
+22 -22
View File
@@ -1,13 +1,16 @@
import { getTranslations } from 'next-intl/server'
import { SECTORS } from '@/lib/extensions/sectors'
import { sectorNameKey } from '@/lib/extensions/i18n'
import { PageHeader } from '@/components/ui/page-header'
import ExtensionCard from '@/components/extensions/ExtensionCard'
import SectorCard from '@/components/extensions/SectorCard'
export default async function ExtensionsPage() {
const t = await getTranslations('extensions')
const generalSector = SECTORS.find(s => s.slug === 'general')
const industrySectors = SECTORS.filter(s => s.slug !== 'general')
// Only sectors that actually ship extensions: a shell with zero extensions
// would render a dead card and an empty grid.
const industrySectors = SECTORS.filter(s => s.slug !== 'general' && s.extensions.length > 0)
const generalSectorName = (() => {
if (!generalSector) return ''
@@ -16,21 +19,16 @@ export default async function ExtensionsPage() {
})()
return (
<div>
<div className="mb-8">
<h1 className="font-display text-2xl leading-8 tracking-tight">{t('page_title')}</h1>
<p className="text-sm text-muted-foreground mt-1">
{t('page_description')}
</p>
</div>
<div className="space-y-8">
<PageHeader title={t('page_title')} />
{/* General extensions */}
{generalSector && (
<section className="mb-8">
<h2 className="text-sm font-semibold text-muted-foreground uppercase tracking-wider mb-4">
<section>
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-4">
{generalSectorName}
</h2>
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 stagger-enter">
{generalSector.extensions.map(ext => (
<ExtensionCard key={ext.slug} extension={ext} />
))}
@@ -38,17 +36,19 @@ export default async function ExtensionsPage() {
</section>
)}
{/* Industry sectors */}
<section>
<h2 className="text-sm font-semibold text-muted-foreground uppercase tracking-wider mb-4">
{t('industry_tools')}
</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3">
{industrySectors.map(sector => (
<SectorCard key={sector.slug} sector={sector} />
))}
</div>
</section>
{/* Industry sectors (hidden while no industry sector ships extensions) */}
{industrySectors.length > 0 && (
<section>
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-4">
{t('industry_tools')}
</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 stagger-enter">
{industrySectors.map(sector => (
<SectorCard key={sector.slug} sector={sector} />
))}
</div>
</section>
)}
</div>
)
}
+10 -12
View File
@@ -6,6 +6,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/com
import { Input } from '@/components/ui/input'
import { HelpLink } from '@/components/ui/info-tooltip'
import { PageHeader } from '@/components/ui/page-header'
import { EmptyState } from '@/components/ui/empty-state'
import {
Search,
BookOpen,
@@ -377,14 +378,11 @@ export default function HelpPage() {
{/* Terms list */}
<div className="space-y-4">
{filteredTerms.length === 0 ? (
<Card>
<CardContent className="py-12 text-center">
<Search className="h-8 w-8 text-muted-foreground mx-auto mb-3" />
<p className="text-muted-foreground">
{t('no_results', { query: searchQuery })}
</p>
</CardContent>
</Card>
<EmptyState
icon={Search}
title={t('no_results_title')}
description={t('no_results', { query: searchQuery })}
/>
) : (
filteredTerms.map((term) => (
<TermCard
@@ -408,7 +406,7 @@ export default function HelpPage() {
<a
href="/docs/arkivplan-mall.md"
download
className="p-3 rounded-lg border border-border hover:border-primary/50 transition-colors block"
className="p-3 rounded-lg border border-border transition-colors duration-150 hover:bg-secondary/60 block"
>
<div className="flex items-center gap-2">
<FileDown className="h-4 w-4" />
@@ -421,7 +419,7 @@ export default function HelpPage() {
<a
href="/docs/systemdokumentation-mall.md"
download
className="p-3 rounded-lg border border-border hover:border-primary/50 transition-colors block"
className="p-3 rounded-lg border border-border transition-colors duration-150 hover:bg-secondary/60 block"
>
<div className="flex items-center gap-2">
<FileDown className="h-4 w-4" />
@@ -444,7 +442,7 @@ export default function HelpPage() {
<div className="grid gap-3 sm:grid-cols-2">
<HelpLink
href="https://www.skatteverket.se/foretag/foretagarguiden.4.361dc8c15312eff6fd1f87f.html"
className="p-3 rounded-lg border border-border hover:border-primary/50 transition-colors block"
className="p-3 rounded-lg border border-border transition-colors duration-150 hover:bg-secondary/60 block"
>
<div className="flex items-center gap-2">
<ExternalLink className="h-4 w-4" />
@@ -456,7 +454,7 @@ export default function HelpPage() {
</HelpLink>
<HelpLink
href="https://www.verksamt.se/"
className="p-3 rounded-lg border border-border hover:border-primary/50 transition-colors block"
className="p-3 rounded-lg border border-border transition-colors duration-150 hover:bg-secondary/60 block"
>
<div className="flex items-center gap-2">
<ExternalLink className="h-4 w-4" />
+133 -129
View File
@@ -4,18 +4,12 @@ import { useState, useEffect } from 'react'
import { useRouter, useSearchParams } from 'next/navigation'
import { useTranslations } from 'next-intl'
import { Button } from '@/components/ui/button'
import { Card, CardContent } from '@/components/ui/card'
import { Badge } from '@/components/ui/badge'
import { PageHeader } from '@/components/ui/page-header'
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from '@/components/ui/table'
import { Skeleton } from '@/components/ui/skeleton'
import { TH_CLASS, TD_CLASS, QUIET_LINK_CLASS, HOVER_REVEAL_CLASS } from '@/components/ui/dry-table'
import { EmptyState } from '@/components/ui/empty-state'
import { cn } from '@/lib/utils'
import {
DestructiveConfirmDialog,
useDestructiveConfirm,
@@ -196,134 +190,144 @@ export default function RecurringInvoicesPage() {
/>
{isLoading ? (
<Card>
<CardContent className="py-12 text-center text-sm text-muted-foreground">
{t('loading')}
</CardContent>
</Card>
<div className="space-y-2">
{[1, 2, 3, 4].map((i) => (
<Skeleton key={i} className="h-10 w-full" />
))}
</div>
) : schedules.length === 0 ? (
<Card>
<CardContent className="p-0">
<EmptyState
icon={Repeat}
title={t('empty_title')}
description={t('empty_description')}
actionLabel={canWrite ? t('new_schedule') : undefined}
onAction={canWrite ? openNewSchedule : undefined}
/>
</CardContent>
</Card>
<EmptyState
icon={Repeat}
title={t('empty_title')}
description={t('empty_description')}
actionLabel={canWrite ? t('new_schedule') : undefined}
onAction={canWrite ? openNewSchedule : undefined}
/>
) : (
<Card>
<CardContent className="p-0">
<Table>
<TableHeader>
<TableRow>
<TableHead>{t('th_name')}</TableHead>
<TableHead>{t('th_customer')}</TableHead>
<TableHead className="tabular-nums">{t('th_day')}</TableHead>
<TableHead className="tabular-nums">{t('th_next_run')}</TableHead>
<TableHead>{t('th_status')}</TableHead>
<TableHead className="tabular-nums text-right">{t('th_generated')}</TableHead>
<TableHead className="text-right">{t('th_actions')}</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{schedules.map((s) => (
<TableRow
key={s.id}
className={canWrite ? 'cursor-pointer' : undefined}
onClick={canWrite ? () => openEdit(s.id) : undefined}
>
<TableCell className="font-medium">
<div className="flex items-center gap-2">
{s.name}
{s.last_run_warning && (
<AlertTriangle
className="h-4 w-4 text-warning-foreground"
aria-label={s.last_run_warning}
/>
)}
</div>
</TableCell>
<TableCell className="text-muted-foreground">
{s.customer?.name ?? '-'}
</TableCell>
<TableCell className="tabular-nums">
{s.day_of_month}
<span className="text-muted-foreground">
{' · '}
{t('send_time', {
time: `${String(s.send_hour ?? 8).padStart(2, '0')}:00`,
})}
{/* Monthly is the norm; only a deviating cadence is
worth a label (chips-mark-exceptions convention). */}
{(s.interval_months ?? 1) > 1 && (
<>
{' · '}
{s.interval_months === 3
? t('interval_quarterly')
: s.interval_months === 6
? t('interval_semiannual')
: s.interval_months === 12
? t('interval_yearly')
: t('interval_every_n', { n: s.interval_months })}
</>
)}
</span>
</TableCell>
<TableCell className="tabular-nums">{formatDate(s.next_run_date)}</TableCell>
<TableCell>
{s.status === 'active' ? (
<span className="text-xs text-muted-foreground">{t('status_active')}</span>
<div className="overflow-x-auto">
<table className="w-full border-collapse text-[13px]">
<thead>
<tr>
<th className={TH_CLASS}>{t('th_name')}</th>
<th className={TH_CLASS}>{t('th_customer')}</th>
<th className={TH_CLASS}>{t('th_day')}</th>
<th className={TH_CLASS}>{t('th_next_run')}</th>
<th className={TH_CLASS}>{t('th_status')}</th>
<th className={`${TH_CLASS} text-right`}>{t('th_generated')}</th>
<th className={`${TH_CLASS} text-right`}>{t('th_actions')}</th>
</tr>
</thead>
<tbody className="stagger-enter">
{schedules.map((s) => (
<tr
key={s.id}
className={cn(
'group transition-colors duration-150 hover:bg-secondary/35',
canWrite && 'cursor-pointer',
)}
onClick={canWrite ? () => openEdit(s.id) : undefined}
>
<td className={`${TD_CLASS} font-medium`}>
<div className="flex items-center gap-2">
{/* Focusable edit affordance: the row onClick is mouse-only,
so keyboard users open the editor through the name. */}
{canWrite ? (
<button
type="button"
className="hover:underline underline-offset-4"
onClick={(e) => {
e.stopPropagation()
openEdit(s.id)
}}
>
{s.name}
</button>
) : (
<Badge variant="outline" className="font-normal">{t('status_paused')}</Badge>
s.name
)}
</TableCell>
<TableCell className="tabular-nums text-right">
{s.generated_count}
</TableCell>
<TableCell className="text-right">
{s.last_run_warning && (
<AlertTriangle
className="h-4 w-4 text-warning-foreground"
aria-label={s.last_run_warning}
/>
)}
</div>
</td>
<td className={`${TD_CLASS} text-muted-foreground`}>
{s.customer?.name ?? '-'}
</td>
<td className={`${TD_CLASS} tabular-nums`}>
{s.day_of_month}
<span className="text-muted-foreground">
{' · '}
{t('send_time', {
time: `${String(s.send_hour ?? 8).padStart(2, '0')}:00`,
})}
{/* Monthly is the norm; only a deviating cadence is
worth a label (chips-mark-exceptions convention). */}
{(s.interval_months ?? 1) > 1 && (
<>
{' · '}
{s.interval_months === 3
? t('interval_quarterly')
: s.interval_months === 6
? t('interval_semiannual')
: s.interval_months === 12
? t('interval_yearly')
: t('interval_every_n', { n: s.interval_months })}
</>
)}
</span>
</td>
<td className={`${TD_CLASS} tabular-nums`}>{formatDate(s.next_run_date)}</td>
<td className={TD_CLASS}>
{s.status === 'active' ? (
<span className="text-xs text-muted-foreground">{t('status_active')}</span>
) : (
<Badge variant="outline" className="font-normal">{t('status_paused')}</Badge>
)}
</td>
<td className={`${TD_CLASS} tabular-nums text-right`}>
{s.generated_count}
</td>
<td className={`${TD_CLASS} text-right`}>
{canWrite && (
<div
className="flex justify-end gap-2"
className="flex justify-end gap-4 whitespace-nowrap"
onClick={(e) => e.stopPropagation()}
>
{canWrite && (
<>
<Button
variant="secondary"
size="sm"
disabled={runningId !== null}
onClick={() => runNow(s)}
>
{t('run_now')}
</Button>
<Button
variant="secondary"
size="sm"
disabled={togglingId !== null}
onClick={() => togglePause(s)}
>
{s.status === 'active' ? t('pause') : t('resume')}
</Button>
<Button
variant="ghost"
size="sm"
disabled={deletingId !== null}
onClick={() => deleteSchedule(s)}
>
{t('delete')}
</Button>
</>
)}
<button
type="button"
className={cn(QUIET_LINK_CLASS, HOVER_REVEAL_CLASS)}
disabled={runningId !== null}
onClick={() => runNow(s)}
>
{t('run_now')}
</button>
<button
type="button"
className={cn(QUIET_LINK_CLASS, HOVER_REVEAL_CLASS)}
disabled={togglingId !== null}
onClick={() => togglePause(s)}
>
{s.status === 'active' ? t('pause') : t('resume')}
</button>
<button
type="button"
className={cn(QUIET_LINK_CLASS, HOVER_REVEAL_CLASS)}
disabled={deletingId !== null}
onClick={() => deleteSchedule(s)}
>
{t('delete')}
</button>
</div>
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</CardContent>
</Card>
)}
</td>
</tr>
))}
</tbody>
</table>
</div>
)}
<NewRecurringScheduleDialog
@@ -63,7 +63,7 @@ export function AgentKnowledgePanel() {
// Mirrors the loaded layout: graph hero, section header, two profile cards.
return (
<div className="space-y-8">
<Skeleton className="h-96 w-full rounded-xl" />
<Skeleton className="h-96 w-full rounded-lg" />
<div className="space-y-4">
<Skeleton className="h-4 w-40" />
<div className="grid gap-4 md:grid-cols-2">
+2 -2
View File
@@ -277,7 +277,7 @@ export function LedgerGraph({ deep, companyName }: { deep: DeepLedgerContext; co
if (model.payees.length === 0) {
return (
<div
className="rounded-xl border p-16 text-center text-sm"
className="rounded-lg border border-border p-16 text-center text-sm"
style={{ background: INK, borderColor: HAIR, color: MUTED }}
>
{t('none_cp')}
@@ -304,7 +304,7 @@ export function LedgerGraph({ deep, companyName }: { deep: DeepLedgerContext; co
return (
<div
className="relative overflow-hidden rounded-xl border"
className="relative overflow-hidden rounded-lg border border-border"
style={{
borderColor: HAIR_STRONG,
background: `radial-gradient(120% 120% at 50% 42%, #17171b 0%, ${INK} 62%)`,
@@ -6,6 +6,7 @@ import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Switch } from '@/components/ui/switch'
import { Skeleton } from '@/components/ui/skeleton'
import { TH_CLASS, TD_CLASS, QUIET_LINK_CLASS } from '@/components/ui/dry-table'
import { useToast } from '@/components/ui/use-toast'
import { AccountNumber } from '@/components/ui/account-number'
@@ -528,9 +529,10 @@ export default function ChartOfAccountsManager() {
</div>
{loading ? (
<div className="p-8 text-center text-muted-foreground">
<Loader2 className="mx-auto mb-2 h-5 w-5 animate-spin" />
{t('loading')}
<div className="space-y-2 py-2">
{[1, 2, 3, 4, 5, 6].map((i) => (
<Skeleton key={i} className="h-8 w-full" />
))}
</div>
) : view === 'my-accounts' ? (
filteredAccounts.length === 0 ? (
@@ -669,9 +671,10 @@ export default function ChartOfAccountsManager() {
) : (
<div>
{referenceLoading && referenceAccounts.length === 0 ? (
<div className="p-8 text-center text-muted-foreground">
<Loader2 className="mx-auto mb-2 h-5 w-5 animate-spin" />
{t('loading')}
<div className="space-y-2 py-2">
{[1, 2, 3, 4, 5, 6].map((i) => (
<Skeleton key={i} className="h-8 w-full" />
))}
</div>
) : filteredReference.length === 0 ? (
<p className="px-1 py-12 text-center text-sm text-muted-foreground">{t('no_matches')}</p>
+3 -3
View File
@@ -18,10 +18,10 @@ export default async function ExtensionCard({ extension }: { extension: Extensio
return (
<Card className="group relative">
<CardContent className="pt-6">
<CardContent className="p-6">
<div className="flex items-start gap-3 min-w-0">
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 flex-shrink-0">
<Icon className="h-5 w-5 text-primary" />
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-secondary flex-shrink-0">
<Icon className="h-5 w-5 text-foreground" />
</div>
<div className="min-w-0">
<Link
+5 -5
View File
@@ -17,14 +17,14 @@ export default async function SectorCard({ sector }: { sector: Sector }) {
return (
<Link href={`/extensions/${sector.slug}`} className="h-full">
<Card className="group hover:border-primary/30 transition-colors cursor-pointer h-full">
<CardContent className="pt-6">
<Card className="group h-full cursor-pointer transition-colors duration-150 hover:bg-secondary/60">
<CardContent className="p-6">
<div className="flex items-start gap-3">
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 flex-shrink-0">
<Icon className="h-5 w-5 text-primary" />
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-secondary flex-shrink-0">
<Icon className="h-5 w-5 text-foreground" />
</div>
<div>
<h3 className="text-sm font-medium group-hover:text-primary transition-colors">
<h3 className="text-sm font-medium">
{name}
</h3>
<p className="text-xs text-muted-foreground mt-0.5 line-clamp-2">{description}</p>
File diff suppressed because it is too large Load Diff
+15
View File
@@ -7,6 +7,7 @@ import { useRouter, useSearchParams } from 'next/navigation'
import { useTranslations } from 'next-intl'
import { ChevronLeft } from 'lucide-react'
import { PageHeader } from '@/components/ui/page-header'
import { HelpPopover } from '@/components/ui/help-popover'
import { EmptyState } from '@/components/ui/empty-state'
import { Card, CardContent } from '@/components/ui/card'
import { Skeleton } from '@/components/ui/skeleton'
@@ -119,6 +120,20 @@ function FocusedReportInner({
{!isStandalone && (
<PageHeader
title={reportName}
// Page help behind a "?" (UI-migration convention 7): the report
// bodies carry no instructional copy in the page flow.
help={
slug === 'bank-reconciliation' ? (
<HelpPopover>
<div className="space-y-2">
<p>{t('help_bank_reconciliation_scope')}</p>
<p>{t('help_bank_reconciliation_preview')}</p>
<p>{t('help_bank_reconciliation_ib')}</p>
<p>{t('help_bank_reconciliation_ignored')}</p>
</div>
</HelpPopover>
) : undefined
}
action={
<FyPicker
value={selectedPeriod || null}
File diff suppressed because it is too large Load Diff
+10 -8
View File
@@ -29,6 +29,8 @@ import {
} from 'lucide-react'
import { useLocale, useTranslations } from 'next-intl'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Textarea } from '@/components/ui/textarea'
import {
DestructiveConfirmDialog,
useDestructiveConfirm,
@@ -696,7 +698,7 @@ function BulkWorkedDialog({
<div className="space-y-3">
<div className="space-y-1.5">
<label className="text-xs font-medium" htmlFor="bulk-w-hours">{t('hours_per_day')}</label>
<input
<Input
id="bulk-w-hours"
type="number"
min={0}
@@ -705,7 +707,7 @@ function BulkWorkedDialog({
value={hours}
onChange={(e) => setHours(e.target.value)}
autoFocus
className="flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm tabular-nums shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
className="tabular-nums"
/>
<p className="text-[11px] text-muted-foreground">
{t('hours_zero_hint')}
@@ -714,13 +716,13 @@ function BulkWorkedDialog({
<div className="space-y-1.5">
<label className="text-xs font-medium" htmlFor="bulk-w-notes">{t('notes_label')}</label>
<textarea
<Textarea
id="bulk-w-notes"
value={notes}
onChange={(e) => setNotes(e.target.value)}
rows={2}
maxLength={2000}
className="flex w-full rounded-md border border-input bg-background px-3 py-1.5 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
className="min-h-0"
/>
</div>
@@ -853,7 +855,7 @@ function BulkAbsenceDialog({
<div className="space-y-1.5">
<label className="text-xs font-medium" htmlFor="bulk-a-hours">{t('hours_per_day')}</label>
<input
<Input
id="bulk-a-hours"
type="number"
min={0.5}
@@ -861,19 +863,19 @@ function BulkAbsenceDialog({
step={0.5}
value={hours}
onChange={(e) => setHours(e.target.value)}
className="flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm tabular-nums shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
className="tabular-nums"
/>
</div>
<div className="space-y-1.5">
<label className="text-xs font-medium" htmlFor="bulk-a-notes">{t('notes_label')}</label>
<textarea
<Textarea
id="bulk-a-notes"
value={notes}
onChange={(e) => setNotes(e.target.value)}
rows={2}
maxLength={2000}
className="flex w-full rounded-md border border-input bg-background px-3 py-1.5 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
className="min-h-0"
/>
</div>
+5
View File
@@ -506,6 +506,7 @@
"search_placeholder": "Search for a term...",
"filter_all": "All",
"no_results": "No terms found for \"{query}\"",
"no_results_title": "No matches",
"templates_title": "Documents & Templates",
"templates_subtitle": "Statutory templates for your bookkeeping: download, fill in, and save",
"external_resources_title": "External resources",
@@ -5732,6 +5733,10 @@
"export": "Export",
"recent_heading": "Recently opened",
"back_to_library": "Reports",
"help_bank_reconciliation_scope": "The reconciliation runs against one bank account at a time (e.g. 1930). Other bank accounts, such as Plusgiro 1920, credit card 1940 or currency accounts, are reconciled separately: pick the account in the toolbar.",
"help_bank_reconciliation_preview": "The preview pre-selects strong matches. Approximate matches must be ticked manually after you have reviewed the voucher.",
"help_bank_reconciliation_ib": "Is a manually booked or imported voucher actually an opening balance? Mark it as IB and it is excluded from the reconciliation and shown separately.",
"help_bank_reconciliation_ignored": "Ignored transactions are hidden from the reconciliation without being booked. They do not affect the balance and can be restored at any time.",
"switch_report": "Switch report",
"calendar_badge": "Calendar",
"group_payroll": "Payroll",
+5
View File
@@ -506,6 +506,7 @@
"search_placeholder": "Sök efter term...",
"filter_all": "Alla",
"no_results": "Inga termer hittades för \"{query}\"",
"no_results_title": "Inga träffar",
"templates_title": "Dokument & Mallar",
"templates_subtitle": "Lagstadgade mallar för din bokföring: ladda ner, fyll i och spara",
"external_resources_title": "Externa resurser",
@@ -5732,6 +5733,10 @@
"export": "Exportera",
"recent_heading": "Senast öppnade",
"back_to_library": "Rapporter",
"help_bank_reconciliation_scope": "Avstämningen körs mot ett bankkonto i taget (t.ex. 1930). Övriga bankkonton, som Plusgiro 1920, kreditkort 1940 eller valutakonton, stäms av separat: välj konto i verktygsraden.",
"help_bank_reconciliation_preview": "Förhandsgranskningen förvaljer starka träffar. Ungefärliga träffar bockar du i själv efter att du granskat verifikationen.",
"help_bank_reconciliation_ib": "Är en manuellt bokförd eller importerad verifikation egentligen en ingående balans? Märk den som IB så räknas den inte med i avstämningen utan visas separat.",
"help_bank_reconciliation_ignored": "Ignorerade transaktioner döljs från avstämningen utan att bokföras. De påverkar inte saldot och kan återställas när som helst.",
"switch_report": "Byt rapport",
"calendar_badge": "Kalender",
"group_payroll": "Lön",