Skip to content

fix: fixed reading time bug in blogs#20

Merged
msaeedsaeedi merged 1 commit into
mainfrom
fix/issue-16
Jun 22, 2026
Merged

fix: fixed reading time bug in blogs#20
msaeedsaeedi merged 1 commit into
mainfrom
fix/issue-16

Conversation

@msaeedsaeedi

@msaeedsaeedi msaeedsaeedi commented Jun 22, 2026

Copy link
Copy Markdown
Member

Description

Fixed reading-time bug by using a well reputed npm library (reading-time) and refactored the code for best code quality.

Related Issues

Fixes #16
Closes #16

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (non-breaking change to README, docs, or guides)
  • Refactoring (code reorganization, styling, or performance improvement with no user-facing changes)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

  • Local Build: Ran npm run build and compiled successfully with no errors.
  • Lint/Format Check: Ran npm run lint and all Biome rules passed.
  • Browser Testing: Tested and verified page rendering and interactions on (list browsers/devices):
    • Chrome / Firefox / Safari
    • Mobile viewports (if applicable)

If applicable, please attach screenshots or screen recordings demonstrating the visual/behavioral changes:

Checklist

  • My code follows the style guidelines of this project (run npm run lint:fix and npm run format:write locally).
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or console errors.
  • I have linked any related issues.

- uses reading-time library
- refactored duplicated code
@msaeedsaeedi msaeedsaeedi self-assigned this Jun 22, 2026
@msaeedsaeedi msaeedsaeedi linked an issue Jun 22, 2026 that may be closed by this pull request
@msaeedsaeedi
msaeedsaeedi merged commit a67a318 into main Jun 22, 2026
1 check passed
@msaeedsaeedi
msaeedsaeedi deleted the fix/issue-16 branch June 22, 2026 23:46
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.

fix: Reading Time Estimation Is Inaccurate for Long Blog Posts

1 participant