🎯 Summary
When the History or Rules screens have no items, the user sees a blank screen. Add a friendly empty state with an icon and message to guide the user.
📍 Where to Look
app/src/main/java/com/hush/app/ui/screens/history/HistoryScreen.kt — The LazyColumn for history logs
app/src/main/java/com/hush/app/ui/screens/rules/RulesScreen.kt — The rules list
✅ What to Do
- Check if the list is empty before rendering the
LazyColumn
- If empty, show a centered column with:
- A Material icon (e.g.,
Icons.Outlined.Notifications for History, Icons.Outlined.Rule for Rules)
- A friendly title like "No notifications yet" or "No rules created"
- A subtitle with guidance like "Filtered notifications will appear here" or "Say something in Chat to create your first rule"
- Use
MaterialTheme.colorScheme.onSurfaceVariant for muted text styling
🧪 How to Verify
- Fresh install or clear app data
- Open History tab — should show the empty state illustration
- Open Rules tab — should show the empty state illustration
- Create a rule — the empty state should disappear and the rule should appear
💡 Hints
- Use a simple
if/else around the LazyColumn — no complex logic needed
- Look at how other Material 3 apps handle empty states for design inspiration
A small polish that makes the app feel much more professional! 🙌
🎯 Summary
When the History or Rules screens have no items, the user sees a blank screen. Add a friendly empty state with an icon and message to guide the user.
📍 Where to Look
app/src/main/java/com/hush/app/ui/screens/history/HistoryScreen.kt— TheLazyColumnfor history logsapp/src/main/java/com/hush/app/ui/screens/rules/RulesScreen.kt— The rules list✅ What to Do
LazyColumnIcons.Outlined.Notificationsfor History,Icons.Outlined.Rulefor Rules)MaterialTheme.colorScheme.onSurfaceVariantfor muted text styling🧪 How to Verify
💡 Hints
if/elsearound theLazyColumn— no complex logic neededA small polish that makes the app feel much more professional! 🙌