From 77d20287b9c621a522c8dcbed7169a7e160dc9fb Mon Sep 17 00:00:00 2001 From: Jakob Wennberg Date: Wed, 5 Aug 2026 18:08:38 +0200 Subject: [PATCH] =?UTF-8?q?fix(bokslut):=20unblur=20the=20pre-submission?= =?UTF-8?q?=20warning=20list=20on=20the=20=C3=A5rsredovisning=20page=20(#1?= =?UTF-8?q?415)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(bokslut): revive preflight action links and unblur arsredovisning warnings Two dead pieces of pre-flight UI wiring: 1. PreflightStep's BlockerRow matched blocker strings with English-only regexes (/draft journal entries/, /voucher gap/, /trial balance/, /continuity/), but validateYearEndReadiness emits Swedish (the wizard is a "stays Swedish" surface). None of the contextual action links ("Visa utkast", "Hantera nummerlucka", "Öppna balansrapport", "Granska ingående balans") ever rendered. Swedish alternates added, mirroring the MCP classifier, plus a link for the unbooked-transactions blocker. 2. The "Innan inlämning till Bolagsverket" warning list on the årsredovisning page was rendered inside the blurred/inert coming-soon wrapper, so in the default config (direct submission gated) users could not read their own pre-submission warnings while the draft-PDF button next to them stayed active. The warnings describe problems in the user's own report and apply to the paper PDF path too: they now stay sharp; only the digital-inlämning explainer remains blurred. Co-Authored-By: Claude Fable 5 * revert: hand PreflightStep blocker links to #1420 (typed codes) #1420 solves the same dead-link problem with stable blocker codes instead of regex string matching, and correctly drops the /bookkeeping/voucher-gaps branch: that path exists only as an API route (app/api/bookkeeping/ voucher-gaps), so this PR's regex fix would have made a link render that navigates nowhere. Keeping only the unique arsredovisning warning-list unblur here so the two PRs stop competing for the same file. Co-Authored-By: Claude Fable 5 --------- Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5 --- .../year-end/arsredovisning/page.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/(dashboard)/bookkeeping/year-end/arsredovisning/page.tsx b/app/(dashboard)/bookkeeping/year-end/arsredovisning/page.tsx index 0020c2b2..d52ba053 100644 --- a/app/(dashboard)/bookkeeping/year-end/arsredovisning/page.tsx +++ b/app/(dashboard)/bookkeeping/year-end/arsredovisning/page.tsx @@ -1035,15 +1035,12 @@ export default function ArsredovisningPage() { -
+ {/* The warning list stays SHARP even while direct submission is + gated: the warnings describe problems in the user's own report + (unmapped accounts, resultat vs 2099, AGM dates) and apply to + the paper PDF just as much as to digital inlämning. Blurring + them alongside the coming-soon Bolagsverket parts made the + pre-submission checklist unreadable in the default config. */} {data.warnings.length > 0 && (

Innan inlämning till Bolagsverket:

@@ -1054,13 +1051,20 @@ export default function ArsredovisningPage() {
)} -

+

Digital inlämning är frivillig. Den görs som iXBRL genom en ansluten programvara. Accounteds direktinlämning förblir stängd tills avtal, certifikat och Bolagsverkets acceptanstest är klara. PDF-flödet ovan är den separata vägen för pappersinlämning.

-