|
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 1m59s
The import page without a source no longer shows a bare "no source found" card. `ImportEmptyState` (built on the shared `EmptyState`) takes the place of the empty `SourceList` in both situations: without an import folder it offers "Choose a folder" as the single primary action; with a folder and no bank sub-folder it offers "Create a sample folder" (primary, disabled while in flight) and "Refresh" (secondary). Both variants, and the "?" help popover through the new optional `linkTo` prop of `PageHelp`, link to the bank CSV export guide at `/settings/users#import-export`. `SourceList` stays an untouched pure list. `useImportWizard` gains `createSampleFolders`: it invokes the Rust command `create_sample_import_folders` with the folder and the webview's LOCAL date (built from the local getters, not `toISOString()`), rescans the folder so the two cards appear without another click, then raises a closable success banner from the new `sampleCreated` state, which `reset` and a folder change clear. A refusal from Rust (a sample folder already exists) lands in the existing error banner. The log line carries the folder NAMES only, never the absolute path, since the logs travel with a feedback report. "Browse" on the folder card drops to the secondary style while no folder is configured, so a single primary button is on screen. The reducer and its initial state are exported as `wizardReducer` / `initialWizardState` and unit-tested; `ImportEmptyState` is tested by direct call. Resolves #356 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| CategoryCombobox.test.ts | ||
| CategoryCombobox.tsx | ||
| ChartContextMenu.tsx | ||
| ContextMenu.tsx | ||
| DownloadLatestButton.tsx | ||
| EmptyState.test.tsx | ||
| EmptyState.tsx | ||
| ErrorBoundary.tsx | ||
| ErrorPage.tsx | ||
| HaveKeyButton.tsx | ||
| PageHelp.tsx | ||
| PurchaseButton.tsx | ||
| RequireFeature.tsx | ||
| TransactionDetailModal.tsx | ||
| UpsellCtas.render.test.tsx | ||
| UpsellGate.tsx | ||