Files
pakkit/docs/DESIGN.md
T
Meghdad 17f0609a3a feat: polish Pakkit and strengthen release readiness
- Improve Wear splash, ongoing status, and progress focus
- Refine browser accessibility and connection recovery
- Add offline privacy and open-source notices
- Harden installation approval and storage error handling
- Expand emulator coverage and release artifact checks
- Document Play publication gates and hardware validation
2026-10-15 23:25:36 +03:30

46 lines
5.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Pakkit design
**Pakkit — Pack it. Send it. Wear it.** This is the official brand tagline. The identity is friendly, playful and polished: an open parcel with a floating app tile, soft geometry, violet lighting and mint/cyan accents.
## Implemented assets
- `app/src/main/res/drawable/pakkit_icon.xml`: gradient parcel artwork used by the watch header, splash and adaptive launcher.
- `pakkit_mark.xml`: monochrome launcher/notification mark.
- `app/src/main/assets/web/index.html`: original inline vector parcel illustration and compact wordmark icon. These are real SVG elements, not screenshots.
- `ui/WatchDesign.kt`: only the native watch’s actual text, action, badge, color and shape primitives.
- `ui/GlyphDrawable.kt`: check/error glyphs, paired with explanatory text.
- `ui/RoundScrollView.kt`: bezel position indication and native rotary/touch scrolling, redrawn in response to scroll changes.
## Themes and layout
The native watch UI uses black `#000000` to limit lit OLED pixels, lavender-white text and semantic mint/error surfaces. Body and secondary copy, badges and action gradient endpoints have automated contrast checks. Actions have a minimum 48 dp height and scalable text. Proportional margins and bottom padding allow controls to move into the usable center of a round display. The QR is sized to screen width and positioned within the circular safe area; the ordinary fixed-port address is readable below the QR, without a link-details step. The home screen pairs a compact parcel/wordmark with a visible receiving action. Source permission is requested at the app review, where its purpose is clear.
The browser leads with the official tagline, original parcel artwork and a compact Choose / Send / Wear indicator. The compact state indicator replaces a lengthy journey explainer. It follows prefers-color-scheme with an explicit remembered toggle. Dark is midnight with violet/cyan lighting; light uses soft lavender and white surfaces. A two-column desktop layout becomes a single-column layout at smaller widths. The maintained CSS, HTML and JavaScript are readable source files, formatted with the optional web development tools. Native browser controls, semantic headings, focus rings, file labels and a live status region support keyboard and assistive access.
## Motion and product states
The watch has static decorative artwork and a finite 180 ms screen entrance when system animation is enabled. Progress updates do not restart it. Browser motion is a finite parcel entrance and short hover/press feedback; prefers-reduced-motion disables these. There are no continuous particle effects or decorative render loops. Polling pauses in hidden tabs.
Upload progress reflects actual XHR bytes sent and socket bytes read. “100% sent” transitions to package checking, never to an installation-success claim. The browser distinguishes upload, verification, watch review, system approval, failure and success. Android STATUS_SUCCESS is the authority for “installed”. Cancelling an HTTP request does not imply a rollback of a file the watch may already have received.
Keep copy precise: preflight does not certify safety or runtime compatibility. Source approval and system consent are explicit decisions. The trust disclosure describes unencrypted local HTTP without claiming encryption.
## Product voice
Write for the person wearing the watch: short, warm, specific and calm. Let the parcel, color and interactions carry the playfulness. Use APK when a file type matters; use app in actions and outcomes. Never introduce architectural history, development setup or platform API names into the product interface. Keep necessary connection privacy information accessible in context rather than repeating warnings throughout the journey.
| Moment | Watch | Browser |
| --- | --- | --- |
| Start | Pakkit + official tagline; Start receiving | Official tagline; Choose app |
| Connect | Scan to connect; Allow browser | A quick hello; Connected to your watch |
| Transfer | On its way + actual percentage | On its way + actual percentage |
| Check | Just checking… | Just checking… |
| Review | Ready to install; Install or contextual Allow installs | Made it to your watch |
| Approval | Continue, with recovery action | One tap closer |
| Success | All yours.; Open app | Looks good on you. |
| Failure | Couldn’t install + specific recovery | Let’s try that again + specific recovery |
Watch screen copy lives in Android string resources. Deliberately written package-validation messages are marked with `UserMessage`; unknown file/platform exceptions are replaced with recovery copy at the UI boundary, while installer diagnostics stay in logs. Notification copy follows the same voice. There are no key-entry forms, expiry countdowns, file-size warnings or repeated watch-layout warnings. The app name and official tagline are shared branding resources. Browser result changes are announced with a live region, and color is never the only state indicator.
Final polish: the watch uses a black canvas and a launcher-matched 48 dp branded splash. Receiving remains reachable from the watch face through the official Ongoing Activity. Progress preserves the same view tree; notification phase changes are coalesced and silent. Privacy is a quiet home action with offline text and readable paragraph headings. The browser retains theme choice and moves keyboard focus out of disappearing controls without stealing it during polling.