29 lines
1.3 KiB
Markdown
29 lines
1.3 KiB
Markdown
# Global Client Rules and Shared Contracts
|
|
|
|
## Global Persistent UI (All Scenes)
|
|
- `Settings` button is present in every scene.
|
|
- `Report Bug` button is present in every scene.
|
|
- Placement and interaction pattern must remain consistent across scenes.
|
|
|
|
## Shared Transport Notes
|
|
- Persistent real-time session to relay/hub for presence + notifications.
|
|
- HTTPS API calls for auth/account/content operations.
|
|
- Auth model: short-lived access token + refresh token.
|
|
- Device/session id tracked by server.
|
|
- Every payload includes `requestId` and `serverTimeUtc`.
|
|
- List endpoints support paging (`page`, `pageSize`) and sorting.
|
|
|
|
## Global Input Consistency Rules
|
|
- Multi-touch support is required for touch-capable devices.
|
|
- Core camera gestures and selection semantics are shared across all scenes.
|
|
- Scene-specific controls may add actions, but must not override baseline navigation behavior.
|
|
- Input remapping and accessibility options should apply globally, not per-scene.
|
|
|
|
## Security and Validation Baseline
|
|
- Server authoritative for identity/session, ownership, deck legality, and entitlements.
|
|
- Client authoritative for rendering and non-authoritative UI state (filters/sorts).
|
|
- Every mutating request requires:
|
|
- valid access token
|
|
- account ownership check
|
|
- anti-replay safeguards (`requestId`, timestamp window)
|