This package is the frontend counterpart of the `stack-overflow-teams` plugin for Backstage.
npm install @stackoverflow/backstage-plugin-stack-overflow-teamsThis package is the frontend counterpart of the stack-overflow-teams plugin for Backstage.
It provides the UI and interacts with the backend service to fetch data from your Stack Internal Enterprise instance.
To fully utilize this plugin, you must also install and configure the corresponding backend package (@stackoverflow/backstage-plugin-stack-overflow-teams-backend) in your Backstage backend. The frontend plugin relies on the backend for API communication and authentication handling.
This component is a modified version of the community plugin.
It adds a more Stack Overflow Internal-like interface, including additional information such as the questions' score, user role, user reputation, and timestamp.
---
-
Displays information about the authenticated user.
-
Provides a form for users to create a new Stack Overflow Internal question. Once submitted, an API request is executed to create the question.
This form listens to the 'openAskQuestionModal' event. You can utilize this anywhere in your Backstage UI. To invoke the form, add the component to your UI along with a button that dispatches the event. Example:
``tsx`
onClick={() => window.dispatchEvent(new Event('openAskQuestionModal'))}
text="Ask a Question"
/>
-
Retrieves questions from the API. Uses API pagination to navigate all pages of questions available to the instance.
-
Retrieves tags from the API. Uses standard pagination, displaying only the first 30 API results.
-
Retrieves users from the API. Uses standard pagination, displaying only the first 30 API results.
-
Various components collectively create this informative hub.
-
Initiates /auth/start on the backend.
-
Handles the loading state during authentication.
-
Receives the code and state from your Stack Internal Enterprise instance as part of the OAuth process and initiates /callback in the backend.
-
Displays authentication success state.
-
Displays authentication failure state.
-
This page triggers authentication components, bundles, and orchestrates everything for you so you don't have to use the authentication components separately. If authenticated, it will return the .
The frontend plugin creates an API Ref for Stack Internal, which can be found under the /api` folder. All API requests from the frontend are directed to Backstage's backend.