refactor(miniapp): compact finance and admin editors

This commit is contained in:
2026-03-11 17:22:48 +04:00
parent 69a914711f
commit e07dfeadf5
4 changed files with 1831 additions and 1112 deletions

View File

@@ -67,6 +67,7 @@ export const dictionary = {
'Purchase contributions will appear here after shared buys are logged.',
purchaseShareLabel: 'Share',
purchaseTotalLabel: 'Total shared buys',
participantsLabel: 'participants',
purchasesTitle: 'Shared purchases',
purchasesEmpty: 'No shared purchases recorded for this cycle yet.',
utilityLedgerTitle: 'Utility bills',
@@ -90,21 +91,28 @@ export const dictionary = {
purchaseSplitEqual: 'Equal split',
purchaseSplitCustom: 'Custom amounts',
purchaseParticipantLabel: 'Participates',
participantIncluded: 'Included',
participantExcluded: 'Excluded',
purchaseCustomShareLabel: 'Custom amount',
purchaseEditorBody: 'Review the purchase details and adjust the split only when needed.',
paymentsAdminTitle: 'Payments',
paymentsAdminBody: 'Add, fix, or remove payment records for the current cycle.',
paymentsAddAction: 'Add payment',
addingPayment: 'Adding payment…',
paymentCreateBody: 'Create a payment record in a focused editor instead of a long inline form.',
paymentKind: 'Payment kind',
paymentAmount: 'Payment amount',
paymentMember: 'Member',
paymentSaveAction: 'Save payment',
paymentDeleteAction: 'Delete payment',
paymentEditorBody: 'Review the payment record in one focused editor.',
deletingPayment: 'Deleting payment…',
purchaseSaveAction: 'Save purchase',
purchaseDeleteAction: 'Delete purchase',
deletingPurchase: 'Deleting purchase…',
savingPurchase: 'Saving purchase…',
editEntryAction: 'Edit entry',
closeEditorAction: 'Close',
householdSettingsTitle: 'Household settings',
householdSettingsBody: 'Control household defaults and approve roommates who requested access.',
topicBindingsTitle: 'Topic bindings',
@@ -127,6 +135,9 @@ export const dictionary = {
billingCycleStatus: 'Current cycle currency: {currency}',
billingCycleOpenHint: 'Open a cycle before entering rent and utility bills.',
billingCyclePeriod: 'Cycle period',
manageCycleAction: 'Manage cycle',
cycleEditorBody:
'Keep the billing cycle controls in one focused editor instead of a long page.',
openCycleAction: 'Open cycle',
openingCycle: 'Opening cycle…',
closeCycleAction: 'Close cycle',
@@ -147,19 +158,31 @@ export const dictionary = {
utilitiesDueDay: 'Utilities due day',
utilitiesReminderDay: 'Utilities reminder day',
timezone: 'Timezone',
manageSettingsAction: 'Manage settings',
billingSettingsEditorBody: 'Household billing defaults live here when you need to change them.',
saveSettingsAction: 'Save settings',
savingSettings: 'Saving settings…',
utilityCategoriesTitle: 'Utility categories',
utilityCategoriesBody: 'Manage the categories admins use for monthly utility entry.',
utilityCategoryName: 'Category name',
utilityCategoryActive: 'Active',
utilityBillsEditorBody:
'Keep utility bills short in the list and edit the details only when needed.',
utilityBillCreateBody: 'Add a utility bill in a focused editor.',
utilityBillEditorBody: 'Adjust utility bill details here.',
editUtilityBillAction: 'Edit utility bill',
addCategoryAction: 'Add category',
saveCategoryAction: 'Save category',
savingCategory: 'Saving…',
categoryCreateBody: 'Create a new utility category without stretching the page.',
categoryEditorBody: 'Rename or disable the category in a focused editor.',
editCategoryAction: 'Edit category',
adminsTitle: 'Admins',
adminsBody: 'Promote trusted household members so they can manage billing and approvals.',
displayNameLabel: 'Household display name',
displayNameHint: 'This name appears in balances, ledger entries, and assistant replies.',
memberEditorBody: 'Member billing state and admin controls stay grouped in one editor.',
editMemberAction: 'Edit member',
saveDisplayName: 'Save name',
savingDisplayName: 'Saving name…',
memberStatusLabel: 'Member status',
@@ -262,6 +285,7 @@ export const dictionary = {
'Вклады в общие покупки появятся здесь после первых записанных покупок.',
purchaseShareLabel: 'Доля',
purchaseTotalLabel: 'Всего общих покупок',
participantsLabel: 'участника',
purchasesTitle: 'Общие покупки',
purchasesEmpty: 'Пока нет общих покупок в этом цикле.',
utilityLedgerTitle: 'Коммунальные платежи',
@@ -286,21 +310,29 @@ export const dictionary = {
purchaseSplitEqual: 'Поровну',
purchaseSplitCustom: 'Свои суммы',
purchaseParticipantLabel: 'Участвует',
participantIncluded: 'Участвует',
participantExcluded: 'Не участвует',
purchaseCustomShareLabel: 'Своя сумма',
purchaseEditorBody:
'Проверь покупку и меняй детали разделения только если это действительно нужно.',
paymentsAdminTitle: 'Оплаты',
paymentsAdminBody: 'Добавляй, исправляй или удаляй оплаты за текущий цикл.',
paymentsAddAction: 'Добавить оплату',
addingPayment: 'Добавляем оплату…',
paymentCreateBody: 'Создай оплату в отдельном окне вместо длинной встроенной формы.',
paymentKind: 'Тип оплаты',
paymentAmount: 'Сумма оплаты',
paymentMember: 'Участник',
paymentSaveAction: 'Сохранить оплату',
paymentDeleteAction: 'Удалить оплату',
paymentEditorBody: 'Проверь оплату в отдельном редакторе.',
deletingPayment: 'Удаляем оплату…',
purchaseSaveAction: 'Сохранить покупку',
purchaseDeleteAction: 'Удалить покупку',
deletingPurchase: 'Удаляем покупку…',
savingPurchase: 'Сохраняем покупку…',
editEntryAction: 'Редактировать запись',
closeEditorAction: 'Закрыть',
householdSettingsTitle: 'Настройки household',
householdSettingsBody: 'Здесь можно менять язык household и подтверждать новых соседей.',
topicBindingsTitle: 'Привязанные топики',
@@ -323,6 +355,8 @@ export const dictionary = {
billingCycleStatus: 'Валюта текущего цикла: {currency}',
billingCycleOpenHint: 'Открой цикл перед тем, как вносить аренду и коммунальные счета.',
billingCyclePeriod: 'Период цикла',
manageCycleAction: 'Управлять циклом',
cycleEditorBody: 'Все действия по циклу собраны в отдельном окне, а не растянуты по странице.',
openCycleAction: 'Открыть цикл',
openingCycle: 'Открываем цикл…',
closeCycleAction: 'Закрыть цикл',
@@ -343,6 +377,8 @@ export const dictionary = {
utilitiesDueDay: 'День оплаты коммуналки',
utilitiesReminderDay: 'День напоминания по коммуналке',
timezone: 'Часовой пояс',
manageSettingsAction: 'Управлять настройками',
billingSettingsEditorBody: 'Основные правила биллинга собраны в отдельном окне.',
saveSettingsAction: 'Сохранить настройки',
savingSettings: 'Сохраняем настройки…',
utilityCategoriesTitle: 'Категории коммуналки',
@@ -350,14 +386,24 @@ export const dictionary = {
'Управляй категориями, которые админы используют для ежемесячного ввода коммунальных счетов.',
utilityCategoryName: 'Название категории',
utilityCategoryActive: 'Активна',
utilityBillsEditorBody:
'В списке остаются только короткие карточки, а детали редактируются отдельно.',
utilityBillCreateBody: 'Добавь коммунальный счёт в отдельном окне.',
utilityBillEditorBody: 'Исправь детали коммунального счёта здесь.',
editUtilityBillAction: 'Редактировать счёт',
addCategoryAction: 'Добавить категорию',
saveCategoryAction: 'Сохранить категорию',
savingCategory: 'Сохраняем…',
categoryCreateBody: 'Создай новую категорию без длинной встроенной формы.',
categoryEditorBody: 'Переименуй категорию или отключи её в отдельном окне.',
editCategoryAction: 'Редактировать категорию',
adminsTitle: 'Админы',
adminsBody:
'Повышай доверенных участников, чтобы они могли управлять биллингом и подтверждениями.',
displayNameLabel: 'Имя в household',
displayNameHint: 'Это имя будет видно в балансе, леджере и ответах ассистента.',
memberEditorBody: 'Статус, политика и админские действия по участнику собраны в одном окне.',
editMemberAction: 'Редактировать участника',
saveDisplayName: 'Сохранить имя',
savingDisplayName: 'Сохраняем имя…',
memberStatusLabel: 'Статус участника',