Add role edit page container (#10037)

## Context

This PR adds a new SettingsRoleEdit page, the existing roles page now
redirects to the role edition page when clicking on it.
For now, we can't edit anything. Next step is to allow role assignment
in the corresponding tab.

<img width="941" alt="Screenshot 2025-02-05 at 17 16 14"
src="https://github.com/user-attachments/assets/ca46de15-6237-4de6-88e1-2384a09d4a27"
/>
This commit is contained in:
Weiko
2025-02-06 11:27:56 +01:00
committed by GitHub
parent 8a660d5d3f
commit e849378726
6 changed files with 179 additions and 1 deletions

View File

@ -265,6 +265,12 @@ const SettingsRoles = lazy(() =>
})),
);
const SettingsRoleEdit = lazy(() =>
import('~/pages/settings/roles/SettingsRoleEdit').then((module) => ({
default: module.SettingsRoleEdit,
})),
);
type SettingsRoutesProps = {
isBillingEnabled?: boolean;
isFunctionSettingsEnabled?: boolean;
@ -311,6 +317,7 @@ export const SettingsRoutes = ({
/>
<Route path={SettingsPath.NewObject} element={<SettingsNewObject />} />
<Route path={SettingsPath.Roles} element={<SettingsRoles />} />
<Route path={SettingsPath.RoleDetail} element={<SettingsRoleEdit />} />
<Route path={SettingsPath.Developers} element={<SettingsDevelopers />} />
<Route
path={SettingsPath.DevelopersNewApiKey}

View File

@ -37,4 +37,5 @@ export enum SettingsPath {
FeatureFlags = 'admin-panel/feature-flags',
Lab = 'lab',
Roles = 'roles',
RoleDetail = 'roles/:roleId',
}