feat(api-keys): implement API keys management interface and access control#1588
Conversation
…ntrol - Added a new WorkspaceApiAccessControl component for managing API key access within workspaces. - Enhanced the PlaygroundApiKeysPage to display API key creation options and access information. - Updated PlaygroundIndex and PlaygroundSidebar to include links to the new API keys management section. - Improved user feedback with alerts and descriptions regarding API key usage and requirements.
|
@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR extracts workspace API access toggle logic into a new ChangesWorkspace API Access Control
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Motivation and Context
FIX #
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR implements a dedicated API keys management interface within the workspace playground section. It introduces a new
WorkspaceApiAccessControlcomponent that manages workspace-level API access permissions, refactors the existing general settings by extracting the API access toggle into this reusable component, and creates a new API keys page (/playground/api-keys) that combines user API key management with workspace API access control. The changes also add navigation items to the playground sidebar and index page to make the new API keys interface accessible.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_web/components/settings/workspace-api-access-control.tsxsurfsense_web/components/settings/general-settings-manager.tsxsurfsense_web/app/dashboard/[workspace_id]/playground/api-keys/page.tsxsurfsense_web/components/layout/ui/playground/PlaygroundSidebar.tsxsurfsense_web/app/dashboard/[workspace_id]/playground/components/playground-index.tsxSummary by CodeRabbit
New Features
Bug Fixes