Skip to content

Commit 0788756

Browse files
authored
feat: add management page for API keys (#1408)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added ability to update existing API keys, including name, description, roles, and permissions, through the UI and GraphQL API. - Introduced a modal-based interface for creating and editing API keys with improved role and permission selection. - Added a new API Key Manager page and custom element for centralized API key management. - Enhanced API key listing with detailed views, role badges, permission counters, and copy-to-clipboard functionality. - Introduced reusable dialog components for consistent modal experiences. - Added plugin management capabilities with mutations to add or remove plugins. - Added comprehensive support for managing remote access, network URLs, and API key updates within the GraphQL schema. - **Bug Fixes** - Improved error handling and display for API key creation and update operations. - **Refactor** - Centralized API key modal and editing state management using a dedicated store. - Updated GraphQL queries and mutations to use reusable fragments for API key data. - Removed deprecated or redundant remote access and allowed origins configuration components and queries. - Simplified and updated input types for connect settings and remote access. - **Tests** - Added comprehensive tests for API key update logic and improved coverage for API key loading. - **Chores** - Updated configuration files and cleaned up unused schema and component files. - Added new dialog components and centralized exports for dialogs. - Improved ESLint configuration and import statements for better type handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent d9ab58e commit 0788756

File tree

59 files changed

+1530
-3807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1530
-3807
lines changed

api/dev/configs/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
],
77
"sandbox": true,
88
"ssoSubIds": [],
9-
"plugins": []
9+
"plugins": ["unraid-api-plugin-connect"]
1010
}

api/dev/configs/connect.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
{
2-
"wanaccess": false,
3-
"wanport": 0,
4-
"upnpEnabled": false,
5-
"apikey": "",
6-
"localApiKey": "",
7-
"email": "",
8-
"username": "",
9-
"avatar": "",
10-
"regWizTime": "",
11-
"accesstoken": "",
12-
"idtoken": "",
13-
"refreshtoken": "",
14-
"dynamicRemoteAccessType": "DISABLED",
15-
"ssoSubIds": []
16-
}

0 commit comments

Comments
 (0)