Porting an existing component
Port the reusable interaction, configuration and data contract into the appropriate AppUI layer. Adapt the implementation to Vue's Composition API, public TypeScript types, Reka controls and the library's CSS theme bridge.
Translate the application boundary
| Existing responsibility | AppUI adaptation |
|---|---|
| Reads from a platform store | Props or an injected app-owned service contract |
| Calls authenticated endpoints | Emit an event or bind an explicit flow action in the app |
| Mutable page configuration | Typed page props and static default action/result metadata |
| DOM/global theme writes | Scoped CSS variables through ThemeWrapper |
| Device/recording resources | Owned tracks, cleanup, and guards against late results |
| Custom form validation | FormElement/FormRenderer or native constraints for a simple page |
| Global selectors or fixed IDs | Component refs or unique associated input IDs |
Retain intended UX, but do not retain disabled TypeScript checks, untyped event arrays, fake API imports, deferred implementation placeholders, or inaccessible clickable content. Reusable pages must also work with the complete library stylesheet outside the hosting platform.
Media blobs and action payloads should cross steps through flow context. A page's local singleton resources may be cleared when the last consumer unmounts; do not rely on a previously revoked object URL. Code creating an object URL must define who revokes it.
Update existing stories into working examples and add behavioral tests for validation, navigation, failure/retry, reset and resource cleanup. Use source-generated props/events/slots as the authoritative API. The migration guide covers app-consumer changes; testing lists required checks.