Add investments to All tab, withdrawal on create, modal fixes, and login logo

- Show investment subtable under All accounts tab (was only under Operating/Reserve)
- Add "Withdraw from primary account" switch (on by default) when creating
  investments; creates a journal entry to credit the primary asset account
  and debit the equity offset, keeping the books balanced
- Prevent all account modals from closing on outside click to avoid data loss
- Replace login page text title with the SVG logo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 13:57:40 -05:00
parent d4ae5d1d33
commit 1e40848222
3 changed files with 90 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
import { useState } from 'react';
import {
Center,
Container,
Paper,
Title,
Text,
TextInput,
PasswordInput,
@@ -16,6 +16,7 @@ import { IconAlertCircle } from '@tabler/icons-react';
import { useNavigate, Link } from 'react-router-dom';
import api from '../../services/api';
import { useAuthStore } from '../../stores/authStore';
import logoSrc from '../../assets/logo.svg';
export function LoginPage() {
const [loading, setLoading] = useState(false);
@@ -52,9 +53,9 @@ export function LoginPage() {
return (
<Container size={420} my={80}>
<Title ta="center" order={2}>
HOA LedgerIQ
</Title>
<Center>
<img src={logoSrc} alt="HOA LedgerIQ" style={{ height: 60 }} />
</Center>
<Text c="dimmed" size="sm" ta="center" mt={5}>
Don&apos;t have an account?{' '}
<Anchor component={Link} to="/register" size="sm">