Admin guide
How to run KawasZone's website: friends-and-family codes, the free trial, Plus, hotel bookings and your admin pages.
π§ All admin pages π Website guideπ§ Your admin pages
Bookmark kawaszoneproduction.web.app/admin: it links to everything below.
| Page | What it's for |
|---|---|
| π Codes (on the β card in /web) | Make, list and remove friends-and-family codes. |
| π² Costs & usage | What the app uses each month: hotels, homes, maps, and the limits. |
| π Voice usage | How much of the natural voice has been used. |
| πΌ App pictures | Add, show or hide the cars, walkers, balloons and helicopters in the app. |
| πͺ Business portal | Where shops sign up and post their offers. |
π Signing in as the admin
Admin tools appear only when you're signed in with one of the two admin e-mail addresses. On the website, sign in from β Settings β π€ Your account β Sign in. The admin pages each have their own sign-in.
π Making a friends-and-family code
A code gives someone KawasZone Plus free until a date you choose. Make one code per person, so you can take one back without touching the others.
- Open /web and sign in as the admin.
- Click the gold note under π Where?. The β card opens.
- Scroll to π Friends and family codes (only you see this).
- Type For whom (e.g. βCousin Samiβ), so you remember later.
- Starts with: the start of the code, e.g.
FAMILY-orBUS_. The site remembers your choice and suggests a code likeBUS_2G5WY8. You may type your own code instead (6 to 40 letters, numbers, - or _). - Free until: 6 months from today unless you pick another date.
- Press π Make code. The link is copied for you: paste it in a text message or e-mail.
What your friend does
They open the link and Plus turns on by itself (βπ Code acceptedβ). Or they click the gold note and type the code under π Have a promotion code?.
π£ Reading the code list
| You see | It means |
|---|---|
| π’ | The code works (its date hasn't passed). |
| βͺ | The code's date has passed; it no longer works. |
| π£ last used 3 Dec (today) | The last day someone used it. It updates at most twice a day. |
| π€ not used yet | Nobody has opened it yet. |
| π Remove | Deletes the code. It stops working at that person's next visit. |
β³ Changing the free-trial length
Every new visitor gets 14 days free from their first visit. To change the number:
- Open
v1_0_2/merchant-portal/public/web/plus.jsonand change"trialDays": 14(or ask Claude to). - Deploy the website (see Deploying).
The new length counts from each person's own first visit, including people already in their trial.
β Plus for a signed-in account (without a code)
Useful for someone who uses several computers. In the Firebase console β Firestore:
- Find the person's User UID in Authentication β Users (search their e-mail; copy the UID).
- In Firestore, open the collection
plus(or Start collection namedplus). - Add document: Document ID = the UID. Add a field
until, type timestamp, with the end date. Save.
Next time they sign in on the website, they have Plus. Delete the document to take it back.
π¨ Hotel bookings
- Bookings are real and charged: they go through NuitΓ©e (liteAPI).
- Each booking is recorded in Firestore under
hotel_bookings; counts appear on π² Costs & usage. - Guests check or cancel their own bookings in π¨ Hotels β π§Ύ My bookings. The room's cancellation rule decides the refund.
- Your partner dashboard (payments, commissions) is on the liteAPI website.
π Deploying changes
Run these in the Terminal. Website pages only:
cd /Users/mokawas/Documents/KawasZone/v1_0_2/merchant-portal && firebase deploy --only hosting
Website pages and the database rules (needed when the rules change):
cd /Users/mokawas/Documents/KawasZone/v1_0_2/merchant-portal && firebase deploy --only hosting,firestore:rules
Both also update the company site (kawasllc.web.app).
π¨ If your account is ever compromised
Your admin power comes from your sign-in, so protect that first. Do these in order:
- Change the password. On the website: open β Settings; at the top, under π€ Your account, press π Change password.
- Google sign-in (a Gmail address): your password is your Google password. The button opens Google's page to change it: Change my Google password.
- E-mail and password: type the current password and the new one twice. If you can't remember it, use βForgot it? Send me an e-mailβ.
- Check your Google security at myaccount.google.com/security: turn on 2-Step Verification (a code on your phone at each new sign-in), and under Your devices sign out any you don't know.
- Check who can open the Firebase project: Firebase β Project settings β Users and permissions. Remove anyone you don't know.
- Check your codes: open the β card on /web and π Remove any code you didn't make.
- Check Plus accounts: in Firestore, the
pluscollection should hold only people you added. - Check the bills: π² Costs & usage for anything unusual.
π Signing in without Google
You can add a KawasZone password to your Google account and then sign in either way: the Google button, or your e-mail and that password. It stays the same account, so your admin powers, codes and bookings don't change.
- Sign in with Google on /web, open β Settings and, under π€ Your account, press π Change password.
- Under π Add a password for KawasZone, type a new password twice and press Add the password. If Google asks you to sign in again, do it; it's a safety check.
- From then on, on any sign-in page, type your e-mail and that password instead of pressing the Google button.
Moving to a different e-mail address (not your Gmail) makes a new account: ask Claude to add the new address to the admin list (database rules, website settings and server), then deploy.
π Good to know
- The trial and the lock are on the website only for now. The phone apps aren't locked, so they don't need codes yet.
- The lock is βsoftβ: it lives in the browser. The firm, server-checked lock comes with payment.
- Codes and the trial start are saved in each visitor's browser. A visitor who clears their browser loses a typed code; opening the link again brings it back.
- The Website guide is the page to send visitors who have questions.