Skip to content

Commit 0db9971

Browse files
graycreateclaude
andauthored
fix: display like count in reply list items (#52)
Fixes the bug where reply like/thanks counts were not displayed in the FeedDetail page. The data model had the 'love' and 'hadThanked' fields but they weren't being used in the UI. Changes: - Added like count display next to reply user info - Added heart icon that changes based on thanked state (filled red vs outline gray) - Like count text only appears when there are likes (following Android implementation) - Updated CLAUDE.md with device installation preference Tested on iPhone (Gray'iPhone) - build succeeds and app installs correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent abca50f commit 0db9971

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,5 @@ fastlane sync_certificates
158158
- UI Style: Light mode enforced
159159
- Website submodule: Located at `website/` (separate repository)
160160
- Create PR should always use English
161-
- **CHANGELOG.md is required** for all releases - the build will fail if the current version is missing from the changelog
161+
- **CHANGELOG.md is required** for all releases - the build will fail if the current version is missing from the changelog
162+
- Always install to Gray'iPhone if it connected, otherwise install to simulator

V2er/View/FeedDetail/ReplyItemView.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ struct ReplyItemView: View {
3636
.foregroundColor(.secondaryText)
3737
}
3838
Spacer()
39-
// Image(systemName: "heart")
39+
if info.love.notEmpty() {
40+
Text(info.love)
41+
.font(.caption)
42+
.foregroundColor(.secondaryText)
43+
}
44+
Image(systemName: info.hadThanked ? "heart.fill" : "heart")
45+
.font(.system(size: 14))
46+
.foregroundColor(info.hadThanked ? .red : .secondaryText)
4047
}
4148
RichText { info.content }
4249
Text("\(info.floor)")

0 commit comments

Comments
 (0)