zesty-io / manager-ui

Content platform powering enterprise websites and applications
https://www.zesty.io
Other
37 stars 5 forks source link

Duplicate item fails #2691

Closed gtllien closed 2 months ago

gtllien commented 2 months ago

Describe the bug Duplicating an item fails when the meta description of the item to be duplicated has 160 characters;

When duplicating an item, it appends the word "(copy)" and when the item to be copied has meta description count of 160 characters it cannot be duplicated

To Reproduce Steps to reproduce the behavior:

  1. Go to a specific content item with meta description count of 160 characters
  2. Click on 'Duplicate Item'
  3. Item is not duplicated but there's no error shown in UI
  4. Check browser's network tool to see the error as below: "Bad Request: validation error: Meta Description must be shorter than 160 characters"

Expected behavior Display error message in UI so the user will know why the item cannot be duplicated;

Design limitation - can we consider not appending the word "(copy)" in the meta description?

See test video capture

https://github.com/zesty-io/manager-ui/assets/112954373/3432109f-5061-4215-a0f7-368edffa7204

finnar-bin commented 2 months ago

Duplicate of https://github.com/zesty-io/manager-ui/issues/2669

finnar-bin commented 2 months ago

@gtllien see note above. closing