-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fleet] Cosmetic fixes #111725
[Fleet] Cosmetic fixes #111725
Conversation
Made Add integration button filled
Filled button fixes
3. Assign policy button
4. Duplicate policy
5. full stop
6. enrollment token name
Pinging @elastic/fleet (Team:Fleet) |
2. auth settings
@@ -86,7 +86,7 @@ export const AgentDetailsActionMenu: React.FunctionComponent<{ | |||
)} | |||
<ContextMenuActions | |||
button={{ | |||
props: { iconType: 'arrowDown', iconSide: 'right', color: 'primary', fill: true }, | |||
props: { iconType: 'arrowDown', iconSide: 'right', color: 'primary', fill: false }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick do we need fill false or it's the default for the property?
placeholder="Enter a token name" | ||
{...form.apiKeyNameInput.props} | ||
/> | ||
<EuiFormHelpText>Token id will be used when this is left empty.</EuiFormHelpText> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to translate that you can use the <FormattedMessage>
component for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think we can define helpText=
on the Form row component too https://elastic.github.io/eui/#/forms/form-layouts#form-and-form-rows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, will update
<EuiFieldText | ||
name="name" | ||
autoComplete="off" | ||
placeholder="Enter a token name" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to translate that you can use i18n.translate()
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I wasn't sure where is it needed, as I don't see it used everywhere.
is there a way to find out which components translate out of the box?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No components translate out of the box, so if there is not translation we missed something previously
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
review fixes
Responsive fix fleet broken icons
@@ -91,7 +91,7 @@ export const AgentPolicyPackageBadges: React.FunctionComponent<Props> = ({ | |||
color="hollow" | |||
isDisabled={excludeFleetServer && pkg.name === FLEET_SERVER_PACKAGE} | |||
> | |||
<EuiFlexGroup direction="row" gutterSize="xs" alignItems="center"> | |||
<EuiFlexGroup direction="row" gutterSize="xs" alignItems="center" responsive={false}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8. data streams table layout auto
@@ -202,6 +202,7 @@ export const DataStreamListPage: React.FunctionComponent<{}> = () => { | |||
<EuiInMemoryTable | |||
loading={isLoading} | |||
hasActions={true} | |||
tableLayout="auto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
responsive 2. fixed icon overlap
@@ -13,17 +13,10 @@ import type { UsePackageIconType } from '../../../../../hooks'; | |||
import { usePackageIconType } from '../../../../../hooks'; | |||
import { Loading } from '../../../../../components'; | |||
|
|||
const PanelWrapper = styled.div` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for responsive layout (icon overlap) 2. Integration layout broken 480px, 768px breakpoints
See this comment https://github.com/elastic/observability-design/issues/80#issuecomment-916880833
reduced empty space in header
fix add integration form
x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm adding the 7.15.0 label so we can try to get these fixes in for the next build candidate for that release.
x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
|
||
@media (max-width: 767px) { | ||
.header_container .euiFlexGroup--responsive > .euiFlexItem { | ||
margin-bottom: 0 !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to reduce empty space in integrations header as suggested here https://github.com/elastic/observability-design/issues/80#issuecomment-917961482
const FormGroupResponsiveFields = styled(EuiDescribedFormGroup)` | ||
@media (max-width: 767px) { | ||
.euiFlexGroup--responsive { | ||
align-items: flex-start; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss
Outdated
Show resolved
Hide resolved
|
||
@media (max-width: 767px) { | ||
.euiFlexItem { | ||
margin-bottom: 0 !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this to styled component, important is needed, because the original margin in eui has it too.
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* [Fleet] Cosmetic fixes Made Add integration button filled * [Fleet] Cosmetic fixes Filled button fixes * [Fleet] Cosmetic fixes 3. Assign policy button * [Fleet] Cosmetic fixes 4. Duplicate policy * [Fleet] Cosmetic fixes 5. full stop * [Fleet] Cosmetic fixes 6. enrollment token name * [Fleet] Cosmetic fixes 2. auth settings * [Fleet] Cosmetic fixes review fixes * [Fleet] Cosmetic fixes Responsive fix fleet broken icons * [Fleet] Cosmetic fixes 8. data streams table layout auto * [Fleet] Cosmetic fixes responsive 2. fixed icon overlap * [Fleet] Cosmetic fixes reduced empty space in header * [Fleet] Cosmetic fixes fix add integration form * improve css selector * moved css to styled component
* [Fleet] Cosmetic fixes Made Add integration button filled * [Fleet] Cosmetic fixes Filled button fixes * [Fleet] Cosmetic fixes 3. Assign policy button * [Fleet] Cosmetic fixes 4. Duplicate policy * [Fleet] Cosmetic fixes 5. full stop * [Fleet] Cosmetic fixes 6. enrollment token name * [Fleet] Cosmetic fixes 2. auth settings * [Fleet] Cosmetic fixes review fixes * [Fleet] Cosmetic fixes Responsive fix fleet broken icons * [Fleet] Cosmetic fixes 8. data streams table layout auto * [Fleet] Cosmetic fixes responsive 2. fixed icon overlap * [Fleet] Cosmetic fixes reduced empty space in header * [Fleet] Cosmetic fixes fix add integration form * improve css selector * moved css to styled component
* [Fleet] Cosmetic fixes Made Add integration button filled * [Fleet] Cosmetic fixes Filled button fixes * [Fleet] Cosmetic fixes 3. Assign policy button * [Fleet] Cosmetic fixes 4. Duplicate policy * [Fleet] Cosmetic fixes 5. full stop * [Fleet] Cosmetic fixes 6. enrollment token name * [Fleet] Cosmetic fixes 2. auth settings * [Fleet] Cosmetic fixes review fixes * [Fleet] Cosmetic fixes Responsive fix fleet broken icons * [Fleet] Cosmetic fixes 8. data streams table layout auto * [Fleet] Cosmetic fixes responsive 2. fixed icon overlap * [Fleet] Cosmetic fixes reduced empty space in header * [Fleet] Cosmetic fixes fix add integration form * improve css selector * moved css to styled component Co-authored-by: juliaElastic <[email protected]>
* [Fleet] Cosmetic fixes Made Add integration button filled * [Fleet] Cosmetic fixes Filled button fixes * [Fleet] Cosmetic fixes 3. Assign policy button * [Fleet] Cosmetic fixes 4. Duplicate policy * [Fleet] Cosmetic fixes 5. full stop * [Fleet] Cosmetic fixes 6. enrollment token name * [Fleet] Cosmetic fixes 2. auth settings * [Fleet] Cosmetic fixes review fixes * [Fleet] Cosmetic fixes Responsive fix fleet broken icons * [Fleet] Cosmetic fixes 8. data streams table layout auto * [Fleet] Cosmetic fixes responsive 2. fixed icon overlap * [Fleet] Cosmetic fixes reduced empty space in header * [Fleet] Cosmetic fixes fix add integration form * improve css selector * moved css to styled component Co-authored-by: juliaElastic <[email protected]>
We have validated this PR UI related changes on 8.0 and 7.16 snapshot and found them working fine. Build Details :
Further, observations made are as follows:
However, @juliaElastic Could you please share the lowest supported resolution with us so that we can validate is more precisely. Thanks |
Summary
Fixes for https://github.com/elastic/observability-design/issues/80
Should be all done now, see latest comments.
Bugs
Made Add Integration button filled
Enhancements
View screens
The Create/Add... button should always be filled
Actions should be unfilled
The UI of CTA in the Add agent flow looks broken
Julia: the right padding seemed missing, fixed that
Replace the warning button with a filled one.
Using fleet for the first time I thought that Copy policy copied the policy to the clipboard because this is a pattern that I saw and I was familiar with. I think we should replace it with Duplicate, or if we want to keep Copy consider replacing the Copy policy CTA in the following modal with Make a copy or something similar
Julia: renamed button labels, though haven't renamed internal ids, let me know what you think. Changing ids might impact functional tests.
Add the full stop that is missing in the description (Fleet)
Name field shows an error by default but the field is not mandatory and clicking on Create it will create a token giving a random name. This can be confusing. Consider adding a help text that explains what happens and why