Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@rsc-labs/backstage-highlights-plugin
Advanced tools
Backstage Highlights Plugin is configurable and customizable plugin for viewing the most important information about your entity.
We have a lot information from different plugins and also in Overview tab, but sometimes:
The "Highlights" shall provide you possibility to create such small, useful view.
If you haven't already, check out the Backstage docs and create a Backstage application with
npx @backstage/create-app
Then, you will need to install and configure the highlights plugins for the frontend and the backend. Backend plugin installation can be found here: Backend plugin
Install:
cd packages/app
yarn add @rsc-labs/backstage-highlights-plugin
Add the card to packages/app/src/components/catalog/EntityPage.tsx
:
// import:
import { isGitlabHighlightsAvailable, EntityHighlightsCard } from '@rsc-labs/backstage-highlights-plugin';
// use it in entity view
const overviewContent = (
<Grid container
...
<Grid item md={12} xs={12}>
<EntitySwitch>
<EntitySwitch.Case if={isGitlabHighlightsAvailable}>
<EntityHighlightsCard />
</EntitySwitch.Case>
</EntitySwitch>
</Grid>
</Grid>
)
For the best UX we strongly recommend to use as much horizontal space as possible. Thanks to that you will have your highlights on top of your page as a bar.
Of course, you can also make it smaller and near the other card.
At this moment, "highlights plugin" comes with built-in support of basic information about Git. As you can see in above picture, we support following fields:
You can click at the field and get more information. For example, when you click on latest tag you will get longer history:
Other fields can have similar functionality, but it depends on the provider (Github API provides more information)
At this moment built-in fields supports Github and Gitlab (see: Configuration of Backend).
By default, you can use EntityHighlights without any parameter - it gives you above built-in fields. However, you may want change a behaviour or implement your custom fields. Below you can find an interface:
/** @public */
export interface EntityHighlightsProps {
fields?: EHighlightFields[];
customFields?: HighlightCustomField[];
}
[ ] Unit tests
[ ] More fields to support
Contributions are welcome and they are greatly appreciated!
Licensed under the Mozilla Public License, Version 2.0: https://www.mozilla.org/en-US/MPL/2.0/
© 2023 RSC https://rsoftcon.com/
FAQs
Unknown package
We found that @rsc-labs/backstage-highlights-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.