feat(api): add 'streaks' to allowed widgets and settings structure.

This commit is contained in:
shay
2026-04-20 13:05:34 -04:00
parent f43beb2ef6
commit 4febce9fca
4 changed files with 95 additions and 4 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ export type Achievement = {
export type PerWidgetSettings = {
grade?: { max_tags?: number }
impact?: { line_color?: string }
streaks?: { show_dates?: boolean }
collaborators?: { max_count?: number; bar_color?: string }
focus?: { max_categories?: number }
languages?: { max_languages?: number }
@@ -36,7 +37,7 @@ export type WidgetSettings = {
const DEFAULT_SETTINGS: WidgetSettings = {
theme: 'midnight',
widgets: ['grade', 'impact', 'collaborators', 'focus', 'languages'],
widgets: ['grade', 'impact', 'streaks', 'collaborators', 'focus', 'languages'],
impactPeriod: '6mo',
customTags: [],
hiddenLanguages: [],