Automattic / Automattic/jetpack

SEO Tools: add suggested character count for title and description fields

Open
#30,889 0 comments 0 reactions 0 assignees View on GitHub
[Extension] SEO [Feature] SEO Tools [Plugin] Jetpack [Pri] Low Enhancement Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### What

It would be nice if the editor fields could clearly suggest how many characters should be used in both fields

### How

The SEO fields use the `CountedTextArea` component, defined here:
https://github.com/Automattic/jetpack/blob/e4806c41d04d318b4a2915efdb3eb16bd76c38c7/projects/plugins/jetpack/extensions/blocks/seo/counted-textarea.js#L5

That component includes different text when you go over a suggested limit. We use that property for the title field:

https://github.com/Automattic/jetpack/assets/426388/7382627f-fb15-4ab3-a39c-ab13d70ada43

However:

- [x] We do not use that property for the description field. #30890
- [ ] It would be nice if the suggested count was displayed from the start maybe.

***********

Internal reference:
p1684874539201249-slack-C0299DMPG

Contributor guide

Open the contributing guide

Research direction

Start with projects/plugins/jetpack/extensions/blocks/seo/counted-textarea.js and inspect how the suggested-limit text is currently shown. Trace its use in the SEO title and description fields, then verify that the suggested character counts are visible before either field exceeds its limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.