forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Index pattern management - EUI refactor (elastic#26857)
* Implement EuiInMemoryTable and Flyout, update tests
- Loading branch information
Showing
33 changed files
with
404 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
108 changes: 108 additions & 0 deletions
108
...ns/kibana/public/management/sections/index_patterns/create_index_pattern_prompt/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { | ||
EuiDescriptionList, | ||
EuiDescriptionListDescription, | ||
EuiDescriptionListTitle, | ||
EuiFlyout, | ||
EuiFlyoutBody, | ||
EuiFlyoutHeader, | ||
EuiHorizontalRule, | ||
EuiSpacer, | ||
EuiText, | ||
} from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import React from 'react'; | ||
|
||
export const CreateIndexPatternPrompt = ({ onClose }: { onClose: () => void }) => ( | ||
<EuiFlyout size="s" onClose={onClose}> | ||
<EuiFlyoutHeader hasBorder> | ||
<EuiText grow={false}> | ||
<h2> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.title" | ||
defaultMessage="About index patterns" | ||
/> | ||
</h2> | ||
</EuiText> | ||
</EuiFlyoutHeader> | ||
<EuiFlyoutBody> | ||
<EuiText textAlign="left"> | ||
<p> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.subtitle" | ||
defaultMessage="Index patterns allow you to bucket disparate data sources together so their shared fields may be queried in | ||
Kibana." | ||
/> | ||
</p> | ||
</EuiText> | ||
<EuiHorizontalRule margin="l" /> | ||
<EuiText textAlign="left"> | ||
<h3> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.examplesTitle" | ||
defaultMessage="Examples of index patterns" | ||
/> | ||
</h3> | ||
</EuiText> | ||
<EuiSpacer /> | ||
<EuiDescriptionList className="indexPatternListPrompt__descList"> | ||
<EuiDescriptionListTitle> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.exampleOneTitle" | ||
defaultMessage="Single data source" | ||
/> | ||
</EuiDescriptionListTitle> | ||
<EuiDescriptionListDescription> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.exampleOne" | ||
defaultMessage="Index a single data source named log-west-001 so you can build charts or query its contents fast." | ||
/> | ||
</EuiDescriptionListDescription> | ||
<EuiDescriptionListTitle> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.exampleTwoTitle" | ||
defaultMessage="Multiple data sources" | ||
/> | ||
</EuiDescriptionListTitle> | ||
<EuiDescriptionListDescription> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.exampleTwo" | ||
defaultMessage="Group all incoming data sources starting with log-west* so you can query against all your west coast server | ||
logs." | ||
/> | ||
</EuiDescriptionListDescription> | ||
<EuiDescriptionListTitle> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.exampleThreeTitle" | ||
defaultMessage="Custom groupings" | ||
/> | ||
</EuiDescriptionListTitle> | ||
<EuiDescriptionListDescription> | ||
<FormattedMessage | ||
id="kbn.management.indexPatternPrompt.exampleThree" | ||
defaultMessage="Specifically group your archived, monthly, roll-up metrics of those logs into a separate index pattern so | ||
you can aggregate historical trends to compare." | ||
/> | ||
</EuiDescriptionListDescription> | ||
</EuiDescriptionList> | ||
</EuiFlyoutBody> | ||
</EuiFlyout> | ||
); |
4 changes: 2 additions & 2 deletions
4
...blic/management/sections/index_patterns/create_index_pattern_wizard/angular_template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<kbn-management-app section="kibana/index_patterns"> | ||
<kbn-management-index-patterns> | ||
<div class="euiPanel euiPanel--paddingLarge"> | ||
<div id="createIndexPatternReact"></div> | ||
</kbn-management-index-patterns> | ||
</div> | ||
</kbn-management-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...ement/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<kbn-management-app section="kibana/index_patterns"> | ||
<kbn-management-index-patterns> | ||
<div class="euiPanel euiPanel--paddingLarge"> | ||
<div class="kuiViewContent"> | ||
<kbn-management-index-patterns-header | ||
index-pattern="fieldSettings.indexPattern" | ||
></kbn-management-index-patterns-header> | ||
</div> | ||
|
||
<div id="reactFieldEditor"></div> | ||
|
||
</kbn-management-index-patterns> | ||
</div> | ||
</kbn-management-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
src/legacy/core_plugins/kibana/public/management/sections/index_patterns/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
<div class="col-md-2 sidebar-container" role="region" aria-label="{{::'kbn.management.editIndexPatternAria' | i18n: { defaultMessage: 'Index patterns' } }}"> | ||
<div class="sidebar-list"> | ||
<div> | ||
<div> | ||
<div id="indexPatternListReact" role="region" aria-label="{{'kbn.management.editIndexPatternLiveRegionAriaLabel' | i18n: { defaultMessage: 'Index patterns' } }}"></div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-10"> | ||
<div class="euiPanel euiPanel--paddingLarge"> | ||
<div ng-transclude></div> | ||
</div> | ||
</div> |
Oops, something went wrong.