Skip to content

Commit 6795464

Browse files
authored
Merge pull request #484 from AppQuality/UN-580-improved-not-specific-use-case-experience
fix(bugsbyusecase): fixed no specific useCase translation and corresponding status
2 parents 705db02 + b1cd23d commit 6795464

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/locales/it/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
"__BUGS_PAGE_USECASE_COMPLETION_3_TOOLTIP": "Stiamo facendo gli ultimi controlli sullo Use Case",
146146
"__BUGS_PAGE_USECASE_COMPLETION_4": "<0>Use case <1>completato</1></0>",
147147
"__BUGS_PAGE_USECASE_COMPLETION_4_TOOLTIP": "Siamo pronti con lo Use Case: analizza tutti i bug raccolti",
148+
"__BUGS_PAGE_NO_USECASE": "Non un caso d'uso specifico",
148149
"__BUGS_PAGE_VIEW_BUG_TOOLTIP": "Apri il bug",
149150
"__BUGS_PAGE_WARNING_POSSIBLE_EMPTY_CASES": "Al momento non abbiamo trovato bug in altri Use Case oppure il test non prevede altri Use Case",
150151
"__BUGS_READ_FILTER_ITEM_ALL": "Tutti i bug",

src/pages/Bugs/Content/BugsTable/BugsByUsecase.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,18 @@ export const BugsByUsecase = ({
4949
key={item.useCase.id}
5050
title={
5151
<>
52-
{item.useCase.title.full}
52+
{item.useCase?.id === -1
53+
? t('__BUGS_PAGE_NO_USECASE', 'Not a specific use case')
54+
: item.useCase.title.full}
5355
<MD tag="span">{` (${item.bugs.length})`}</MD>
5456
</>
5557
}
5658
item={item}
57-
footer={<CompletionTooltip percentage={item.useCase.completion} />}
59+
footer={
60+
item.useCase?.id !== -1 && (
61+
<CompletionTooltip percentage={item.useCase.completion} />
62+
)
63+
}
5864
/>
5965
))}
6066
{isDefaultView ? (

0 commit comments

Comments
 (0)