|
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 1m51s
A profile without any transaction now gets an "import first" card with a button to the import page on both pages, in place of the filter bar, the table and the pagination (Transactions) and of the filter panel and the grid (Budget). Title, page help and template actions stay. The signal is a profile-wide `totalInDb` count loaded once at mount via `getTransactionCount()`, not `rows.length`: the default Transactions filter is "since January 1st", so an empty page cannot tell an empty profile from a year without transactions. `null` (not loaded yet) keeps the regular layout, and so does a loading Transactions page. `transactionsReducer` / `initialTransactionsState` and `budgetReducer` / `initialBudgetState` are exported with a pure `showsEmptyState` selector per hook, so the reducer tests pin that the count never touches filters, sort or page and that 0 then N > 0 brings the table back. The existing "no transactions found" / "no categories found" rows are unchanged. Resolves #353 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| settings | ||
| AccountsPage.tsx | ||
| AdjustmentsPage.tsx | ||
| BalancePage.tsx | ||
| BudgetPage.tsx | ||
| CategoriesMigrationPage.tsx | ||
| CategoriesPage.tsx | ||
| CategoriesStandardGuidePage.tsx | ||
| ChangelogPage.tsx | ||
| DashboardPage.tsx | ||
| DocsPage.tsx | ||
| ImportPage.tsx | ||
| ProfileSelectionPage.tsx | ||
| ReportsCartesPage.tsx | ||
| ReportsCategoryPage.tsx | ||
| ReportsComparePage.tsx | ||
| ReportsHighlightsPage.tsx | ||
| ReportsPage.tsx | ||
| ReportsTrendsPage.tsx | ||
| SnapshotEditPage.tsx | ||
| TransactionsPage.tsx | ||