Import Suggestions
Data · ImportSuggestions, Panel
Bank statement lines with a suggested category and booking, confirmed in one step: tick the lines that are right, change a category where it is not, and book the selection with one button.
lines: date, text, counterparty, signedamountand asuggestion(category,booking,confidence0–1,reason). Lines withstate: "duplicate"or"booked"stay visible but cannot be picked.- Every new line with a suggestion starts selected; "Select all" and
selected/onSelectedChangecontrol it. onConfirm(ids)books the selection; return a Promise for the pending state (and reject with an Error to show its message).categorieswithonCategoryChangeturn the category into a picker;onEdit(id)opens your own editor.- Below 560px each line folds into two rows; the confirm button spans the width.
Import October
6 lines
- Amazon Web ServicesOct 2 · AWS EMEA SARL 1002-44714930 Hosting ← 1200 Bank96% sure-€412.30
- StripeOct 3 · STRIPE PAYOUT 10031200 Bank ← 1360 Clearing91% sure+€2,318.40
- StripeOct 3 · STRIPE PAYOUT 1003Duplicate+€2,318.40
- Office Supply Co.Oct 5 · BUERO KONTOR 558214930 Office ← 1200 Bank72% sure-€86.90
- CARD 4411 COFFEE BAROct 6No suggestion-€4.20
- Harbour OfficesOct 1 · RENT OCT 2026Booked-€1,850.00
3 selected · +€1,819.20
Props
ImportSuggestions
| Prop | Type | Notes |
|---|---|---|
surface? | Surface | `"glass"` for a translucent surface over a map, photo or video; `"solid"` opts out inside a glass provider. |
lines | ImportSuggestionLine[] | Required |
selected? | string[] | Default: every new line with a suggestion. |
defaultSelected? | string[] | |
onSelectedChange? | (ids: string[]) => void | |
onConfirm? | (ids: string[]) => void | Promise<void> | Books the picked lines in one step; a Promise shows the pending state, a rejection its message. |
categories? | string[] | With `onCategoryChange`: a category picker per line. |
onCategoryChange? | (id: string, category: string) => void | |
onEdit? | (id: string) => void | |
currency? | string | |
title? | string | |
busy? | boolean | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |