diff --git a/client/public/templates/questionnaire-template.yaml b/client/public/templates/questionnaire-template.yaml index 1e82596de5..588b826d7b 100644 --- a/client/public/templates/questionnaire-template.yaml +++ b/client/public/templates/questionnaire-template.yaml @@ -8,6 +8,9 @@ sections: - order: 1 text: What is the main technology in your application? explanation: Identify the main framework or technology used in your application. + includeFor: + - category: Technology + tag: Java answers: - order: 1 text: Quarkus @@ -17,6 +20,9 @@ sections: applyTags: - category: Technology tag: Quarkus + autoAnswerFor: + - category: Technology + tag: Quarkus - order: 2 text: Spring Boot risk: green @@ -25,6 +31,9 @@ sections: applyTags: - category: Technology tag: Spring Boot + autoAnswerFor: + - category: Technology + tag: Spring Boot - order: 3 text: Legacy Monolithic Application risk: red @@ -33,6 +42,9 @@ sections: applyTags: - category: Architecture tag: Monolith + autoAnswerFor: + - category: Architecture + tag: Monolith - order: 2 text: Does your application use a microservices architecture? explanation: Assess if the application is built using a microservices architecture. @@ -45,11 +57,17 @@ sections: applyTags: - category: Architecture tag: Microservices + autoAnswerFor: + - category: Architecture + tag: Microservices - order: 2 text: No risk: yellow rationale: Non-microservices architectures may face scalability issues. mitigation: Assess the feasibility of transitioning to microservices. + autoAnswerFor: + - category: Architecture + tag: Monolith - order: 3 text: Unknown risk: unknown @@ -59,6 +77,9 @@ sections: - order: 3 text: Is your application's data storage cloud-optimized? explanation: Evaluate if the data storage solution is optimized for cloud usage. + includeFor: + - category: Technology + tag: Java answers: - order: 1 text: Cloud-Native Storage Solution diff --git a/client/src/app/components/questions-table/questions-table.tsx b/client/src/app/components/questions-table/questions-table.tsx index 81a6f9a101..95920e67a1 100644 --- a/client/src/app/components/questions-table/questions-table.tsx +++ b/client/src/app/components/questions-table/questions-table.tsx @@ -17,7 +17,7 @@ import { useTranslation } from "react-i18next"; import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing"; import { Assessment, Question, Questionnaire } from "@app/api/models"; import { useLocalTableControls } from "@app/hooks/table-controls"; -import { Label } from "@patternfly/react-core"; +import { Label, Tooltip } from "@patternfly/react-core"; import { NoDataEmptyState } from "@app/components/NoDataEmptyState"; import AnswerTable from "@app/components/answer-table/answer-table"; import { AxiosError } from "axios"; @@ -113,7 +113,9 @@ const QuestionsTable: React.FC<{ > {(!!question?.includeFor?.length || !!question?.excludeFor?.length) && ( - + + + )} {question.text}