From 26dccbcc3d14062ba65989c7831e456b2a138311 Mon Sep 17 00:00:00 2001 From: jurei733 <67505990+jurei733@users.noreply.github.com> Date: Sun, 3 Aug 2025 17:34:55 +0200 Subject: [PATCH 01/16] Show for coders my-coding-jobs --- api-dto/workspaces/workspace-user-dto.ts | 2 +- apps/frontend/src/app/coding/coding.routes.ts | 5 + .../my-coding-jobs.component.html | 91 +++++++ .../my-coding-jobs.component.scss | 233 ++++++++++++++++++ .../my-coding-jobs.component.ts | 180 ++++++++++++++ .../src/app/components/home/home.component.ts | 29 ++- 6 files changed, 538 insertions(+), 2 deletions(-) create mode 100644 apps/frontend/src/app/coding/components/my-coding-jobs/my-coding-jobs.component.html create mode 100644 apps/frontend/src/app/coding/components/my-coding-jobs/my-coding-jobs.component.scss create mode 100644 apps/frontend/src/app/coding/components/my-coding-jobs/my-coding-jobs.component.ts diff --git a/api-dto/workspaces/workspace-user-dto.ts b/api-dto/workspaces/workspace-user-dto.ts index a307f4c4b..9b7bf8119 100644 --- a/api-dto/workspaces/workspace-user-dto.ts +++ b/api-dto/workspaces/workspace-user-dto.ts @@ -8,5 +8,5 @@ export class WorkspaceUserDto { userId!: number; @ApiProperty({ nullable: true }) - accessLevel!: string | null; + accessLevel!: number | null; } diff --git a/apps/frontend/src/app/coding/coding.routes.ts b/apps/frontend/src/app/coding/coding.routes.ts index bd4f51578..1ffcf2e95 100644 --- a/apps/frontend/src/app/coding/coding.routes.ts +++ b/apps/frontend/src/app/coding/coding.routes.ts @@ -11,5 +11,10 @@ export const codingRoutes: Routes = [ path: 'test-person-coding/:workspace_id', canActivate: [canActivateAuth], loadComponent: () => import('./components/test-person-coding/test-person-coding.component').then(m => m.TestPersonCodingComponent) + }, + { + path: 'coding', + canActivate: [canActivateAuth], + loadComponent: () => import('./components/my-coding-jobs/my-coding-jobs.component').then(m => m.MyCodingJobsComponent) } ]; diff --git a/apps/frontend/src/app/coding/components/my-coding-jobs/my-coding-jobs.component.html b/apps/frontend/src/app/coding/components/my-coding-jobs/my-coding-jobs.component.html new file mode 100644 index 000000000..39eb9e49c --- /dev/null +++ b/apps/frontend/src/app/coding/components/my-coding-jobs/my-coding-jobs.component.html @@ -0,0 +1,91 @@ +
Hier finden Sie alle Kodierjobs, die Ihnen zugewiesen wurden
+ + @if (isLoading) { +Kodierjobs werden geladen...
+Verwalten Sie Kodierer und Kodierjobs für die manuelle Kodierung von Antworten.
Lade Variablenbündel...
|
- |
|
{{ getVariableCount(element) }} | -
|---|
{{ selectedVariableBundleGroups.selected.length }} Variablenbündel ausgewählt
+{{ selectedVariableBundles.selected.length }} Variablenbündel ausgewählt