mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Time to Visualize] Rename Visualize to Visualize Library (#91015)
* Renamed Visualize to Visualize Library
This commit is contained in:
parent
b4368bde14
commit
89327bf9de
13 changed files with 42 additions and 26 deletions
|
@ -69,12 +69,12 @@ export const VisualizeListing = () => {
|
||||||
chrome.setBreadcrumbs([
|
chrome.setBreadcrumbs([
|
||||||
{
|
{
|
||||||
text: i18n.translate('visualize.visualizeListingBreadcrumbsTitle', {
|
text: i18n.translate('visualize.visualizeListingBreadcrumbsTitle', {
|
||||||
defaultMessage: 'Visualize',
|
defaultMessage: 'Visualize Library',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
chrome.docTitle.change(
|
chrome.docTitle.change(
|
||||||
i18n.translate('visualize.listingPageTitle', { defaultMessage: 'Visualize' })
|
i18n.translate('visualize.listingPageTitle', { defaultMessage: 'Visualize Library' })
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
useUnmount(() => closeNewVisModal.current());
|
useUnmount(() => closeNewVisModal.current());
|
||||||
|
@ -186,7 +186,7 @@ export const VisualizeListing = () => {
|
||||||
// for data exploration purposes
|
// for data exploration purposes
|
||||||
createItem={createNewVis}
|
createItem={createNewVis}
|
||||||
tableCaption={i18n.translate('visualize.listing.table.listTitle', {
|
tableCaption={i18n.translate('visualize.listing.table.listTitle', {
|
||||||
defaultMessage: 'Visualizations',
|
defaultMessage: 'Visualize Library',
|
||||||
})}
|
})}
|
||||||
findItems={fetchItems}
|
findItems={fetchItems}
|
||||||
deleteItems={visualizeCapabilities.delete ? deleteItems : undefined}
|
deleteItems={visualizeCapabilities.delete ? deleteItems : undefined}
|
||||||
|
@ -204,7 +204,7 @@ export const VisualizeListing = () => {
|
||||||
defaultMessage: 'visualizations',
|
defaultMessage: 'visualizations',
|
||||||
})}
|
})}
|
||||||
tableListTitle={i18n.translate('visualize.listing.table.listTitle', {
|
tableListTitle={i18n.translate('visualize.listing.table.listTitle', {
|
||||||
defaultMessage: 'Visualizations',
|
defaultMessage: 'Visualize Library',
|
||||||
})}
|
})}
|
||||||
toastNotifications={toastNotifications}
|
toastNotifications={toastNotifications}
|
||||||
searchFilters={searchFilters}
|
searchFilters={searchFilters}
|
||||||
|
|
|
@ -18,7 +18,7 @@ export function getLandingBreadcrumbs() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: i18n.translate('visualize.listing.breadcrumb', {
|
text: i18n.translate('visualize.listing.breadcrumb', {
|
||||||
defaultMessage: 'Visualize',
|
defaultMessage: 'Visualize Library',
|
||||||
}),
|
}),
|
||||||
href: `#${VisualizeConstants.LANDING_PAGE_PATH}`,
|
href: `#${VisualizeConstants.LANDING_PAGE_PATH}`,
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,7 +15,7 @@ import { VisualizeServices, VisualizeEditorVisInstance } from '../types';
|
||||||
export const addHelpMenuToAppChrome = (chrome: ChromeStart, docLinks: DocLinksStart) => {
|
export const addHelpMenuToAppChrome = (chrome: ChromeStart, docLinks: DocLinksStart) => {
|
||||||
chrome.setHelpExtension({
|
chrome.setHelpExtension({
|
||||||
appName: i18n.translate('visualize.helpMenu.appName', {
|
appName: i18n.translate('visualize.helpMenu.appName', {
|
||||||
defaultMessage: 'Visualize',
|
defaultMessage: 'Visualize Library',
|
||||||
}),
|
}),
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -133,7 +133,7 @@ export class VisualizePlugin
|
||||||
|
|
||||||
core.application.register({
|
core.application.register({
|
||||||
id: VisualizeConstants.APP_ID,
|
id: VisualizeConstants.APP_ID,
|
||||||
title: 'Visualize',
|
title: 'Visualize Library',
|
||||||
order: 8000,
|
order: 8000,
|
||||||
euiIconType: 'logoKibana',
|
euiIconType: 'logoKibana',
|
||||||
defaultPath: '#/',
|
defaultPath: '#/',
|
||||||
|
@ -224,7 +224,7 @@ export class VisualizePlugin
|
||||||
if (home) {
|
if (home) {
|
||||||
home.featureCatalogue.register({
|
home.featureCatalogue.register({
|
||||||
id: 'visualize',
|
id: 'visualize',
|
||||||
title: 'Visualize',
|
title: 'Visualize Library',
|
||||||
description: i18n.translate('visualize.visualizeDescription', {
|
description: i18n.translate('visualize.visualizeDescription', {
|
||||||
defaultMessage:
|
defaultMessage:
|
||||||
'Create visualizations and aggregate data stores in your Elasticsearch indices.',
|
'Create visualizations and aggregate data stores in your Elasticsearch indices.',
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default function ({ getService, getPageObjects }) {
|
||||||
await PageObjects.visualize.saveVisualizationAndReturn();
|
await PageObjects.visualize.saveVisualizationAndReturn();
|
||||||
|
|
||||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||||
await appsMenu.clickLink('Visualize');
|
await appsMenu.clickLink('Visualize Library');
|
||||||
await PageObjects.common.clickConfirmOnModal();
|
await PageObjects.common.clickConfirmOnModal();
|
||||||
expect(await testSubjects.exists('visualizationLandingPage')).to.be(true);
|
expect(await testSubjects.exists('visualizationLandingPage')).to.be(true);
|
||||||
});
|
});
|
||||||
|
|
|
@ -27,7 +27,7 @@ export function HeaderPageProvider({ getService, getPageObjects }: FtrProviderCo
|
||||||
}
|
}
|
||||||
|
|
||||||
public async clickVisualize(ignoreAppLeaveWarning = false) {
|
public async clickVisualize(ignoreAppLeaveWarning = false) {
|
||||||
await appsMenu.clickLink('Visualize', { category: 'kibana' });
|
await appsMenu.clickLink('Visualize Library', { category: 'kibana' });
|
||||||
await this.onAppLeaveWarning(ignoreAppLeaveWarning);
|
await this.onAppLeaveWarning(ignoreAppLeaveWarning);
|
||||||
await this.awaitGlobalLoadingIndicatorHidden();
|
await this.awaitGlobalLoadingIndicatorHidden();
|
||||||
await retry.waitFor('Visualize app to be loaded', async () => {
|
await retry.waitFor('Visualize app to be loaded', async () => {
|
||||||
|
|
|
@ -111,7 +111,7 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
|
||||||
{
|
{
|
||||||
id: 'visualize',
|
id: 'visualize',
|
||||||
name: i18n.translate('xpack.features.visualizeFeatureName', {
|
name: i18n.translate('xpack.features.visualizeFeatureName', {
|
||||||
defaultMessage: 'Visualize',
|
defaultMessage: 'Visualize Library',
|
||||||
}),
|
}),
|
||||||
order: 700,
|
order: 700,
|
||||||
category: DEFAULT_APP_CATEGORIES.kibana,
|
category: DEFAULT_APP_CATEGORIES.kibana,
|
||||||
|
|
|
@ -393,7 +393,11 @@ describe('Lens App', () => {
|
||||||
const { component, services } = mountWith({});
|
const { component, services } = mountWith({});
|
||||||
|
|
||||||
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
||||||
{ text: 'Visualize', href: '/testbasepath/app/visualize#/', onClick: expect.anything() },
|
{
|
||||||
|
text: 'Visualize Library',
|
||||||
|
href: '/testbasepath/app/visualize#/',
|
||||||
|
onClick: expect.anything(),
|
||||||
|
},
|
||||||
{ text: 'Create' },
|
{ text: 'Create' },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -403,7 +407,11 @@ describe('Lens App', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
||||||
{ text: 'Visualize', href: '/testbasepath/app/visualize#/', onClick: expect.anything() },
|
{
|
||||||
|
text: 'Visualize Library',
|
||||||
|
href: '/testbasepath/app/visualize#/',
|
||||||
|
onClick: expect.anything(),
|
||||||
|
},
|
||||||
{ text: 'Daaaaaaadaumching!' },
|
{ text: 'Daaaaaaadaumching!' },
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
@ -417,7 +425,11 @@ describe('Lens App', () => {
|
||||||
|
|
||||||
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
||||||
{ text: 'The Coolest Container Ever Made', onClick: expect.anything() },
|
{ text: 'The Coolest Container Ever Made', onClick: expect.anything() },
|
||||||
{ text: 'Visualize', href: '/testbasepath/app/visualize#/', onClick: expect.anything() },
|
{
|
||||||
|
text: 'Visualize Library',
|
||||||
|
href: '/testbasepath/app/visualize#/',
|
||||||
|
onClick: expect.anything(),
|
||||||
|
},
|
||||||
{ text: 'Create' },
|
{ text: 'Create' },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -428,7 +440,11 @@ describe('Lens App', () => {
|
||||||
|
|
||||||
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
expect(services.chrome.setBreadcrumbs).toHaveBeenCalledWith([
|
||||||
{ text: 'The Coolest Container Ever Made', onClick: expect.anything() },
|
{ text: 'The Coolest Container Ever Made', onClick: expect.anything() },
|
||||||
{ text: 'Visualize', href: '/testbasepath/app/visualize#/', onClick: expect.anything() },
|
{
|
||||||
|
text: 'Visualize Library',
|
||||||
|
href: '/testbasepath/app/visualize#/',
|
||||||
|
onClick: expect.anything(),
|
||||||
|
},
|
||||||
{ text: 'Daaaaaaadaumching!' },
|
{ text: 'Daaaaaaadaumching!' },
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
|
@ -278,7 +278,7 @@ export function App({
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
},
|
},
|
||||||
text: i18n.translate('xpack.lens.breadcrumbsTitle', {
|
text: i18n.translate('xpack.lens.breadcrumbsTitle', {
|
||||||
defaultMessage: 'Visualize',
|
defaultMessage: 'Visualize Library',
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
'Sep 19, 2025 @ 06:31:44.000'
|
'Sep 19, 2025 @ 06:31:44.000'
|
||||||
);
|
);
|
||||||
await filterBar.toggleFilterEnabled('ip');
|
await filterBar.toggleFilterEnabled('ip');
|
||||||
await appsMenu.clickLink('Visualize', { category: 'kibana' });
|
await appsMenu.clickLink('Visualize Library', { category: 'kibana' });
|
||||||
await PageObjects.visualize.clickNewVisualization();
|
await PageObjects.visualize.clickNewVisualization();
|
||||||
await PageObjects.visualize.waitForGroupsSelectPage();
|
await PageObjects.visualize.waitForGroupsSelectPage();
|
||||||
await PageObjects.visualize.clickVisType('lens');
|
await PageObjects.visualize.clickVisType('lens');
|
||||||
|
|
|
@ -81,7 +81,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
|
|
||||||
it('shows visualize navlink', async () => {
|
it('shows visualize navlink', async () => {
|
||||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||||
expect(navLinks).to.eql(['Overview', 'Visualize']);
|
expect(navLinks).to.eql(['Overview', 'Visualize Library']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`landing page shows "Create new Visualization" button`, async () => {
|
it(`landing page shows "Create new Visualization" button`, async () => {
|
||||||
|
@ -212,7 +212,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
|
|
||||||
it('shows visualize navlink', async () => {
|
it('shows visualize navlink', async () => {
|
||||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||||
expect(navLinks).to.eql(['Overview', 'Visualize']);
|
expect(navLinks).to.eql(['Overview', 'Visualize Library']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`landing page shows "Create new Visualization" button`, async () => {
|
it(`landing page shows "Create new Visualization" button`, async () => {
|
||||||
|
@ -327,7 +327,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
|
|
||||||
it('shows visualize navlink', async () => {
|
it('shows visualize navlink', async () => {
|
||||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||||
expect(navLinks).to.eql(['Overview', 'Visualize']);
|
expect(navLinks).to.eql(['Overview', 'Visualize Library']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`landing page shows "Create new Visualization" button`, async () => {
|
it(`landing page shows "Create new Visualization" button`, async () => {
|
||||||
|
|
|
@ -44,7 +44,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
basePath: '/s/custom_space',
|
basePath: '/s/custom_space',
|
||||||
});
|
});
|
||||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||||
expect(navLinks).to.contain('Visualize');
|
expect(navLinks).to.contain('Visualize Library');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`can view existing Visualization`, async () => {
|
it(`can view existing Visualization`, async () => {
|
||||||
|
@ -85,7 +85,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
basePath: '/s/custom_space',
|
basePath: '/s/custom_space',
|
||||||
});
|
});
|
||||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||||
expect(navLinks).not.to.contain('Visualize');
|
expect(navLinks).not.to.contain('Visualize Library');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`create new visualization shows 404`, async () => {
|
it(`create new visualization shows 404`, async () => {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
await PageObjects.common.navigateToApp('visualize');
|
await PageObjects.common.navigateToApp('visualize');
|
||||||
await PageObjects.visualize.openSavedVisualization('A Pie');
|
await PageObjects.visualize.openSavedVisualization('A Pie');
|
||||||
await PageObjects.common.navigateToApp('home');
|
await PageObjects.common.navigateToApp('home');
|
||||||
await appsMenu.clickLink('Visualize');
|
await appsMenu.clickLink('Visualize Library');
|
||||||
await PageObjects.visChart.waitForVisualization();
|
await PageObjects.visChart.waitForVisualization();
|
||||||
const activeTitle = await globalNav.getLastBreadcrumb();
|
const activeTitle = await globalNav.getLastBreadcrumb();
|
||||||
expect(activeTitle).to.be('A Pie');
|
expect(activeTitle).to.be('A Pie');
|
||||||
|
@ -43,7 +43,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
await PageObjects.spaceSelector.expectHomePage('another-space');
|
await PageObjects.spaceSelector.expectHomePage('another-space');
|
||||||
|
|
||||||
// other space
|
// other space
|
||||||
await appsMenu.clickLink('Visualize');
|
await appsMenu.clickLink('Visualize Library');
|
||||||
await PageObjects.visualize.openSavedVisualization('A Pie in another space');
|
await PageObjects.visualize.openSavedVisualization('A Pie in another space');
|
||||||
|
|
||||||
await PageObjects.spaceSelector.openSpacesNav();
|
await PageObjects.spaceSelector.openSpacesNav();
|
||||||
|
@ -51,7 +51,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
await PageObjects.spaceSelector.expectHomePage('default');
|
await PageObjects.spaceSelector.expectHomePage('default');
|
||||||
|
|
||||||
// default space
|
// default space
|
||||||
await appsMenu.clickLink('Visualize');
|
await appsMenu.clickLink('Visualize Library');
|
||||||
await PageObjects.visChart.waitForVisualization();
|
await PageObjects.visChart.waitForVisualization();
|
||||||
const activeTitleDefaultSpace = await globalNav.getLastBreadcrumb();
|
const activeTitleDefaultSpace = await globalNav.getLastBreadcrumb();
|
||||||
expect(activeTitleDefaultSpace).to.be('A Pie');
|
expect(activeTitleDefaultSpace).to.be('A Pie');
|
||||||
|
@ -61,7 +61,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
await PageObjects.spaceSelector.expectHomePage('another-space');
|
await PageObjects.spaceSelector.expectHomePage('another-space');
|
||||||
|
|
||||||
// other space
|
// other space
|
||||||
await appsMenu.clickLink('Visualize');
|
await appsMenu.clickLink('Visualize Library');
|
||||||
await PageObjects.visChart.waitForVisualization();
|
await PageObjects.visChart.waitForVisualization();
|
||||||
const activeTitleOtherSpace = await globalNav.getLastBreadcrumb();
|
const activeTitleOtherSpace = await globalNav.getLastBreadcrumb();
|
||||||
expect(activeTitleOtherSpace).to.be('A Pie in another space');
|
expect(activeTitleOtherSpace).to.be('A Pie in another space');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue