npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@janus-idp/backstage-plugin-feedback

v1.6.3

Published

## Introduction

Downloads

340

Readme

Feedback Plugin

Introduction

Feedback plugin is a valuable addition to backstage which allows project managers to get feedbacks for entites in Backstage Catalog.

It is dedicated to simplifying the process of gathering and managing user feedback for service catalog entities. This plugin seamlessly integrates with the feedback-backend-plugin and extends its capabilities by allowing users to create Jira tickets associated with their feedback.

Screenshots

| Global Page | Entity Page | | -------------------------------------------- | -------------------------------------------- | | globalPage | entityPage |

| Feedback Details Modal | Create Feedback Modal | | -------------------------------------------------- | --------------------------------------------- | | feedbacDetails | entityPage |

| Opc Feedback Component | | | | | -------------------------------------------------- | ---------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------- | | initialDialog | issueDialog | feedbackDialog | finalDialog |

Key Features

  • List all the feedbacks and bugs for the componnets on global page.
  • List all the feedbacks and bugs for each component on entity page.
  • Create Bugs, Feedbacks directly on JIRA and also sends a mail to reporter.
  • Unique feedback links for each feedback.
  • Works with all knex supported databases.

Requirements

Plugin Setup

  1. Install the plugin in your environment

    yarn workspace app add @janus-idp/backstage-plugin-feedback
  2. Add configuration to app-config.yml

    feedback:
      # A ref to base entity under which global feedbacks gets stored
      # in format: kind:namespace/name
      baseEntityRef: 'component:default/example-website'
    
      # Limit the number of characters for summary field
      # should be between 1-255
      summaryLimit: 240
  3. Add GlobalFeedbackPage, OpcFeedbackComponent component to the src/App.tsx.

    import {
      feedbackPlugin,
      GlobalFeedbackPage,
      OpcFeedbackComponent,
    } from '@janus-idp/backstage-plugin-feedback';
    
    // ...
    const app = createApp({
      apis,
      bindRoutes({ bind }) {
        // ...
        // Bind techdocs root route to feedback plugin externalRoute.viewDocs to add "View Docs" link in opc-feedback component
        bind(feedbackPlugin.externalRoutes, {
          viewDocs: techdocsPlugin.routes.root,
        });
      },
      featureFlags: [
        // ...
      ],
    });
    const routes = (
      <FlatRoutes>
        // Insert this line to add feedback route
        <Route path="/feedback" element={<GlobalFeedbackPage />} />
      </FlatRoutes>
    );
    
    export default app.createRoot(
      <>
        // ...
        <AppRouter>
          // ...
          <OpcFeedbackComponent />
        </AppRouter>
      </>,
    );
  4. Then add the feedback route to sidebar to easily access /feedback, in src/components/Root/Root.tsx.

    import TextsmsOutlined  from '@material-ui/icons/TextsmsOutlined';
    //...
    export const Root = ({ children }: PropsWithChildren<{}>) => (
      <SidebarPage>
        <Sidebar>
          // ...
          <SidebarGroup label="Menu" icon={<MenuIcon />}>
            // ...
            // Insert these lines in SidebarGroup
            <SidebarScrollWrapper>
              <SidebarItem icon={TextsmsOutlined} to="feedback" text="Feedback" />
            </SidebarScrollWrapper>
            // ...
          // ...
      </SidebarPage>
    )
  5. Add EntityFeedbackPage component to the Component page, Api page in src/components/catalog/EntityPage.tsx.

    <EntityLayout.Route path="/feedback" title="Feedback">
      <EntityFeedbackPage />
    </EntityLayout.Route>

Annotations

To configure only mail:

  • Add these annotations to your catalog-info.yaml file.
metadata:
  annotations:
    # Set to MAIL, if you want to recevie mail
    # on every feedback.
    feedback/type: 'MAIL'

    # Type in your mail here, it will be kept in cc,
    # while sending mail on feedback generation.
    feedback/email-to: '[email protected]'

To configure Jira + mail:

  • Add these annotations to your catalog-info.yaml file.
metadata:
  annotations:
    # Set to JIRA to create ticket when
    # creating feedbacks.
    feedback/type: 'JIRA'

    # Enter your jira project key,
    jira/project-key: '<your-jira-project-key>'

    # (optional) Enter the url of you jira server.
    # If not set then it will use first host from app-config
    feedback/host: '<your-jira-host-url>'

    # (optional) Type in your mail here,
    #  it will be kept in cc,
    #  while sending mail on feedback generation.
    feedback/email-to: '[email protected]';

Credits