Fleet UI: Update create team name suggestions (#8073)

This commit is contained in:
RachelElysia
2022-10-04 13:35:15 -04:00
committed by GitHub
parent 86b05bce3d
commit 69ee2bd4c1
4 changed files with 26 additions and 11 deletions
@@ -0,0 +1 @@
* Create teams modal has better team name suggestions
@@ -0,0 +1,15 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import InfoBanner from "./InfoBanner";
describe("InfoBanner - component", () => {
it("info banner renders text", () => {
render(<InfoBanner>Info banner testing text</InfoBanner>);
const title = screen.getByText("Info banner testing text");
expect(title).toBeInTheDocument();
});
});
@@ -62,19 +62,14 @@ const CreateTeamModal = ({
name="name"
onChange={onInputChange}
label="Team name"
placeholder="Team name"
placeholder="Workstations"
value={name}
error={errors.name}
/>
<InfoBanner className={`${baseClass}__sandbox-info`}>
<p className={`${baseClass}__info-header`}>
Need to test queries and configurations before deploying?
</p>
<p>
A popular pattern is to end a teams name with - Sandbox, then you
can use this to test new queries and configuration with staging
hosts or volunteers acting as canaries.
</p>
To organize your hosts, create a team, like
&ldquo;Workstations,&rdquo; &ldquo;Servers,&rdquo; or &ldquo;Servers
(canary)&rdquo;.
</InfoBanner>
<div className="modal-cta-wrap">
<Button
@@ -3,7 +3,11 @@
margin-top: $pad-medium;
}
&__info-header {
font-weight: $bold;
.form-field {
margin: 38px 0 $pad-medium;
}
.modal-cta-wrap {
margin-top: $pad-xxlarge;
}
}