android_catalogue1-6 Exercise 1: Build and Use the Form ======================================================== Labels expected for the creator field: Book -> "Author" CD -> "Artist" DVD -> "Director" Blu-ray -> "Director" (The format field's label also changes: "Format (hardcover, paperback...)", "Format (album, single...)", "Edition or region code".) Tapping a different type chip changes the labels at once while the typed text stays. The wiring edits, in short: 1. NavHost: composable, list "+" -> navigate(FormRoute()), detail pencil -> navigate(FormRoute(id)). 2. DetailScreen: onEditClick: (Long) -> Unit, wrapped so DetailContent keeps () -> Unit. 3. ListScreen passes onAddClick straight through; addSampleItem deleted from ListViewModel. Creation date check: on the detail screen "Added" shows the same date before and after an edit, because originalCreatedAt is read from the stored item and written back. (Both dates are usually the same calendar day while testing, so to see the difference clearly, use a time-aware format, or compare the createdAt value in the App Inspection > Database Inspector view in Android Studio.) Common problems: - Edit opens a blank form: the route was built as FormRoute() (id 0) instead of FormRoute(id). - Crash opening the form: FormScreen not inside composable {}. - Type chips missing for a moment on first launch: seeding is still running; they appear when it finishes.