[Styling released bugs] Fleet UI: Consistent capitalization, consistent empty state header (#16883)

This commit is contained in:
RachelElysia 2024-02-15 13:32:55 -05:00 committed by GitHub
parent c3ec182ba6
commit 0f727001d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 12 additions and 12 deletions

View File

@ -0,0 +1 @@
- Fix title case to sentence case and a few other headers

View File

@ -85,7 +85,7 @@ const PackQueriesTable = ({
resultsTitle={"queries"}
emptyComponent={() =>
EmptyTable({
header: "No queries match your search criteria.",
header: "No queries match your search criteria",
info: "Try a different search.",
})
}

View File

@ -47,7 +47,7 @@ const EmptyOperatingSystems = (platform: SelectedPlatform): JSX.Element => (
className={`${baseClass}__os-empty-table`}
header={`No${
` ${PLATFORM_DISPLAY_NAMES[platform]}` || ""
} operating systems detected.`}
} operating systems detected`}
info="This report is updated every hour to protect the performance of your
devices."
/>

View File

@ -55,7 +55,7 @@ const DiskEncryptionTable = ({ currentTeamId }: IDiskEncryptionTableProps) => {
disableCount
emptyComponent={() => (
<EmptyTable
header="No Disk Encryption Status"
header="No disk encryption status"
info="Expecting to status data? Try again in a few seconds as the system
catches up."
/>

View File

@ -8,7 +8,7 @@ const OSVersionsEmptyState = () => {
return (
<EmptyTable
className={`${baseClass}__empty-table`}
header="No OS versions detected."
header="No OS versions detected"
info={
<span>
This report is updated every hour to protect

View File

@ -58,7 +58,7 @@ const BootstrapPackageTable = ({
disableCount
emptyComponent={() => (
<EmptyTable
header="No Bootstrap Package Status"
header="No bootstrap package status"
info="Expecting to status data? Try again in a few seconds as the system
catches up."
/>

View File

@ -66,7 +66,7 @@ const EmptyMembersTable = ({
if (searchString !== "") {
return (
<EmptyTable
header="We couldnt find any users."
header="We couldn't find any users"
info="Expecting to see users? Try again in a few seconds as the system catches up."
/>
);

View File

@ -30,7 +30,7 @@ import EditUserModal from "../EditUserModal";
const EmptyUsersTable = () => (
<EmptyTable
header="No users match the current criteria."
header="No users match the current criteria"
info="Expecting to see users? Try again in a few seconds as the system catches up."
/>
);

View File

@ -1396,7 +1396,7 @@ const ManageHostsPage = ({
const emptyState = () => {
const emptyHosts: IEmptyTableProps = {
graphicName: "empty-hosts",
header: "Hosts will show up here once theyre added to Fleet.",
header: "Hosts will show up here once theyre added to Fleet",
info:
"Expecting to see hosts? Try again in a few seconds as the system catches up.",
};

View File

@ -42,7 +42,7 @@ const PastActivityFeed = ({
if (activitiesList === null || activitiesList.length === 0) {
return (
<EmptyFeed
title="No Activity"
title="No activity"
message="When a script runs on a host, it shows up here."
className={`${baseClass}__empty-feed`}
/>

View File

@ -30,7 +30,6 @@ const Policies = ({
<EmptyTable
header={
<>
{" "}
No policies are checked{" "}
{deviceUser ? `on your device` : `for this host`}
</>

View File

@ -74,7 +74,7 @@ const PacksTable = ({
};
if (searchString) {
delete emptyPacks.graphicName;
emptyPacks.header = "No packs match the current search criteria.";
emptyPacks.header = "No packs match the current search criteria";
emptyPacks.info =
"Expecting to see packs? Try again in a few seconds as the system catches up.";
delete emptyPacks.primaryButton;

View File

@ -222,7 +222,7 @@ const QueriesTable = ({
};
if (searchQuery) {
delete emptyQueries.graphicName;
emptyQueries.header = "No queries match the current search criteria.";
emptyQueries.header = "No queries match the current search criteria";
emptyQueries.info =
"Expecting to see queries? Try again in a few seconds as the system catches up.";
} else if (!isOnlyObserver || isObserverPlus || isAnyTeamObserverPlus) {