Heads up
admin_settings table not found
This page is ready to save settings into public.admin_settings as a single JSON row. Right now, it will behave like a “local preview” (you can still edit and export), but it won’t persist to Supabase until the table exists.
-- Create single-row settings store
create table if not exists public.admin_settings (
id int primary key default 1,
updated_at timestamptz not null default now(),
settings jsonb not null default '{}'::jsonb
);
-- Ensure single-row behavior (optional)
create unique index if not exists admin_settings_singleton on public.admin_settings ((id));
-- Seed row
insert into public.admin_settings (id, settings)
values (1, '{}'::jsonb)
on conflict (id) do nothing;
-- RLS (adjust to your admin policy)
alter table public.admin_settings enable row level security;
-- Example permissive policy (NOT recommended for public sites)
-- create policy "read admin_settings" on public.admin_settings for select using (true);
-- create policy "write admin_settings" on public.admin_settings for insert with check (true);
-- create policy "update admin_settings" on public.admin_settings for update using (true);
Recommended: lock this table down to admins only via RLS, since it can control pricing, features, and portal behavior.
Portal & Website
General Settings
Controls portal navigation, default links, and support destinations.
Business Name
Displayed in portal headers and emails.
Support Email
Used for contact links + notifications routing.
Main Site URL
Where public pages live.
Portal URL
Where buyers log in.
Announcement Banner
Shown at the top of the portal/website if you wire it in (optional).
Look & Feel
Branding
These values can drive logos, colors, and accents across admin + portal.
Logo URL
Used in headers + email templates.
Primary Color
Accent Color
Preview
SWVA Chihuahua
Colors update as you type.
Defaults
Pricing
Sets default pricing values used by listings, invoices, and portal payment screens.
Male Puppy Price
Female Puppy Price
Deposit Amount
Admin Fee
Payment Notes
Example: “Balance due before pickup. Deposits are non-refundable.”
Modules
Feature Toggles
Turn portal/admin modules on/off without rewriting UI.
Ops
Notifications
Where alerts should go when buyers submit forms, pay, or message.
Admin Alert Email
Send internal alerts here (edge function / email service).
SMS Number (optional)
Placeholder; actual SMS sending is server-side.
Auto-Reply Footer
Appended to automated notifications (if you wire it in).
Danger Zone
Advanced
These actions are intentionally cautious.
Note:
This page does not delete any Supabase data. “Soft reset” simply reverts the form back to defaults in this browser.