Update manifest.json with new file metadata and add new test files
Gitea Actions CI / detect (push) Successful in 33s
Gitea Actions CI / Backend (lint / type / test / build) (push) Failing after 28s
Gitea Actions CI / Compose & nginx validation (push) Failing after 1m8s
Gitea Actions CI / Frontend (lint / type / test / build) (push) Successful in 50s

- Updated timestamps and AST hashes for existing files in the backend and frontend.
- Added new test files: `backend/tests/test_review_queue_batch.py`, `frontend/src/test/review-queue-save.test.tsx`, `frontend/src/test/app-layout.test.tsx`, and `frontend/src/test/ledger-view.test.tsx`.
- Updated documentation file `docs/tasks/0001-fixes.md` with new metadata.
This commit is contained in:
k1nq
2026-09-23 15:06:45 +05:00
parent 63d065011b
commit f5ae63e158
28 changed files with 101997 additions and 6849 deletions
+20 -11
View File
@@ -125,6 +125,25 @@ def ensure_mcc_dictionary(db: Session) -> None:
db.flush()
def ensure_others_category(db: Session, *, space_id: uuid.UUID) -> Category:
"""The system «Остальное» fallback category, created on first use."""
others = (
db.query(Category)
.filter_by(space_id=space_id, system_key=mcc.OTHERS_SYSTEM_KEY)
.one_or_none()
)
if others is None:
others = Category(
space_id=space_id,
kind="monthly",
system_key=mcc.OTHERS_SYSTEM_KEY,
custom_name=mcc.OTHERS_CATEGORY_NAME,
)
db.add(others)
db.flush()
return others
def ensure_default_categories(db: Session, *, space_id: uuid.UUID) -> dict[str, Category]:
"""Idempotently pre-create the 20 popular categories plus «Остальное».
@@ -162,17 +181,7 @@ def ensure_default_categories(db: Session, *, space_id: uuid.UUID) -> dict[str,
db.add(CategoryMcc(space_id=space_id, category_id=category.id, mcc_code=code))
claimed.add(code)
result[definition.system_key] = category
others = existing.get(mcc.OTHERS_SYSTEM_KEY)
if others is None:
others = Category(
space_id=space_id,
kind="monthly",
system_key=mcc.OTHERS_SYSTEM_KEY,
custom_name=mcc.OTHERS_CATEGORY_NAME,
)
db.add(others)
db.flush()
result[mcc.OTHERS_SYSTEM_KEY] = others
result[mcc.OTHERS_SYSTEM_KEY] = ensure_others_category(db, space_id=space_id)
db.flush()
return result
+25
View File
@@ -52,6 +52,19 @@ class OperationPatchBody(BaseModel):
category_id: uuid.UUID | None = Field(default=None, alias="categoryId")
class CategorizeBatchItemBody(BaseModel):
model_config = ConfigDict(populate_by_name=True)
operation_id: uuid.UUID = Field(alias="operationId")
category_id: uuid.UUID | None = Field(default=None, alias="categoryId")
class CategorizeBatchBody(BaseModel):
model_config = ConfigDict(populate_by_name=True)
items: Annotated[list[CategorizeBatchItemBody], Field(min_length=1, max_length=200)]
class AdjustBalanceBody(BaseModel):
model_config = ConfigDict(populate_by_name=True)
@@ -289,6 +302,18 @@ def patch_operation(
return operation_json(db, operation)
@router.post("/operations/categorize-batch")
def categorize_operations_batch(
body: CategorizeBatchBody, db: Db, context: Context, _csrf: Csrf
) -> dict:
return service.categorize_batch(
db,
space_id=context.space.id,
user=context.user,
items=[(item.operation_id, item.category_id) for item in body.items],
)
@router.post("/accounts/{account_id}/adjust-balance")
def adjust_balance(
account_id: uuid.UUID, body: AdjustBalanceBody, db: Db, context: Context, _csrf: Csrf
+39
View File
@@ -480,6 +480,45 @@ def update_operation(
return operation
def categorize_batch(
db: Session,
*,
space_id: uuid.UUID,
user: User,
items: list[tuple[uuid.UUID, uuid.UUID | None]],
) -> dict[str, list[str]]:
"""Assign categories to uncategorized operations in one transaction.
Items without an explicit category fall back to the system «Остальное»
category, so nothing stays uncategorized after a review-queue save.
Operations that already carry a category (user work done elsewhere) or
that were voided in the meantime are skipped, never overwritten.
"""
from app.categorization.service import ensure_others_category
fallback = ensure_others_category(db, space_id=space_id)
updated: list[str] = []
skipped: list[str] = []
for operation_id, category_id in items:
operation = get_operation(db, space_id=space_id, operation_id=operation_id)
if operation.status == "voided" or operation.category_id is not None:
skipped.append(str(operation.id))
continue
ensure_period_open_for_date(db, space_id=space_id, day=operation.occurred_on)
target = category_id if category_id is not None else fallback.id
_validate_category(db, space_id=space_id, category_id=target)
operation.category_id = target
updated.append(str(operation.id))
audit.record(
db,
event_type="operations.batch_categorized",
space_id=space_id,
user_id=user.id,
detail={"updated": updated, "skipped": skipped},
)
return {"updated": updated, "skipped": skipped}
def archive_account(
db: Session, *, space_id: uuid.UUID, user: User, account_id: uuid.UUID
) -> Account:
+177
View File
@@ -0,0 +1,177 @@
from fastapi.testclient import TestClient
def bootstrap(client: TestClient) -> str:
invite = client.post(
"/api/v1/admin/invitations",
headers={"X-Admin-Token": "test-admin-token"},
json={"email": "Queue@Example.com"},
)
assert invite.status_code == 201, invite.text
accepted = client.post(
"/api/v1/auth/invitations/accept",
json={
"token": invite.json()["token"],
"password": "a-long-password-for-tests",
"fullName": "Test Person",
"locale": "en",
},
)
assert accepted.status_code == 201, accepted.text
return client.cookies["csrf_token"]
def create_account(client: TestClient, csrf: str) -> str:
response = client.post(
"/api/v1/accounts",
headers={"X-CSRF-Token": csrf},
json={
"name": "Wallet",
"type": "cash",
"openedOn": "2026-02-01",
"openingBalanceKopecks": 100_000,
},
)
assert response.status_code == 201, response.text
return response.json()["id"]
def create_expense(client: TestClient, csrf: str, account_id: str, description: str) -> str:
response = client.post(
"/api/v1/operations",
headers={"X-CSRF-Token": csrf},
json={
"kind": "expense",
"accountId": account_id,
"amountKopecks": 1_500,
"occurredOn": "2026-02-10",
"description": description,
},
)
assert response.status_code == 201, response.text
return response.json()["id"]
def category_ids(client: TestClient) -> dict[str, str]:
response = client.get(
"/api/v1/budget/category-definitions", params={"includeArchived": "false"}
)
assert response.status_code == 200, response.text
return {
item["systemKey"]: item["id"]
for item in response.json()
if item["systemKey"] is not None
}
def operations_by_id(client: TestClient) -> dict[str, dict]:
response = client.get("/api/v1/operations", params={"kind": "expense", "limit": 200})
assert response.status_code == 200, response.text
return {item["id"]: item for item in response.json()["items"]}
def test_batch_assigns_picked_categories_and_moves_leftovers_to_others(
client: TestClient,
) -> None:
csrf = bootstrap(client)
account_id = create_account(client, csrf)
categories = category_ids(client)
first = create_expense(client, csrf, account_id, "Coffee")
second = create_expense(client, csrf, account_id, "Groceries")
response = client.post(
"/api/v1/operations/categorize-batch",
headers={"X-CSRF-Token": csrf},
json={
"items": [
{"operationId": first, "categoryId": categories["groceries"]},
{"operationId": second},
]
},
)
assert response.status_code == 200, response.text
assert response.json() == {"updated": [first, second], "skipped": []}
operations = operations_by_id(client)
assert operations[first]["categoryKey"] == "groceries"
assert operations[second]["categoryKey"] == "others"
assert operations[second]["categoryName"] == "Остальное"
left = client.get("/api/v1/operations", params={"uncategorized": "true"})
assert left.json()["items"] == []
def test_batch_never_overwrites_existing_categories_or_voided_operations(
client: TestClient,
) -> None:
csrf = bootstrap(client)
account_id = create_account(client, csrf)
categories = category_ids(client)
categorized = create_expense(client, csrf, account_id, "Already done")
voided = create_expense(client, csrf, account_id, "Voided")
pending = create_expense(client, csrf, account_id, "Pending")
patch = client.patch(
f"/api/v1/operations/{categorized}",
headers={"X-CSRF-Token": csrf},
json={"categoryId": categories["groceries"]},
)
assert patch.status_code == 200, patch.text
void = client.post(
f"/api/v1/operations/{voided}/void",
headers={"X-CSRF-Token": csrf},
json={"reason": "duplicate"},
)
assert void.status_code == 200, void.text
response = client.post(
"/api/v1/operations/categorize-batch",
headers={"X-CSRF-Token": csrf},
json={
"items": [
{"operationId": categorized, "categoryId": categories["cafes"]},
{"operationId": voided, "categoryId": categories["cafes"]},
{"operationId": pending, "categoryId": categories["cafes"]},
]
},
)
assert response.status_code == 200, response.text
assert response.json() == {"updated": [pending], "skipped": [categorized, voided]}
operations = operations_by_id(client)
assert operations[categorized]["categoryKey"] == "groceries"
assert operations[pending]["categoryKey"] == "cafes"
def test_batch_is_atomic_when_one_category_is_unknown(client: TestClient) -> None:
csrf = bootstrap(client)
account_id = create_account(client, csrf)
first = create_expense(client, csrf, account_id, "First")
second = create_expense(client, csrf, account_id, "Second")
response = client.post(
"/api/v1/operations/categorize-batch",
headers={"X-CSRF-Token": csrf},
json={
"items": [
{"operationId": first, "categoryId": "00000000-0000-0000-0000-000000000000"},
{"operationId": second},
]
},
)
assert response.status_code == 404, response.text
assert response.json()["error"]["code"] == "BUDGET_CATEGORY_NOT_FOUND"
operations = operations_by_id(client)
assert operations[first]["categoryId"] is None
assert operations[second]["categoryId"] is None
def test_batch_rejects_empty_payload(client: TestClient) -> None:
csrf = bootstrap(client)
response = client.post(
"/api/v1/operations/categorize-batch",
headers={"X-CSRF-Token": csrf},
json={"items": []},
)
assert response.status_code == 422, response.text
+10069 -77
View File
File diff suppressed because it is too large Load Diff
+10
View File
@@ -0,0 +1,10 @@
Используй скиллы pen-dev и design-interface для работы с дизайном в @design.pen
Используй скиллы pen-dev, frontend-design и impeccable для верстки фронта
0. Меню Review Queue вообще не отрисовано в дизайне. Надо исправить.
1. В очереди разбора кнопка сохранить должна быть в конце распределения категорий, а не на каждую транзакцию
2. В Очереди разбора: если где-то остается транзакция "Без категории" в конце концов оно должно уехать в "остальное"
3. На Ledger страницы фронт фактически не совпадает с дизайном @design.pen. В создании новой операции Выбор типа фон у вариантов белый а не черный, размер отличается. Выпадающее окно справа (как сейчас сделано на фронте мне нравится больше, чем вариант нарисованный на дизайне, где эта менюшка посреди интерфейса). Перерисуй интерфейс без менюшки и с вызванным меню создания операции с выпавшим справа меню. Также пусть на фронте меню выпадает с плавной анимацией, а не просто появляется.
4. На Ledger есть кнопки Void и To savings, они новый на дизайне вообще их нет, надо дорисовать. И мне вообще не нравится как они сейчас выглядят на фронте, нарисуй на дизайне их красиво и аккуратно, кнопки не должны разбиваться по размеру и раздувать каждую строку транзакции. Идеально, чтобы они были рядом в одной строке, а не в две.
5. Отсутсвуют иконки в левом меню навигации для каждого пункта, в навигации не совпадает порядок с дизайном
6. Фильтры в Ledger сверстаны нелогично. Во-первых, надо обновить дизайн и добавить туда фильтры по дате (FROM и TO), нарисовать их надо так, чтобы они были одинаковые. Сейчас, фактически, на вёрстке почему-то поле FROM DATE вдвое шире чем TO DATE, что крайне странно. + На дизайне было интересное решение сделать фильтры более узкими по вертикали по сравнению со строкой поиска - это хорошо выглядит. Но на фронте это не реализовано. Актуализируй дизайн в соответствии с функционалом.
+4
View File
@@ -8,6 +8,8 @@ import type {
BudgetCategory,
BudgetSummary,
CashFlowMonth,
CategorizeBatchPayload,
CategorizeBatchResult,
CategoryDefinition,
CategorySpendItem,
ConfirmImportPayload,
@@ -60,6 +62,8 @@ export const api = {
apiClient.post<Operation>(`/operations/${id}/void`, { json: { reason } }),
categorize: (id: string, categoryId: string) =>
apiClient.patch<Operation>(`/operations/${id}`, { json: { categoryId } }),
categorizeBatch: (payload: CategorizeBatchPayload) =>
apiClient.post<CategorizeBatchResult>('/operations/categorize-batch', { json: payload }),
savingsTransfer: (id: string) =>
apiClient.post<Operation>(`/operations/${id}/savings-transfer`),
savingsTransferRevert: (id: string) =>
+15
View File
@@ -73,6 +73,21 @@ export interface AdjustBalanceResult extends Operation {
newBalanceKopecks: number
}
export interface CategorizeBatchItem {
operationId: string
categoryId?: string | null
}
export interface CategorizeBatchPayload {
items: CategorizeBatchItem[]
}
export interface CategorizeBatchResult {
updated: string[]
skipped: string[]
}
export type CreateOperationPayload =
| {
kind: 'expense'
+104 -11
View File
@@ -1,23 +1,114 @@
import { Link, NavLink, Outlet, useLocation, useNavigate } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import type { ReactElement } from 'react'
import { Button } from '@/components/ui/Button'
import { LangSwitcher } from '@/components/layout/LangSwitcher'
import { useLogout, useMe } from '@/hooks/useAuth'
type NavIconName =
| 'month'
| 'operations'
| 'budget'
| 'imports'
| 'review'
| 'analytics'
| 'accounts'
| 'settings'
const NAV_ICONS: Record<NavIconName, ReactElement> = {
month: (
<>
<rect x="3" y="4.5" width="18" height="16" rx="2" />
<path d="M8 2.5v4" />
<path d="M16 2.5v4" />
<path d="M3 9.5h18" />
<path d="M8 14h8" />
</>
),
operations: (
<>
<rect x="3" y="3" width="18" height="18" rx="2" />
<path d="M3 9h18" />
<path d="M3 15h18" />
</>
),
budget: (
<>
<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" />
<path d="M21.21 15.89A10 10 0 1 1 8 2.83" />
</>
),
imports: (
<>
<path d="M22 12h-6l-2 3h-4l-2-3H2" />
<path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" />
</>
),
review: (
<>
<path d="m3 17 2 2 4-4" />
<path d="m3 7 2 2 4-4" />
<path d="M13 6h8" />
<path d="M13 12h8" />
<path d="M13 18h8" />
</>
),
analytics: (
<>
<path d="M4 20v-6" />
<path d="M9.5 20V9" />
<path d="M15 20v-4" />
<path d="M20.5 20V7" />
<path d="m3 12 5-5 4 3 6-6" />
</>
),
accounts: (
<>
<path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" />
<path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" />
</>
),
settings: (
<>
<path d="M20 7h-9" />
<path d="M14 17H5" />
<circle cx="17" cy="17" r="3" />
<circle cx="7" cy="7" r="3" />
</>
),
}
function NavIcon({ name }: { name: NavIconName }) {
return (
<svg
className="nav-icon"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
focusable="false"
>
{NAV_ICONS[name]}
</svg>
)
}
const NAV_ITEMS = [
{ to: '/', key: 'nav.month', end: true },
{ to: '/budget', key: 'nav.budget', end: false },
{ to: '/operations', key: 'nav.operations', end: false },
{ to: '/imports', key: 'nav.imports', end: false },
{ to: '/review', key: 'nav.review', end: false },
{ to: '/analytics', key: 'nav.analytics', end: false },
{ to: '/settings', key: 'nav.settings', end: false },
{ to: '/accounts', key: 'nav.accounts', end: false },
{ to: '/', key: 'nav.month', end: true, icon: 'month' },
{ to: '/operations', key: 'nav.operations', end: false, icon: 'operations' },
{ to: '/budget', key: 'nav.budget', end: false, icon: 'budget' },
{ to: '/imports', key: 'nav.imports', end: false, icon: 'imports' },
{ to: '/review', key: 'nav.review', end: false, icon: 'review' },
{ to: '/analytics', key: 'nav.analytics', end: false, icon: 'analytics' },
{ to: '/accounts', key: 'nav.accounts', end: false, icon: 'accounts' },
{ to: '/settings', key: 'nav.settings', end: false, icon: 'settings' },
] as const
const MOBILE_NAV_ITEMS = NAV_ITEMS.filter((item) =>
['/', '/budget', '/operations', '/imports', '/review', '/accounts'].includes(item.to),
)
const MOBILE_NAV_ROUTES: readonly string[] = ['/', '/operations', '/budget', '/imports', '/review', '/accounts']
const MOBILE_NAV_ITEMS = NAV_ITEMS.filter((item) => MOBILE_NAV_ROUTES.includes(item.to))
export function AppLayout() {
const { t } = useTranslation()
@@ -52,6 +143,7 @@ export function AppLayout() {
<nav className="app-nav" aria-label={t('nav.label')}>
{NAV_ITEMS.map((item) => (
<NavLink key={item.to} end={item.end} to={item.to} className="nav-pill">
<NavIcon name={item.icon} />
{t(item.key)}
</NavLink>
))}
@@ -88,6 +180,7 @@ export function AppLayout() {
<nav className="mobile-nav" aria-label={t('nav.label')}>
{MOBILE_NAV_ITEMS.map((item) => (
<NavLink key={item.to} end={item.end} to={item.to}>
<NavIcon name={item.icon} />
{t(item.key)}
</NavLink>
))}
+8 -1
View File
@@ -1,7 +1,7 @@
import { keepPreviousData, useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import { api } from '@/api/endpoints'
import { invalidationRoots, queryKeys } from '@/api/queryKeys'
import type { CreateOperationPayload, OperationFilters } from '@/api/types'
import type { CategorizeBatchPayload, CreateOperationPayload, OperationFilters } from '@/api/types'
import { useToast } from '@/components/ui/Toaster'
import { useTranslation } from 'react-i18next'
import { describeApiError } from '@/lib/apiErrors'
@@ -56,6 +56,13 @@ export function useCategorizeOperation() {
)
}
export function useCategorizeBatch() {
return useLedgerMutation(
(payload: CategorizeBatchPayload) => api.operations.categorizeBatch(payload),
'toast.categoriesSaved',
)
}
export function useConvertToSavings() {
return useLedgerMutation(
({ id }: { id: string }) => api.operations.savingsTransfer(id),
+2
View File
@@ -315,6 +315,7 @@
"sectionUncategorized": "Uncategorized expenses",
"uncategorizedEmpty": "No uncategorized expenses.",
"assignCategory": "Assign category",
"saveHint": "Transactions left without a category will be moved to “Other”.",
"openImport": "Open import"
},
"imports": {
@@ -465,6 +466,7 @@
"operationCreated": "Operation created",
"operationVoided": "Operation voided",
"categoryAssigned": "Category assigned",
"categoriesSaved": "Categories saved",
"convertedToSavings": "Expense converted to savings",
"savingsConversionReverted": "Transfer reverted to expense",
"categoryCreated": "Category “{{name}}” created",
+2
View File
@@ -315,6 +315,7 @@
"sectionUncategorized": "Расходы без категории",
"uncategorizedEmpty": "Расходов без категории нет.",
"assignCategory": "Назначить категорию",
"saveHint": "Транзакции без выбранной категории уедут в «Остальное».",
"openImport": "Открыть импорт"
},
"imports": {
@@ -467,6 +468,7 @@
"operationCreated": "Операция создана",
"operationVoided": "Операция отменена",
"categoryAssigned": "Категория назначена",
"categoriesSaved": "Категории сохранены",
"convertedToSavings": "Расход переведён в накопления",
"savingsConversionReverted": "Перевод возвращён в расходы",
"categoryCreated": "Категория «{{name}}» создана",
+28 -15
View File
@@ -597,14 +597,17 @@ export function OperationsPage() {
resetPaging()
}}
>
<TextField
label={t('operations.search')}
<input
className="input filters-search"
type="search"
aria-label={t('operations.search')}
placeholder={t('operations.search')}
value={searchInput}
onChange={(event) => setSearchInput(event.target.value)}
/>
<SelectField
label={t('operations.filterAccount')}
<select
className="input select filter-control"
aria-label={t('operations.filterAccount')}
value={accountId}
onChange={(event) => {
setAccountId(event.target.value)
@@ -617,9 +620,10 @@ export function OperationsPage() {
{accountLabel(account, t)}
</option>
))}
</SelectField>
<SelectField
label={t('operations.filterKind')}
</select>
<select
className="input select filter-control"
aria-label={t('operations.filterKind')}
value={kind}
onChange={(event) => {
setKind(event.target.value as '' | OperationKind)
@@ -632,9 +636,10 @@ export function OperationsPage() {
{t(`operations.kind.${option}`)}
</option>
))}
</SelectField>
<SelectField
label={t('common.status')}
</select>
<select
className="input select filter-control"
aria-label={t('common.status')}
value={status}
onChange={(event) => {
setStatus(event.target.value as '' | OperationStatus)
@@ -644,25 +649,33 @@ export function OperationsPage() {
<option value="">{t('operations.filterAll')}</option>
<option value="confirmed">{t('operations.status.confirmed')}</option>
<option value="voided">{t('operations.status.voided')}</option>
</SelectField>
<TextField
label={t('operations.filterFrom')}
</select>
<label className="filter-date-field">
<span>{t('operations.filterFrom')}</span>
<input
className="input filter-date"
type="date"
aria-label={t('operations.filterFrom')}
value={occurredFrom}
onChange={(event) => {
setOccurredFrom(event.target.value)
resetPaging()
}}
/>
<TextField
label={t('operations.filterTo')}
</label>
<label className="filter-date-field">
<span>{t('operations.filterTo')}</span>
<input
className="input filter-date"
type="date"
aria-label={t('operations.filterTo')}
value={occurredTo}
onChange={(event) => {
setOccurredTo(event.target.value)
resetPaging()
}}
/>
</label>
<label className="checkbox-field">
<input
type="checkbox"
+41 -15
View File
@@ -1,4 +1,4 @@
import { useState } from 'react'
import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Link, useSearchParams } from 'react-router-dom'
import type { BudgetCategory, ImportSummary, Operation } from '@/api/types'
@@ -9,7 +9,7 @@ import { MonthSwitcher } from '@/components/ui/MonthSwitcher'
import { PageHeader } from '@/components/ui/PageHeader'
import { QueryGate } from '@/components/ui/QueryGate'
import { useBudgetCategories } from '@/hooks/useBudget'
import { useCategorizeOperation, useOperations } from '@/hooks/useOperations'
import { useCategorizeBatch, useOperations } from '@/hooks/useOperations'
import { useImports } from '@/hooks/useImports'
import { categoryLabel } from '@/lib/categoryLabel'
import { currentMonth, formatDateTime, isValidMonth, monthBounds } from '@/lib/dates'
@@ -23,14 +23,16 @@ function needsAttention(item: ImportSummary): boolean {
function UncategorizedRow({
operation,
categories,
value,
onChange,
}: {
operation: Operation
categories: BudgetCategory[]
value: string
onChange: (categoryId: string) => void
}) {
const { t, i18n } = useTranslation()
const locale = currentLocale(i18n.language)
const [categoryId, setCategoryId] = useState('')
const categorize = useCategorizeOperation()
return (
<tr>
<th scope="row" data-label={t('common.date')}>
@@ -43,12 +45,11 @@ function UncategorizedRow({
−{new Intl.NumberFormat(locale, { style: 'currency', currency: 'RUB' }).format(operation.amountKopecks / 100)}
</td>
<td data-label={t('review.assignCategory')}>
<div className="inline-actions">
<select
className="input select"
aria-label={t('review.assignCategory')}
value={categoryId}
onChange={(event) => setCategoryId(event.target.value)}
value={value}
onChange={(event) => onChange(event.target.value)}
>
<option value="">{t('operations.noCategory')}</option>
{categories.map((category) => (
@@ -57,14 +58,6 @@ function UncategorizedRow({
</option>
))}
</select>
<Button
variant="subtle"
disabled={!categoryId || categorize.isPending}
onClick={() => categorize.mutate({ id: operation.id, categoryId })}
>
{t('common.save')}
</Button>
</div>
</td>
</tr>
)
@@ -74,11 +67,17 @@ export function ReviewQueuePage() {
const { t, i18n } = useTranslation()
const locale = currentLocale(i18n.language)
const [searchParams, setSearchParams] = useSearchParams()
const [assignments, setAssignments] = useState<Record<string, string>>({})
const categorizeBatch = useCategorizeBatch()
const monthParam = searchParams.get('month')
const month = monthParam && isValidMonth(monthParam) ? monthParam : currentMonth()
const bounds = monthBounds(month)
useEffect(() => {
setAssignments({})
}, [month])
const setMonth = (next: string) => {
setSearchParams(next === currentMonth() ? {} : { month: next })
}
@@ -96,6 +95,18 @@ export function ReviewQueuePage() {
const problematicImports = (imports.data ?? []).filter(needsAttention)
const hasWork = problematicImports.length > 0 || (uncategorized.data?.items.length ?? 0) > 0
const saveAssignments = (items: Operation[]) => {
categorizeBatch.mutate(
{
items: items.map((operation) => ({
operationId: operation.id,
categoryId: assignments[operation.id] || null,
})),
},
{ onSuccess: () => setAssignments({}) },
)
}
return (
<>
<PageHeader
@@ -168,6 +179,7 @@ export function ReviewQueuePage() {
page.items.length === 0 ? (
<EmptyState title={t('review.uncategorizedEmpty')} />
) : (
<>
<table className="data-table">
<caption className="visually-hidden">{t('review.sectionUncategorized')}</caption>
<thead>
@@ -186,10 +198,24 @@ export function ReviewQueuePage() {
key={operation.id}
operation={operation}
categories={categories.data ?? []}
value={assignments[operation.id] ?? ''}
onChange={(categoryId) =>
setAssignments((prev) => ({ ...prev, [operation.id]: categoryId }))
}
/>
))}
</tbody>
</table>
<div className="inline-actions">
<span className="muted">{t('review.saveHint')}</span>
<Button
disabled={categorizeBatch.isPending}
onClick={() => saveAssignments(page.items)}
>
{t('common.save')}
</Button>
</div>
</>
)
}
</QueryGate>
+92 -29
View File
@@ -195,9 +195,9 @@ a {
}
.nav-pill {
position: relative;
display: flex;
align-items: center;
gap: 10px;
min-height: 40px;
padding: 0 12px;
color: #aaa9a5;
@@ -206,14 +206,6 @@ a {
text-decoration: none;
}
.nav-pill::before {
content: '';
width: 4px;
height: 4px;
margin-right: 12px;
background: #595955;
}
.nav-pill:hover { color: var(--white); background: #202020; }
.nav-pill[aria-current='page'] {
@@ -221,7 +213,11 @@ a {
background: var(--blue);
}
.nav-pill[aria-current='page']::before { background: var(--white); }
.nav-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.sidebar-footer {
display: grid;
@@ -480,22 +476,26 @@ a {
tr[data-voided] > * { color: #989894; text-decoration: line-through; }
tr[data-voided] .badge { text-decoration: none; }
.data-table td.operation-actions { padding-block: 8px; }
.operation-actions .inline-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
.operation-actions .btn {
min-height: 24px;
padding: 4px 9px;
font-family: var(--font-data);
font-size: 10px;
white-space: nowrap;
}
.filters {
display: grid;
grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(120px, 0.7fr));
gap: 0;
display: flex;
align-items: stretch;
flex-wrap: wrap;
min-height: 50px;
margin: 0 0 18px;
background: var(--white);
border: 1px solid var(--line);
}
.filters .field { border-right: 1px solid var(--line); }
.filters .field:nth-of-type(n + 5),
.filters .checkbox-field { border-top: 1px solid var(--line); }
.filters .field-label { padding: 7px 10px 0; }
.filters .input { border: 0; }
.filters .checkbox-field { margin: 0; padding: 10px; }
.field { display: grid; gap: 6px; }
.form-grid { display: grid; gap: 16px; }
.field-label { font-family: var(--font-data); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
@@ -522,6 +522,61 @@ textarea.input { min-height: 84px; resize: vertical; }
input[type='file'].input { padding: 7px; }
input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px; padding: 5px 10px; color: var(--white); background: var(--ink); border: 0; cursor: pointer; }
.filters-search {
flex: 1 1 240px;
min-width: 0;
min-height: 48px;
background: transparent;
border: 0;
}
.filters .filter-control {
align-self: center;
width: 132px;
min-height: 32px;
margin-left: 8px;
padding: 4px 8px;
font-size: 12px;
border: 1px solid var(--line);
}
.filters .filter-date-field {
position: relative;
align-self: center;
flex: 0 0 132px;
width: 132px;
height: 32px;
margin-left: 8px;
}
.filter-date-field span {
position: absolute;
z-index: 1;
top: 2px;
left: 8px;
color: var(--muted);
font-family: var(--font-data);
font-size: 8px;
font-weight: 700;
line-height: 1;
pointer-events: none;
}
.filters .filter-date {
width: 100%;
min-height: 32px;
padding: 12px 6px 2px;
font-size: 11px;
border: 1px solid var(--line);
}
.filters .checkbox-field {
align-self: center;
min-height: 32px;
margin: 0 9px 0 10px;
padding: 4px 0;
}
.money-field { position: relative; }
.money-field .input { padding-right: 36px; font-family: var(--font-data); font-size: 18px; }
.money-suffix { position: absolute; right: 12px; top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
@@ -570,6 +625,16 @@ input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px;
}
.modal::backdrop { background: rgba(22, 22, 22, 0.56); }
.modal[open] { animation: drawer-in 220ms cubic-bezier(0.33, 1, 0.68, 1); }
.modal[open]::backdrop { animation: drawer-fade-in 220ms ease-out; }
@keyframes drawer-in {
from { transform: translateX(28px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes drawer-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #3a3a38; }
.modal-title { margin: 0; font-size: 18px; font-weight: 600; }
.modal-body { padding: 24px; }
@@ -582,10 +647,10 @@ input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px;
.modal .btn-primary { width: 100%; min-height: 48px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.confirm-body { margin: 0; }
.kind-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 24px; border: 1px solid #3d3d3a; }
.kind-tabs .btn { min-width: 0; padding-inline: 6px; color: #858580; border: 0; border-right: 1px solid #3d3d3a; font-family: var(--font-data); font-size: 8px; }
.kind-tabs .btn:last-child { border-right: 0; }
.kind-tabs .btn-primary { width: auto; min-height: 38px; color: var(--white); background: var(--blue); }
.kind-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 24px; }
.kind-tabs .btn { min-width: 0; min-height: 44px; padding: 8px 4px; color: var(--ink); background: var(--white); border: 1px solid var(--white); font-family: var(--font-ui); font-size: 12px; }
.kind-tabs .btn:hover:not(:disabled) { color: var(--blue-dark); background: var(--blue-soft); border-color: var(--blue-soft); }
.kind-tabs .btn-primary { width: auto; min-height: 44px; color: var(--white); background: var(--blue); border-color: var(--blue); }
.month-switch { display: inline-flex; align-items: center; }
.month-label { min-width: 145px; text-align: center; font-family: var(--font-data); font-size: 11px; font-weight: 600; }
@@ -727,8 +792,6 @@ input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px;
:root { --sidebar: 214px; }
.app-sidebar { padding-inline: 18px; }
.app-main { padding-inline: 28px; }
.filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters .field { border-top: 1px solid var(--line); }
.pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@@ -761,6 +824,7 @@ input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px;
}
.mobile-nav a { position: relative; display: grid; place-items: center; padding: 11px 3px 8px; color: var(--muted); font-family: var(--font-data); font-size: 8px; text-align: center; text-decoration: none; text-transform: uppercase; }
.mobile-nav a::before { content: ''; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: transparent; }
.mobile-nav .nav-icon { width: 15px; height: 15px; margin-bottom: 3px; }
.mobile-nav a[aria-current='page'] { color: var(--blue); }
.mobile-nav a[aria-current='page']::before { background: var(--blue); }
.app-main { padding: 22px 14px 88px; overflow: visible; }
@@ -806,9 +870,8 @@ input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px;
.mobile-primary-action { position: fixed; right: 12px; bottom: 72px; z-index: 45; display: block; }
.mobile-primary-action .btn { position: relative; width: 48px; height: 48px; padding: 0; overflow: hidden; color: transparent; }
.mobile-primary-action .btn::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font: 500 25px var(--font-ui); }
.filters { grid-template-columns: 1fr 1fr; }
.filters .field:first-child { grid-column: 1 / -1; }
.filters .checkbox-field { grid-column: 1 / -1; }
.filters-search { flex: 1 1 100%; min-height: 44px; }
.filters .checkbox-field { flex: 1 1 100%; margin: 6px 0 0; }
.data-table thead { display: none; }
.data-table,
.data-table tbody,
+79
View File
@@ -0,0 +1,79 @@
import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'
import { screen, within } from '@testing-library/react'
import { api } from '@/api/endpoints'
import type { User } from '@/api/types'
import { AppLayout } from '@/components/layout/AppLayout'
import { renderWithProviders } from './helpers'
vi.mock('@/api/endpoints', () => ({
api: {
auth: {
me: vi.fn(),
login: vi.fn(),
acceptInvite: vi.fn(),
requestPasswordReset: vi.fn(),
confirmPasswordReset: vi.fn(),
logout: vi.fn(),
},
},
}))
const meMock = vi.mocked(api.auth.me)
const user: User = {
id: 'u1',
email: 'owner@example.com',
fullName: 'Alex Owner',
locale: 'en',
timezone: 'UTC',
}
const DESKTOP_NAV = [
{ label: 'This month', to: '/' },
{ label: 'Ledger', to: '/operations' },
{ label: 'Budget', to: '/budget' },
{ label: 'Statements', to: '/imports' },
{ label: 'Review queue', to: '/review' },
{ label: 'Analytics', to: '/analytics' },
{ label: 'Accounts', to: '/accounts' },
{ label: 'Space & data', to: '/settings' },
]
const MOBILE_NAV = ['/', '/operations', '/budget', '/imports', '/review', '/accounts']
function navigationBars(): HTMLElement[] {
return screen.getAllByRole('navigation', { name: 'Primary navigation' })
}
describe('AppLayout navigation', () => {
beforeEach(() => {
meMock.mockResolvedValue(user)
})
afterEach(() => {
vi.clearAllMocks()
})
it('renders sidebar links in the design order with an icon for each item', () => {
renderWithProviders(<AppLayout />)
const sidebar = navigationBars().find((nav) => nav.classList.contains('app-nav'))
expect(sidebar).toBeDefined()
const links = within(sidebar as HTMLElement).getAllByRole('link')
expect(links.map((link) => link.getAttribute('href'))).toEqual(DESKTOP_NAV.map((item) => item.to))
expect(links.map((link) => link.textContent)).toEqual(DESKTOP_NAV.map((item) => item.label))
for (const link of links) {
expect(link.querySelector('svg.nav-icon')).not.toBeNull()
}
})
it('renders mobile navigation icons in the same relative order', () => {
renderWithProviders(<AppLayout />)
const mobile = navigationBars().find((nav) => nav.classList.contains('mobile-nav'))
expect(mobile).toBeDefined()
const links = within(mobile as HTMLElement).getAllByRole('link')
expect(links.map((link) => link.getAttribute('href'))).toEqual(MOBILE_NAV)
for (const link of links) {
expect(link.querySelector('svg.nav-icon')).not.toBeNull()
}
})
})
+155
View File
@@ -0,0 +1,155 @@
import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'
import userEvent from '@testing-library/user-event'
import { screen, within } from '@testing-library/react'
import { api } from '@/api/endpoints'
import type { Account, BudgetCategory, Operation } from '@/api/types'
import { OperationsPage } from '@/pages/OperationsPage'
import { renderWithProviders } from './helpers'
vi.mock('@/api/endpoints', () => ({
api: {
accounts: {
list: vi.fn(),
create: vi.fn(),
archive: vi.fn(),
adjustBalance: vi.fn(),
},
operations: {
list: vi.fn(),
create: vi.fn(),
void: vi.fn(),
categorize: vi.fn(),
savingsTransfer: vi.fn(),
savingsTransferRevert: vi.fn(),
},
budget: {
summary: vi.fn(),
categories: vi.fn(),
updatePlan: vi.fn(),
fund: vi.fn(),
close: vi.fn(),
reopen: vi.fn(),
copyPrevious: vi.fn(),
categoryDefinitions: vi.fn(),
createCategory: vi.fn(),
updateCategoryDefinition: vi.fn(),
},
},
}))
const listAccountsMock = vi.mocked(api.accounts.list)
const listOperationsMock = vi.mocked(api.operations.list)
const budgetCategoriesMock = vi.mocked(api.budget.categories)
function account(overrides: Partial<Account> = {}): Account {
return {
id: 'a1',
name: 'Alfa Card',
type: 'debit',
status: 'active',
bankCode: null,
maskedNumber: null,
openedOn: '2026-01-15',
currency: 'RUB',
systemKey: null,
nameKey: null,
balanceKopecks: 123456,
...overrides,
}
}
function operation(overrides: Partial<Operation> & { id: string }): Operation {
return {
kind: 'expense',
status: 'confirmed',
amountKopecks: 500000,
occurredOn: '2026-09-05',
postedOn: null,
accountId: 'a1',
counterpartyAccountId: null,
categoryId: null,
categoryName: null,
categoryKey: null,
payeeName: 'Coffee shop',
incomeSourceName: null,
description: null,
parentOperationId: null,
convertedFromExpense: false,
version: 1,
createdAt: '2026-09-05T10:00:00Z',
...overrides,
}
}
describe('OperationsPage filter bar, row actions and create menu', () => {
beforeEach(() => {
listAccountsMock.mockResolvedValue([account()])
listOperationsMock.mockResolvedValue({
items: [operation({ id: 'op-1' })],
nextCursor: null,
})
budgetCategoriesMock.mockResolvedValue([] as BudgetCategory[])
})
afterEach(() => {
vi.clearAllMocks()
})
it('renders a single filter bar with search and equal compact date filters', () => {
const { container } = renderWithProviders(<OperationsPage />)
const form = container.querySelector('form.filters')
expect(form).not.toBeNull()
const search = form?.querySelector('input[type="search"]')
expect(search).toHaveAttribute('aria-label', 'Search')
const selects = Array.from(form?.querySelectorAll('select') ?? [])
expect(selects.map((select) => select.getAttribute('aria-label'))).toEqual([
'Account',
'Type',
'Status',
])
const dates = Array.from(form?.querySelectorAll('input[type="date"]') ?? [])
expect(dates).toHaveLength(2)
const [fromDate, toDate] = dates
if (!fromDate || !toDate) throw new Error('date filters missing')
expect(fromDate).toHaveAttribute('aria-label', 'From date')
expect(toDate).toHaveAttribute('aria-label', 'To date')
expect(fromDate.className).toBe(toDate.className)
expect(fromDate.className).toContain('filter-date')
expect(fromDate.closest('.filter-date-field')).toHaveTextContent('From date')
expect(toDate.closest('.filter-date-field')).toHaveTextContent('To date')
})
it('keeps Void and To savings adjacent in one action line', async () => {
renderWithProviders(<OperationsPage />)
const row = (await screen.findByText('Coffee shop')).closest('tr') as HTMLTableRowElement
const actions = row.querySelector('.operation-actions .inline-actions')
expect(actions).not.toBeNull()
const buttons = Array.from(actions?.querySelectorAll('button') ?? [])
expect(buttons.map((button) => button.textContent)).toEqual(['To savings', 'Void'])
for (const button of buttons) {
expect(button.className).toContain('btn')
}
})
it('opens the create menu as a right-hand drawer with white type options', async () => {
renderWithProviders(<OperationsPage />)
await userEvent.click(screen.getByRole('button', { name: '+ New operation' }))
const dialog = await screen.findByRole('dialog', { name: 'New operation' })
expect(dialog).toHaveClass('modal')
const group = within(dialog).getByRole('group', { name: 'Type' })
const options = Array.from(group.querySelectorAll('button'))
expect(options.map((option) => option.textContent)).toEqual([
'Expense',
'Income',
'Transfer',
'Refund',
])
const [activeOption] = options
if (!activeOption) throw new Error('type options missing')
expect(activeOption.getAttribute('aria-pressed')).toBe('true')
})
})
@@ -0,0 +1,123 @@
import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'
import { waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { api } from '@/api/endpoints'
import type { BudgetCategory, Operation } from '@/api/types'
import { ReviewQueuePage } from '@/pages/ReviewQueuePage'
import { renderWithProviders } from './helpers'
vi.mock('@/api/endpoints', () => ({
api: {
accounts: { list: vi.fn() },
operations: {
list: vi.fn(),
create: vi.fn(),
void: vi.fn(),
categorize: vi.fn(),
categorizeBatch: vi.fn(),
savingsTransfer: vi.fn(),
savingsTransferRevert: vi.fn(),
},
budget: { categories: vi.fn() },
imports: { list: vi.fn() },
},
}))
const importsListMock = vi.mocked(api.imports.list)
const operationsListMock = vi.mocked(api.operations.list)
const categoriesMock = vi.mocked(api.budget.categories)
const categorizeBatchMock = vi.mocked(api.operations.categorizeBatch)
const categorizeMock = vi.mocked(api.operations.categorize)
const categories: BudgetCategory[] = [
{ id: 'cat-groceries', name: 'Продукты', nameKey: 'groceries', kind: 'monthly', system: false, archived: false, creditAccountId: null, plannedKopecks: 0, fundedKopecks: 0, spentKopecks: 0, availableKopecks: 0 },
{ id: 'cat-others', name: 'Остальное', nameKey: 'others', kind: 'monthly', system: true, archived: false, creditAccountId: null, plannedKopecks: 0, fundedKopecks: 0, spentKopecks: 0, availableKopecks: 0 },
]
function operation(id: string, description: string): Operation {
return {
id,
kind: 'expense',
status: 'confirmed',
amountKopecks: 150_00,
occurredOn: '2026-02-10',
postedOn: null,
accountId: 'acc-1',
counterpartyAccountId: null,
categoryId: null,
categoryName: null,
categoryKey: null,
payeeName: null,
incomeSourceName: null,
description,
parentOperationId: null,
convertedFromExpense: false,
version: 1,
createdAt: '2026-02-11T10:00:00Z',
}
}
describe('ReviewQueuePage single save with Other fallback', () => {
beforeEach(() => {
importsListMock.mockResolvedValue([])
operationsListMock.mockResolvedValue({
items: [operation('op-1', 'Coffee'), operation('op-2', 'Books')],
nextCursor: null,
})
categoriesMock.mockResolvedValue(categories)
categorizeBatchMock.mockResolvedValue({ updated: ['op-1', 'op-2'], skipped: [] })
})
afterEach(() => {
vi.clearAllMocks()
})
it('submits one batch request: picked categories win, the rest fall back to null (Other)', async () => {
const screen = renderWithProviders(<ReviewQueuePage />, '/review?month=2026-02')
const user = userEvent.setup()
await screen.findByText('Coffee')
const selects = screen.getAllByRole('combobox', { name: 'Assign category' })
expect(selects).toHaveLength(2)
await user.selectOptions(selects[0]!, 'cat-groceries')
await user.click(screen.getByRole('button', { name: 'Save' }))
await waitFor(() => expect(categorizeBatchMock).toHaveBeenCalledTimes(1))
expect(categorizeBatchMock).toHaveBeenCalledWith({
items: [
{ operationId: 'op-1', categoryId: 'cat-groceries' },
{ operationId: 'op-2', categoryId: null },
],
})
expect(categorizeMock).not.toHaveBeenCalled()
await screen.findByText('Categories saved')
})
it('offers exactly one save button and clears drafts after saving', async () => {
const screen = renderWithProviders(<ReviewQueuePage />, '/review?month=2026-02')
const user = userEvent.setup()
await screen.findByText('Books')
expect(screen.getAllByRole('button', { name: 'Save' })).toHaveLength(1)
const selects = screen.getAllByRole('combobox', { name: 'Assign category' })
await user.selectOptions(selects[1]!, 'cat-others')
await user.click(screen.getByRole('button', { name: 'Save' }))
await waitFor(() => {
const current = screen.getAllByRole('combobox', { name: 'Assign category' })
expect(current.every((el) => (el as HTMLSelectElement).value === '')).toBe(true)
})
})
it('explains the Others fallback in a hint', async () => {
const screen = renderWithProviders(<ReviewQueuePage />, '/review?month=2026-02')
await screen.findByText('Books')
expect(
screen.getByText('Transactions left without a category will be moved to “Other”.'),
).toBeInTheDocument()
})
})
+28 -22
View File
@@ -1,8 +1,8 @@
{
"0": "categorization/service.py",
"0": "Category",
"1": "budgeting/router.py",
"2": "Base",
"3": "exports/service.py",
"2": "db/models.py",
"3": "AppError",
"4": "imports/router.py",
"5": "alfa_xlsx.py",
"6": "system-account-picker.test.tsx",
@@ -11,17 +11,17 @@
"9": "ledger/router.py",
"10": "@testing-library/jest-dom",
"11": "compilerOptions",
"12": "BudgetPage.tsx",
"12": "ReviewQueuePage.tsx",
"13": "@testing-library/user-event",
"14": "devDependencies",
"15": "AppError",
"15": "ledger/service.py",
"16": "dependencies",
"17": "ImportDetailPage.tsx",
"18": "OperationsPage.tsx",
"19": "useOperations.ts",
"19": "Base",
"20": "apiErrors.ts",
"21": "test_adapter_contracts.py",
"22": "useBudget.ts",
"21": "adapters/base.py",
"22": "BudgetPage.tsx",
"23": "client.ts",
"24": "fields.tsx",
"25": "Docker Compose Development Stack",
@@ -37,14 +37,14 @@
"35": "Closed Beta Launch Gates",
"36": "package.json",
"37": "Financial Tracker MVP",
"38": "TestRocketbankDebitContract",
"38": "test_adapter_contracts.py",
"39": "generate-api.mjs",
"40": "schema.d.ts",
"41": "test_api.py",
"42": "i18n-parity.test.ts",
"43": "Expected Income",
"44": "api",
"45": "set_space_context",
"44": "helpers.tsx",
"45": "ledger/models.py",
"46": "category-manager.test.tsx",
"47": "graphify",
"48": "@types/react-dom",
@@ -66,26 +66,32 @@
"64": "Gitea CI and real statement imports",
"65": "20260918_0002_hold_lifecycle.py",
"66": "eslint-plugin-react-hooks",
"67": "main.py",
"68": "analytics/router.py",
"67": "import-hold-resolution.test.tsx",
"68": "budgeting/service.py",
"69": "TestAlfaDebitContract",
"70": "vite",
"71": "mcc.py",
"72": "TestAlfaSavingsRule",
"73": "savings-convert-revert.test.tsx",
"74": "exports/router.py",
"74": "get_settings",
"75": "ColumnChart.tsx",
"76": "identity/service.py",
"76": "dependencies.py",
"77": "AGENTS.md",
"78": "graphify.js",
"79": "Category",
"79": "test_savings.py",
"80": "test_category_definitions.py",
"81": "budget-plan.test.tsx",
"82": "import-hold-resolution.test.tsx",
"83": "get_settings",
"84": "session_scope",
"85": "20260923_0004_mcc_categories.py",
"82": "imports/service.py",
"83": "exports/service.py",
"84": "test_imports.py",
"85": "identity/service.py",
"86": "Session",
"87": "app_error_handler",
"88": "20260923_0005_optional_hold_reason.py"
"87": "get_or_create_period",
"88": "20260923_0005_optional_hold_reason.py",
"89": "test_import_savings.py",
"90": "conftest.py",
"91": "test_review_queue_batch.py",
"92": "review-queue-save.test.tsx",
"94": "account-adjustment.test.tsx",
"99": "0001-fixes.md"
}
+1 -1
View File
@@ -1 +1 @@
{"0": "d402ed6bf2f9749a", "1": "13e542d5134fb02d", "2": "030a82389096fac1", "3": "62bd548fccb6736a", "4": "a3eec3e115dd18ab", "5": "85613707ec86a10d", "6": "c854d88fbb83cb56", "7": "ce35a9a478fc8cd2", "8": "8c36b1398810a6b1", "9": "c038f0a3bde9e10a", "10": "0a5a0ba97778625e", "11": "f039d542469fefc7", "12": "48335a79c63e77c1", "13": "8744084aeb65fbd3", "14": "b3e752fefc98c002", "15": "ba0d3a00af9834c7", "16": "8ef6cf9118db3195", "17": "717661b235a2b452", "18": "898d886d832be33b", "19": "971937bb83db4c53", "20": "1cf634eacb517a1a", "21": "e52e5efe7922326f", "22": "9cddcb53911ff0b1", "23": "f3004ec80ca9f448", "24": "1cbed23ab21a6a4d", "25": "f01c92b243645b4e", "26": "54c3380f579b6729", "27": "d8d767c824110809", "28": "8bc2e2fc5c336465", "29": "3147966ac3ee3b0f", "30": "7552b18e805318e1", "31": "099ee7edfccfb30f", "32": "0778a13a682f0cbb", "33": "6be20de557b963e9", "34": "da7b9f31790187c3", "35": "17bba31989deabe4", "36": "267c43d4a566a343", "37": "cff206ec60c41144", "38": "6a630216fce8844c", "39": "0e87c765d5713ad6", "40": "ce680f01cc87ac2b", "41": "24380e4087fb70d5", "42": "c58209407d4237e8", "43": "54905c779f6306ec", "44": "cba77756e130a563", "45": "f6413ac1b7b13383", "46": "28cda6a600d51f90", "47": "2f8c667574e48967", "48": "08332675f638af21", "49": "4ed4ad08eaab7c1c", "50": "39e65f28c37e0e46", "51": "ba6724f5637cd5d9", "52": "fdf8b4d4bf2be849", "53": "66f8ffc9c3fbedf2", "54": "73723cec09ed2417", "55": "f9e8dac18e2e7bdf", "56": "86619fe91fc50452", "57": "8a3d1d863ddb4d2f", "58": "013077c0798a954e", "59": "99c0fcbdc4f53a0e", "60": "cd42295e6b9fcac1", "61": "3712295d0a11267c", "62": "f787d08450bb4ac6", "63": "cd4362e280c077a7", "64": "fa2cf116b4b9871b", "65": "f3a0edb87b006f25", "66": "a0aa708a9e56bca1", "67": "b52ce9a5c39fc6c4", "68": "87907dcc6f25ea7b", "69": "0d74f7f6d933b4d1", "70": "e049e07b5afc08cf", "71": "b53d10722757480c", "72": "2b92b704e5454347", "73": "e404eb8a5c1d93eb", "74": "c90eb017c5213760", "75": "c11d4d615ce6b927", "76": "8205382b8b12a74a", "77": "97ec841e4f367258", "78": "c9051bc3ad4170f1", "79": "90c7a4d2aa73a27a", "80": "f091cbed551517ed", "81": "30a50b463d66a82d", "82": "d58d1cd140a5fa40", "83": "60235533bca19499", "84": "da95b6d914b33dab", "85": "18de98a5c966fdb2", "86": "0f2744bce6a3e1f1", "87": "511e2b5f5a529368", "88": "f6b2e16972be0df8"}
{"0": "6d1d9dee2594feb8", "1": "6ce69c6c91bfb10d", "2": "c2a9c6c75ef7b06e", "3": "07ad68ae268274e3", "4": "6e29ff77b331c271", "5": "753b54d66d56a181", "6": "fafcd7f26e85d11e", "7": "7196de2bd58ce7b6", "8": "a1304e2f6d040c08", "9": "12777a923784a450", "10": "0a5a0ba97778625e", "11": "f039d542469fefc7", "12": "68a6ed0d02f19f50", "13": "8744084aeb65fbd3", "14": "b3e752fefc98c002", "15": "2aa78b1e6532083d", "16": "8ef6cf9118db3195", "17": "8baf7195f33c896e", "18": "89eb4ee52c62e004", "19": "ba69db1a2f1f3a58", "20": "683cad078c7e0ed9", "21": "ca6369f4becd6192", "22": "f4a28fa280943a77", "23": "f3004ec80ca9f448", "24": "8965526f063eed24", "25": "f01c92b243645b4e", "26": "54c3380f579b6729", "27": "d8d767c824110809", "28": "8bc2e2fc5c336465", "29": "3147966ac3ee3b0f", "30": "7552b18e805318e1", "31": "099ee7edfccfb30f", "32": "0778a13a682f0cbb", "33": "6be20de557b963e9", "34": "da7b9f31790187c3", "35": "17bba31989deabe4", "36": "267c43d4a566a343", "37": "cff206ec60c41144", "38": "b6d52a30ac873a97", "39": "0e87c765d5713ad6", "40": "ce680f01cc87ac2b", "41": "24380e4087fb70d5", "42": "c58209407d4237e8", "43": "54905c779f6306ec", "44": "b6e6b302dfb2b4b7", "45": "c484c809d185e550", "46": "ab5b47947fe3bf98", "47": "2f8c667574e48967", "48": "08332675f638af21", "49": "4ed4ad08eaab7c1c", "50": "39e65f28c37e0e46", "51": "ba6724f5637cd5d9", "52": "fdf8b4d4bf2be849", "53": "66f8ffc9c3fbedf2", "54": "73723cec09ed2417", "55": "f9e8dac18e2e7bdf", "56": "86619fe91fc50452", "57": "8a3d1d863ddb4d2f", "58": "33678aa2c758e454", "59": "99c0fcbdc4f53a0e", "60": "cd42295e6b9fcac1", "61": "3712295d0a11267c", "62": "f787d08450bb4ac6", "63": "337e92dfeec532be", "64": "fa2cf116b4b9871b", "65": "f3a0edb87b006f25", "66": "a0aa708a9e56bca1", "67": "d58d1cd140a5fa40", "68": "3e5a785c54610ba0", "69": "0d74f7f6d933b4d1", "70": "e049e07b5afc08cf", "71": "c5240b928a15b0fa", "72": "2b92b704e5454347", "73": "e404eb8a5c1d93eb", "74": "ec0076e638dfa420", "75": "c11d4d615ce6b927", "76": "36f3b631daec8343", "77": "97ec841e4f367258", "78": "c9051bc3ad4170f1", "79": "0f585e9a81c4fb6c", "80": "f091cbed551517ed", "81": "30a50b463d66a82d", "82": "80551df1b95b31a0", "83": "9a369c70bcf0858b", "84": "9eb0c7e75d99ef54", "85": "ad0253a8a1e41307", "86": "98ecf4f0948d7a51", "87": "eeef008da0eeea12", "88": "f6b2e16972be0df8", "89": "bb20719f64caa678", "90": "491a658d3322d1ec", "91": "d520dd258c357f5d", "92": "48aeb4d25174096d", "94": "7f935939209226f1", "99": "719211c5f13f5583"}
@@ -0,0 +1,97 @@
{
"0": "Category",
"1": "budgeting/router.py",
"2": "db/models.py",
"3": "AppError",
"4": "imports/router.py",
"5": "alfa_xlsx.py",
"6": "system-account-picker.test.tsx",
"7": "types.ts",
"8": "router.tsx",
"9": "ledger/router.py",
"10": "@testing-library/jest-dom",
"11": "compilerOptions",
"12": "ReviewQueuePage.tsx",
"13": "@testing-library/user-event",
"14": "devDependencies",
"15": "ledger/service.py",
"16": "dependencies",
"17": "ImportDetailPage.tsx",
"18": "OperationsPage.tsx",
"19": "Base",
"20": "apiErrors.ts",
"21": "adapters/base.py",
"22": "BudgetPage.tsx",
"23": "client.ts",
"24": "fields.tsx",
"25": "Docker Compose Development Stack",
"26": "Financial Space",
"27": "scripts",
"28": "@types/react",
"29": "General Pool",
"30": "TestBaseContract",
"31": "Per-File Envelope Encryption",
"32": "Operation",
"33": "Versioned Statement Imports",
"34": "Finance Frontend SPA",
"35": "Closed Beta Launch Gates",
"36": "package.json",
"37": "Financial Tracker MVP",
"38": "test_adapter_contracts.py",
"39": "generate-api.mjs",
"40": "schema.d.ts",
"41": "test_api.py",
"42": "i18n-parity.test.ts",
"43": "Expected Income",
"44": "helpers.tsx",
"45": "ledger/models.py",
"46": "category-manager.test.tsx",
"47": "graphify",
"48": "@types/react-dom",
"49": "typescript-eslint",
"50": "Ближайший край: накопления, категории и блокировки бюджета",
"51": "vitest",
"52": "Favicon SVG (ledger lines icon)",
"53": "init-app-role.sh",
"54": "app/__init__.py",
"55": "spaces/__init__.py",
"56": "Payee",
"57": "eslint.config.js",
"58": "test_private_fixtures.py",
"59": "vite-env.d.ts",
"60": "vite.config.ts",
"61": "finance-backend",
"62": "LocalDirectoryBlobStore",
"63": "OzonDebitPdfAdapter",
"64": "Gitea CI and real statement imports",
"65": "20260918_0002_hold_lifecycle.py",
"66": "eslint-plugin-react-hooks",
"67": "import-hold-resolution.test.tsx",
"68": "budgeting/service.py",
"69": "TestAlfaDebitContract",
"70": "vite",
"71": "mcc.py",
"72": "TestAlfaSavingsRule",
"73": "savings-convert-revert.test.tsx",
"74": "get_settings",
"75": "ColumnChart.tsx",
"76": "dependencies.py",
"77": "AGENTS.md",
"78": "graphify.js",
"79": "test_savings.py",
"80": "test_category_definitions.py",
"81": "budget-plan.test.tsx",
"82": "imports/service.py",
"83": "exports/service.py",
"84": "test_imports.py",
"85": "identity/service.py",
"86": "Session",
"87": "get_or_create_period",
"88": "20260923_0005_optional_hold_reason.py",
"89": "test_import_savings.py",
"90": "conftest.py",
"91": "test_review_queue_batch.py",
"92": "review-queue-save.test.tsx",
"94": "account-adjustment.test.tsx",
"99": "0001-fixes.md"
}
+450
View File
@@ -0,0 +1,450 @@
# Graph Report - finance (2026-09-23)
## Corpus Check
- 187 files · ~90,160 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 1667 nodes · 5182 edges · 95 communities (72 shown, 16 thin omitted)
- Extraction: 98% EXTRACTED · 2% INFERRED · 0% AMBIGUOUS · INFERRED: 91 edges (avg confidence: 0.93)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `63d06501`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
## Community Hubs (Navigation)
- Category
- budgeting/router.py
- db/models.py
- AppError
- imports/router.py
- alfa_xlsx.py
- system-account-picker.test.tsx
- types.ts
- router.tsx
- ledger/router.py
- @testing-library/jest-dom
- compilerOptions
- ReviewQueuePage.tsx
- @testing-library/user-event
- devDependencies
- ledger/service.py
- dependencies
- ImportDetailPage.tsx
- OperationsPage.tsx
- Base
- apiErrors.ts
- adapters/base.py
- BudgetPage.tsx
- client.ts
- fields.tsx
- Docker Compose Development Stack
- Financial Space
- scripts
- @types/react
- General Pool
- TestBaseContract
- Per-File Envelope Encryption
- Operation
- Versioned Statement Imports
- Finance Frontend SPA
- Closed Beta Launch Gates
- package.json
- Financial Tracker MVP
- test_adapter_contracts.py
- generate-api.mjs
- schema.d.ts
- test_api.py
- i18n-parity.test.ts
- Expected Income
- helpers.tsx
- ledger/models.py
- category-manager.test.tsx
- graphify
- @types/react-dom
- typescript-eslint
- Ближайший край: накопления, категории и блокировки бюджета
- vitest
- Favicon SVG (ledger lines icon)
- init-app-role.sh
- Payee
- test_private_fixtures.py
- finance-backend
- LocalDirectoryBlobStore
- OzonDebitPdfAdapter
- Gitea CI and real statement imports
- 20260918_0002_hold_lifecycle.py
- eslint-plugin-react-hooks
- import-hold-resolution.test.tsx
- budgeting/service.py
- TestAlfaDebitContract
- vite
- mcc.py
- TestAlfaSavingsRule
- savings-convert-revert.test.tsx
- get_settings
- ColumnChart.tsx
- dependencies.py
- AGENTS.md
- test_savings.py
- test_category_definitions.py
- budget-plan.test.tsx
- imports/service.py
- exports/service.py
- test_imports.py
- identity/service.py
- Session
- get_or_create_period
- 20260923_0005_optional_hold_reason.py
- test_import_savings.py
- conftest.py
- test_review_queue_batch.py
- review-queue-save.test.tsx
- account-adjustment.test.tsx
## God Nodes (most connected - your core abstractions)
1. `Session` - 211 edges
2. `AppError` - 72 edges
3. `Base` - 48 edges
4. `conflict()` - 43 edges
5. `get_settings()` - 40 edges
6. `PkMixin` - 40 edges
7. `record()` - 39 edges
8. `TimestampMixin` - 38 edges
9. `StatementDocument` - 36 edges
10. `create_expense()` - 36 edges
## Surprising Connections (you probably didn't know these)
- `Typed Same-Origin API Client` --conceptually_related_to--> `Same-Origin Reverse Proxy` [INFERRED]
frontend/README.md → infra/README.md
- `Financial Space Ownership` --conceptually_related_to--> `Financial Space` [INFERRED]
docs/adr/0001-financial-space-ownership-and-rls.md → CONTEXT.md
- `Versioned Statement Imports` --conceptually_related_to--> `Statement Import` [INFERRED]
docs/adr/0003-versioned-statement-imports.md → CONTEXT.md
- `MVP Release Gates` --conceptually_related_to--> `Closed Beta Launch Gates` [INFERRED]
.kilo/plans/1789034192214-financial-tracker-mvp.md → docs/operations/beta-release-runbook.md
- `Carry-Over Budget Reserves` --references--> `Savings Envelope` [EXTRACTED]
docs/adr/0002-journal-and-budget-reserves.md → CONTEXT.md
## Import Cycles
- None detected.
## Hyperedges (group relationships)
- **Auditable Financial Model** — context_operation, context_posting, docs_adr_0002_journal_and_budget_reserves_derived_balances, docs_adr_0002_journal_and_budget_reserves_plan_funding_separation, docs_adr_0002_journal_and_budget_reserves_closure_snapshots [EXTRACTED 1.00]
- **Financial Space Tenancy Boundary** — context_financial_space, context_membership, docs_adr_0001_financial_space_ownership_and_rls_defense_in_depth_authorization, docs_adr_0001_financial_space_ownership_and_rls_transaction_local_rls, docs_adr_0001_financial_space_ownership_and_rls_cross_space_integrity [EXTRACTED 1.00]
- **Safe Statement Import Flow** — context_statement_import, context_parse_run, context_source_record, docs_adr_0003_versioned_statement_imports_immutable_statement_document, docs_adr_0003_versioned_statement_imports_conservative_deduplication, docs_adr_0003_versioned_statement_imports_atomic_confirm_revert [EXTRACTED 1.00]
## Communities (95 total, 16 thin omitted)
### Community 0 - "Category"
Cohesion: 0.20
Nodes (15): balances(), cash_flow(), category_spend(), plan_fact(), date, UUID, category_for_mcc(), Category owning the MCC code, else the system «Остальное» fallback. (+7 more)
### Community 1 - "budgeting/router.py"
Cohesion: 0.11
Nodes (52): balances(), cash_flow(), category_spend(), plan_fact(), Context, date, Db, get (+44 more)
### Community 2 - "db/models.py"
Cohesion: 0.17
Nodes (23): AuditEvent, Append-only domain/security event. Never stores raw financial payloads., ExpectedIncome, ExpectedIncomeMatch, FundingMovement, PeriodClosure, PlanAssignment, Links one actual income operation to one expected income (1:1 per operation). (+15 more)
### Community 3 - "AppError"
Cohesion: 0.19
Nodes (11): AppError, Any, Domain error rendered as a machine-readable JSON error payload., unprocessable(), decrypt_file(), encrypt_file(), EncryptedFile, Per-file random DEK; DEK wrapped with the KEK from the secret manager. (+3 more)
### Community 4 - "imports/router.py"
Cohesion: 0.05
Nodes (79): _check_constraints(), downgrade(), _has_column(), _has_row(), _has_unique_constraint(), _normalized_sqltext(), Savings system resources, adjustments and reversible conversions., Swap a check constraint for a new value list, dialect-safely. Fresh databases… (+71 more)
### Community 5 - "alfa_xlsx.py"
Cohesion: 0.12
Nodes (32): AlfaCreditXlsxAdapter, AlfaDebitXlsxAdapter, _AlfaHeaderMeta, AlfaXlsxAdapterBase, _cell_str(), _debit_find_header(), _debit_header_metadata(), _debit_header_value() (+24 more)
### Community 6 - "system-account-picker.test.tsx"
Cohesion: 0.11
Nodes (15): AdjustBalanceResult, BudgetCategory, Operation, Page, budgetCategoriesMock, listAccountsMock, listOperationsMock, categoriesMock (+7 more)
### Community 7 - "types.ts"
Cohesion: 0.08
Nodes (35): AccountStatus, AccountType, AdjustBalancePayload, BalanceItem, BalancesReport, BudgetStatus, BudgetWarning, CashFlowMonth (+27 more)
### Community 8 - "router.tsx"
Cohesion: 0.07
Nodes (43): AcceptInvitePayload, LoginPayload, PasswordResetPayload, AcceptInvitePage, AccountsPage, AnalyticsPage, BudgetPage, ImportDetailPage (+35 more)
### Community 9 - "ledger/router.py"
Cohesion: 0.15
Nodes (38): account_json(), AccountBody, accounts(), adjust_balance(), AdjustBalanceBody, archive_account(), categorize_operations_batch(), CategorizeBatchBody (+30 more)
### Community 11 - "compilerOptions"
Cohesion: 0.07
Nodes (28): compilerOptions, baseUrl, esModuleInterop, forceConsistentCasingInFileNames, isolatedModules, jsx, lib, module (+20 more)
### Community 12 - "ReviewQueuePage.tsx"
Cohesion: 0.09
Nodes (43): NotFoundPage, PlanFactBars(), PlanFactBarsProps, PlanFactRow, EmptyState(), EmptyStateProps, MonthSwitcher(), MonthSwitcherProps (+35 more)
### Community 14 - "devDependencies"
Cohesion: 0.10
Nodes (21): eslint, @eslint/js, eslint-plugin-jsx-a11y, devDependencies, eslint, @eslint/js, eslint-plugin-jsx-a11y, globals (+13 more)
### Community 15 - "ledger/service.py"
Cohesion: 0.13
Nodes (48): ensure_others_category(), The system «Остальное» fallback category, created on first use., Operation, Posting, Signed balance change of one account within one operation. Sign convention…, User financial fact. amount_kopecks is always positive; direction lives in…, account_balance(), _apply_suggestion() (+40 more)
### Community 16 - "dependencies"
Cohesion: 0.09
Nodes (23): @fontsource/funnel-sans, @fontsource/geist-mono, dependencies, @fontsource/funnel-sans, @fontsource/geist-mono, @hookform/resolvers, i18next, react (+15 more)
### Community 17 - "ImportDetailPage.tsx"
Cohesion: 0.08
Nodes (45): api, invalidationRoots, queryKeys, SESSION_ROOT, sessionInvalidationRoot, SPACE_ROOT, spaceInvalidationRoot, HoldResolutionAction (+37 more)
### Community 18 - "OperationsPage.tsx"
Cohesion: 0.11
Nodes (46): CategorizeBatchPayload, CreateOperationPayload, isSystemAccount(), Locale, useAccounts(), useActiveAccounts(), useUserAccounts(), useCategorizeBatch() (+38 more)
### Community 19 - "Base"
Cohesion: 0.15
Nodes (22): downgrade(), upgrade(), BankCategoryMapping, CategorizationRule, CategoryMcc, IncomeSource, MccCode, Payee (+14 more)
### Community 20 - "apiErrors.ts"
Cohesion: 0.09
Nodes (24): isApiError(), BudgetBlocker, App(), queryClient, AppRoutes(), blockerCta(), blockerText(), BudgetBlockers() (+16 more)
### Community 21 - "adapters/base.py"
Cohesion: 0.12
Nodes (20): account_fingerprint(), _mask_digits(), money_to_kopecks(), normalize_description(), date, Parse statement money strings like '-1 234,56 RUR', '+ 500.00 ₽', '12 345'.…, record_fingerprint(), StatementDraft (+12 more)
### Community 22 - "BudgetPage.tsx"
Cohesion: 0.14
Nodes (27): CreatableCategoryKind, CategoryManagerModal(), CREATE_KINDS, CreateCategoryForm(), MccCodesModal(), parseMccCodes(), RenameModal(), Badge() (+19 more)
### Community 23 - "client.ts"
Cohesion: 0.26
Nodes (10): apiClient, ApiError, buildUrl(), ErrorEnvelope, parseErrorEnvelope(), QueryValue, readCsrfToken(), request() (+2 more)
### Community 24 - "fields.tsx"
Cohesion: 0.21
Nodes (11): FieldChrome, InputProps, MoneyField(), MoneyFieldProps, SelectField(), SelectFieldProps, SelectProps, TextareaField() (+3 more)
### Community 25 - "Docker Compose Development Stack"
Cohesion: 0.29
Nodes (8): Commodity Infrastructure Services, Docker Compose Development Stack, Internal Backend Network, Same-Origin Frontend Service, Worker Parsing Isolation, Finance Infrastructure, Same-Origin Reverse Proxy, Backend and Frontend Workstream Contracts
### Community 26 - "Financial Space"
Cohesion: 0.17
Nodes (12): Credit Reserve, Financial Account, Financial Space, Membership, User, Carry-Over Budget Reserves, Provider-Neutral Data Boundary, Russian Federation Data Residency (+4 more)
### Community 27 - "scripts"
Cohesion: 0.22
Nodes (9): scripts, api:generate, build, dev, lint, preview, test, test:watch (+1 more)
### Community 29 - "General Pool"
Cohesion: 0.29
Nodes (8): Budget Period, Funding, General Pool, Monthly Category, Plan Assignment, Savings Envelope, Immutable Closure Snapshots, Plan and Funding Separation
### Community 30 - "TestBaseContract"
Cohesion: 0.21
Nodes (3): make_draft(), make_source_row(), TestBaseContract
### Community 31 - "Per-File Envelope Encryption"
Cohesion: 0.29
Nodes (7): Immutable Statement Document, Per-File Envelope Encryption, Backup and Restore Runbook, Mandatory KEK Backup, Quarterly Restore Drill, Disaster Restore Procedure, Post-Restore Deletion Replay
### Community 32 - "Operation"
Cohesion: 0.47
Nodes (6): Internal Transfer, Operation, Posting, Refund, Derived Account Balances, Operations and Postings Journal
### Community 33 - "Versioned Statement Imports"
Cohesion: 0.20
Nodes (11): Parse Run, Source Record, Statement Import, Atomic Import Confirm and Revert, Conservative Deduplication, Parser Versioning and Review Diff, Versioned Statement Imports, Layout Drift Re-Gating (+3 more)
### Community 34 - "Finance Frontend SPA"
Cohesion: 0.29
Nodes (7): Server-Side Secret Boundary, Grossbukh Application Shell, Accessible Responsive UI, Finance Frontend SPA, RU and EN Localization, Space-Scoped Query Keys, Typed Same-Origin API Client
### Community 35 - "Closed Beta Launch Gates"
Cohesion: 0.20
Nodes (11): Crypto-Shredded Deletion, Closed Beta Release Runbook, Forward-Fix Rollback Policy, Financial Data Incident Response, Closed Beta Launch Gates, Production Launch Sequence, Thirty-Day Space Deletion, Durable Deletion Ledger (+3 more)
### Community 36 - "package.json"
Cohesion: 0.40
Nodes (4): name, private, type, version
### Community 37 - "Financial Tracker MVP"
Cohesion: 0.18
Nodes (11): Audited Break-Glass Access, Cross-Space Referential Integrity, Defense-in-Depth Authorization, Financial Space Ownership, Transaction-Local RLS Context, Budget Invariants, Critical User Path, Financial Tracker MVP (+3 more)
### Community 38 - "test_adapter_contracts.py"
Cohesion: 0.13
Nodes (8): minimal_pdf(), _QuotaSettings, Sanitized synthetic contract tests for the evidenced statement adapters. These…, Build a small valid single-font PDF with empty or ASCII-only pages., same_page_rocket_lines(), synthetic_rocket_lines(), TestRocketbankDebitContract, MonkeyPatch
### Community 39 - "generate-api.mjs"
Cohesion: 0.40
Nodes (5): firstReadable(), LOCAL_CANDIDATES, main(), OUT_DIR, REMOTE_CANDIDATES
### Community 40 - "schema.d.ts"
Cohesion: 0.33
Nodes (5): components, $defs, operations, paths, webhooks
### Community 41 - "test_api.py"
Cohesion: 0.67
Nodes (3): TestClient, test_invite_login_and_authenticated_space(), test_openapi_contains_critical_paths()
### Community 44 - "helpers.tsx"
Cohesion: 0.18
Nodes (11): User, DESKTOP_NAV, meMock, MOBILE_NAV, user, createTestQueryClient(), renderWithProviders(), loginMock (+3 more)
### Community 45 - "ledger/models.py"
Cohesion: 0.26
Nodes (11): HoldResolution, Append-only, tenant-scoped settlement of one HOLD source record. The extracted…, Account, Financial account. Balance is always derived: opening + confirmed postings., FinancialSpace, Membership, test_postgres_rls_requires_matching_transaction_context(), test_s3_blob_round_trip() (+3 more)
### Community 46 - "category-manager.test.tsx"
Cohesion: 0.14
Nodes (12): CategoryDefinition, categoriesMock, createCategoryMock, definitions, definitionsMock, diningDefinition, month, monthCategories (+4 more)
### Community 47 - "graphify"
Cohesion: 0.17
Nodes (11): command, enabled, timeout, type, mcp, graphify, plugin, $schema (+3 more)
### Community 50 - "Ближайший край: накопления, категории и блокировки бюджета"
Cohesion: 0.10
Nodes (20): 1. Доменная основа накоплений, 2. Альфа debit: «Копилка для сдачи», 3. Управление категориями, 4. Понятные и устранимые блокировки, Backend-контракт, Frontend, Ближайший край: накопления, категории и блокировки бюджета, Бюджетная семантика (+12 more)
### Community 58 - "test_private_fixtures.py"
Cohesion: 0.10
Nodes (24): Protocol, StatementAdapter, detect_adapter(), Any, Reconcile parsed rows against declared bank controls with stable diagnostics.…, _reconciliation_summary(), _check(), _fail() (+16 more)
### Community 62 - "LocalDirectoryBlobStore"
Cohesion: 0.39
Nodes (3): LocalDirectoryBlobStore, Path, S3-neutral local store; production swaps in an S3-compatible client.
### Community 63 - "OzonDebitPdfAdapter"
Cohesion: 0.18
Nodes (6): _ozon_normalize(), OzonDebitPdfAdapter, Ozon debit statement contract, evidenced against the real document. A 'Справка…, ozon_extracted(), TestOzonDebitContract, Pattern
### Community 64 - "Gitea CI and real statement imports"
Cohesion: 0.29
Nodes (6): Confirmed decisions, Gitea CI and real statement imports, Goal and constraints, Implementation plan, Principal risks, Validation and rollout
### Community 65 - "20260918_0002_hold_lifecycle.py"
Cohesion: 0.80
Nodes (4): downgrade(), _has_check_constraint(), _has_column(), upgrade()
### Community 67 - "import-hold-resolution.test.tsx"
Cohesion: 0.15
Nodes (11): ImportDetail, ImportRow, ImportSummary, confirmMock, detailFixture(), getImportMock, postedRow(), getImportMock (+3 more)
### Community 68 - "budgeting/service.py"
Cohesion: 0.16
Nodes (39): BudgetPeriod, Calendar month budget period in the space timezone (month granularity)., add_expected_income(), archive_category(), _balance_until(), _close_blockers(), close_period(), _closure_snapshot() (+31 more)
### Community 69 - "TestAlfaDebitContract"
Cohesion: 0.18
Nodes (3): alfa_workbook_bytes(), synthetic_alfa_rows(), TestAlfaDebitContract
### Community 71 - "mcc.py"
Cohesion: 0.14
Nodes (23): _create_tenant_policy(), _default_keys(), downgrade(), _has_table(), _space_ids(), upgrade(), _default_categories(), default_category_system_keys() (+15 more)
### Community 73 - "savings-convert-revert.test.tsx"
Cohesion: 0.20
Nodes (6): budgetCategoriesMock, listAccountsMock, listOperationsMock, operations, revertMock, savingsTransferMock
### Community 74 - "get_settings"
Cohesion: 0.12
Nodes (30): get_settings(), Settings, send_token_email(), accept_invite(), AcceptInviteBody, confirm_password_reset(), create_invite(), InviteBody (+22 more)
### Community 75 - "ColumnChart.tsx"
Cohesion: 0.24
Nodes (7): CashFlowColumn, ColumnChart(), ColumnChartProps, BarRow, HorizontalBars(), HorizontalBarsProps, rows
### Community 76 - "dependencies.py"
Cohesion: 0.09
Nodes (39): current_context(), current_session(), alias, Context, CurrentSession, Db, Header, User (+31 more)
### Community 79 - "test_savings.py"
Cohesion: 0.14
Nodes (33): adjust_balance(), convert_expense_to_savings(), ensure_savings_resources(), Account, date, Operation, User, UUID (+25 more)
### Community 80 - "test_category_definitions.py"
Cohesion: 0.50
Nodes (8): bootstrap(), TestClient, HTTP contract for category definitions, system protections and CSRF., test_adjust_and_savings_conversion_http_contracts(), test_categories_expose_and_update_multiple_mcc_codes(), test_category_lifecycle_create_rename_archive_restore(), test_openapi_contains_new_contracts(), test_space_has_protected_savings_pair()
### Community 81 - "budget-plan.test.tsx"
Cohesion: 0.25
Nodes (7): BudgetSummary, categories, categoriesMock, month, summary, summaryMock, updatePlanMock
### Community 82 - "imports/service.py"
Cohesion: 0.18
Nodes (29): Any, record(), utcnow(), conflict(), not_found(), magic_kind(), _apply_hold_matches(), _category_id_for_source() (+21 more)
### Community 83 - "exports/service.py"
Cohesion: 0.13
Nodes (19): DataExport, build_export(), consume_export(), _csv_bytes(), get_export(), _json_rows(), purge_due_spaces(), datetime (+11 more)
### Community 84 - "test_imports.py"
Cohesion: 0.17
Nodes (29): DedupCandidate, ParseRun, Immutable extracted bank fact with document origin coordinates., SourceRecord, SourceRecordLink, StatementDocument, _build_candidates(), _match_hold_resolutions() (+21 more)
### Community 85 - "identity/service.py"
Cohesion: 0.26
Nodes (20): bad_request(), unauthorized(), accept_invitation(), authenticate(), create_invitation(), create_password_reset(), create_session(), get_active_session() (+12 more)
### Community 86 - "Session"
Cohesion: 0.16
Nodes (41): Session, add_record(), _draft(), hold_document(), make_document(), date, Path, TestClient (+33 more)
### Community 87 - "get_or_create_period"
Cohesion: 0.34
Nodes (14): get_or_create_period(), validate_year_month(), Budget semantics for savings transfers, adjustments and archived history., savings_row(), seed(), test_adjustment_changes_only_envelope_available_not_pool(), test_adjustment_on_regular_account_keeps_pool_and_totals(), test_archived_category_history_stays_in_totals() (+6 more)
### Community 88 - "20260923_0005_optional_hold_reason.py"
Cohesion: 0.83
Nodes (3): downgrade(), _reason_constraint_name(), upgrade()
### Community 89 - "test_import_savings.py"
Cohesion: 0.32
Nodes (17): get_savings_account(), add_record(), make_document(), date, User, Import contract for the «Копилка для сдачи» savings_transfer decision., seed(), test_confirm_creates_savings_transfer_with_system_category() (+9 more)
### Community 90 - "conftest.py"
Cohesion: 0.27
Nodes (6): client(), db(), db_factory(), fixture, sessionmaker, TestClient
### Community 91 - "test_review_queue_batch.py"
Cohesion: 0.60
Nodes (10): bootstrap(), category_ids(), create_account(), create_expense(), operations_by_id(), TestClient, test_batch_assigns_picked_categories_and_moves_leftovers_to_others(), test_batch_is_atomic_when_one_category_is_unknown() (+2 more)
### Community 92 - "review-queue-save.test.tsx"
Cohesion: 0.25
Nodes (6): categories, categoriesMock, categorizeBatchMock, categorizeMock, importsListMock, operationsListMock
### Community 94 - "account-adjustment.test.tsx"
Cohesion: 0.20
Nodes (5): Account, adjustBalanceMock, listMock, createMock, listMock
## Knowledge Gaps
- **267 isolated node(s):** `$schema`, `file:///home/k1nq/repos/finance/.kilo/plugins/graphify.js`, `type`, `/home/k1nq/.local/bin/graphify-mcp`, `/home/k1nq/repos/finance/graphify-out/graph.json` (+262 more)
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 468 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **16 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `Session` connect `Session` to `Category`, `budgeting/router.py`, `db/models.py`, `imports/router.py`, `alfa_xlsx.py`, `ledger/service.py`, `Base`, `ledger/models.py`, `budgeting/service.py`, `mcc.py`, `dependencies.py`, `test_savings.py`, `imports/service.py`, `exports/service.py`, `test_imports.py`, `identity/service.py`, `get_or_create_period`, `test_import_savings.py`, `conftest.py`?**
_High betweenness centrality (0.067) - this node is a cross-community bridge._
- **Why does `AppError` connect `AppError` to `imports/router.py`, `alfa_xlsx.py`, `test_adapter_contracts.py`, `budgeting/service.py`, `get_settings`, `dependencies.py`, `ledger/service.py`, `test_savings.py`, `imports/service.py`, `test_imports.py`, `identity/service.py`, `adapters/base.py`, `get_or_create_period`, `Session`, `test_import_savings.py`, `OzonDebitPdfAdapter`?**
_High betweenness centrality (0.049) - this node is a cross-community bridge._
- **Why does `TestRocketbankDebitContract` connect `test_adapter_contracts.py` to `AppError`, `adapters/base.py`?**
_High betweenness centrality (0.019) - this node is a cross-community bridge._
- **Are the 4 inferred relationships involving `Session` (e.g. with `upgrade()` and `upgrade()`) actually correct?**
_`Session` has 4 INFERRED edges - model-reasoned connections that need verification._
- **Are the 39 inferred relationships involving `AppError` (e.g. with `request_export()` and `login()`) actually correct?**
_`AppError` has 39 INFERRED edges - model-reasoned connections that need verification._
- **Are the 3 inferred relationships involving `Base` (e.g. with `downgrade()` and `upgrade()`) actually correct?**
_`Base` has 3 INFERRED edges - model-reasoned connections that need verification._
- **What connects `$schema`, `file:///home/k1nq/repos/finance/.kilo/plugins/graphify.js`, `type` to the rest of the system?**
_267 weakly-connected nodes found - possible documentation gaps or missing edges._
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+151 -126
View File
@@ -1,24 +1,24 @@
# Graph Report - finance (2026-09-23)
## Corpus Check
- 182 files · ~87,581 words
- 187 files · ~90,166 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 1620 nodes · 5066 edges · 89 communities (67 shown, 16 thin omitted)
- 1667 nodes · 5182 edges · 95 communities (72 shown, 16 thin omitted)
- Extraction: 98% EXTRACTED · 2% INFERRED · 0% AMBIGUOUS · INFERRED: 91 edges (avg confidence: 0.93)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `db4dd757`
- Built from commit: `63d06501`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
## Community Hubs (Navigation)
- categorization/service.py
- Category
- budgeting/router.py
- Base
- exports/service.py
- db/models.py
- AppError
- imports/router.py
- alfa_xlsx.py
- system-account-picker.test.tsx
@@ -27,17 +27,17 @@
- ledger/router.py
- @testing-library/jest-dom
- compilerOptions
- BudgetPage.tsx
- ReviewQueuePage.tsx
- @testing-library/user-event
- devDependencies
- AppError
- ledger/service.py
- dependencies
- ImportDetailPage.tsx
- OperationsPage.tsx
- useOperations.ts
- Base
- apiErrors.ts
- test_adapter_contracts.py
- useBudget.ts
- adapters/base.py
- BudgetPage.tsx
- client.ts
- fields.tsx
- Docker Compose Development Stack
@@ -53,14 +53,14 @@
- Closed Beta Launch Gates
- package.json
- Financial Tracker MVP
- TestRocketbankDebitContract
- test_adapter_contracts.py
- generate-api.mjs
- schema.d.ts
- test_api.py
- i18n-parity.test.ts
- Expected Income
- api
- set_space_context
- helpers.tsx
- ledger/models.py
- category-manager.test.tsx
- graphify
- @types/react-dom
@@ -77,36 +77,41 @@
- Gitea CI and real statement imports
- 20260918_0002_hold_lifecycle.py
- eslint-plugin-react-hooks
- main.py
- analytics/router.py
- import-hold-resolution.test.tsx
- budgeting/service.py
- TestAlfaDebitContract
- vite
- mcc.py
- TestAlfaSavingsRule
- savings-convert-revert.test.tsx
- exports/router.py
- get_settings
- ColumnChart.tsx
- identity/service.py
- dependencies.py
- AGENTS.md
- Category
- test_savings.py
- test_category_definitions.py
- budget-plan.test.tsx
- import-hold-resolution.test.tsx
- get_settings
- session_scope
- 20260923_0004_mcc_categories.py
- imports/service.py
- exports/service.py
- test_imports.py
- identity/service.py
- Session
- app_error_handler
- get_or_create_period
- 20260923_0005_optional_hold_reason.py
- test_import_savings.py
- conftest.py
- test_review_queue_batch.py
- review-queue-save.test.tsx
- account-adjustment.test.tsx
## God Nodes (most connected - your core abstractions)
1. `Session` - 209 edges
1. `Session` - 211 edges
2. `AppError` - 72 edges
3. `Base` - 48 edges
4. `conflict()` - 43 edges
5. `get_settings()` - 40 edges
6. `PkMixin` - 40 edges
7. `record()` - 38 edges
7. `record()` - 39 edges
8. `TimestampMixin` - 38 edges
9. `StatementDocument` - 36 edges
10. `create_expense()` - 36 edges
@@ -131,99 +136,99 @@
- **Financial Space Tenancy Boundary** — context_financial_space, context_membership, docs_adr_0001_financial_space_ownership_and_rls_defense_in_depth_authorization, docs_adr_0001_financial_space_ownership_and_rls_transaction_local_rls, docs_adr_0001_financial_space_ownership_and_rls_cross_space_integrity [EXTRACTED 1.00]
- **Safe Statement Import Flow** — context_statement_import, context_parse_run, context_source_record, docs_adr_0003_versioned_statement_imports_immutable_statement_document, docs_adr_0003_versioned_statement_imports_conservative_deduplication, docs_adr_0003_versioned_statement_imports_atomic_confirm_revert [EXTRACTED 1.00]
## Communities (89 total, 16 thin omitted)
## Communities (95 total, 16 thin omitted)
### Community 0 - "categorization/service.py"
Cohesion: 0.14
Nodes (24): CategorizationRule, CategoryMcc, IncomeSource, MccCode, Payee, PayeeAlias, Space-scoped MCC codes of a category: many codes per category, but every code…, Confirmed payee rule: auto-applies category to matching future operations. (+16 more)
### Community 0 - "Category"
Cohesion: 0.20
Nodes (15): balances(), cash_flow(), category_spend(), plan_fact(), date, UUID, category_for_mcc(), Category owning the MCC code, else the system «Остальное» fallback. (+7 more)
### Community 1 - "budgeting/router.py"
Cohesion: 0.11
Nodes (52): balances(), cash_flow(), category_spend(), plan_fact(), Context, date, Db, get (+44 more)
### Community 2 - "db/models.py"
Cohesion: 0.17
Nodes (41): AssignmentItem, assignments(), AssignmentsBody, categories(), category_definition_json(), category_definitions(), CategoryBody, CategoryDefinitionPatchBody (+33 more)
Nodes (23): AuditEvent, Append-only domain/security event. Never stores raw financial payloads., ExpectedIncome, ExpectedIncomeMatch, FundingMovement, PeriodClosure, PlanAssignment, Links one actual income operation to one expected income (1:1 per operation). (+15 more)
### Community 2 - "Base"
Cohesion: 0.13
Nodes (33): downgrade(), upgrade(), AuditEvent, Append-only domain/security event. Never stores raw financial payloads., ExpectedIncome, ExpectedIncomeMatch, FundingMovement, PeriodClosure (+25 more)
### Community 3 - "exports/service.py"
### Community 3 - "AppError"
Cohesion: 0.19
Nodes (17): build_export(), cancel_deletion(), consume_export(), _csv_bytes(), get_export(), _json_rows(), datetime, UUID (+9 more)
Nodes (11): AppError, Any, Domain error rendered as a machine-readable JSON error payload., unprocessable(), decrypt_file(), encrypt_file(), EncryptedFile, Per-file random DEK; DEK wrapped with the KEK from the secret manager. (+3 more)
### Community 4 - "imports/router.py"
Cohesion: 0.15
Nodes (35): confirm(), ConfirmBody, decide_row(), DecisionBody, delete_source(), detail(), HoldResolveBody, imports() (+27 more)
Cohesion: 0.05
Nodes (79): _check_constraints(), downgrade(), _has_column(), _has_row(), _has_unique_constraint(), _normalized_sqltext(), Savings system resources, adjustments and reversible conversions., Swap a check constraint for a new value list, dialect-safely. Fresh databases… (+71 more)
### Community 5 - "alfa_xlsx.py"
Cohesion: 0.17
Nodes (24): AlfaDebitXlsxAdapter, _AlfaHeaderMeta, AlfaXlsxAdapterBase, _cell_str(), _debit_find_header(), _debit_header_metadata(), _debit_header_value(), _debit_norm() (+16 more)
Cohesion: 0.12
Nodes (32): AlfaCreditXlsxAdapter, AlfaDebitXlsxAdapter, _AlfaHeaderMeta, AlfaXlsxAdapterBase, _cell_str(), _debit_find_header(), _debit_header_metadata(), _debit_header_value() (+24 more)
### Community 6 - "system-account-picker.test.tsx"
Cohesion: 0.15
Nodes (12): AdjustBalanceResult, BudgetCategory, Operation, Page, categoriesMock, importsListMock, importSummary, operationsListMock (+4 more)
Cohesion: 0.11
Nodes (15): AdjustBalanceResult, BudgetCategory, Operation, Page, budgetCategoriesMock, listAccountsMock, listOperationsMock, categoriesMock (+7 more)
### Community 7 - "types.ts"
Cohesion: 0.08
Nodes (34): AccountStatus, AccountType, AdjustBalancePayload, BalanceItem, BalancesReport, BudgetStatus, BudgetWarning, CashFlowMonth (+26 more)
Nodes (35): AccountStatus, AccountType, AdjustBalancePayload, BalanceItem, BalancesReport, BudgetStatus, BudgetWarning, CashFlowMonth (+27 more)
### Community 8 - "router.tsx"
Cohesion: 0.07
Nodes (53): AcceptInvitePayload, LoginPayload, PasswordResetPayload, AcceptInvitePage, AccountsPage, AnalyticsPage, BudgetPage, ImportDetailPage (+45 more)
Nodes (43): AcceptInvitePayload, LoginPayload, PasswordResetPayload, AcceptInvitePage, AccountsPage, AnalyticsPage, BudgetPage, ImportDetailPage (+35 more)
### Community 9 - "ledger/router.py"
Cohesion: 0.16
Nodes (35): account_json(), AccountBody, accounts(), adjust_balance(), AdjustBalanceBody, archive_account(), create_account(), create_operation() (+27 more)
Cohesion: 0.15
Nodes (38): account_json(), AccountBody, accounts(), adjust_balance(), AdjustBalanceBody, archive_account(), categorize_operations_batch(), CategorizeBatchBody (+30 more)
### Community 11 - "compilerOptions"
Cohesion: 0.07
Nodes (28): compilerOptions, baseUrl, esModuleInterop, forceConsistentCasingInFileNames, isolatedModules, jsx, lib, module (+20 more)
### Community 12 - "BudgetPage.tsx"
Cohesion: 0.10
Nodes (42): NotFoundPage, PlanFactBars(), PlanFactBarsProps, PlanFactRow, MonthSwitcher(), MonthSwitcherProps, PageHeader(), PageHeaderProps (+34 more)
### Community 12 - "ReviewQueuePage.tsx"
Cohesion: 0.09
Nodes (43): NotFoundPage, PlanFactBars(), PlanFactBarsProps, PlanFactRow, EmptyState(), EmptyStateProps, MonthSwitcher(), MonthSwitcherProps (+35 more)
### Community 14 - "devDependencies"
Cohesion: 0.10
Nodes (21): eslint, @eslint/js, eslint-plugin-jsx-a11y, devDependencies, eslint, @eslint/js, eslint-plugin-jsx-a11y, globals (+13 more)
### Community 15 - "AppError"
Cohesion: 0.06
Nodes (141): Any, record(), BudgetPeriod, Calendar month budget period in the space timezone (month granularity)., add_expected_income(), archive_category(), _balance_until(), _close_blockers() (+133 more)
### Community 15 - "ledger/service.py"
Cohesion: 0.13
Nodes (48): ensure_others_category(), The system «Остальное» fallback category, created on first use., Operation, Posting, Signed balance change of one account within one operation. Sign convention…, User financial fact. amount_kopecks is always positive; direction lives in…, account_balance(), _apply_suggestion() (+40 more)
### Community 16 - "dependencies"
Cohesion: 0.09
Nodes (23): @fontsource/funnel-sans, @fontsource/geist-mono, dependencies, @fontsource/funnel-sans, @fontsource/geist-mono, @hookform/resolvers, i18next, react (+15 more)
### Community 17 - "ImportDetailPage.tsx"
Cohesion: 0.16
Nodes (23): HoldResolutionAction, ImportStatus, RowDecision, useToast(), useConfirmImport(), useImport(), useImportErrorToaster(), useReparseImport() (+15 more)
Cohesion: 0.08
Nodes (45): api, invalidationRoots, queryKeys, SESSION_ROOT, sessionInvalidationRoot, SPACE_ROOT, spaceInvalidationRoot, HoldResolutionAction (+37 more)
### Community 18 - "OperationsPage.tsx"
Cohesion: 0.09
Nodes (54): Account, isSystemAccount(), Locale, Badge(), BadgeTone, EmptyState(), EmptyStateProps, MoneyField() (+46 more)
Cohesion: 0.11
Nodes (46): CategorizeBatchPayload, CreateOperationPayload, isSystemAccount(), Locale, useAccounts(), useActiveAccounts(), useUserAccounts(), useCategorizeBatch() (+38 more)
### Community 19 - "useOperations.ts"
### Community 19 - "Base"
Cohesion: 0.15
Nodes (16): invalidationRoots, queryKeys, SESSION_ROOT, sessionInvalidationRoot, SPACE_ROOT, spaceInvalidationRoot, CreateOperationPayload, OperationFilters (+8 more)
Nodes (22): downgrade(), upgrade(), BankCategoryMapping, CategorizationRule, CategoryMcc, IncomeSource, MccCode, Payee (+14 more)
### Community 20 - "apiErrors.ts"
Cohesion: 0.09
Nodes (24): isApiError(), BudgetBlocker, App(), queryClient, AppRoutes(), blockerCta(), blockerText(), BudgetBlockers() (+16 more)
### Community 21 - "adapters/base.py"
Cohesion: 0.12
Nodes (20): account_fingerprint(), _mask_digits(), money_to_kopecks(), normalize_description(), date, Parse statement money strings like '-1 234,56 RUR', '+ 500.00 ₽', '12 345'.…, record_fingerprint(), StatementDraft (+12 more)
### Community 22 - "BudgetPage.tsx"
Cohesion: 0.14
Nodes (16): isApiError(), BudgetBlocker, App(), queryClient, AppRoutes(), blockerCta(), blockerText(), BudgetBlockers() (+8 more)
### Community 21 - "test_adapter_contracts.py"
Cohesion: 0.11
Nodes (25): AlfaCreditXlsxAdapter, account_fingerprint(), amount_to_kopecks(), _mask_digits(), money_to_kopecks(), Protocol, Parse statement money strings like '-1 234,56 RUR', '+ 500.00 ₽', '12 345'.…, SourceRow (+17 more)
### Community 22 - "useBudget.ts"
Cohesion: 0.22
Nodes (15): CategoryManagerModal(), CREATE_KINDS, CreateCategoryForm(), MccCodesModal(), parseMccCodes(), RenameModal(), ConfirmDialog(), ConfirmDialogProps (+7 more)
Nodes (27): CreatableCategoryKind, CategoryManagerModal(), CREATE_KINDS, CreateCategoryForm(), MccCodesModal(), parseMccCodes(), RenameModal(), Badge() (+19 more)
### Community 23 - "client.ts"
Cohesion: 0.26
Nodes (10): apiClient, ApiError, buildUrl(), ErrorEnvelope, parseErrorEnvelope(), QueryValue, readCsrfToken(), request() (+2 more)
### Community 24 - "fields.tsx"
Cohesion: 0.25
Nodes (9): FieldChrome, InputProps, MoneyFieldProps, SelectFieldProps, SelectProps, TextareaField(), TextareaFieldProps, TextareaProps (+1 more)
Cohesion: 0.21
Nodes (11): FieldChrome, InputProps, MoneyField(), MoneyFieldProps, SelectField(), SelectFieldProps, SelectProps, TextareaField() (+3 more)
### Community 25 - "Docker Compose Development Stack"
Cohesion: 0.29
@@ -273,9 +278,9 @@ Nodes (4): name, private, type, version
Cohesion: 0.18
Nodes (11): Audited Break-Glass Access, Cross-Space Referential Integrity, Defense-in-Depth Authorization, Financial Space Ownership, Transaction-Local RLS Context, Budget Invariants, Critical User Path, Financial Tracker MVP (+3 more)
### Community 38 - "TestRocketbankDebitContract"
### Community 38 - "test_adapter_contracts.py"
Cohesion: 0.13
Nodes (7): minimal_pdf(), _QuotaSettings, Build a small valid single-font PDF with empty or ASCII-only pages., same_page_rocket_lines(), synthetic_rocket_lines(), TestRocketbankDebitContract, MonkeyPatch
Nodes (8): minimal_pdf(), _QuotaSettings, Sanitized synthetic contract tests for the evidenced statement adapters. These…, Build a small valid single-font PDF with empty or ASCII-only pages., same_page_rocket_lines(), synthetic_rocket_lines(), TestRocketbankDebitContract, MonkeyPatch
### Community 39 - "generate-api.mjs"
Cohesion: 0.40
@@ -289,17 +294,17 @@ Nodes (5): components, $defs, operations, paths, webhooks
Cohesion: 0.67
Nodes (3): TestClient, test_invite_login_and_authenticated_space(), test_openapi_contains_critical_paths()
### Community 44 - "api"
Cohesion: 0.11
Nodes (18): api, User, ToastApi, ToastContext, ToastItem, ToastKind, ToastProvider(), adjustBalanceMock (+10 more)
### Community 44 - "helpers.tsx"
Cohesion: 0.18
Nodes (11): User, DESKTOP_NAV, meMock, MOBILE_NAV, user, createTestQueryClient(), renderWithProviders(), loginMock (+3 more)
### Community 45 - "set_space_context"
### Community 45 - "ledger/models.py"
Cohesion: 0.26
Nodes (13): _check_constraints(), downgrade(), _has_column(), _has_row(), _has_unique_constraint(), _normalized_sqltext(), Savings system resources, adjustments and reversible conversions., Swap a check constraint for a new value list, dialect-safely. Fresh databases… (+5 more)
Nodes (11): HoldResolution, Append-only, tenant-scoped settlement of one HOLD source record. The extracted…, Account, Financial account. Balance is always derived: opening + confirmed postings., FinancialSpace, Membership, test_postgres_rls_requires_matching_transaction_context(), test_s3_blob_round_trip() (+3 more)
### Community 46 - "category-manager.test.tsx"
Cohesion: 0.15
Nodes (11): CategoryDefinition, categoriesMock, createCategoryMock, definitions, definitionsMock, diningDefinition, month, monthCategories (+3 more)
Cohesion: 0.14
Nodes (12): CategoryDefinition, categoriesMock, createCategoryMock, definitions, definitionsMock, diningDefinition, month, monthCategories (+4 more)
### Community 47 - "graphify"
Cohesion: 0.17
@@ -310,16 +315,16 @@ Cohesion: 0.10
Nodes (20): 1. Доменная основа накоплений, 2. Альфа debit: «Копилка для сдачи», 3. Управление категориями, 4. Понятные и устранимые блокировки, Backend-контракт, Frontend, Ближайший край: накопления, категории и блокировки бюджета, Бюджетная семантика (+12 more)
### Community 58 - "test_private_fixtures.py"
Cohesion: 0.12
Nodes (22): detect_adapter(), Any, Reconcile parsed rows against declared bank controls with stable diagnostics.…, _reconciliation_summary(), _check(), _fail(), _load_entries(), parsed() (+14 more)
Cohesion: 0.10
Nodes (24): Protocol, StatementAdapter, detect_adapter(), Any, Reconcile parsed rows against declared bank controls with stable diagnostics.…, _reconciliation_summary(), _check(), _fail() (+16 more)
### Community 62 - "LocalDirectoryBlobStore"
Cohesion: 0.39
Nodes (3): LocalDirectoryBlobStore, Path, S3-neutral local store; production swaps in an S3-compatible client.
### Community 63 - "OzonDebitPdfAdapter"
Cohesion: 0.16
Nodes (7): _ozon_cell(), _ozon_normalize(), OzonDebitPdfAdapter, Ozon debit statement contract, evidenced against the real document. A 'Справка…, ozon_extracted(), TestOzonDebitContract, Pattern
Cohesion: 0.18
Nodes (6): _ozon_normalize(), OzonDebitPdfAdapter, Ozon debit statement contract, evidenced against the real document. A 'Справка…, ozon_extracted(), TestOzonDebitContract, Pattern
### Community 64 - "Gitea CI and real statement imports"
Cohesion: 0.29
@@ -329,41 +334,41 @@ Nodes (6): Confirmed decisions, Gitea CI and real statement imports, Goal and co
Cohesion: 0.80
Nodes (4): downgrade(), _has_check_constraint(), _has_column(), upgrade()
### Community 67 - "main.py"
Cohesion: 0.31
Nodes (9): get_db(), get_engine(), get_session_factory(), sessionmaker, health(), healthz(), get, readiness() (+1 more)
### Community 67 - "import-hold-resolution.test.tsx"
Cohesion: 0.15
Nodes (11): ImportDetail, ImportRow, ImportSummary, confirmMock, detailFixture(), getImportMock, postedRow(), getImportMock (+3 more)
### Community 68 - "analytics/router.py"
Cohesion: 0.24
Nodes (14): balances(), cash_flow(), category_spend(), plan_fact(), Context, date, Db, get (+6 more)
### Community 68 - "budgeting/service.py"
Cohesion: 0.16
Nodes (39): BudgetPeriod, Calendar month budget period in the space timezone (month granularity)., add_expected_income(), archive_category(), _balance_until(), _close_blockers(), close_period(), _closure_snapshot() (+31 more)
### Community 69 - "TestAlfaDebitContract"
Cohesion: 0.18
Nodes (3): alfa_workbook_bytes(), synthetic_alfa_rows(), TestAlfaDebitContract
### Community 71 - "mcc.py"
Cohesion: 0.24
Nodes (12): _default_categories(), DefaultCategory, english_title(), _english_titles(), iter_mcc_dictionary(), MCC catalog backed by the iso18245 library with Russian labels. The global…, Curated Russian translation, else a Cyrillic transcription of the label., Yield ``(code, russian_title)`` for every MCC known to iso18245. (+4 more)
Cohesion: 0.14
Nodes (23): _create_tenant_policy(), _default_keys(), downgrade(), _has_table(), _space_ids(), upgrade(), _default_categories(), default_category_system_keys() (+15 more)
### Community 73 - "savings-convert-revert.test.tsx"
Cohesion: 0.20
Nodes (6): budgetCategoriesMock, listAccountsMock, listOperationsMock, operations, revertMock, savingsTransferMock
### Community 74 - "exports/router.py"
Cohesion: 0.27
Nodes (10): download(), export_status(), Context, Csrf, Db, get, post, Response (+2 more)
### Community 74 - "get_settings"
Cohesion: 0.12
Nodes (30): get_settings(), Settings, send_token_email(), accept_invite(), AcceptInviteBody, confirm_password_reset(), create_invite(), InviteBody (+22 more)
### Community 75 - "ColumnChart.tsx"
Cohesion: 0.24
Nodes (7): CashFlowColumn, ColumnChart(), ColumnChartProps, BarRow, HorizontalBars(), HorizontalBarsProps, rows
### Community 76 - "identity/service.py"
Cohesion: 0.06
Nodes (80): current_context(), current_session(), alias, Context, CurrentSession, Db, Header, User (+72 more)
### Community 76 - "dependencies.py"
Cohesion: 0.09
Nodes (39): current_context(), current_session(), alias, Context, CurrentSession, Db, Header, User (+31 more)
### Community 79 - "Category"
Cohesion: 0.23
Nodes (12): Pure localization key for system categories; None for user categories., resolve_category_name_key(), Account, Category, Operation, Budget category. Kept in ledger module to avoid circular imports., Financial account. Balance is always derived: opening + confirmed postings., User financial fact. amount_kopecks is always positive; direction lives in… (+4 more)
### Community 79 - "test_savings.py"
Cohesion: 0.14
Nodes (33): adjust_balance(), convert_expense_to_savings(), ensure_savings_resources(), Account, date, Operation, User, UUID (+25 more)
### Community 80 - "test_category_definitions.py"
Cohesion: 0.50
@@ -373,48 +378,68 @@ Nodes (8): bootstrap(), TestClient, HTTP contract for category definitions, syst
Cohesion: 0.25
Nodes (7): BudgetSummary, categories, categoriesMock, month, summary, summaryMock, updatePlanMock
### Community 82 - "import-hold-resolution.test.tsx"
Cohesion: 0.15
Nodes (11): ImportDetail, ImportRow, ImportSummary, confirmMock, detailFixture(), getImportMock, postedRow(), getImportMock (+3 more)
### Community 82 - "imports/service.py"
Cohesion: 0.18
Nodes (29): Any, record(), utcnow(), conflict(), not_found(), magic_kind(), _apply_hold_matches(), _category_id_for_source() (+21 more)
### Community 83 - "get_settings"
Cohesion: 0.10
Nodes (12): get_settings(), Settings, send_token_email(), BlobStore, get_blob_store(), Protocol, S3BlobStore, create_celery_app() (+4 more)
### Community 83 - "exports/service.py"
Cohesion: 0.13
Nodes (19): DataExport, build_export(), consume_export(), _csv_bytes(), get_export(), _json_rows(), purge_due_spaces(), datetime (+11 more)
### Community 84 - "session_scope"
Cohesion: 0.31
Nodes (9): Any, Transactional scope for workers/endpoints that own the transaction lifecycle., session_scope(), purge_due_spaces(), build_export_task(), enqueue_export(), purge_due_spaces_task(), task (+1 more)
### Community 84 - "test_imports.py"
Cohesion: 0.17
Nodes (29): DedupCandidate, ParseRun, Immutable extracted bank fact with document origin coordinates., SourceRecord, SourceRecordLink, StatementDocument, _build_candidates(), _match_hold_resolutions() (+21 more)
### Community 85 - "20260923_0004_mcc_categories.py"
Cohesion: 0.46
Nodes (7): _create_tenant_policy(), _default_keys(), downgrade(), _has_table(), _space_ids(), upgrade(), default_category_system_keys()
### Community 85 - "identity/service.py"
Cohesion: 0.26
Nodes (20): bad_request(), unauthorized(), accept_invitation(), authenticate(), create_invitation(), create_password_reset(), create_session(), get_active_session() (+12 more)
### Community 86 - "Session"
Cohesion: 0.06
Nodes (124): datetime, utcnow(), Session, detect_savings_transfer(), _savings_rule_text(), normalize_description(), date, record_fingerprint() (+116 more)
Cohesion: 0.16
Nodes (41): Session, add_record(), _draft(), hold_document(), make_document(), date, Path, TestClient (+33 more)
### Community 87 - "app_error_handler"
Cohesion: 0.32
Nodes (8): app_error_handler(), Request, security_headers(), stale_data_handler(), exception_handler, JSONResponse, middleware, StaleDataError
### Community 87 - "get_or_create_period"
Cohesion: 0.34
Nodes (14): get_or_create_period(), validate_year_month(), Budget semantics for savings transfers, adjustments and archived history., savings_row(), seed(), test_adjustment_changes_only_envelope_available_not_pool(), test_adjustment_on_regular_account_keeps_pool_and_totals(), test_archived_category_history_stays_in_totals() (+6 more)
### Community 88 - "20260923_0005_optional_hold_reason.py"
Cohesion: 0.83
Nodes (3): downgrade(), _reason_constraint_name(), upgrade()
### Community 89 - "test_import_savings.py"
Cohesion: 0.32
Nodes (17): get_savings_account(), add_record(), make_document(), date, User, Import contract for the «Копилка для сдачи» savings_transfer decision., seed(), test_confirm_creates_savings_transfer_with_system_category() (+9 more)
### Community 90 - "conftest.py"
Cohesion: 0.27
Nodes (6): client(), db(), db_factory(), fixture, sessionmaker, TestClient
### Community 91 - "test_review_queue_batch.py"
Cohesion: 0.60
Nodes (10): bootstrap(), category_ids(), create_account(), create_expense(), operations_by_id(), TestClient, test_batch_assigns_picked_categories_and_moves_leftovers_to_others(), test_batch_is_atomic_when_one_category_is_unknown() (+2 more)
### Community 92 - "review-queue-save.test.tsx"
Cohesion: 0.25
Nodes (6): categories, categoriesMock, categorizeBatchMock, categorizeMock, importsListMock, operationsListMock
### Community 94 - "account-adjustment.test.tsx"
Cohesion: 0.20
Nodes (5): Account, adjustBalanceMock, listMock, createMock, listMock
## Knowledge Gaps
- **250 isolated node(s):** `$schema`, `file:///home/k1nq/repos/finance/.kilo/plugins/graphify.js`, `type`, `/home/k1nq/.local/bin/graphify-mcp`, `/home/k1nq/repos/finance/graphify-out/graph.json` (+245 more)
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 443 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **267 isolated node(s):** `$schema`, `file:///home/k1nq/repos/finance/.kilo/plugins/graphify.js`, `type`, `/home/k1nq/.local/bin/graphify-mcp`, `/home/k1nq/repos/finance/graphify-out/graph.json` (+262 more)
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 468 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **16 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `Session` connect `Session` to `categorization/service.py`, `budgeting/router.py`, `Base`, `main.py`, `analytics/router.py`, `exports/service.py`, `identity/service.py`, `set_space_context`, `AppError`, `Category`, `session_scope`, `20260923_0004_mcc_categories.py`?**
_High betweenness centrality (0.070) - this node is a cross-community bridge._
- **Why does `AppError` connect `AppError` to `exports/service.py`, `imports/router.py`, `alfa_xlsx.py`, `main.py`, `TestRocketbankDebitContract`, `exports/router.py`, `identity/service.py`, `test_adapter_contracts.py`, `Session`, `app_error_handler`, `OzonDebitPdfAdapter`?**
_High betweenness centrality (0.043) - this node is a cross-community bridge._
- **Why does `get_settings()` connect `get_settings` to `exports/service.py`, `main.py`, `alfa_xlsx.py`, `imports/router.py`, `identity/service.py`, `Category`, `test_adapter_contracts.py`, `Session`?**
_High betweenness centrality (0.021) - this node is a cross-community bridge._
- **Why does `Session` connect `Session` to `Category`, `budgeting/router.py`, `db/models.py`, `imports/router.py`, `alfa_xlsx.py`, `ledger/service.py`, `Base`, `ledger/models.py`, `budgeting/service.py`, `mcc.py`, `dependencies.py`, `test_savings.py`, `imports/service.py`, `exports/service.py`, `test_imports.py`, `identity/service.py`, `get_or_create_period`, `test_import_savings.py`, `conftest.py`?**
_High betweenness centrality (0.067) - this node is a cross-community bridge._
- **Why does `AppError` connect `AppError` to `imports/router.py`, `alfa_xlsx.py`, `test_adapter_contracts.py`, `budgeting/service.py`, `get_settings`, `dependencies.py`, `ledger/service.py`, `test_savings.py`, `imports/service.py`, `test_imports.py`, `identity/service.py`, `adapters/base.py`, `get_or_create_period`, `Session`, `test_import_savings.py`, `OzonDebitPdfAdapter`?**
_High betweenness centrality (0.049) - this node is a cross-community bridge._
- **Why does `TestRocketbankDebitContract` connect `test_adapter_contracts.py` to `AppError`, `adapters/base.py`?**
_High betweenness centrality (0.019) - this node is a cross-community bridge._
- **Are the 4 inferred relationships involving `Session` (e.g. with `upgrade()` and `upgrade()`) actually correct?**
_`Session` has 4 INFERRED edges - model-reasoned connections that need verification._
- **Are the 39 inferred relationships involving `AppError` (e.g. with `request_export()` and `login()`) actually correct?**
@@ -422,4 +447,4 @@ _Questions this graph is uniquely positioned to answer:_
- **Are the 3 inferred relationships involving `Base` (e.g. with `downgrade()` and `upgrade()`) actually correct?**
_`Base` has 3 INFERRED edges - model-reasoned connections that need verification._
- **What connects `$schema`, `file:///home/k1nq/repos/finance/.kilo/plugins/graphify.js`, `type` to the rest of the system?**
_250 weakly-connected nodes found - possible documentation gaps or missing edges._
_267 weakly-connected nodes found - possible documentation gaps or missing edges._
File diff suppressed because one or more lines are too long
+7941 -6041
View File
File diff suppressed because it is too large Load Diff
+63 -33
View File
@@ -90,9 +90,9 @@
"semantic_hash": ""
},
"backend/app/categorization/service.py": {
"mtime": 1790141279.1839979,
"seen": 1790141340.3614173,
"ast_hash": "91b8f18d6fd833a1b234b7b2f1685a88",
"mtime": 1790155243.3420188,
"seen": 1790155776.860274,
"ast_hash": "819febb7bcb738d77ca8636261e555cf",
"semantic_hash": ""
},
"backend/app/config.py": {
@@ -294,15 +294,15 @@
"semantic_hash": ""
},
"backend/app/ledger/router.py": {
"mtime": 1790097195.1290338,
"seen": 1790129548.052997,
"ast_hash": "cc108ddf12a8020198afe9d3d0847e2a",
"mtime": 1790155278.0175776,
"seen": 1790155776.860304,
"ast_hash": "24b2565478f257f38561fabff646130a",
"semantic_hash": ""
},
"backend/app/ledger/service.py": {
"mtime": 1790139917.4417093,
"seen": 1790140596.4645474,
"ast_hash": "a9d176c786237da53b3a2e6fb6d6b4e6",
"mtime": 1790155254.7072597,
"seen": 1790155776.8603063,
"ast_hash": "63421b7c145517e16863aa918e7874c1",
"semantic_hash": ""
},
"backend/app/main.py": {
@@ -426,9 +426,9 @@
"semantic_hash": "dbea075a006b7703340f7f93e69d53ac"
},
"frontend/src/api/endpoints.ts": {
"mtime": 1790076936.1693087,
"seen": 1790096479.536486,
"ast_hash": "bc61b518c946899ff0a9f4f00aaff9a0",
"mtime": 1790155318.8911343,
"seen": 1790155776.8603325,
"ast_hash": "972cada63fe04b77326f9fd51c6a0fff",
"semantic_hash": ""
},
"frontend/src/api/generated/schema.d.ts": {
@@ -444,9 +444,9 @@
"semantic_hash": ""
},
"frontend/src/api/types.ts": {
"mtime": 1790140175.05337,
"seen": 1790140596.4645727,
"ast_hash": "7a2c079c721ef1966d181492a4624686",
"mtime": 1790155310.2330165,
"seen": 1790155776.8603358,
"ast_hash": "168d7c87c05b4bf5205cde1bc45ff75b",
"semantic_hash": ""
},
"frontend/src/app/router.tsx": {
@@ -474,9 +474,9 @@
"semantic_hash": "f581486baa48447ec4c573acef3190ef"
},
"frontend/src/components/layout/AppLayout.tsx": {
"mtime": 1790096202.721176,
"seen": 1790096479.5364962,
"ast_hash": "40d35a9e1278142b233541c6c104e289",
"mtime": 1790155877.7546387,
"seen": 1790156681.7281113,
"ast_hash": "b2485ee6009655cd96a2acda54c4e873",
"semantic_hash": ""
},
"frontend/src/components/layout/LangSwitcher.tsx": {
@@ -588,9 +588,9 @@
"semantic_hash": ""
},
"frontend/src/hooks/useOperations.ts": {
"mtime": 1790076985.3479233,
"seen": 1790096479.5365133,
"ast_hash": "26f72b4e30b26fe12d90b29dfb4c4246",
"mtime": 1790155328.9502711,
"seen": 1790155776.8603566,
"ast_hash": "eb6bbfa18c0b8019fdce83171bae8348",
"semantic_hash": ""
},
"frontend/src/hooks/useSpaceLifecycle.ts": {
@@ -606,15 +606,15 @@
"semantic_hash": "243512f6e095deeaa29393b7c831777f"
},
"frontend/src/i18n/locales/en.json": {
"mtime": 1790141684.2632692,
"seen": 1790142012.6081812,
"ast_hash": "7fb00b4761bc40813a3c81cc9346d92e",
"mtime": 1790155431.9488008,
"seen": 1790155776.860359,
"ast_hash": "a92d8d64ae7b7e47bf83e625ea901611",
"semantic_hash": ""
},
"frontend/src/i18n/locales/ru.json": {
"mtime": 1790141684.2632692,
"seen": 1790142012.6081817,
"ast_hash": "d82c9fcf5dec8f9d417ee4ead2e2825f",
"mtime": 1790155435.0697088,
"seen": 1790155776.8603597,
"ast_hash": "31dc876ab451fbd85e91efde3c33f904",
"semantic_hash": ""
},
"frontend/src/main.tsx": {
@@ -672,9 +672,9 @@
"semantic_hash": "53e014a77ff3070820a83458af08a5fd"
},
"frontend/src/pages/OperationsPage.tsx": {
"mtime": 1790095531.9706314,
"seen": 1790096479.5365317,
"ast_hash": "f3eb4c376ab882b8b83cc27a09f0ab68",
"mtime": 1790157347.0632977,
"seen": 1790157380.8711965,
"ast_hash": "79e817d97de60b1c3aa88a69312089c4",
"semantic_hash": ""
},
"frontend/src/pages/ResetPasswordPage.tsx": {
@@ -684,9 +684,9 @@
"semantic_hash": ""
},
"frontend/src/pages/ReviewQueuePage.tsx": {
"mtime": 1790097345.6599903,
"seen": 1790129548.0530627,
"ast_hash": "3fd04897b64b97c0423b5b539e2736a6",
"mtime": 1790155662.0787606,
"seen": 1790155776.8603764,
"ast_hash": "33d88c8996a7cc9eb4024cfc0cfd362e",
"semantic_hash": ""
},
"frontend/src/pages/SettingsPage.tsx": {
@@ -1120,5 +1120,35 @@
"seen": 1790140596.4646177,
"ast_hash": "c69052c781b488bfc9fd94c18145b3dd",
"semantic_hash": ""
},
"backend/tests/test_review_queue_batch.py": {
"mtime": 1790155761.6000907,
"seen": 1790155776.860325,
"ast_hash": "ca92b0417d73b849012c90803a4a6885",
"semantic_hash": ""
},
"frontend/src/test/review-queue-save.test.tsx": {
"mtime": 1790155709.274392,
"seen": 1790155776.8603985,
"ast_hash": "9eccf70e7d76c323be554e3520590723",
"semantic_hash": ""
},
"docs/tasks/0001-fixes.md": {
"mtime": 1790144165.8457038,
"seen": 1790155776.8604262,
"ast_hash": "69c251b98bc8a5e14817c94529fbb4b6",
"semantic_hash": ""
},
"frontend/src/test/app-layout.test.tsx": {
"mtime": 1790156070.9332047,
"seen": 1790156681.7281497,
"ast_hash": "ef17fe7a17d9a2cb09fe051c687f8f26",
"semantic_hash": ""
},
"frontend/src/test/ledger-view.test.tsx": {
"mtime": 1790157401.4480782,
"seen": 1790157424.7858286,
"ast_hash": "325d3bc51b743c4fdde3c00733ce9c99",
"semantic_hash": ""
}
}