From 6d29b9570bcf5d58bd090e72a0744bbab2fa9831 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:49 +0530 Subject: [PATCH] feat: add settings constants --- app/data/settings/constants.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/data/settings/constants.ts diff --git a/app/data/settings/constants.ts b/app/data/settings/constants.ts new file mode 100644 index 0000000..7017a4d --- /dev/null +++ b/app/data/settings/constants.ts @@ -0,0 +1,31 @@ +export const SETTINGS_COLLECTION = 'app_settings'; + +export const DEFAULT_SETTINGS = { + logo_required: false, + allow_svg_logos: false, + branded_qr_default: true, + brand_button: true, +}; + +export const SETTING_TOGGLES: { key: keyof typeof DEFAULT_SETTINGS; label: string; hint: string }[] = [ + { + key: 'logo_required', + label: 'Require a company logo', + hint: 'Projects can’t be saved without a logo. When off, the company name is shown instead.', + }, + { + key: 'allow_svg_logos', + label: 'Accept SVG logos', + hint: 'SVG files are converted to PNG when uploaded.', + }, + { + key: 'branded_qr_default', + label: 'Client logo on QR codes', + hint: 'Default for new assets. Each asset can turn it on or off.', + }, + { + key: 'brand_button', + label: 'Per-project button style', + hint: 'Lets each project set the button’s colour, text colour, label and size.', + }, +];