Skip to content
Snippets Groups Projects
Commit 1b2e3c65 authored by OZGCloud's avatar OZGCloud
Browse files

Merge branch 'refs/heads/master' into OZG-6720-nacharbeiten

# Conflicts:
#	alfa-client/libs/admin/settings/src/lib/organisationseinheit/organisationseinheit-container/organisationseinheit-list/organisationseinheit-list.component.spec.ts
parents 8889f641 99f6de34
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 38 deletions
...@@ -6,10 +6,17 @@ ...@@ -6,10 +6,17 @@
@import 'libs/design-system/src/lib/tailwind-preset/root.css'; @import 'libs/design-system/src/lib/tailwind-preset/root.css';
@import 'libs/ui/src/lib/font/font_material'; @import 'libs/ui/src/lib/font/font_material';
@import 'variables';
@include mat.all-component-typographies(); @include mat.all-component-typographies();
@include mat.core(); @include mat.core();
@include mat.all-component-themes($alfaTheme);
body.dark {
@include mat.all-component-colors($alfaDarkTheme);
}
.heading-1 { .heading-1 {
@apply text-3xl font-medium text-text; @apply text-3xl font-medium text-text;
} }
......
...@@ -15,13 +15,12 @@ import { buildVorgang, initVorgaenge, objectIds } from '../../../support/vorgang ...@@ -15,13 +15,12 @@ import { buildVorgang, initVorgaenge, objectIds } from '../../../support/vorgang
registerLocaleData(localeDe, 'de', localeDeExtra); registerLocaleData(localeDe, 'de', localeDeExtra);
describe('Vorgang Zusammenarbeit anfragen', () => { describe.skip('Vorgang Zusammenarbeit anfragen', () => {
const mainPage: MainPage = new MainPage(); const mainPage: MainPage = new MainPage();
const vorgangList: VorgangListE2EComponent = mainPage.getVorgangList(); const vorgangList: VorgangListE2EComponent = mainPage.getVorgangList();
const vorgangPage: VorgangPage = new VorgangPage(); const vorgangPage: VorgangPage = new VorgangPage();
const zusammenarbeitContainer: VorgangZusammenarbeitE2EComponent = const zusammenarbeitContainer: VorgangZusammenarbeitE2EComponent = vorgangPage.getZusammenarbeitContainer();
vorgangPage.getZusammenarbeitContainer();
const zusammenarbeitVorgang: VorgangE2E = { const zusammenarbeitVorgang: VorgangE2E = {
...buildVorgang(objectIds[0], 'Zusammenarbeit Vorgang'), ...buildVorgang(objectIds[0], 'Zusammenarbeit Vorgang'),
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<ods-list-item <ods-list-item
*ngFor="let organisationsEinheitResource of organisationsEinheitResources" *ngFor="let organisationsEinheitResource of organisationsEinheitResources"
[routerLink]="getEncodedSelfLink(organisationsEinheitResource)" [routerLink]="getEncodedSelfLink(organisationsEinheitResource)"
[class.text-red-500]="syncResultIsNotOk(organisationsEinheitResource)" [class.text-red-500]="
organisationsEinheitResource.syncResult === AdminOrganisationsEinheitSyncResult.NOT_FOUND_IN_PVOG ||
organisationsEinheitResource.syncResult === AdminOrganisationsEinheitSyncResult.ORGANISATIONSEINHEIT_ID_NOT_UNIQUE
"
data-test-id="organisations-einheit-list-item" data-test-id="organisations-einheit-list-item"
> >
<dl class="flex-1 basis-3/4 font-semibold" [class.pl-4]="organisationsEinheitResource.isChild"> <dl class="flex-1 basis-3/4 font-semibold" [class.pl-4]="organisationsEinheitResource.isChild">
...@@ -19,10 +22,16 @@ ...@@ -19,10 +22,16 @@
<dt class="sr-only">Synchronisationsergebnis</dt> <dt class="sr-only">Synchronisationsergebnis</dt>
<dd class="mt-1"> <dd class="mt-1">
<ods-exclamation-icon <ods-exclamation-icon
*ngIf="syncResultIsNotOk(organisationsEinheitResource)" *ngIf="organisationsEinheitResource.syncResult === AdminOrganisationsEinheitSyncResult.NOT_FOUND_IN_PVOG"
matTooltip="Organisationseinheit wurde nicht in den PVOG-Daten gefunden." matTooltip="Organisationseinheit wurde nicht in den PVOG-Daten gefunden."
size="small" size="small"
/> />
<ods-exclamation-icon
*ngIf="
organisationsEinheitResource.syncResult === AdminOrganisationsEinheitSyncResult.ORGANISATIONSEINHEIT_ID_NOT_UNIQUE
"
size="small"
/>
</dd> </dd>
</dl> </dl>
</ods-list-item> </ods-list-item>
......
...@@ -49,7 +49,7 @@ describe('OrganisationsEinheitListComponent', () => { ...@@ -49,7 +49,7 @@ describe('OrganisationsEinheitListComponent', () => {
describe('input', () => { describe('input', () => {
describe('organisationsEinheitResources', () => { describe('organisationsEinheitResources', () => {
organisationsEinheitResource.syncResult = AdminOrganisationsEinheitSyncResult.NAME_MISMATCH; organisationsEinheitResource.syncResult = AdminOrganisationsEinheitSyncResult.NOT_FOUND_IN_PVOG;
let listItemElement: HTMLElement; let listItemElement: HTMLElement;
let nameElement: Element; let nameElement: Element;
...@@ -108,23 +108,6 @@ describe('OrganisationsEinheitListComponent', () => { ...@@ -108,23 +108,6 @@ describe('OrganisationsEinheitListComponent', () => {
expect(component.organisationsEinheitResources[2].isChild).toBeTruthy(); expect(component.organisationsEinheitResources[2].isChild).toBeTruthy();
}); });
}); });
describe('syncResultIsNotOk', () => {
it('should return true', () => {
organisationsEinheitResource.syncResult = AdminOrganisationsEinheitSyncResult.NAME_MISMATCH;
const result: boolean = component.syncResultIsNotOk(organisationsEinheitResource);
expect(result).toBeTruthy();
});
it('should return false', () => {
organisationsEinheitResource.syncResult = AdminOrganisationsEinheitSyncResult.OK;
const result: boolean = component.syncResultIsNotOk(organisationsEinheitResource);
expect(result).toBeFalsy();
});
});
describe('getEncodedSelfLink', () => { describe('getEncodedSelfLink', () => {
it('should return encoded self link', () => { it('should return encoded self link', () => {
......
...@@ -20,6 +20,8 @@ export class OrganisationsEinheitListComponent { ...@@ -20,6 +20,8 @@ export class OrganisationsEinheitListComponent {
this.moveChildrenIntoParentLevel(list); this.moveChildrenIntoParentLevel(list);
} }
public readonly AdminOrganisationsEinheitSyncResult = AdminOrganisationsEinheitSyncResult;
moveChildrenIntoParentLevel(list: AdminOrganisationsEinheitResource[]): void { moveChildrenIntoParentLevel(list: AdminOrganisationsEinheitResource[]): void {
list.forEach((parent) => { list.forEach((parent) => {
this._organisationsEinheitResources.push(parent); this._organisationsEinheitResources.push(parent);
...@@ -33,10 +35,6 @@ export class OrganisationsEinheitListComponent { ...@@ -33,10 +35,6 @@ export class OrganisationsEinheitListComponent {
}); });
} }
syncResultIsNotOk(organisationsEinheitResource: AdminOrganisationsEinheitResource): boolean {
return organisationsEinheitResource.syncResult !== AdminOrganisationsEinheitSyncResult.OK;
}
getEncodedSelfLink(organisationsEinheitResource: AdminOrganisationsEinheitResource): ResourceUri { getEncodedSelfLink(organisationsEinheitResource: AdminOrganisationsEinheitResource): ResourceUri {
const resourceUri: ResourceUri = toResourceUri(organisationsEinheitResource, OrganisationsEinheitLinkRel.SELF); const resourceUri: ResourceUri = toResourceUri(organisationsEinheitResource, OrganisationsEinheitLinkRel.SELF);
return encodeUrlForEmbedding(resourceUri); return encodeUrlForEmbedding(resourceUri);
......
...@@ -5,12 +5,14 @@ ...@@ -5,12 +5,14 @@
}" }"
> >
<alfa-organisations-einheit-container <alfa-organisations-einheit-container
class="flex flex-1 flex-col"
*ngIf="showOrganisationsEinheitAnfrageButton" *ngIf="showOrganisationsEinheitAnfrageButton"
data-test-id="organisations-einheit-container" data-test-id="organisations-einheit-container"
[vorgang]="vorgang" [vorgang]="vorgang"
[collaborationListResource]="collaborationStateListResource.resource" [collaborationListResource]="collaborationStateListResource.resource"
></alfa-organisations-einheit-container> ></alfa-organisations-einheit-container>
<alfa-externe-fachstelle-container <alfa-externe-fachstelle-container
class="flex flex-1 flex-col"
*ngIf="showExterneFachstelleAnfrageButton" *ngIf="showExterneFachstelleAnfrageButton"
data-test-id="externe-fachstelle-container" data-test-id="externe-fachstelle-container"
[vorgang]="vorgang" [vorgang]="vorgang"
......
...@@ -11,12 +11,11 @@ ...@@ -11,12 +11,11 @@
></alfa-collaboration-request-form> ></alfa-collaboration-request-form>
</ng-container> </ng-container>
<ng-template #anfrageErstellenButton> <ng-template #anfrageErstellenButton>
<div class="flex w-111 justify-between bg-background-100 p-4 shadow-md"> <div class="flex flex-1 gap-3 border border-grayborder bg-background-100 p-4 shadow shadow-grayborder">
<ods-external-unit-icon /> <ods-external-unit-icon />
<div class="flex w-44 flex-col text-base"> <div class="flex flex-1 flex-col text-base">
<p class="text-primary">Externe Fachstelle</p> <p class="text-primary">Externe Fachstelle</p>
<p class="text-text">Private Organisation,</p> <p class="text-text">Private Organisation, Verein, Schule</p>
<p class="text-text">Verein, Schule</p>
</div> </div>
<alfa-anfrage-erstellen-button data-test-id="externe-fachstelle-anfrage-erstellen-button" (clickEmitter)="showForm()" /> <alfa-anfrage-erstellen-button data-test-id="externe-fachstelle-anfrage-erstellen-button" (clickEmitter)="showForm()" />
</div> </div>
......
...@@ -11,12 +11,11 @@ ...@@ -11,12 +11,11 @@
></alfa-collaboration-request-form> ></alfa-collaboration-request-form>
</ng-container> </ng-container>
<ng-template #anfrageErstellenButton> <ng-template #anfrageErstellenButton>
<div class="flex w-111 justify-between bg-background-100 p-4 shadow-md"> <div class="flex flex-1 gap-3 border border-grayborder bg-background-100 bg-background-100 p-4 p-4 shadow shadow-grayborder">
<ods-public-administration-icon /> <ods-public-administration-icon />
<div class="flex w-44 flex-col text-base"> <div class="flex flex-1 flex-col text-base">
<p class="text-primary">Öffentliche Verwaltung</p> <p class="text-primary">Öffentliche Verwaltung</p>
<p class="text-text">Kommune, Amt,</p> <p class="text-text">Kommune, Amt, Ministerium</p>
<p class="text-text">Ministerium</p>
</div> </div>
<alfa-anfrage-erstellen-button data-test-id="organisations-einheit-anfrage-erstellen-button" (clickEmitter)="showForm()" /> <alfa-anfrage-erstellen-button data-test-id="organisations-einheit-anfrage-erstellen-button" (clickEmitter)="showForm()" />
</div> </div>
......
...@@ -45,9 +45,6 @@ module.exports = { ...@@ -45,9 +45,6 @@ module.exports = {
maxHeight: { maxHeight: {
120: '480px', 120: '480px',
}, },
width: {
111: '444px',
},
colors: { colors: {
ozgblue: { ozgblue: {
50: 'hsl(200, 100%, 96%)', 50: 'hsl(200, 100%, 96%)',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment