Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(studio): allow 200 chars on
person.vision
(#49)
### **User description** closes #48 ___ ### **PR Type** Bug fix, Enhancement ___ ### **Description** - Updated validation rules for `department`, `role`, and `description` fields in `person.ts`. - Increased maximum length for `description` field to 200 characters. - Refactored validation rules to use shared functions. - Renamed `venues` field to `images` in gallery schemas. - Updated validation rule to use `getExactLengthRule` in gallery schemas. - Renamed `getLengthRule` to `getExactLengthRule` and updated interface name in `validation-rules.ts`. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement </strong></td><td><table> <tr> <td> <details> <summary><strong>person.ts</strong><dd><code>Update validation rules and increase description length</code> </dd></summary> <hr> apps/studio/schemas/documents/person.ts <li>Updated validation rules for <code>department</code>, <code>role</code>, and <code>description</code> fields.<br> <li> Increased maximum length for <code>description</code> field to 200 characters.<br> <li> Refactored validation rules to use shared functions.<br> </details> </td> <td><a href="https://github.com/mheob/tsg-irlich-web/pull/49/files#diff-b5d1e4a838f06a5545229f96bc4516a22abec58c7589fd105dc9093730ead351">+13/-15</a> </td> </tr> <tr> <td> <details> <summary><strong>gallery.ts</strong><dd><code>Rename field and update validation rule</code> </dd></summary> <hr> apps/studio/schemas/single-pages/about-us/gallery.ts <li>Renamed <code>venues</code> field to <code>images</code>.<br> <li> Updated validation rule to use <code>getExactLengthRule</code>.<br> </details> </td> <td><a href="https://github.com/mheob/tsg-irlich-web/pull/49/files#diff-a6f21e36861b8bc7729df33b6bbb639bcf9f1c714cf551f8b776d5ca83f72e6b">+5/-3</a> </td> </tr> <tr> <td> <details> <summary><strong>gallery.ts</strong><dd><code>Rename field from venues to images</code> </dd></summary> <hr> apps/studio/schemas/single-pages/single-group/gallery.ts - Renamed `venues` field to `images`. </details> </td> <td><a href="https://github.com/mheob/tsg-irlich-web/pull/49/files#diff-4964412f0e1776adcbf2da32a8df0321be31bb12a23b0aff900efd3bb8c2ae09">+1/-1</a> </td> </tr> <tr> <td> <details> <summary><strong>validation-rules.ts</strong><dd><code>Rename validation rule and interface</code> </dd></summary> <hr> apps/studio/shared/validation-rules.ts <li>Renamed <code>getLengthRule</code> to <code>getExactLengthRule</code>.<br> <li> Updated interface name from <code>LengthRule</code> to <code>ExactLengthRule</code>.<br> </details> </td> <td><a href="https://github.com/mheob/tsg-irlich-web/pull/49/files#diff-e93f4590a8d9f05e518c771c3a8aa8ad67ccd8a3275749c29b42b9311cf31aaf">+2/-2</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
- Loading branch information