NutsNews iOS Feature 6 — Reading Stats
Section titled “NutsNews iOS Feature 6 — Reading Stats”This update adds a native Reading Stats screen to the hamburger menu.
What changed
Section titled “What changed”- Adds
Reading Statsto the hamburger menu. - Adds a native stats screen showing:
- Today’s story goal progress.
- Current positive-news streak.
- Total unique stories opened.
- Saved story count.
- Private note count.
- Original story opens today.
- A simple 7-day activity chart.
- Records a story as opened when the native Article Detail screen appears.
- Records original story opens when the user taps
Open original story. - Keeps all stats private on device using
@AppStorage.
Files changed
Section titled “Files changed”NutsNews/NutsNews/Models/ReadingStatsStore.swiftNutsNews/NutsNews/Models/StoryNoteStore.swiftNutsNews/NutsNews/Features/Stats/ReadingStatsView.swiftNutsNews/NutsNews/Features/Feed/FeedView.swiftNutsNews/NutsNews/Features/Article/ArticleDetailView.swift
Install
Section titled “Install”cd /Users/ramideltoro/nutsnews-ios
zsh ~/Downloads/nutsnews-ios-feature-6-reading-stats/nutsnews_ios_feature_6_reading_stats/scripts/install_feature_6_reading_stats.sh \ ~/Downloads/nutsnews-ios-feature-6-reading-stats/nutsnews_ios_feature_6_reading_statscd /Users/ramideltoro/nutsnews-ios/NutsNews
xcodebuild \ -project NutsNews.xcodeproj \ -scheme NutsNews \ -destination 'platform=iOS Simulator,name=iPhone 17 Pro Max' \ buildTest checklist
Section titled “Test checklist”- Open the app.
- Tap the hamburger menu.
- Confirm
Reading Statsappears. - Open
Reading Statsbefore opening stories and note the starting values. - Close stats.
- Open one story.
- Close the story.
- Open
Reading Statsagain. - Confirm today’s count increased.
- Open the same story again and confirm the unique count for today does not duplicate the same story.
- Open a different story and confirm today’s count increases.
- Tap
Open original storyfrom a story and confirmOriginals todayincreases. - Save a story and confirm the saved count appears.
- Add a story note and confirm the notes count appears.
