From 5b5bff767a85b047273b058a81909ee0d51d2ff6 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 28 May 2026 18:12:57 -0400 Subject: [PATCH] feat(android): add HomeTile model for per-tile hydration --- .../java/com/fabledsword/minstrel/models/HomeTile.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 android/app/src/main/java/com/fabledsword/minstrel/models/HomeTile.kt diff --git a/android/app/src/main/java/com/fabledsword/minstrel/models/HomeTile.kt b/android/app/src/main/java/com/fabledsword/minstrel/models/HomeTile.kt new file mode 100644 index 00000000..7ca9365b --- /dev/null +++ b/android/app/src/main/java/com/fabledsword/minstrel/models/HomeTile.kt @@ -0,0 +1,10 @@ +package com.fabledsword.minstrel.models + +/** + * A Home section entry: the stable entity [id] (always known from the + * cached_home_index) paired with its hydrated [value], or null while the + * entity row hasn't landed in Room yet. The UI renders a skeleton tile + * for null and the real card for non-null, keyed by [id] so the swap is + * a content change rather than a re-key. + */ +data class HomeTile(val id: String, val value: T?)