feat(get-user): expose Hamkar menu icon brand colors

Emit menu_icon_color and menu_icon_active_color when brandManaged so apps can theme nav icons separately.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-14 18:06:24 +03:30
co-authored by Cursor
parent 9031135797
commit 11887bc5ed
4 changed files with 25 additions and 0 deletions
+8
View File
@@ -33,6 +33,8 @@ export function buildHamkarUiFromBrand(input: {
primaryColor?: string | null
secondaryColor?: string | null
backgroundColor?: string | null
menuIconColor?: string | null
menuIconActiveColor?: string | null
settingsManaged?: boolean
brandManaged?: boolean
registryMode?: string | null
@@ -47,6 +49,8 @@ export function buildHamkarUiFromBrand(input: {
primaryColor?: string | null
secondaryColor?: string | null
backgroundColor?: string | null
menuIconColor?: string | null
menuIconActiveColor?: string | null
}
settings?: {
pricing_box_theme?: string
@@ -65,6 +69,8 @@ export function buildHamkarUiFromBrand(input: {
primaryColor: input.primaryColor || null,
secondaryColor: input.secondaryColor || null,
backgroundColor: input.backgroundColor || null,
menuIconColor: input.menuIconColor || null,
menuIconActiveColor: input.menuIconActiveColor || null,
},
settings: {
pricing_box_theme: String(input.settings?.pricing_box_theme || '1'),
@@ -83,6 +89,8 @@ export function buildHamkarUiFromBrand(input: {
primaryColor: input.defaultSnapshot.brand?.primaryColor ?? null,
secondaryColor: input.defaultSnapshot.brand?.secondaryColor ?? null,
backgroundColor: input.defaultSnapshot.brand?.backgroundColor ?? null,
menuIconColor: input.defaultSnapshot.brand?.menuIconColor ?? null,
menuIconActiveColor: input.defaultSnapshot.brand?.menuIconActiveColor ?? null,
},
settings: {
pricing_box_theme: String(