# RJ Signal UI - Hybrid mobile and web-based desktop Version 1.0.0 | Reviewed 11 November 2026 | Canonical: https://rajajeevan.com/brand/#ui-kit ## Contents - [What is shared](#what-is-shared) - [Capacitor mobile adapter](#capacitor-mobile-adapter) - [Tauri desktop adapter](#tauri-desktop-adapter) - [Electron desktop adapter](#electron-desktop-adapter) - [Desktop host behaviour](#desktop-host-behaviour) - [Offline and update contract](#offline-and-update-contract) ## What is shared Share the web component layer, tokens and product services where appropriate. A hybrid host changes distribution and capability access; it does not translate DOM widgets into native OS controls. Native permission, purchase, biometric, file and share surfaces remain native. Never draw a convincing fake OS permission sheet. ## Capacitor mobile adapter Capacitor provides a native host and plugin bridge for web apps. Ionic is optional, not a requirement. If using Ionic's web components, let Ionic own their keyboard/focus/navigation behaviour and theme via its tokens. Do not mount a second competing router or modal manager around the same screen. - Account for safe areas and display cutouts; use CSS env(safe-area-inset-*) where supported, plus host configuration. Content must remain reachable when the software keyboard opens. - Define Android system Back: dismiss transient surface, then back in the app navigation stack; root behaviour follows product/platform rules. Do not exit from a half-completed form without a clear unsaved-change rule. - Preserve iOS navigation gestures; use native input modes, autofill, date/file/share pickers where needed. Test WebView separately from mobile Safari/Chrome. - Request camera/location/notification permissions at a relevant user action, explaining purpose before the system dialog. Denied and permanently denied states offer alternatives and settings guidance, never repeated coercive prompts. - Route deep links through an allowlisted destination map, validate all parameters, and require normal authentication/authorisation. A native bridge must not expose generic shell, file-system or arbitrary URL execution. - Test plugin support on every target OS/version. A plugin license and platform support are not inherited from Capacitor's MIT license. No paid plugin is required here. ## Tauri desktop adapter Tauri uses the operating system WebView and a separate core process, not a bundled identical browser on all OSs. Keep platform differences in the test matrix. Capabilities restrict window/WebView permissions; overlapping capabilities combine access, so review the effective set. Use narrow typed commands, validate inputs in the native/core layer, scope file access, and never provide a generic run-command bridge to web content. Remote content gets no privileged bridge by default. A UI confirmation is not backend authorisation. Use native window decorations unless the product has a tested custom-chrome reason. Packaging/signing/distribution is separate from this kit. ## Electron desktop adapter Electron's renderer is web UI, not a native AppKit/WinUI control tree. Context isolation separates preload/internal logic from loaded content. Expose one purpose-specific, validated bridge method per need rather than raw IPC or Node access. Keep nodeIntegration off for untrusted content, enable sandboxing where supported, validate message senders, and maintain current Electron/security updates. Review the current security guide for the actual version before shipping. Do not claim Electron/Tauri bridges are interchangeable. Their permission and process APIs differ. This kit supplies UI contracts, not a ready-made privileged bridge. ## Desktop host behaviour Preserve Cmd shortcuts on macOS and Ctrl on Windows where conventional; menu bar and window commands remain native. Provide Open/Save via native dialogs, correct file associations only on explicit product requirement, drag/drop plus picker alternative, multiple display/high-DPI tests, and keyboard access across embedded web and host controls. ## Offline and update contract Show offline versus service error distinctly. Local edits have an explicit queued/synced/conflict state. Explain what stays on device and allow discard. Never repeat financial or irreversible effects automatically when reconnecting. Signed app updates and dependency updates belong to the runtime's verified deployment process; a web UI refresh is not proof the native shell updated.