Oura Studio is a custom, high-performance, native iOS inventory and production management application designed specifically for a self-production handmade accessories business (scrunchies, headbands, etc.), actively used in a real small business to handle daily operational workflows end-to-end β from production to sales and reporting.
The core mission of this application is to solve the complex problem of accurate HPP (COGS) calculation when raw fabric roll material is nested and cut into multiple finished goods with different size dimensions, alongside managing stock ledger tracking, pricing optimization, and sales recording.
One-tap export of all active products into a Shopee Seller Centre-compatible .xlsx file. Instead of generating a raw workbook, the app duplicates Shopeeβs official master template (Shopee_mass_upload_2026-09-07_basic_template.xlsx) via openpyxl and writes data starting at Row 7 on the Template sheet β preserving the verification token and header metadata in Rows 1β6 so the file passes Shopeeβs internal parser.
scrunchie β Category ID 100146, pouch β 101650; brand field left empty; only variants with selling_price > 0 are exported.channel_id.8003 (Regular Cashless) set to Active.Variation Integration Code filled on every variant row; variant SKU auto-generated as [PARENT_SKU]-[SIZE].GET /api/v1/products/shopee-bulk-upload β download to temp β move to Documents as Shopee_Mass_Upload_<timestamp>.xlsx β present Share Sheet (UIActivityViewController) for instant AirDrop / Save to Files / WhatsApp / Email. Entry via square.and.arrow.up button in Products toolbar β ShopeeBulkUploadSheet summary (counts per category).Native BLE thermal printing for 57mm receipts and 33Γ15mm QR labels, built on CoreBluetooth (TSPLPrinterService.swift + ReceiptGenerator.swift).
UserDefaults printerUUIDString), scans with nil services to discover generic/UART printers (FFE0/FFE1), chunked writeWithoutResponse with inter-chunk delay, busy-window guard to avoid overlapping jobs, live isPrinterReady/bluetoothState publishers.Auto Print Receipt toggle in Record Sale (persisted via UserDefaults) β on Save with toggle ON, prints in background without blocking UI (toast: βReceipt printingβ¦β); manual Print Receipt + Save as PDF (PDFKit + Share Sheet) on Sales Detail with QR codes for Instagram/TikTok and 32-char/line 57mm layout.| Preview | Screen & Description |
|---|---|
01 β Home (Dashboard) β Main screen greeting the user (Good morning, Aswarhan). Today's Revenue Rp591,001 card with summary 26 transactions Β· 44 items sold Β· 99% margin. Below are Quick Actions (Buy Material, Record Production, Pattern Optimization, Profit Report), Stock Alerts (e.g., muslin salu scrunchieβ¦ Out of Stock) and Quick POS Cashier (Record Sale / Scan & Sell). Bottom navigation: Home Β· Production Β· Products Β· Sales Β· More. |
|
02 β Record Sale (POS Sheet) β Record Sale sheet for quick transactions. Sale Info section: optional customer name, Payment: Cash, toggles Paid (on) & Auto Print Receipt. Products Sold section: e.g., Black Velvet Scrunchie Β· L (Available: 1 pcs) with Qty controls, Unit Price Rp18,000, Discount Rp0, Add Product button + QR Scan icon. Summary shows Total Revenue Rp18,000. Cancel / Save buttons in the header. |
|
03 β Production βΊ Materials β Production tab with 4 sub-tabs: Materials (active), Recipe, Optimization, Production. Search Search materials..., category filters (All/Fabric/Thread/Hardware/Packaging) and fabric family filter (All Types, Generic Cotton, Yamaha Satin...). Fabric list shows weighted-average cost per meter, e.g., Dacron 5mm Β· Rp7,000/m, Red Floral Printed Cotton Β· Rp8,000/m. FAB + to add a new material. |
|
04 β Products (Finished Goods Catalog) β Products header with search & QR/Share actions. Stats cards: Total Products 67, Total Variants 240 var, Total Stock 247 pcs, Out of Stock 107 var, Capital Value Rp4,499,956 & Potential Revenue Rp4,495,081 (132 variants using selling price as cost). Toggle Filter by Stock Entry Date. Product listing e.g., nylon zipper box pouch (SKU POUKOTZIPNYL) with variants M Rp45,001 Β· 1 pcs and L Rp55,000 Β· 4. |
|
05 β QR Generator β QR Generator sheet for label printing. Search Search product or size... and toggle Filter by Stock Entry Date. Options Select All & Select all sizes. Each variant displays a QR code, size (M/L) and stock (Stock: 1 pcs), e.g., group nylon zipper box pouch (M 1 pcs, L 6 pcs) and silver zipper box pouch (M 3 pcs, L 3 pcs). QR codes are used for Scan & Sell / Scan to Stock. |
|
06 β Shopee Bulk Export β Shopee Export sheet for marketplace. Generates a Shopee-template Excel file containing Scrunchie & Pouch product details ready to upload. Summary Products Ready to Export: Scrunchie Category ID: 100146 (1 Product) and Pouch Category ID: 101650 (1 Product). Main button Download Shopee Template at the bottom. Speeds up bulk listing without manual input in Seller Centre. |
|
07 β Sales (Transaction History) β Sales screen with DateRangeField filter (Sep 20 β Sep 20, 2026) and 3 summary cards: Revenue Rp591,001, Sold 44 pcs, Transactions 26 trx. Daily invoice list e.g., INV-000112 Paid Rp28,000 (Cash Β· 2 items Β· 09:10) expandable to show item details (Black Yamaha Satin Scrunchie Β· M 1 pcs Γ Rp15,000 - Rp2,000). FAB + for new sale & QR icon at top-right. |
|
08 β More βΊ Reports & Settings β More tab with segmented control Reports (active) / Settings. Available Reports menu: Sales Report (Revenue & profit per period), Product Sales Ranking (best-selling variants), Product Margin Ranking (highest margin), Fabric Waste Analysis (waste percentage per material). This screen is the business analytics hub. |
|
09 β Sales Report (Detail) β Sales Report detail with Time Range Aug 21 β Sep 20, 2026. Summary: Total Revenue Rp2,383,826, Total Profit Rp2,319,536, Transactions 110, Pcs Sold 166 pcs. Export JSON for AI button for further analysis. Per Period table details daily revenue, e.g., 2026-08-23 Rp617,000 (26 transactions), 2026-08-30 Rp495,000 (23 transactions). |
remaining_length_cm) and weighted-average cost. Active/archived material status management.DateRangeField component..xlsx from the official master template β preserves verification token, writes from Row 7, auto-maps categories/weights/dimensions, and shares via iOS Share Sheet.TSPLPrinterService / ReceiptGenerator.async/await)APIService.swift + AppConfig.swift (base URL injected from Config/*.xcconfig β Info.plist API_BASE_URL; supports local mock mode via MockAPIService.swift).CoreBluetooth + TSPL/ESC-POS (TSPLPrinterService.swift), PDFKit for receipt PDF, UIActivityViewController for XLSX/PDF sharing; backend openpyxl for Shopee template cloning.OuraTheme.swift β elegant, consistent, responsive, and dark-mode friendly.oura studio frontend.xcodeproj in Xcode (Xcode 15+ recommended, iOS 16.5+).XCConfig β Info.plist β AppConfig.apiBaseURL:
Config/Debug.xcconfig (default: production https://ourastudiobackendseoul-763614853578.asia-northeast3.run.app/api/v1) β used for Run (Debug).Config/Release.xcconfig (production) β used for Archive / TestFlight / App Store (Release).localhost or staging without touching committed files:
cp Config/Local.xcconfig.example Config/Local.xcconfig
# edit Config/Local.xcconfig, e.g.:
# SLASH = /
# API_BASE_HOST = localhost:8000/api/v1
# API_BASE_URL = http:/$(SLASH)$(API_BASE_HOST)
Config/Local.xcconfig is gitignored and auto-included only in Debug via #include? "Local.xcconfig". Leave it absent for production default. Note: // must be built via SLASH variable because .xcconfig treats // as a comment.
β + R) to build and launch. Verify the injected URL in the built appβs Info.plist (API_BASE_URL) if needed:
# after a Debug build
plutil -p ~/Library/Developer/Xcode/DerivedData/oura_studio_frontend-*/Build/Products/Debug-iphoneos/"oura studio frontend.app"/Info.plist | grep API_BASE_URL
Frontend UI tests use Maestro (black-box, run on iOS Simulator) with Allure reporting (screenshots shown inline per test in the Attachments tab). Test scripts are in test/scripts/ and per-TC documentation is in doc/test/.
handika.oura-studio-frontend.curl -FsSL https://get.maestro.mobile.dev | bashbrew install alluretest/attach_screenshots.py).# 1. Create results directory
mkdir -p test-results/maestro
# 2. Run Maestro flow, export JUnit XML + screenshots
maestro test --format junit \
--output test-results/maestro/report.xml \
--test-output-dir test-results/maestro-artifacts \
test/scripts/TC003_DashboardFlow.yaml
# 3. Attach latest screenshots to Allure results
python3 test/attach_screenshots.py --flow TC003_DashboardFlow --tc TC-003
# 4. Generate Allure report (cleans old report first)
allure generate test-results/allure-results -o test-results/allure-report --clean
# 5. Open report in browser
allure open test-results/allure-report
test/scripts/)| File | TC ID | Scenario | Type |
|---|---|---|---|
TC003_DashboardFlow.yaml |
TC-003 | Dashboard + Buy Material sheet (read-only, does not write data) | Sanity / Positive |
TC004_TambahProdukManual.yaml |
TC-004 | Add manual product (Free Size) | Write |
TC005_TambahStokSatu.yaml |
TC-005 | Free Size stock 0 β 1 pcs | Write |
TC006_JualHargaDiskon.yaml |
TC-006 | Sell 1 pc, price Rp1,000, discount Rp1,000 β total Rp0 | Write |
Full reference (run all flows at once, merge Allure results, test-results/ folder structure, troubleshooting, CI notes): doc/test/TESTING.md.
oura studio frontend/
βββ Config/ # XCConfig per environment (Debug/Release + Local.xcconfig.example)
βββ Components/ # Shared UI components (DateRangeField, Input, etc.)
βββ Core/ # AppState, Keychain, OuraTheme (Core Configuration)
βββ Networking/ # API client (APIService + AppConfig) & Pydantic-mapped Models
βββ Screens/ # UI screens per feature (Auth, Home, Production, Products, etc.)
βββ doc/ # Handoff docs, revision specs & version history