whisper-money/resources/js/components
Víctor Falcón 30d64f8249
refactor: use shared trend indicator components with hover tooltips (#18)
## Summary

Refactored all places using TrendingUp/TrendingDown icons directly to
use the shared `AmountTrendIndicator` and `PercentageTrendIndicator`
components.

<img width="1113" height="799" alt="image"
src="https://github.com/user-attachments/assets/8a635d23-3c14-48b6-80d0-b5641af93024"
/>

## Changes

- **AmountTrendIndicator**: Now shows percentage diff on hover via
tooltip
- **PercentageTrendIndicator**: Now shows amount diff on hover via
tooltip
- Added `invertColors` prop to `PercentageTrendIndicator` for spending
categories (where spending less is good)
- Added `className` prop to both components for flexibility

## Files refactored

- `account-list-card.tsx` - Now uses `AmountTrendIndicator`
- `top-categories-card.tsx` - Now uses `PercentageTrendIndicator`
- `account-balance-chart.tsx` - Removed local `TrendIndicator` function,
now uses shared `PercentageTrendIndicator`
- `account-balance-card.tsx` - Updated to pass new props
- `net-worth-chart.tsx` - Updated to pass new props

## Testing

- All existing tests pass
- Hover over any trend indicator to see the alternate metric (percentage
or amount)
2025-12-08 17:31:22 +01:00
..
accounts refactor: use shared trend indicator components with hover tooltips (#18) 2025-12-08 17:31:22 +01:00
automation-rules Smart rules: Change operator to `OR` by default (#7) 2025-12-03 10:16:29 +01:00
categories Add category type field support (#2) 2025-12-01 20:19:47 +01:00
dashboard refactor: use shared trend indicator components with hover tooltips (#18) 2025-12-08 17:31:22 +01:00
icons Subscriptions (#15) 2025-12-06 19:09:56 +01:00
partials Improve header responsive behavior and refactor class names with cn utility 2025-12-06 20:44:37 +01:00
shared Transactions table rows clickable 2025-12-08 16:13:29 +01:00
transactions Transactions table rows clickable 2025-12-08 16:13:29 +01:00
ui Fix net-worth chart on desktop 2025-12-08 16:19:37 +01:00
alert-error.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
app-content.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
app-logo-icon.tsx Fix CI: Update bun.lock and fix linting errors 2025-12-01 15:16:06 +01:00
app-logo.tsx Format + Open transactions on row click 2025-12-08 15:58:50 +01:00
app-mobile-nav.tsx Mobile design (#17) 2025-12-08 15:43:09 +01:00
app-shell.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
app-sidebar-header.tsx Format + Open transactions on row click 2025-12-08 15:58:50 +01:00
app-sidebar.tsx Format + Open transactions on row click 2025-12-08 15:58:50 +01:00
appearance-dropdown.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
appearance-tabs.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
breadcrumbs.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
delete-user.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
encrypted-text.tsx fix: make encryption key storage SSR-safe to prevent 502 errors 2025-12-08 17:13:45 +01:00
encryption-key-button.tsx feat: Update encryption key button icon based on state 2025-11-07 20:20:09 +00:00
heading-small.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
heading.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
icon.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
input-error.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
nav-footer.tsx Subscriptions (#15) 2025-12-06 19:09:56 +01:00
nav-main.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
nav-user.tsx Format + Open transactions on row click 2025-12-08 15:58:50 +01:00
pending-operations-dialog.tsx Add pending operations dialog and improve sync status UI (#16) 2025-12-06 21:54:11 +01:00
sync-status-button.tsx Add pending operations dialog and improve sync status UI (#16) 2025-12-06 21:54:11 +01:00
text-link.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
two-factor-recovery-codes.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
two-factor-setup-modal.tsx Set up a fresh Laravel app 2025-11-07 12:01:36 +00:00
unlock-message-dialog.tsx Add encryption key management features 2025-11-07 16:10:56 +00:00
user-info.tsx Format + Open transactions on row click 2025-12-08 15:58:50 +01:00
user-menu-content.tsx Accounts: Allow users to create custom banks with his own logo, and name (#12) 2025-12-04 15:24:04 +01:00