Align form maxlength attributes with DB schema limits #77

Closed
opened 2026-06-23 13:32:44 +00:00 by jmiller · 1 comment
Owner

Summary

Form field maxlength values in mokoog.xml and tag.xml don't consistently match the DB schema or TagTable validation.

Details

Field Form maxlength DB schema TagTable truncation
og_title 70 VARCHAR(255) 255
og_description 200 VARCHAR(512) 512
seo_title 70 VARCHAR(255) 255
meta_description 200 VARCHAR(255) 255

Fix

Align form maxlength to match intended limits. TagTable::check() already handles truncation as a safety net, but the form should reflect the actual allowed lengths to avoid user confusion.

Impact

Low — purely cosmetic/UX. No data loss risk since TagTable validates anyway.

## Summary Form field `maxlength` values in `mokoog.xml` and `tag.xml` don't consistently match the DB schema or TagTable validation. ## Details | Field | Form maxlength | DB schema | TagTable truncation | |-------|---------------|-----------|-------------------| | og_title | 70 | VARCHAR(255) | 255 | | og_description | 200 | VARCHAR(512) | 512 | | seo_title | 70 | VARCHAR(255) | 255 | | meta_description | 200 | VARCHAR(255) | 255 | ## Fix Align form maxlength to match intended limits. TagTable::check() already handles truncation as a safety net, but the form should reflect the actual allowed lengths to avoid user confusion. ## Impact Low — purely cosmetic/UX. No data loss risk since TagTable validates anyway.
jmiller added this to the Code Quality & Testing milestone 2026-06-23 13:32:44 +00:00
jmiller added the enhancement label 2026-06-23 13:32:44 +00:00
Author
Owner

Branch created: feature/77-align-form-maxlength-attributes-with-db-

git fetch origin
git checkout feature/77-align-form-maxlength-attributes-with-db-
Branch created: [`feature/77-align-form-maxlength-attributes-with-db-`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteOpenGraph/src/branch/feature/77-align-form-maxlength-attributes-with-db-) ```bash git fetch origin git checkout feature/77-align-form-maxlength-attributes-with-db- ```
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteOpenGraph#77