Skip to content

Commit

Permalink
Merge branch 'main' into mta-1721-3
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Feb 19, 2024
2 parents 1761bda + 9b8a0ff commit 39194e3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
6 changes: 6 additions & 0 deletions client/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@
"required": "This field is required."
},
"wizard": {
"alert": {
"sourceMode": {
"title": "Source Code Mode",
"description": "This mode focuses on analyzing the source code. Language-specific dependency configurations, like in Java's POM files, are not the primary focus and may not be fully analyzed."
}
},
"composed": {
"enable": "Enable {{what}}",
"excluded": "Excluded {{what}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ export const SetMode: React.FC<ISetMode> = ({ isSingleApp, isModeValid }) => {
<p>{t("wizard.label.notAllAnalyzableDetails")}</p>
</Alert>
)}
{mode === "source-code" && (
<Alert
variant="info"
isInline
title={t("wizard.alert.sourceMode.title")}
>
<p>{t("wizard.alert.sourceMode.description")}</p>
</Alert>
)}
{mode === "binary-upload" && <UploadBinary />}
</Form>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
MenuToggle,
MenuToggleElement,
Modal,
Tooltip,
} from "@patternfly/react-core";
import { PencilAltIcon, TagIcon, EllipsisVIcon } from "@patternfly/react-icons";
import {
Expand Down Expand Up @@ -359,9 +360,8 @@ export const ApplicationsTable: React.FC = () => {
selectOptions: [
...new Set(
applications
.flatMap(
(application) =>
application?.archetypes?.map((archetype) => archetype.name)
.flatMap((application) =>
application?.archetypes?.map((archetype) => archetype.name)
)
.filter(Boolean)
),
Expand Down Expand Up @@ -948,13 +948,15 @@ export const ApplicationsTable: React.FC = () => {

<Td isActionCell id="pencil-action">
{applicationWriteAccess && (
<Button
variant="plain"
icon={<PencilAltIcon />}
onClick={() =>
setSaveApplicationModalState(application)
}
/>
<Tooltip content={t("actions.edit")}>
<Button
variant="plain"
icon={<PencilAltIcon />}
onClick={() =>
setSaveApplicationModalState(application)
}
/>
</Tooltip>
)}
</Td>
<Td isActionCell id="row-actions">
Expand Down

0 comments on commit 39194e3

Please sign in to comment.