Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Reading Time Display on post views #49

Merged
merged 3 commits into from
Oct 20, 2024

Conversation

edemenkov
Copy link

This pull request done enhancements to the UI by displaying the Estimated Reading Time (ERT) for posts immediately upon the data load. Feature aims to improve user engagement, providing quick insights into post length without need for a page reload.

Changes include:

  • Modification of the post template to incorporate the reading time in a visually appealing manner.
  • Ensuring compatibility with existing features like user-specific content and post edits.
    Changed 2 files: src/views/post-queue.tpl and node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl.

Update targets better user experience by making the post interactions more efficient as well as informative.

Resolved Task #4

Copy link

@ssaigh ssaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good for me
-Adding a placeholder for estimated reading time makes sense as it allows you to target the right post
-"span id="reading-time-{posts.pid}" class="text-muted me-3"
-Adding ID to post content makes it to locate the content
-Overall mechanism for displaying the time from the function makes sense

@jdufitum jdufitum merged commit 8962b97 into CMU-17313Q:f24 Oct 20, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
3 participants