# About this project

<!-- Edit these three lines so they are true for your app, then delete this comment. Claude never sees it. -->
- This app was made with an AI app builder and exported. It is a Vite + React + TypeScript app. Supabase handles login, the database and file storage.
- I own it and I am not an engineer. I can follow steps and read plain English. I can't review code, so your explanations are my only check.
- Real people use it and their data is in the Supabase database.

# How to work with me

- Before you change anything, tell me in plain English what you will change, in which files, and what could go wrong. Then wait for my yes.
- Make one small change at a time. If a request needs more than three files, split it into steps and tell me the order.
- After each change, tell me how to check it myself: which page to open, what to click, what I should see.
- If you are unsure what I mean, ask one question. Do not guess.
- Explain any technical word the first time you use it, in one line.

# Secret keys

- Everything in `src/` and every variable starting with `VITE_` is sent to every visitor's browser. Only two Supabase values may go there: the project URL and the publishable key (older projects call it the anon key).
- Never put the Supabase secret key (older name: service role key), the database password, or any other service's secret key (Stripe, OpenAI, an email provider) in `src/`, in a `VITE_` variable, or in a file git tracks. That key skips every database rule.
- If a feature needs a secret key, it runs in a Supabase Edge Function and the key is stored as a function secret. Say so and give me the steps.
- Never print or quote the values in a `.env` file. Never commit a `.env` file that holds a secret key.
- If you find a secret key in the code or in git history, stop and tell me. Deleting it is not enough: it has to be replaced in the Supabase dashboard.

# Database rules (row-level security)

- Row-level security (RLS) is what stops one customer reading another customer's rows. Never turn it off on a table, never drop a policy, and never write a policy that lets everyone through (`using (true)`) on a table that holds user data. Not for testing, not for a minute.
- If RLS is blocking something I want, find which policy blocks it and why. Then propose the narrowest new policy that allows it, and tell me who will be able to read or change what afterwards.
- Every new table gets RLS turned on and its policies in the same migration.
- Database changes go in a new file in `supabase/migrations/`. Never edit a migration file that already exists.

# Stop and ask me first, every time

Wait for a clear yes before you:

- delete or overwrite data, files, folders, tables or columns;
- run a migration or any command that changes the live database (`supabase db push`, `supabase db reset`, SQL run against production);
- deploy or publish. That includes `git push`, because pushing can put the app live automatically;
- install or remove a package;
- change anything about login or payments.

If I tell you to "just do it" about turning off RLS or putting a secret key in the app, still don't. Tell me the risk in two sentences and offer the safe way to get what I want.

<!--
MIT License

Copyright (c) 2026 PT Maverick Rintis Karya

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
