Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display all projects in project quota setting page. (#2759)
**TR;DR:** Added a new component 'ProjectSelectForAdminPage' to display all projects in the project quota setting page. It extends `ProjectSelect` and uses `disableDefaultFilter` props as a default. **How to test:** 1. Endpoint: `http://10.82.230.49:8090`, Location: `/storage-settings/local:myceph` 2. Login with superadmin. 3. Click the 'For project' tab. 4. The project select shows all projects of selected domain. But top header project select is `ProjectSelect` that doesn't use `disableDefaultFilter`. So, it only shows accessible projects such as default and model-test. **Checklist for reviewers:** Check `ProjectSelectForAdminPage` displays all projects that include specific domain. You can check in `storage-settings/local:myceph` page. **Changes:** - Renamed `ProjectSelector` component to `ProjectSelect` for consistency - Created a new `ProjectSelectForAdminPage` component that extends `ProjectSelect` - Added `disableDefaultFilter` prop to `ProjectSelect` to allow bypassing the default project filtering - Updated `FolderCreateModal` and `StorageHostSettingsPanel` to use the new component names - Implemented `ProjectSelectForAdminPage` in `StorageHostSettingsPanel` to show all projects without filtering **Rationale:** This change introduces a more flexible `ProjectSelect` component that can be used in both regular and admin contexts. The new `ProjectSelectForAdminPage` component allows administrators to view and select from all projects, regardless of user permissions. **Effects:** - Regular users will see no change in behavior - Administrators will now have access to all projects in the `StorageHostSettingsPanel` - Improved code consistency and reusability **Checklist:** - [ ] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [x] Specific setting for review (eg., KB link, endpoint or how to setup) - [x] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
- Loading branch information