fix(transactions): the underlag column is one surface, not a dropzone and an orphan button (#1628)

* fix(transactions): the underlag column is one surface, not a dropzone and an orphan button

The Bokfor transaktion dialog stretched its empty dropzone into a
45/72vh well and pinned "Valj befintligt underlag" alone at the very
bottom of the column, visually disconnected from the dropzone it
belongs to.

- Empty state: the underlag column now sizes to its content and
  top-aligns; the inbox picker renders as a quiet full-width dashed
  row directly under the dropzone ("eller valj befintligt underlag
  fran inkorgen"), so drop-a-file and pick-from-inbox read as one
  intake surface. The fixed-height sticky column returns as soon as
  a document previews there (uploaded, picked, or pre-linked).
- Grid rebalanced from 1fr/520px to 2fr/3fr so the kontering side
  dominates while nothing is being previewed on the left.
- QuickReviewDialog gets the same footer-row treatment for its picker
  trigger inside the underlag collapsible, so both #1620 surfaces
  present the affordance identically (disabled-while-booking kept).

Presentation only: upload path, select-mode picker held until booking,
linkDocuments with inbox_item_id, picked-state resets on close and
transaction change, and duplicate-match wiring are all unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* docs: record the QuickReviewDialog picker-trigger consistency decision

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-08-16 18:06:53 +02:00
committed by GitHub
co-authored by Claude Fable 5 Jakob Wennberg
parent a977a67063
commit 4dbd19aeb0
5 changed files with 83 additions and 58 deletions
+2
View File
@@ -2785,6 +2785,7 @@
"doc_label": "Receipt",
"doc_attached_count": "{count} attached",
"doc_pick_existing": "Choose from the inbox",
"doc_pick_existing_inline": "or choose an existing document from the inbox",
"doc_picked_remove": "Remove document",
"doc_link_failed_title": "Receipt could not be attached",
"doc_link_failed_description": "{count} file(s) could not be linked to the journal entry.",
@@ -2803,6 +2804,7 @@
"doc_label": "Receipt (optional)",
"doc_attached_count": "{count} attached",
"doc_pick_existing": "Choose existing document",
"doc_pick_existing_inline": "or choose an existing document from the inbox",
"doc_picked_remove": "Remove document",
"doc_clear": "Remove document",
"doc_link_failed_title": "Receipt could not be attached",
+2
View File
@@ -2785,6 +2785,7 @@
"doc_label": "Underlag",
"doc_attached_count": "{count} bifogade",
"doc_pick_existing": "Välj från inkorgen",
"doc_pick_existing_inline": "eller välj befintligt underlag från inkorgen",
"doc_picked_remove": "Ta bort underlag",
"doc_link_failed_title": "Underlag kunde inte bifogas",
"doc_link_failed_description": "{count} fil(er) kunde inte länkas till verifikationen.",
@@ -2803,6 +2804,7 @@
"doc_label": "Underlag (valfritt)",
"doc_attached_count": "{count} bifogade",
"doc_pick_existing": "Välj befintligt underlag",
"doc_pick_existing_inline": "eller välj befintligt underlag från inkorgen",
"doc_picked_remove": "Ta bort underlag",
"doc_clear": "Ta bort underlag",
"doc_link_failed_title": "Underlag kunde inte bifogas",