📖 Pharmafusion Tablet Catalogue — Complete Visual User & Technical Manual
Official Field & Engineering Reference

Pharmafusion & KISS Professional Tablet Catalogue Manual

Complete visual guide covering (1) Field Representative Navigation & Hidden Power Controls, (2) 1-Click Wi-Fi & 100% Offline Tablet Synchronisation, and (3) Visual FoxPro Product CRUD, Packshot Scraping & Antigravity Automation.

Part 1 • Section 1.1

1.1 Splash Screen (Brand Cover) Controls

When you open the catalogue from the tablet Home Screen, you start on the Pharmafusion Official Brand Cover:

Annotated Splash Cover Controls
CalloutControl / ButtonFunction & Hidden Tips
1📶 ServerOpens the Home Server & Wi-Fi Sync Dashboard to test connection speed (⚡ Ping) and run 1-Click Wi-Fi Sync Now before leaving home.
2⛶ LandscapeLocks the tablet into edge-to-edge Full Screen Presentation Mode (hiding Android/iOS browser bars).
3⚙️ ShortcutsCustomises the 8 Featured Brand Cards on the Splash Screen (change title, subtitle, target page, or packshot image).
4📖 ManualOpens this Visual User & Technical Manual (and its downloadable PDF) directly from the tablet Splash Screen, 100% offline.
5Explore Catalogue ➔Enters the interactive catalogue at Page 1.
6🚪 ExitGracefully exits Full Screen mode and closes the catalogue window.
7Category Quick-Jump TilesTap any category tile (Nail Care, Eye Make-Up, Footcare, Hair & Scalp, Spa & Body, Skin Care, First Aid) to open the catalogue filtered to that category.
88 Featured Brand CardsOne-tap shortcuts to your 8 flagship brand lines (KISS Lashes, Pura Hair Dye, Ciesse Spa, KISS Nails, Revitale, Fresco Footcare, SunSense, STR Nordic).
9🏢 Pharmafusion Ltd. DetailsOpens the Corporate & Banking Details modal (VAT No., Reg No., and BOV IBAN with 1-Click Copy IBAN).
Part 1 • Sections 1.2 – 1.4

1.2 Main 50/50 Presentation Stage & 2× Scrollable Salon Shade Palette

Inside the catalogue, the screen is split 50/50 between the Visual Studio Stage (left) and the Commercial Table (right):

Annotated Main Presentation Stage and Shade Palette
CalloutControl / AreaFunction & Hidden Power Features
1☰ All Pages SorterOpens a full-screen thumbnail grid of all pages so you can visually jump to any page in one tap.
2🔍 Instant Search BoxType any SKU code (e.g. P023, F-02120-01), shade name, or keyword. Hidden Power Feature: On multi-product pages, searching a product automatically selects that item, spotlights its packshot/swatch, highlights its table row in gold, and scrolls the table so the matched row is centered!
3● In Stock ToggleFilters the catalogue in real time to show only products with live stock > 0, hiding out-of-stock rows and pages during customer presentations.
4📄 PDF / Print & Cover✨ Cover returns to the Splash Screen; ⛶ Fullscreen toggles full-screen mode; 📄 PDF formats the page for wireless printing or PDF export.
5Hero Packshot StageSingle Tap the hero packshot to open the Floating Zoom Spotlight Modal. Swipe Left/Right across the stage to turn to the next/previous catalogue page. On multi-product pages with distinct items, use the top-right ⊞ Show All / 🔍 Spotlight button to switch between grid view and single spotlight carousel.
62× Scrollable Salon Shade Palette (3× Swatches)Appears on Haidu Gel Effect Nail Polish (000383, 000384) and Pura Permanent Hair Dye (000356). Features 3× oversized nail/hair swatches (78×126px) in a 2× tall vertically scrollable tray. Single Tap any swatch to select it and scroll the table to that SKU; Double Tap to open the Zoom Modal. Out-of-stock shades are automatically ghosted with an OOS badge.
7Interactive Commercial SKU TableDisplays SKU, Product Name, Live Stock Badge (In Stock / Out of Stock), Promotion (5+1), Retail Price (incl. 18% VAT), and Nominal Margin (20%). Single Tap a row to spotlight that product; Double Tap a row to open the Zoom & Margin Calculator Modal.
8Category Pills & Page Turn ArrowsTap any bottom category pill to switch chapters, or tap ◀ / ▶ (or swipe left/right on the table) to turn pages.
Part 1 • Section 1.5

1.3 Floating Inspection Spotlight Modal & Margin Calculator

Tapping any hero packshot or double-tapping any table row / shade swatch opens the Floating Inspection Spotlight Modal:

