Problem/Motivation

It would be nice to set the estimated read time manually. Since the module already uses a field, we can use a switch in the field widget in the same style of, e.g., pathauto alias or menu item widget.

Depends on #3377695: Introduce services to make testing easier!

Remaining tasks

Review merge request.
Add tests after #3377695: Introduce services to make testing easier.

User interface changes

The estimated read time field widget offers a switch to manually set the read time.

Data model changes

Changes the estimated read time field schema and adds a boolean field auto. After updating the module a database update is required.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

simonbaese created an issue. See original summary.

simonbaese’s picture

Status: Active » Needs review

Please do not forget to updb before testing.

simonbaese’s picture

simonbaese’s picture

Title: [PP-1] Introduce switch to manually set read time » Introduce switch to manually set read time
simonbaese’s picture

Title: Introduce switch to manually set read time » [PP-1] Introduce switch to manually set read time
Status: Needs review » Postponed

Actually putting this issue back to pp-1, because it will make sense to add test coverage after #3351967: Add kernel tests!

simonbaese’s picture

Title: [PP-1] Introduce switch to manually set read time » Introduce switch to manually set read time
Status: Postponed » Needs work
simonbaese’s picture

Will update the MR with the recent changes soon.

simonbaese’s picture

Status: Needs work » Needs review
mtalt’s picture

Assigned: simonbaese » mtalt
Status: Needs review » Reviewed & tested by the community

  • mtalt committed 726df527 on 1.0.x authored by simonbaese
    Issue #3377947 by simonbaese, mtalt: Introduce switch to manually set...
mtalt’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs followup

Looks great @simonbaese. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.