Skip to content

Feature/read progress tracking#1327

Open
Nareshkumawat-star wants to merge 5 commits into
SB2318:mainfrom
Nareshkumawat-star:feature/read-progress-tracking
Open

Feature/read progress tracking#1327
Nareshkumawat-star wants to merge 5 commits into
SB2318:mainfrom
Nareshkumawat-star:feature/read-progress-tracking

Conversation

@Nareshkumawat-star

Copy link
Copy Markdown

PR Description

This PR introduces Read Progress Tracking for articles, allowing users to seamlessly resume reading long-form content.

Key Changes:

  • Local Storage (ReadProgress.ts): Implemented AsyncStorage utility to safely save and fetch scroll progress (0-100%).
  • Global State (dataSlice.ts): Added a readProgress dictionary to the Redux store. Progress for all saved articles is loaded globally on app launch via HomeScreen.tsx.
  • Continue Reading Prompt (ArticleScreen.tsx): Added onScroll listeners to calculate scroll percentage dynamically. If a user revisits an article and has read between 10% and 95%, a non-intrusive floating "Continue Reading" prompt appears, allowing them to tap "Resume" and automatically scroll to their previous position.
  • Progress Bar Indicator (ArticleCard.tsx): Integrated a subtle, horizontal progress bar at the bottom of the article card container on list screens to visually indicate the user's progress.
  • Note: Backend synchronization was not implemented as the Node.js backend repository was not available in the workspace. Progress is strictly stored on-device.

Type of Change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update

Select your work-area

  • Frontend
  • Backend
  • Documentation
  • Others

Related Issue

N/A

Fixes #1274

N/A

Checklist

  • I have updated my branch and synced it with the project's 'develop' branch before making this PR.
  • I have optimized the file changes.
  • I have added a snapshot of my work example.
  • I have made a PR to the project's develop branch.

Undertaking

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Thank you @, for creating the PR and contributing to our UltimateHealth project 💗.
Our team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🔐[Security]: Implement Rate Limiting on Backend API Endpoints

1 participant