Annotated Spotlight Modal Controls
CalloutControl / AreaFunction & Hidden Power Features
1High-Res Zoomable ViewportPinch with two fingers on the tablet (or scroll the mouse wheel on laptop) to zoom up to 4× and drag with one finger to pan across fine packaging text.
2Stepped Zoom BarTap 🔍 + to zoom in, ↺ Fit to Screen to reset, or 🔍 − to zoom out.
3Live Pharmacy Commercial Margin CalculatorDisplays the Recommended Retail Price (incl. 18% VAT), Wholesale Unit Cost (exc. VAT), Profit Margin per Unit (20%), and the ★ 5+1 Bonus Impact box showing how ordering 5+1 boosts the pharmacist's realized profit margin to 44% – 52.5%.
4Order Quantity StepperTap − / + or type a quantity to prepare the order line.
5✓ Add to Order PadAdds the selected SKU and quantity to the order pad.
6Backdrop Tap-Through (Hidden Power Feature)You do not need to tap ✕ first to click something behind the modal. Tapping anywhere outside the modal card (e.g. directly on another SKU row, a shade chip, or the Next Page arrow) closes the modal and executes that underlying click immediately in one tap.
Part 2 • Device Synchronisation

2.1 Home Server & 1-Click Offline Synchronisation

Tapping 📶 Server on the Splash Screen opens the expanded Home Server & Wi-Fi Sync Dashboard:

Annotated Home Server and Sync Dashboard
CalloutControl / IndicatorHow It Works
1Live Laptop Connection BannerShows green (Connected to Home Server) when your laptop is running Start_Catalogue_Server.bat on local Wi-Fi, or amber (Offline Mode Active) when you are visiting pharmacies with the laptop off.
2⚡ Ping ButtonTests live Wi-Fi response time in milliseconds between the tablet and laptop.
3Home Wi-Fi Preset (192.168.1.70:8085)One-tap preset for your laptop's local IP address.
4🔄 1-Click Wi-Fi Sync NowTriggers a live 0.28s Visual FoxPro ERP extraction on the laptop, saves all 697 products & 173 pages into tablet localStorage, and downloads all high-resolution packshots into the tablet's persistent IndexedDB vault.
5Offline Storage CounterConfirms how many product pictures are permanently stored inside the tablet's offline IndexedDB memory (`pharmafusion_offline_vault`).

One-Time Setup for Any Future Android Tablet

  1. Double-click Start_Catalogue_Server.bat on the laptop.
  2. Open Chrome on the new tablet and paste into the address bar:
    chrome://flags/#unsafely-treat-insecure-origin-as-secure
  3. Enter http://192.168.1.70:8085 into the text box, set the dropdown to Enabled, and tap Relaunch (this allows Chrome's offline Service Worker to run over local HTTP Wi-Fi).
  4. Open http://192.168.1.70:8085, tap the Chrome ⋮ menu ➔ Add to Home screen, then tap 📶 Server ➔ 🔄 1-Click Wi-Fi Sync Now.
Part 3 • VFP ERP CRUD, Packshot Scraping & Antigravity

3.1 Product CRUD, Packshot Standardization & Antigravity Workflows

1. Live Stock & Price Sync (sync_live_vfp_to_catalogue.py)

Whenever serve.py starts or a tablet taps 1-Click Wi-Fi Sync Now, sync_live_vfp_to_catalogue.py reads your Visual FoxPro tables in binary in 0.28 seconds:

2. Adding, Updating, or Discontinuing Products (CRUD)

3. The 800×800 RGBA Lanczos Packshot Scraping & Standardization Pipeline

4. Copy-Paste Prompt Recipes for Antigravity

To perform any catalogue update automatically in future sessions, simply paste one of these prompts into Antigravity:

Replace / Scrape a Product Image:
"Product <CODE> (<NAME>) on page <PAGE_ID> has the wrong picture. Find the official packshot from the supplier catalogue PDF or web, standardize it to an 800×800 transparent PNG using our Lanczos pipeline, save it to tablet_app/images/ and C:\nirvana_ent\product_images_small\, and bump UPDATED_IMAGE_PATCH_ID in app.js so the tablets refresh it on sync."
Discontinue Products:
"The following products are discontinued: <list product names or codes>. Mark them DISCONTINU = .T. in C:\nirvana_ent\data\products.dbf, hide their page in product_catalogue.dbf if no products remain on that page, and remove them from tablet_app/catalogue_data.json."
Add New Products from Visual FoxPro:
"I have added new products in Visual FoxPro (products.dbf) under supplier <SUPPLIER> / page <PC_ID>. Please read products.dbf, scrape and standardize their 800×800 packshot images from the supplier catalogue/website into tablet_app/images/ and C:\nirvana_ent\product_images_small\, add them to tablet_app/catalogue_data.json, and run sync_live_vfp_to_catalogue.py."