diff --git a/console/README.md b/console/README.md index 2d958aa48c3..9e5844d88df 100644 --- a/console/README.md +++ b/console/README.md @@ -39,7 +39,7 @@ Generated files: To generate proto files: ```bash -pnpm run generate +pnpm turbo generate --filter=./console ``` This automatically runs both generations in the correct order via Turbo dependencies. @@ -49,7 +49,7 @@ This automatically runs both generations in the correct order via Turbo dependen To start the development server: ```bash -pnpm start +pnpm turbo start --filter=./console ``` This will: @@ -62,7 +62,7 @@ This will: To build for production: ```bash -pnpm run build +pnpm turbo build --filter=./console ``` This will: @@ -75,13 +75,13 @@ This will: To run linting and formatting checks: ```bash -pnpm run lint +pnpm turbo lint --filter=./console ``` To auto-fix formatting issues: ```bash -pnpm run lint:fix +pnpm turbo lint:fix --filter=./console ``` ## Project Structure diff --git a/console/package.json b/console/package.json index 2a1b42eb93e..757eb09abe6 100644 --- a/console/package.json +++ b/console/package.json @@ -34,7 +34,10 @@ "@fortawesome/angular-fontawesome": "^0.13.0", "@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/free-brands-svg-icons": "^6.7.2", + "@ng-icons/core": "^25.0.0", + "@ng-icons/heroicons": "^25.0.0", "@ngx-translate/core": "^15.0.0", + "@tanstack/angular-query-experimental": "^5.85.5", "@zitadel/client": "workspace:*", "@zitadel/proto": "workspace:*", "angular-oauth2-oidc": "^15.0.1", @@ -94,4 +97,4 @@ "prettier-plugin-organize-imports": "^4.1.0", "typescript": "5.1" } -} \ No newline at end of file +} diff --git a/console/src/app/app-routing.module.ts b/console/src/app/app-routing.module.ts index 582f65d8af9..9366305aee7 100644 --- a/console/src/app/app-routing.module.ts +++ b/console/src/app/app-routing.module.ts @@ -10,7 +10,7 @@ const routes: Routes = [ { path: '', loadChildren: () => import('./pages/home/home.module'), - canActivate: [authGuard, roleGuard], + canActivate: [authGuard], data: { roles: ['.'], }, @@ -31,7 +31,10 @@ const routes: Routes = [ { path: 'orgs', loadChildren: () => import('./pages/org-list/org-list.module'), - canActivate: [authGuard], + canActivate: [authGuard, roleGuard], + data: { + roles: ['org.read'], + }, }, { path: 'granted-projects', @@ -75,7 +78,15 @@ const routes: Routes = [ loadChildren: () => import('./pages/actions/actions.module'), canActivate: [authGuard, roleGuard], data: { - roles: ['org.action.read', 'org.flow.read'], + roles: ['iam.read', 'iam.read'], + }, + }, + { + path: 'actions-v1', + loadChildren: () => import('./pages/org-actions/actions.module'), + canActivate: [authGuard, roleGuard], + data: { + roles: ['iam.read', 'iam.read'], }, }, { diff --git a/console/src/app/app.component.html b/console/src/app/app.component.html index 9907e233e18..0d8831c355f 100644 --- a/console/src/app/app.component.html +++ b/console/src/app/app.component.html @@ -1,17 +1,17 @@
{{ 'ACTIONSTWO.EXECUTION.DESCRIPTION' | translate }}
{{ 'ACTIONSTWO.TARGET.DESCRIPTION' | translate }}
- {{ 'DESCRIPTIONS.ORG.DESCRIPTION' | translate }} -
- {{ setting.i18nDesc ? (setting.i18nDesc | translate) : '' }} -
{{ 'ORG.PAGES.LISTDESCRIPTION' | translate }}
{{ 'DESCRIPTIONS.ACTIONS.DESCRIPTION' | translate }}
{{ 'DESCRIPTIONS.ACTIONS.FLOWS.DESCRIPTION' | translate }}
{{ 'HOME.DISCLAIMER' | translate }}
- {{ - (type === Type.HUMAN ? 'DESCRIPTIONS.USERS.HUMANS.DESCRIPTION' : 'DESCRIPTIONS.USERS.MACHINES.DESCRIPTION') | translate - }} -
+ {{ + (type === Type.HUMAN ? 'DESCRIPTIONS.USERS.HUMANS.DESCRIPTION' : 'DESCRIPTIONS.USERS.MACHINES.DESCRIPTION') + | translate + }} +