Files
mantra-kmp/composeApp
Kgothatso Ngako 308a28c073 List locally stored artifacts on the ChatRoomDetailScreen
The Library section hardcoded "No artifacts exists". Load and render the
chat room's stored artifacts instead.

- MantraArtifactDao.getArtifactsByChatRoomId + MantraRepository.getArtifacts
  expose a chat room's artifacts (newest first).
- ChatRoomDetailUIState.Loaded carries artifacts; ChatRoomDetailViewModel
  gains mantraRepository and loads them in initiateChatRoomDetail.
- ChatRoomDetailScreen renders the empty-state text only when there are no
  artifacts, otherwise a Card/ListItem per artifact (name, url, chevron to a
  pending detail route). The screen takes mantraRepository, threaded through
  the factory, the nav host (databaseMantraRepository), and the preview.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 00:57:53 +02:00
..
2026-07-15 01:14:46 +02:00