- 
                Notifications
    You must be signed in to change notification settings 
- Fork 453
frontend: Expose Activity API to plugins #4005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sniok The full list of commands accepted by this bot can be found here. The pull request process is described here 
Needs approval from an approver in each of these files:
 
 Approvers can indicate their approval by writing  | 
50d0b94    to
    3eced91      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Expose the Activity API to plugins by exporting Activity, refactoring its Redux slice into a standalone file, and adding documentation plus an example plugin demonstrating usage.
- Extracted activity state management into activitySlice.tsx and exported Activity to plugin consumers.
- Added example plugin (activity) and updated typedoc entrypoints and documentation.
- Updated tests, snapshots, and README indices accordingly.
Reviewed Changes
Copilot reviewed 19 out of 22 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description | 
|---|---|
| plugins/headlamp-plugin/src/index.ts | Exports Activity for plugin consumption. | 
| plugins/examples/activity/** | New example plugin demonstrating Activity API usage. | 
| plugins/README.md | Adds link to new example. | 
| frontend/tsconfig.json | Includes Activity component for API docs generation. | 
| frontend/src/redux/reducers/reducers.tsx | Updates import to use new activitySlice reducer. | 
| frontend/src/plugin/index.ts | Exposes Activity via global pluginLib. | 
| frontend/src/plugin/snapshots/pluginLib.snapshot | Snapshot updated to include Activity API. | 
| frontend/src/components/activity/activitySlice.tsx | New Redux slice for activity state management. | 
| frontend/src/components/activity/Activity.tsx | Removes inlined slice; now imports external slice. | 
| frontend/src/components/activity/Activity.test.tsx | Adjusts imports to new slice file. | 
| frontend/src/components/activity/Activity.stories.tsx | Adjusts imports to new slice file. | 
| docs/development/plugins/functionality/index.md | Adds Activity feature documentation. | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
3eced91    to
    2715b0e      
    Compare
  
    2715b0e    to
    80f1252      
    Compare
  
    80f1252    to
    d3a1563      
    Compare
  
    | PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. | 
No description provided.