docs/releases/v1.3.0-next.0-changelog.md
b594679ae3: Allow array as non-spread arguments at the CatalogBuilder.
builder.addEntityProvider(...getArrayOfProviders());
can be simplified to
builder.addEntityProvider(getArrayOfProviders());
86a4a0f72d: Get data of other fields in Form from a custom field in template Scaffolder. following:
const CustomFieldExtensionComponent = (props: FieldExtensionComponentProps<string[]>) => {
const { formData } = props.formContext;
...
};
const CustomFieldExtension = scaffolderPlugin.provide(
createScaffolderFieldExtension({
name: ...,
component: CustomFieldExtensionComponent,
validation: ...
})
);
72dfcbc8bf: Gerrit Integration: Implemented a RepoUrlPicker for Gerrit.
gerrit:publishpublish:github scaffolder action fails to create a repository.luxon dependency fix from the 0.13.4 patch release.0.13.5 patch release.app.baseUrl and backend.baseUrl are identical65840b17be: Fix issue where right arrow icon was incorrectly added to side bar items without a sub-menu
6968b65ba1: Updated dependency @react-hookz/web to ^14.0.0.
96d1e01641: Accessibility updates:
aria-label to the Select componentTable component881fbd7e8d: Register TechDocs addons on catalog entity pages, follow the steps below to add them manually:
// packages/app/src/components/catalog/EntityPage.tsx
+ import { TechDocsAddons } from '@backstage/plugin-techdocs-react';
+ import {
+ ReportIssue,
+ } from '@backstage/plugin-techdocs-module-addons-contrib';
+ const techdocsContent = (
+ <EntityTechdocsContent>
+ <TechDocsAddons>
+ <ReportIssue />
+ </TechDocsAddons>
+ </EntityTechdocsContent>
+ );
const defaultEntityPage = (
...
<EntityLayout.Route path="/docs" title="Docs">
+ {techdocsContent}
</EntityLayout.Route>
...
);
const serviceEntityPage = (
...
<EntityLayout.Route path="/docs" title="Docs">
+ {techdocsContent}
</EntityLayout.Route>
...
);
const websiteEntityPage = (
...
<EntityLayout.Route path="/docs" title="Docs">
+ {techdocsContent}
</EntityLayout.Route>
...
);
935d8515da: Updated the --version flag to output the version of the current backstage release instead of the version of create-app.
1f70704580: Accessibility updates:
aria-label to the sidebar Logo link. To enable this for an existing app, please make the following changes:packages/app/src/components/Root/Root.tsx
const SidebarLogo = () => {
const classes = useSidebarLogoStyles();
const { isOpen } = useContext(SidebarContext);
return (
<div className={classes.root}>
<Link
component={NavLink}
to="/"
underline="none"
className={classes.link}
+ aria-label="Home"
>
{isOpen ? <LogoFull /> : <LogoIcon />}
</Link>
</div>
);
};
resolveUrl properly.AdrSearchResultListItemisAllureReportAvailable and ALLURE_PROJECT_ID_ANNOTATION so it can be used outside of plugin449dcef98e: Updates the isKind, ìsComponentType, and isNamespace to allow an array of possible values
1f70704580: Accessibility updates:
Action buttonsUpdated dependencies
3ac4522537: do not create location object if file with component definition do not exists in project, that decrease count of request to gitlab with 404 status code. Now we can create processor with new flag to enable this logic:
const processor = GitLabDiscoveryProcessor.fromConfig(config, {
logger,
skipReposWithoutExactFileMatch: true,
});
WARNING: This new functionality does not support globs in the repo file path
Updated dependencies
1f70704580: Accessibility updates:
EntityLifecyclePicker, EntityOwnerPicker, EntityTagPicker, in label elementsTypography component to span (from default h6), added aria-label to the List component, and role of menuitem to the container of the MenuItem componentUpdated dependencies
export in configuration schema.@react-hookz/web to ^14.0.0.881fbd7e8d: Fix EntityTechdocsContent component to use objects instead of <Route> elements, otherwise "outlet" will be null on sub-pages and add-ons won't render.
17c059dfd0: Restructures reader style transformations to improve code readability:
3b45ad701f: Packages a set of tweaks to the TechDocs addons rendering process:
816f7475ec: Convert sanitizeDOM transformer to hook as part of code readability improvements in dom file.
50ff56a80f: Change the EntityDocsPage path to be more specific and also add integration tests for sub-routes on this page.
Updated dependencies
5d66d4ff67: Output logs from a TechDocs build to a logging transport in addition to existing frontend event stream, for capturing these logs to other sources.
This allows users to capture debugging information around why tech docs fail to build without needing to rely on end users capturing information from their web browser.
The most common use case is to log to the same place as the rest of the backend application logs.
Sample usage:
import { DockerContainerRunner } from '@backstage/backend-common';
import {
createRouter,
Generators,
Preparers,
Publisher,
} from '@backstage/plugin-techdocs-backend';
import Docker from 'dockerode';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
const preparers = await Preparers.fromConfig(env.config, {
logger: env.logger,
reader: env.reader,
});
const dockerClient = new Docker();
const containerRunner = new DockerContainerRunner({ dockerClient });
const generators = await Generators.fromConfig(env.config, {
logger: env.logger,
containerRunner,
});
const publisher = await Publisher.fromConfig(env.config, {
logger: env.logger,
discovery: env.discovery,
});
await publisher.getReadiness();
return await createRouter({
preparers,
generators,
publisher,
logger: env.logger,
// Passing a buildLogTransport as a parameter in createRouter will enable
// capturing build logs to a backend log stream
buildLogTransport: env.logger,
config: env.config,
discovery: env.discovery,
cache: env.cache,
});
}
Updated dependencies
@react-hookz/web to ^14.0.0.3b45ad701f: Creates a TechDocsShadowDom component that takes a tree of elements and an onAppend handler:
onAppend handler when appending the element tree to the shadow root;Updated dependencies