Alert Component max char limit

Created on 25 October 2022, over 1 year ago
Updated 8 April 2023, about 1 year ago

Problem/Motivation

For a site with both Spanish and English content, Spanish content will tend be 30-50% longer than English. Some alerts that are originally written in English do not have enough space within the current 255 character limit for their Spanish translations.

Steps to reproduce

Try and enter more than 255 characters into the Alert Body or Alert Title.

Proposed resolution

Upgrade of the character limit of the Alert Component's field_alert_body and field_alert_title to be at least 600 characters. There may be an argument for setting these to type:string_long instead of just bumping the character limit, but 600 currently serves our purposes.

Remaining tasks

update field_alert_body
update field_alert_title

User interface changes

none

API changes

none

Data model changes

field.storage.paragraph.field_alert_body.yml => settings: max_length: 600
field.storage.paragraph.field_alert_title.yml => settings: max_length: 600

✨ Feature request
Status

Closed: outdated

Version

2.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ednark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024