You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: refactor ZIM file creation handling and validation
- Add split-by-grapheme npm package to handle grapheme counting accurately.
- Modify ZimFile.vue to implement grapheme counting for title, description, and long description fields
- Introduce new exceptions for invalid ZIM metadata: InvalidZimTitleError, InvalidZimDescriptionError, and InvalidZimLongDescriptionError.
- Add regex python module to Pipfile and rebuilt Pipfile.lock
- Enhance backend logic in builder.py and zimfarm.py to validate ZIM metadata against grapheme limits using regex module
- Update unit tests to cover new validation rules and exceptions for ZIM metadata.
- Update ZIM file creation tests to check for disabled state of the request button
- Add frontend and backend validation of long description (max. length, min. length and difference to description)
0 commit comments