For the site owner

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.

PageWhat it's for
🎟 Codes (on the ⭐ card in /web)Make, list and remove friends-and-family codes.
πŸ’² Costs & usageWhat the app uses each month: hotels, homes, maps, and the limits.
πŸ”Š Voice usageHow much of the natural voice has been used.
πŸ–Ό App picturesAdd, show or hide the cars, walkers, balloons and helicopters in the app.
πŸͺ Business portalWhere 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.

πŸ’‘ Signed in as the admin, the website never locks for you, whatever the trial says.

🎟 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.

  1. Open /web and sign in as the admin.
  2. Click the gold note under πŸ“ Where?. The ⭐ card opens.
  3. Scroll to 🎟 Friends and family codes (only you see this).
  4. Type For whom (e.g. β€œCousin Sami”), so you remember later.
  5. Starts with: the start of the code, e.g. FAMILY- or BUS_. The site remembers your choice and suggests a code like BUS_2G5WY8. You may type your own code instead (6 to 40 letters, numbers, - or _).
  6. Free until: 6 months from today unless you pick another date.
  7. 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?.

⚠ Anyone who has the link can use it. Send it only to the person it's for.

πŸ‘£ Reading the code list

You seeIt 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 yetNobody has opened it yet.
πŸ—‘ RemoveDeletes the code. It stops working at that person's next visit.
πŸ’‘ To give someone more time, make them a new code with a later date, send it, then remove the old one.

⏳ Changing the free-trial length

Every new visitor gets 14 days free from their first visit. To change the number:

  1. Open v1_0_2/merchant-portal/public/web/plus.json and change "trialDays": 14 (or ask Claude to).
  2. 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:

  1. Find the person's User UID in Authentication β†’ Users (search their e-mail; copy the UID).
  2. In Firestore, open the collection plus (or Start collection named plus).
  3. 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:

  1. 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”.
    A password change signs that account out on other computers.
  2. 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.
  3. Check who can open the Firebase project: Firebase β†’ Project settings β†’ Users and permissions. Remove anyone you don't know.
  4. Check your codes: open the ⭐ card on /web and πŸ—‘ Remove any code you didn't make.
  5. Check Plus accounts: in Firestore, the plus collection should hold only people you added.
  6. Check the bills: πŸ’² Costs & usage for anything unusual.
πŸ’‘ Do it now, before anything happens: turn on Google 2-Step Verification. It stops almost every break-in, even if someone learns your password.
⚠ KawasZone, Google and Claude will never ask you for your password by e-mail or message. Type it only on Google's own page or the website's πŸ”‘ Change password.

πŸ” 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.

  1. Sign in with Google on /web, open βš™ Settings and, under πŸ‘€ Your account, press πŸ”‘ Change password.
  2. 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.
  3. From then on, on any sign-in page, type your e-mail and that password instead of pressing the Google button.
πŸ’‘ This password is for KawasZone only; your Google password doesn't change. Google sign-in with 2-Step Verification is still the safest way in, so make this password long and use it nowhere else.

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.