FM LUXE · ADMIN
Return to Shop page

Manage products

How it works:
  1. Sign in with an authorized admin account. The shop catalog syncs with Supabase; products that are not in the shop catalog are hidden here, not deleted.
  2. Add or edit a product in the form, then click Save product. Changes are published to the website. Use Search beside Add item to find products by name, category, subtitle, badge, or ID.
  3. Upload product photos up to 12 MB each. They are automatically resized before being uploaded to Supabase image storage.
  4. Use the Homepage picture panel to publish a new homepage image for all visitors or restore the original.
How to connect Supabase for the first time
  1. Create a Supabase project and get its Project URL and publishable/anon key. Do not use a service-role/secret key.
  2. Run the contents of supabase-setup.sql in the project's SQL Editor.
  3. Set the Project URL and publishable/anon key in supabase-config.js, then upload the files to your HTTPS website.
  4. Create an admin user in Supabase Authentication. Run this query in the SQL Editor to grant that email admin access:
    insert into public.admin_users (user_id)
    select id from auth.users where email = 'admin@example.com'
    on conflict do nothing;
    Replace admin@example.com with your admin email address.
  5. Open admin.html and sign in with that admin account. Your existing products will be published to the database the first time.