feat: freehand drawing capability and card layout improvements and v0.2.29 release (#180)

This commit is contained in:
Doh
2025-08-21 23:04:50 -04:00
committed by GitHub
parent 31700c9a45
commit 3e6b4b75ec
43 changed files with 802 additions and 123 deletions

View File

@@ -9,12 +9,10 @@ import {
getDefaultUsersData,
CompletionCache,
getDefaultServerSettings,
User,
UserId,
} from "./types";
import {
getTodayInTimezone,
isSameDate,
t2d,
calculateCoinsEarnedToday,
calculateTotalEarned,
@@ -22,9 +20,6 @@ import {
calculateCoinsSpentToday,
calculateTransactionsToday,
getCompletionsForToday,
getISODate,
isHabitDueToday,
getNow,
isHabitDue,
getHabitFreq,
roundToInteger

View File

@@ -47,6 +47,7 @@ export type Habit = {
archived?: boolean // mark the habit as archived
pinned?: boolean // mark the habit as pinned
userIds?: UserId[]
drawing?: string // Optional JSON string of drawing data
}
@@ -61,6 +62,7 @@ export type WishlistItemType = {
targetCompletions?: number // Optional field, infinity when unset
link?: string // Optional URL to external resource
userIds?: UserId[]
drawing?: string // Optional JSON string of drawing data
}
export type TransactionType = 'HABIT_COMPLETION' | 'HABIT_UNDO' | 'WISH_REDEMPTION' | 'MANUAL_ADJUSTMENT' | 'TASK_COMPLETION' | 'TASK_UNDO';