CLIENTS · OFFICIAL PROMPT

Align one capability across clients

Define a shared contract, then implement it in Electron, Expo and the backend. Verify success, empty, failure, permission and recovery flows. Preserve released-client compatibility instead of copying retired native code.

Difficulty
Advanced
Stage
Development · Verification
Version
v1.1.0
Updated
2026-10-30

OUTCOMES

What this Prompt helps you deliver

  • The shared contract is clear
  • Target-client behavior and acceptance criteria agree

BEFORE YOU START

Before you start

  • The user flow to align is explicit
  • At least two target clients can run

What AI should inspect first

apps/tabtin-electronapps/tabtin-expopackages

READY TO RUN

Complete Prompt

Copy the complete Prompt with its execution and acceptance boundaries.

The independent Swift/Kotlin projects are retired. iOS and Android are targets of apps/tabtin-expo, which owns platform configuration, plugins, production/local identities and EAS profiles.

Align a TabTin capability across multiple clients from the real user flow and a shared contract. Do not mechanically port one platform’s UI components to another.

Read AGENTS.md, platform rules, and the relevant code in apps/tabtin-electron, apps/tabtin-expo, apps/tabtin-expo, and packages. Confirm the user goal, target clients, and current differences. Trace user action → client state → API/realtime event → persistence → rerender on each client. Identify shared behavior and legitimate platform differences. The backend API must remain compatible with released clients.

Define platform-neutral state, inputs, outputs, errors, and permissions. Place shared business rules in a reusable domain or protocol layer, then implement within each platform’s navigation, lifecycle, accessibility, and offline conventions. New backend fields must be optional with safe defaults, and old clients must still request and parse responses. Do not change Daemon or a deprecated path merely for visual symmetry.

Run type checking and relevant tests by default. Build, install or publish only when explicitly requested, following the Expo README. State device-only coverage separately; web previews are not device acceptance.

Report a difference table with old behavior, target behavior, implementation per client, evidence, accepted platform differences, API-compatibility conclusion, and uncovered devices. Do not commit or release clients without permission.