Skip to content

Add new widget for title and description#27

Merged
sneridagh merged 2 commits intomainfrom
seo-widget
Jan 26, 2026
Merged

Add new widget for title and description#27
sneridagh merged 2 commits intomainfrom
seo-widget

Conversation

@iFlameing
Copy link
Member

@iFlameing iFlameing commented Jan 2, 2026

This PR adds a new widget for the title and description, developed in coordination with VLT. When softMaxLength is passed, a yellow label is shown that hints at how much text you are exceeding as you start typing.

screenshot

seowidget

@iFlameing iFlameing requested a review from davisagli January 2, 2026 14:44
@iFlameing
Copy link
Member Author

iFlameing commented Jan 2, 2026

@iFlameing iFlameing requested a review from sneridagh January 2, 2026 15:00
Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

Does this still work if the site does NOT use a version of VLT that includes the soft_text_widget? Or is it a breaking change?

@iFlameing
Copy link
Member Author

iFlameing commented Jan 6, 2026

@davisagli it still work because default case handle it and it is same as previous version.

Copy link
Member

@sneridagh sneridagh left a comment

Choose a reason for hiding this comment

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

LGTM, relies on kitconcept/volto-light-theme#747
It will need the camelCase adjustments.

@sneridagh
Copy link
Member

@davisagli I can't recall the full reasoning behind, but we decided to not shadow the default Volto's TextWidget, for maintenance reasons, thus using the custom widget.

Another alternative is to enhance Volto's TextWidget, but initially it seemed too dirty to me. Which is your take on this?

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

I tested this with DLR, which uses kitconcept.seo but not VLT. It falls back to the default widget, so that part looks good to me.

You need to update the translations for the text that you changed.

I can't recall the full reasoning behind, but we decided to not shadow the default Volto's TextWidget, for maintenance reasons, thus using the custom widget. Another alternative is to enhance Volto's TextWidget, but initially it seemed too dirty to me. Which is your take on this?

@sneridagh It would be a nice feature to have in the standard text widget, wouldn't it? But if that's too much effort, I'm okay with the custom widget.

@sneridagh
Copy link
Member

@davisagli let's talk about it this evening.

@davisagli
Copy link
Member

@sneridagh Like I said, I don't have a strong opinion about whether to put it in Volto or VLT.

@iFlameing
Copy link
Member Author

@sneridagh please merge this and release since vlt pr got merged.kitconcept/volto-light-theme#747

cc @davisagli

@sneridagh
Copy link
Member

@sneridagh sneridagh merged commit 47163a5 into main Jan 26, 2026
6 checks passed
@sneridagh
Copy link
Member

@davisagli please can you make a release? Also, there's another PR open that you might want to merge.

@davisagli
Copy link
Member

@sneridagh @ericof releaesed 2.1.2, and I asked him to review my PR

@@ -0,0 +1 @@
Add new widget for seo title and description. @iFlameing No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

@iFlameing @sneridagh this changelog entry says "Add new". How come this is a bugfix and has been released as a bugfix release? If we manage our releases that way, we will piss off our devs who upgrade and our clients who see new features without a heads-up.

Copy link
Member

Choose a reason for hiding this comment

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

Just saw that this requires a new version of VLT. The feature alone might be worth a major version bump. I honestly don't get how so many people can check and discuss this PR an no one sees this. cc @ericof

Copy link
Member

Choose a reason for hiding this comment

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

Sorry for the tone folks. Had a bad morning...

Copy link
Member

Choose a reason for hiding this comment

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

@tisto you can read the discussion in the PR where I pointed this out and carefully tested to make sure the add-on still works (without the new widget) with older versions of VLT. It is not breaking.

You're right that it should have been a minor release and marked as a feature though.

@tisto tisto deleted the seo-widget branch January 27, 2026 08:21
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.

5 participants