From b26b0293b2b2f1b36045b6455fb1aa6b4914bf71 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 18 Feb 2026 19:26:49 -0300 Subject: [PATCH 1/2] refactor: upper case first Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- lib/Enum/FileStatus.php | 10 +++++----- src/utils/fileStatus.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Enum/FileStatus.php b/lib/Enum/FileStatus.php index 0fc90639b1..7395a8d747 100644 --- a/lib/Enum/FileStatus.php +++ b/lib/Enum/FileStatus.php @@ -28,19 +28,19 @@ enum FileStatus: int { public function getLabel(IL10N $l10n): string { return match($this) { // TRANSLATORS Name of the status when document is not a LibreSign file - self::NOT_LIBRESIGN_FILE => $l10n->t('not LibreSign file'), + self::NOT_LIBRESIGN_FILE => $l10n->t('Not LibreSign file'), // TRANSLATORS Name of the status that the document is still as a draft - self::DRAFT => $l10n->t('draft'), + self::DRAFT => $l10n->t('Draft'), // TRANSLATORS Name of the status that the document can be signed self::ABLE_TO_SIGN => $l10n->t('Ready to sign'), // TRANSLATORS Name of the status when the document has already been partially signed self::PARTIAL_SIGNED => $l10n->t('Partially signed'), // TRANSLATORS Name of the status when the document has been completely signed - self::SIGNED => $l10n->t('signed'), + self::SIGNED => $l10n->t('Signed'), // TRANSLATORS Name of the status when the document was deleted - self::DELETED => $l10n->t('deleted'), + self::DELETED => $l10n->t('Deleted'), // TRANSLATORS Name of the status when the document is currently being signed - self::SIGNING_IN_PROGRESS => $l10n->t('signing in progress'), + self::SIGNING_IN_PROGRESS => $l10n->t('Signing in progress'), }; } } diff --git a/src/utils/fileStatus.js b/src/utils/fileStatus.js index dc977a16f3..b1d71f1e4c 100644 --- a/src/utils/fileStatus.js +++ b/src/utils/fileStatus.js @@ -18,7 +18,7 @@ import { FILE_STATUS } from '../constants.js' const STATUS_CONFIG = { [FILE_STATUS.NOT_LIBRESIGN_FILE]: { - label: () => t('libresign', 'not LibreSign file'), + label: () => t('libresign', 'Not LibreSign file'), icon: mdiFileDocument, }, [FILE_STATUS.DRAFT]: { From ead6c9b88c46de05c8c91dc49cc01c6771c2e80b Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:11:19 -0300 Subject: [PATCH 2/2] fix: upper case first at status Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/integration/features/file/envelope.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/features/file/envelope.feature b/tests/integration/features/file/envelope.feature index c60510a327..f8da38ead1 100644 --- a/tests/integration/features/file/envelope.feature +++ b/tests/integration/features/file/envelope.feature @@ -63,7 +63,7 @@ Feature: envelope | (jq).ocs.data.message | Success | | (jq).ocs.data.name | Single Document | | (jq).ocs.data.status | 0 | - | (jq).ocs.data.statusText | draft | + | (jq).ocs.data.statusText | Draft | | (jq).ocs.data.nodeType | file | | (jq).ocs.data.files[0].name | Single Document | | (jq).ocs.data.files \| length | 1 | @@ -81,7 +81,7 @@ Feature: envelope | (jq).ocs.data.message | Success | | (jq).ocs.data.name | Contract Package | | (jq).ocs.data.status | 0 | - | (jq).ocs.data.statusText | draft | + | (jq).ocs.data.statusText | Draft | | (jq).ocs.data.nodeType | envelope | | (jq).ocs.data.files[0].name | Contract | | (jq).ocs.data.files[1].name | Annex |