A continuation of HomeBox the inventory and organization system built for the Home User
fix: Allow up to 1000 characters for label description (#948)
Michael Manganiello8af1e8fcbaf1
diff --git a/backend/app/api/static/docs/docs.go b/backend/app/api/static/docs/docs.goindex 65ab97a9..cbf1d5a8 100644--- a/backend/app/api/static/docs/docs.go+++ b/backend/app/api/static/docs/docs.go@@ -3639,7 +3639,7 @@ const docTemplate = `{},"description": {"type": "string",- "maxLength": 255+ "maxLength": 1000},"name": {"type": "string",diff --git a/backend/app/api/static/docs/swagger.json b/backend/app/api/static/docs/swagger.jsonindex 764c05bd..75c84cd7 100644--- a/backend/app/api/static/docs/swagger.json+++ b/backend/app/api/static/docs/swagger.json@@ -3637,7 +3637,7 @@},"description": {"type": "string",- "maxLength": 255+ "maxLength": 1000},"name": {"type": "string",diff --git a/backend/app/api/static/docs/swagger.yaml b/backend/app/api/static/docs/swagger.yamlindex cf9eae6a..e47ad0df 100644--- a/backend/app/api/static/docs/swagger.yaml+++ b/backend/app/api/static/docs/swagger.yaml@@ -1012,7 +1012,7 @@ definitions:color:type: stringdescription:- maxLength: 255+ maxLength: 1000type: stringname:maxLength: 255diff --git a/backend/internal/data/repo/repo_labels.go b/backend/internal/data/repo/repo_labels.goindex 6238a8b3..fab7a1ec 100644--- a/backend/internal/data/repo/repo_labels.go+++ b/backend/internal/data/repo/repo_labels.go@@ -20,14 +20,14 @@ type LabelRepository struct {type (LabelCreate struct {Name string `json:"name" validate:"required,min=1,max=255"`- Description string `json:"description" validate:"max=255"`+ Description string `json:"description" validate:"max=1000"`Color string `json:"color"`}LabelUpdate struct {ID uuid.UUID `json:"id"`Name string `json:"name" validate:"required,min=1,max=255"`- Description string `json:"description" validate:"max=255"`+ Description string `json:"description" validate:"max=1000"`Color string `json:"color"`}diff --git a/docs/en/api/openapi-2.0.json b/docs/en/api/openapi-2.0.jsonindex 764c05bd..75c84cd7 100644--- a/docs/en/api/openapi-2.0.json+++ b/docs/en/api/openapi-2.0.json@@ -3637,7 +3637,7 @@},"description": {"type": "string",- "maxLength": 255+ "maxLength": 1000},"name": {"type": "string",diff --git a/docs/en/api/openapi-2.0.yaml b/docs/en/api/openapi-2.0.yamlindex cf9eae6a..e47ad0df 100644--- a/docs/en/api/openapi-2.0.yaml+++ b/docs/en/api/openapi-2.0.yaml@@ -1012,7 +1012,7 @@ definitions:color:type: stringdescription:- maxLength: 255+ maxLength: 1000type: stringname:maxLength: 255diff --git a/frontend/components/Label/CreateModal.vue b/frontend/components/Label/CreateModal.vueindex aec9dbbb..74fa1c3c 100644--- a/frontend/components/Label/CreateModal.vue+++ b/frontend/components/Label/CreateModal.vue@@ -12,7 +12,7 @@<FormTextAreav-model="form.description":label="$t('components.label.create_modal.label_description')"- :max-length="255"+ :max-length="1000"/><ColorSelector v-model="form.color" :label="$t('components.label.create_modal.label_color')" :show-hex="true" /><div class="mt-4 flex flex-row-reverse">diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.tsindex 3ae47355..279c9a24 100644--- a/frontend/lib/api/types/data-contracts.ts+++ b/frontend/lib/api/types/data-contracts.ts@@ -648,7 +648,7 @@ export interface ItemUpdate {export interface LabelCreate {color: string;- /** @maxLength 255 */+ /** @maxLength 1000 */description: string;/*** @minLength 1diff --git a/frontend/pages/label/[id].vue b/frontend/pages/label/[id].vueindex 34819c64..d9abeaf4 100644--- a/frontend/pages/label/[id].vue+++ b/frontend/pages/label/[id].vue@@ -129,7 +129,7 @@<FormTextAreav-model="updateData.description":label="$t('components.label.create_modal.label_description')"- :max-length="255"+ :max-length="1000"/><ColorSelectorv-model="updateData.color"