feat(lightspeed): migrated plugin to nfs#2721
feat(lightspeed): migrated plugin to nfs#2721rohitkrai03 merged 1 commit intoredhat-developer:mainfrom
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
Review Summary by QodoMigrate Lightspeed plugin to new frontend system (NFS)
WalkthroughsDescription• Migrated Lightspeed plugin to new frontend system (NFS) • Extracted provider state logic into dedicated hook • Added FAB module and app drawer integration • Updated dependencies and test infrastructure Diagramflowchart LR
A["LightspeedDrawerProvider"] -->|uses| B["useLightspeedProviderState"]
B -->|manages| C["State & Routing"]
B -->|syncs with| D["AppDrawer"]
E["LightspeedFAB"] -->|uses| F["useLightspeedDrawerContext"]
G["alpha/index.tsx"] -->|exports| H["Frontend Modules"]
H -->|includes| I["lightspeedFABModule"]
H -->|includes| J["lightspeedTranslationsModule"]
File Changes1. workspaces/lightspeed/plugins/lightspeed/src/const.ts
|
Code Review by Qodo
1. Provider export missing
|
| export default createFrontendPlugin({ | ||
| pluginId: 'lightspeed', | ||
| extensions: [lightspeedApi, notebooksApi, lightspeedPage, lightspeedDrawer], | ||
| routes: { | ||
| root: nfsRootRouteRef, | ||
| lightspeedConversation: nfsConversationRouteRef, | ||
| }, | ||
| }); | ||
|
|
||
| export * from '../translations'; |
There was a problem hiding this comment.
1. Provider export missing 🐞 Bug ≡ Correctness
LightspeedProvider is documented as exported from the alpha entrypoint but src/alpha/index.tsx never re-exports it, so consumers importing it from @.../backstage-plugin-lightspeed/alpha will fail at build time. The generated report-alpha.api.md confirms LightspeedProvider is not part of the alpha API surface.
Agent Prompt
## Issue description
`LightspeedProvider` is implemented and documented as being exported from the alpha entry point, but it is not re-exported from `src/alpha/index.tsx`. This makes it unavailable to consumers of `@red-hat-developer-hub/backstage-plugin-lightspeed/alpha`.
## Issue Context
- `src/alpha/LightspeedProvider.tsx` contains a public alpha export.
- `src/alpha/index.tsx` is the package export target for `./alpha` but does not re-export `LightspeedProvider`.
- `report-alpha.api.md` has no `LightspeedProvider`, confirming it’s missing from the public surface.
## Fix Focus Areas
- workspaces/lightspeed/plugins/lightspeed/src/alpha/index.tsx[149-158]
- workspaces/lightspeed/plugins/lightspeed/src/alpha/LightspeedProvider.tsx[17-24]
## Suggested change
Add a named export in `src/alpha/index.tsx`, e.g.:
- `export { LightspeedProvider } from './LightspeedProvider';`
Then re-run API Extractor / update `report-alpha.api.md` accordingly.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
86aba32 to
2def751
Compare
2def751 to
f5f8181
Compare
f5f8181 to
9cff5b3
Compare
|
|
/lgtm Both NFS & legacy apps are functioning as expected. |


Hey, I just made a Pull Request!
Resolves:
https://redhat.atlassian.net/browse/RHIDP-11860
Screen.Recording.2026-04-08.at.1.27.22.PM.mov
✔️ Checklist