Skip to content

Commit

Permalink
Merge branch 'main' into deps-update
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Jul 6, 2023
2 parents 5425e02 + 7130f44 commit 3253ff7
Show file tree
Hide file tree
Showing 15 changed files with 360 additions and 296 deletions.
2 changes: 1 addition & 1 deletion client/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"error": "{{what}} error",
"manage": "Manage {{what}}",
"manageDependenciesFor": "Manage dependencies for {{what}}",
"noDataStateBody": "Create a new {{what}} to start seeing data here",
"noDataStateBody": "Create a new {{what}} to start seeing data here.",
"noDataStateTitle": "No {{what}} available",
"Nquestions": "{{n}} questions",
"ofTotalApplications": "Of {{count}} application",
Expand Down
2 changes: 1 addition & 1 deletion client/public/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"businessCriticality": "Criticidad de negocio (1=bajo, 10=alto)",
"editQuestion": "Editar {{what}}?",
"manageDependenciesFor": "Administrar dependencias para {{what}}",
"noDataStateBody": "Cree un(a) nuevo(a) {{what}} para empezar a ver datos acá",
"noDataStateBody": "Cree un(a) nuevo(a) {{what}} para empezar a ver datos acá.",
"noDataStateTitle": "No existen {{what}} disponibles",
"Nquestions": "{{n}} preguntas",
"ofTotalApplications": "De {{count}} aplicación",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,9 @@ export const ApplicationsTableAnalyze: React.FC = () => {
what: t("terms.applications").toLowerCase(),
})}
// t('terms.application')
description={
t("composed.noDataStateBody", {
what: t("terms.application").toLowerCase(),
}) + "."
}
description={t("composed.noDataStateBody", {
what: t("terms.application").toLowerCase(),
})}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,9 @@ export const ApplicationsTable: React.FC = () => {
what: t("terms.applications").toLowerCase(),
})}
// t('terms.application')
description={
t("composed.noDataStateBody", {
what: t("terms.application").toLowerCase(),
}) + "."
}
description={t("composed.noDataStateBody", {
what: t("terms.application").toLowerCase(),
})}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,9 @@ export const BusinessServices: React.FC = () => {
what: t("terms.businessServices").toLowerCase(),
})}
// t('terms.businessService')
description={
t("composed.noDataStateBody", {
what: t("terms.businessService").toLowerCase(),
}) + "."
}
description={t("composed.noDataStateBody", {
what: t("terms.businessService").toLowerCase(),
})}
/>
}
/>
Expand Down
8 changes: 3 additions & 5 deletions client/src/app/pages/controls/job-functions/job-functions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,9 @@ export const JobFunctions: React.FC = () => {
what: t("terms.jobFunctions").toLowerCase(),
})}
// t('terms.jobFunction')
description={
t("composed.noDataStateBody", {
what: t("terms.jobFunction").toLowerCase(),
}) + "."
}
description={t("composed.noDataStateBody", {
what: t("terms.jobFunction").toLowerCase(),
})}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,9 @@ export const StakeholderGroups: React.FC = () => {
what: t("terms.stakeholderGroups").toLowerCase(),
})}
// t('terms.stakeholderGroup')
description={
t("composed.noDataStateBody", {
what: t("terms.stakeholderGroup").toLowerCase(),
}) + "."
}
description={t("composed.noDataStateBody", {
what: t("terms.stakeholderGroup").toLowerCase(),
})}
/>
}
/>
Expand Down
22 changes: 21 additions & 1 deletion client/src/app/pages/controls/stakeholders/stakeholders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ import {
DescriptionListDescription,
DescriptionListGroup,
DescriptionListTerm,
EmptyState,
EmptyStateBody,
EmptyStateIcon,
Modal,
ModalVariant,
Title,
Toolbar,
ToolbarContent,
ToolbarGroup,
Expand All @@ -25,6 +29,7 @@ import {
Tr,
} from "@patternfly/react-table";
import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing";
import CubesIcon from "@patternfly/react-icons/dist/esm/icons/cubes-icon";

import {
AppPlaceholder,
Expand Down Expand Up @@ -247,7 +252,22 @@ export const Stakeholders: React.FC = () => {
<ConditionalTableBody
isLoading={isFetching}
isError={!!fetchError}
isNoData={stakeholders.length === 0}
isNoData={currentPageItems.length === 0}
noDataEmptyState={
<EmptyState variant="small">
<EmptyStateIcon icon={CubesIcon} />
<Title headingLevel="h2" size="lg">
{t("composed.noDataStateTitle", {
what: t("terms.stakeholder").toLowerCase(),
})}
</Title>
<EmptyStateBody>
{t("composed.noDataStateBody", {
what: t("terms.stakeholder").toLowerCase(),
})}
</EmptyStateBody>
</EmptyState>
}
numRenderedColumns={numRenderedColumns}
>
{currentPageItems?.map((stakeholder, rowIndex) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ export const TagCategoryForm: React.FC<TagCategoryFormProps> = ({
<SimpleSelect
variant="single"
maxHeight={DEFAULT_SELECT_MAX_HEIGHT}
placeholderText={t("composed.selectOne", {
what: t("terms.color").toLowerCase(),
})}
id="type-select"
toggleId="type-select-toggle"
toggleAriaLabel="Type select dropdown toggle"
Expand Down
3 changes: 3 additions & 0 deletions client/src/app/pages/controls/tags/components/tag-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export const TagForm: React.FC<TagFormProps> = ({ tag, onClose }) => {
<SimpleSelect
variant="single"
maxHeight={DEFAULT_SELECT_MAX_HEIGHT}
placeholderText={t("composed.selectOne", {
what: t("terms.tagCategory").toLowerCase(),
})}
id="tag-type-select"
toggleId="tag-type-select-toggle"
toggleAriaLabel="Tag Type select dropdown toggle"
Expand Down
8 changes: 3 additions & 5 deletions client/src/app/pages/controls/tags/tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,9 @@ export const Tags: React.FC = () => {
what: t("terms.tagCategories").toLowerCase(),
})}
// t('terms.stakeholderGroup')
description={
t("composed.noDataStateBody", {
what: t("terms.tagCategory").toLowerCase(),
}) + "."
}
description={t("composed.noDataStateBody", {
what: t("terms.tagCategory").toLowerCase(),
})}
/>
}
/>
Expand Down
37 changes: 26 additions & 11 deletions client/src/app/pages/external/jira/trackers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import * as React from "react";
import {
Button,
ButtonVariant,
EmptyState,
EmptyStateBody,
EmptyStateIcon,
Modal,
PageSection,
PageSectionVariants,
Text,
TextContent,
Title,
Toolbar,
ToolbarContent,
ToolbarGroup,
Expand All @@ -18,7 +22,6 @@ import {
AppTableActionButtons,
ConditionalRender,
ConfirmDialog,
ToolbarBulkSelector,
} from "@app/shared/components";
import {
FilterToolbar,
Expand All @@ -36,6 +39,7 @@ import {
Th,
TableComposable,
} from "@patternfly/react-table";
import CubesIcon from "@patternfly/react-icons/dist/esm/icons/cubes-icon";

import { useLocalTableControls } from "@app/shared/hooks/table-controls";
import { SimplePagination } from "@app/shared/components/simple-pagination";
Expand Down Expand Up @@ -108,7 +112,6 @@ export const JiraTrackers: React.FC = () => {
kind: `${t("terms.instance")} type`,
connection: "Connection",
},
isSelectable: true,
filterCategories: [
{
key: "name",
Expand All @@ -134,10 +137,8 @@ export const JiraTrackers: React.FC = () => {
const {
currentPageItems,
numRenderedColumns,
selectionState: { selectedItems },
propHelpers: {
toolbarProps,
toolbarBulkSelectorProps,
filterToolbarProps,
paginationToolbarItemProps,
paginationProps,
Expand Down Expand Up @@ -166,7 +167,6 @@ export const JiraTrackers: React.FC = () => {
>
<Toolbar {...toolbarProps}>
<ToolbarContent>
<ToolbarBulkSelector {...toolbarBulkSelectorProps} />
<FilterToolbar {...filterToolbarProps} />
<ToolbarGroup variant="button-group">
{/* <RBAC
Expand Down Expand Up @@ -218,12 +218,27 @@ export const JiraTrackers: React.FC = () => {
<ConditionalTableBody
isLoading={isFetching}
isError={!!fetchError}
isNoData={trackers.length === 0}
isNoData={currentPageItems.length === 0}
noDataEmptyState={
<EmptyState variant="small">
<EmptyStateIcon icon={CubesIcon} />
<Title headingLevel="h2" size="lg">
{t("composed.noDataStateTitle", {
what: t("terms.jiraConfig").toLowerCase(),
})}
</Title>
<EmptyStateBody>
{t("composed.noDataStateBody", {
what: t("terms.jiraConfig").toLowerCase(),
})}
</EmptyStateBody>
</EmptyState>
}
numRenderedColumns={numRenderedColumns}
>
<Tbody>
{currentPageItems?.map((tracker, rowIndex) => (
<Tr key={tracker.name}>
{currentPageItems?.map((tracker, rowIndex) => (
<Tbody key={tracker.name}>
<Tr>
<TableRowContentWithControls
{...tableControls}
item={tracker}
Expand Down Expand Up @@ -268,8 +283,8 @@ export const JiraTrackers: React.FC = () => {
</Td>
</TableRowContentWithControls>
</Tr>
))}
</Tbody>
</Tbody>
))}
</ConditionalTableBody>
</TableComposable>
</div>
Expand Down
12 changes: 5 additions & 7 deletions client/src/app/pages/identities/identities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export const Identities: React.FC = () => {
{ key: "source", value: "Source Control" },
{ key: "maven", value: "Maven Settings File" },
{ key: "proxy", value: "Proxy" },
{ key: "basic-auth", value: "JIRA Basic Auth" },
{ key: "bearer", value: "JIRA Bearer Token" },
{ key: "basic-auth", value: "Basic Auth (Jira)" },
{ key: "bearer", value: "Bearer Token (Jira)" },
];
const filterCategories: FilterCategory<
Identity,
Expand Down Expand Up @@ -280,11 +280,9 @@ export const Identities: React.FC = () => {
title={t("composed.noDataStateTitle", {
what: "credentials",
})}
description={
t("composed.noDataStateBody", {
what: "credential",
}) + "."
}
description={t("composed.noDataStateBody", {
what: "credential",
})}
/>
}
paginationProps={paginationProps}
Expand Down
18 changes: 17 additions & 1 deletion client/src/app/pages/migration-waves/migration-waves.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import {
Button,
ButtonVariant,
DropdownItem,
EmptyState,
EmptyStateBody,
EmptyStateIcon,
Modal,
ModalVariant,
PageSection,
PageSectionVariants,
Text,
TextContent,
Title,
Toolbar,
ToolbarContent,
ToolbarGroup,
Expand All @@ -17,6 +21,7 @@ import {
import { useTranslation } from "react-i18next";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import CubesIcon from "@patternfly/react-icons/dist/esm/icons/cubes-icon";

import {
useDeleteAllMigrationWavesMutation,
Expand Down Expand Up @@ -325,7 +330,18 @@ export const MigrationWaves: React.FC = () => {
<ConditionalTableBody
isLoading={isFetching}
isError={!!fetchError}
isNoData={migrationWaves.length === 0}
isNoData={currentPageItems.length === 0}
noDataEmptyState={
<EmptyState variant="small">
<EmptyStateIcon icon={CubesIcon} />
<Title headingLevel="h2" size="lg">
No migration waves available
</Title>
<EmptyStateBody>
Use the filter menu above to select your migration wave.
</EmptyStateBody>
</EmptyState>
}
numRenderedColumns={numRenderedColumns}
>
{currentPageItems?.map((migrationWave, rowIndex) => {
Expand Down
Loading

0 comments on commit 3253ff7

Please sign in to comment.