docs + AGENTS: no-implementation rule, issue-driven workflow, Vico, Uncategorized, ClearAllData, AddEditRecurringScreen
- AGENTS.md: add No-implementation rule and Issue-driven workflow section - docs/01: rename default fallback category from 'Other' to 'Uncategorized' - docs/02, 03: update 'Other' references to 'Uncategorized' in delete/seed/default flows - docs/04: replace Canvas charts with Vico 2.x dep, add data feature folder, add AddEditRecurringScreen, document tab-aware FAB and shared ExportAction helper
This commit is contained in:
+15
-2
@@ -68,7 +68,7 @@ class GetCategories(dao: CategoryDao) {
|
||||
fun subscribeAll(): Flow<List<Category>>
|
||||
suspend fun awaitOne(id: Long): Category?
|
||||
suspend fun awaitAll(): List<Category>
|
||||
suspend fun awaitDefault(): Category // returns the isDefault=true "Other" category
|
||||
suspend fun awaitDefault(): Category // returns the isDefault=true "Uncategorized" category
|
||||
}
|
||||
```
|
||||
|
||||
@@ -87,7 +87,7 @@ class DeleteCategory(
|
||||
getCategories: GetCategories,
|
||||
) {
|
||||
suspend fun await(id: Long)
|
||||
// internally: reassign orphaned expenses to "Other", then delete
|
||||
// internally: reassign orphaned expenses to "Uncategorized", then delete
|
||||
}
|
||||
```
|
||||
|
||||
@@ -183,3 +183,16 @@ class ExportExpensesToCsv(expenseDao: ExpenseDao, categoryDao: CategoryDao, cont
|
||||
suspend fun await(range: DateRange, outputUri: Uri): Result<Unit>
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Feature: data
|
||||
|
||||
Wipe-all-data administrative action. Triggered from `SettingsScreen` "Clear all data" `AlertDialogPreference`.
|
||||
|
||||
### `ClearAllData`
|
||||
```kotlin
|
||||
class ClearAllData(database: AppDatabase) {
|
||||
suspend fun await() // deletes all rows from every table
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user