Skip to content

Commit

Permalink
feat: lisää pdf:iin logo ja asiatunnus (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
haapamakim authored Jan 31, 2023
1 parent f60ff8e commit ccbbddc
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 65 deletions.
1 change: 0 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@

if [ "$(git rev-parse --abbrev-ref HEAD)" != "prod" ]; then
export ENVIRONMENT=feature
npm run lint
npm run husky:test
fi
26 changes: 22 additions & 4 deletions backend/src/asiakirja/abstractPdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export abstract class AbstractPdf {
.replace(/[^\w() -]/g, " ")
.slice(0, 100) + ".pdf";
this.fileBasePath = __dirname;
this.doc = this.setupAccessibleDocument();
this.setupAccessibleDocument();
this.baseline = baseline;
}

Expand Down Expand Up @@ -119,7 +119,7 @@ export abstract class AbstractPdf {
]);
}

private setupAccessibleDocument() {
private setupAccessibleDocument(): void {
const doc = new PDFDocument({
pdfVersion: "1.7ext3",
size: "A4",
Expand All @@ -129,6 +129,7 @@ export abstract class AbstractPdf {
displayTitle: true,
bufferPages: true,
});
this.doc = doc;

const SRGB_IEC61966_ICC_PROFILE_B64 =
"AAAL7AAAAAACAAAAbW50clJHQiBYWVogB9kAAwAbABUAJQAtYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAPbWAAEAAAAA0y0AAAAAyVvWN+ldijsN84+ZwTIDiQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQZGVzYwAAAUQAAAB9YlhZWgAAAcQAAAAUYlRSQwAAAdgAAAgMZG1kZAAACeQAAACIZ1hZWgAACmwAAAAUZ1RSQwAAAdgAAAgMbHVtaQAACoAAAAAUbWVhcwAACpQAAAAkYmtwdAAACrgAAAAUclhZWgAACswAAAAUclRSQwAAAdgAAAgMdGVjaAAACuAAAAAMdnVlZAAACuwAAACH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AAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAAAAAAFAAAAAAAABtZWFzAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJYWVogAAAAAAAAAxYAAAMzAAACpFhZWiAAAAAAAABvogAAOPUAAAOQc2lnIAAAAABDUlQgZGVzYwAAAAAAAAAtUmVmZXJlbmNlIFZpZXdpbmcgQ29uZGl0aW9uIGluIElFQyA2MTk2Ni0yLTEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAAD21gABAAAAANMtdGV4dAAAAABDb3B5cmlnaHQgSW50ZXJuYXRpb25hbCBDb2xvciBDb25zb3J0aXVtLCAyMDA5AABzZjMyAAAAAAABDEQAAAXf///zJgAAB5QAAP2P///7of///aIAAAPbAADAdQ==";
Expand Down Expand Up @@ -193,9 +194,14 @@ export abstract class AbstractPdf {
doc.registerFont("ArialMT", arialFontFile);
doc.registerFont("ArialMTBold", __dirname + "/files/ARIALBOLDMT.OTF");

doc.on("pageAdded", () => {
this.appendHeader();
});

doc.addStructure(
doc.struct("Document", {}, () => {
doc.text("", INDENTATION_BODY).moveDown(2);
this.appendHeader();
doc.text("", INDENTATION_BODY);
})
);

Expand All @@ -219,7 +225,15 @@ export abstract class AbstractPdf {
this.textContent = this.textContent + "\n".repeat(args[0] | 1);
return originalMoveDownFunc.apply(doc, args);
};
return doc;
}

private appendHeader() {
const isVaylaTilaaja = this.isVaylaTilaaja();
const filePath = isVaylaTilaaja ? "/files/vayla.png" : "/files/ely.png";
const fullFilePath = this.fileBasePath + filePath;
this.doc.image(fullFilePath, 19, 32, { height: 75 });
this.doc.text(this.asiatunnus(), { align: "right" });
this.doc.moveDown(3);
}

protected addContent(): void {
Expand Down Expand Up @@ -263,4 +277,8 @@ export abstract class AbstractPdf {
this.doc.end();
});
}

abstract isVaylaTilaaja(): boolean;

abstract asiatunnus(): string;
}
2 changes: 0 additions & 2 deletions backend/src/asiakirja/suunnittelunAloitus/Kutsu20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ export class Kutsu20 extends CommonPdf<SuunnitteluVaiheKutsuAdapter> {
}

protected addContent(): void {
const vaylaTilaaja = this.isVaylaTilaaja();
const elements: PDFKit.PDFStructureElementChild[] = [
this.logo(vaylaTilaaja),
this.headerElement(this.header),
this.titleElement(),
...this.addDocumentElements(),
Expand Down
9 changes: 3 additions & 6 deletions backend/src/asiakirja/suunnittelunAloitus/Kuulutus30.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ export class Kuulutus30 extends CommonPdf<NahtavillaoloVaiheKutsuAdapter> {
}

protected addContent(): void {
const vaylaTilaaja = this.isVaylaTilaaja();
const elements: PDFKit.PDFStructureElementChild[] = [
this.logo(vaylaTilaaja),
this.headerElement(this.header),
...this.addDocumentElements(),
].filter((element) => element);
const elements: PDFKit.PDFStructureElementChild[] = [this.headerElement(this.header), ...this.addDocumentElements()].filter(
(element) => element
);
this.doc.addStructure(this.doc.struct("Document", {}, elements));
}

Expand Down
5 changes: 1 addition & 4 deletions backend/src/asiakirja/suunnittelunAloitus/Kuulutus31.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ export class Kuulutus31 extends CommonPdf<NahtavillaoloVaiheKutsuAdapter> {
}

protected addContent(): void {
const vaylaTilaaja = this.isVaylaTilaaja();
const elements: PDFKit.PDFStructureElementChild[] = [this.logo(vaylaTilaaja), this.addHeader(), ...this.addDocumentElements()].filter(
(element) => element
);
const elements: PDFKit.PDFStructureElementChild[] = [this.addHeader(), ...this.addDocumentElements()].filter((element) => element);
this.doc.addStructure(this.doc.struct("Document", {}, elements));
}

Expand Down
3 changes: 0 additions & 3 deletions backend/src/asiakirja/suunnittelunAloitus/Kuulutus60.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ export class Kuulutus60 extends CommonPdf<HyvaksymisPaatosVaiheKutsuAdapter> {
}

protected addContent(): void {
const vaylaTilaaja = this.isVaylaTilaaja();
let elements: PDFKit.PDFStructureElementChild[];
const nahtavillaoloaikaKappale: PDFKit.PDFStructureElementChild | undefined = this.nahtavillaoloaikaParagraph();
if (nahtavillaoloaikaKappale) {
elements = [
this.logo(vaylaTilaaja),
this.headerElement(this.header),
this.headerElement(this.kutsuAdapter.title, false),
nahtavillaoloaikaKappale,
Expand All @@ -106,7 +104,6 @@ export class Kuulutus60 extends CommonPdf<HyvaksymisPaatosVaiheKutsuAdapter> {
];
} else {
elements = [
this.logo(vaylaTilaaja),
this.headerElement(this.header),
this.headerElement(this.kutsuAdapter.title, false),
...this.paragraphs(),
Expand Down
9 changes: 3 additions & 6 deletions backend/src/asiakirja/suunnittelunAloitus/Kuulutus61.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,9 @@ export class Kuulutus61 extends CommonPdf<HyvaksymisPaatosVaiheKutsuAdapter> {
}

protected addContent(): void {
const vaylaTilaaja = this.isVaylaTilaaja();
const elements: PDFKit.PDFStructureElementChild[] = [
this.logo(vaylaTilaaja),
...this.paragraphs(),
this.toimivaltainenViranomainen(),
].filter((element) => element);
const elements: PDFKit.PDFStructureElementChild[] = [...this.paragraphs(), this.toimivaltainenViranomainen()].filter(
(element) => element
);
this.doc.addStructure(this.doc.struct("Document", {}, elements));
}

Expand Down
9 changes: 3 additions & 6 deletions backend/src/asiakirja/suunnittelunAloitus/Kuulutus6263.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,9 @@ export class Kuulutus6263 extends CommonPdf<HyvaksymisPaatosVaiheKutsuAdapter> {
}

protected addContent(): void {
const vaylaTilaaja = this.isVaylaTilaaja();
const elements: PDFKit.PDFStructureElementChild[] = [
this.logo(vaylaTilaaja),
this.headerElement(this.header),
...this.paragraphs(),
].filter((element) => element);
const elements: PDFKit.PDFStructureElementChild[] = [this.headerElement(this.header), ...this.paragraphs()].filter(
(element) => element
);
this.doc.addStructure(this.doc.struct("Document", {}, elements));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ export class AloitusKuulutus10TR extends SuunnittelunAloitusPdf {
this.doc.struct("P", {}, this.moreInfoElements(this.params.yhteystiedot, undefined, true)),
];
}

}
25 changes: 5 additions & 20 deletions backend/src/asiakirja/suunnittelunAloitus/commonPdf.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AbstractPdf, ParagraphOptions } from "../abstractPdf";
import { Kieli } from "../../../../common/graphql/apiModel";
import { Yhteystieto } from "../../database/model";
import { log } from "../../logger";
import { CommonKutsuAdapter } from "../adapter/commonKutsuAdapter";
import { formatNimi } from "../../util/userUtil";
import PDFStructureElement = PDFKit.PDFStructureElement;
Expand Down Expand Up @@ -31,7 +30,7 @@ export abstract class CommonPdf<T extends CommonKutsuAdapter> extends AbstractPd
return this.paragraph(this.kutsuAdapter.text("asiakirja.tietosuoja"));
}

protected isVaylaTilaaja(): boolean {
isVaylaTilaaja(): boolean {
return this.kutsuAdapter.isVaylaTilaaja();
}

Expand Down Expand Up @@ -72,24 +71,6 @@ export abstract class CommonPdf<T extends CommonKutsuAdapter> extends AbstractPd
});
}

protected logo(isVaylaTilaaja: boolean): PDFStructureElement {
const alt = isVaylaTilaaja ? "Väylävirasto — Trafikledsverket" : "Elinkeino-, liikenne- ja ympäristökeskus";
const filePath = isVaylaTilaaja ? "/files/vayla.png" : "/files/ely.png";
return this.doc.struct(
"Figure",
{
alt,
},
[
() => {
const fullFilePath = this.fileBasePath + filePath;
log.debug(fullFilePath);
this.doc.image(fullFilePath, undefined, undefined, { height: 83 });
},
]
);
}

protected moreInfoElements(
yhteystiedot: Yhteystieto[] | null | undefined,
yhteysHenkilot?: string[] | undefined | null,
Expand All @@ -109,4 +90,8 @@ export abstract class CommonPdf<T extends CommonKutsuAdapter> extends AbstractPd
};
});
}

asiatunnus(): string {
return this.kutsuAdapter.asiatunnus;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export abstract class SuunnittelunAloitusPdf extends CommonPdf<AloituskuulutusKu

protected addContent(): void {
const elements: (PDFKit.PDFStructureElementChild | undefined)[] = [
this.logo(this.isVaylaTilaaja()),
this.headerElement(this.header),
this.titleElement(),
this.uudelleenKuulutusParagraph(),
Expand Down
34 changes: 26 additions & 8 deletions backend/test/asiakirja/__snapshots__/asiakirjaService.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ Lisätietoja antaa
Kunta Kuntalainen (Nokia),
puh. 123456789, Kunta.Kuntalainen(at)vayla.fi
Pekka Projari (Väylävirasto),
puh. 123456789, pekka.projari(at)vayla.fi
puh. 123456789, pekka.projari(at)vayla.fi ELY/1/2022
Matti Meikalainen (Väylävirasto),
puh. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
Expand Down Expand Up @@ -163,7 +166,10 @@ Mer information om planen
Kunta Kuntalainen (Nokia),
tel. 123456789, Kunta.Kuntalainen(at)vayla.fi
Pekka Projari (Väylävirasto),
tel. 123456789, pekka.projari(at)vayla.fi
tel. 123456789, pekka.projari(at)vayla.fi ELY/1/2022
Matti Meikalainen (Väylävirasto),
tel. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
Expand Down Expand Up @@ -227,7 +233,10 @@ Lisätietoja antaa
Kunta Kuntalainen (Nokia),
puh. 123456789, Kunta.Kuntalainen(at)vayla.fi
Pekka Projari (Väylävirasto),
puh. 123456789, pekka.projari(at)vayla.fi
puh. 123456789, pekka.projari(at)vayla.fi VAYLA/1/2022
Matti Meikalainen (Väylävirasto),
puh. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
Expand Down Expand Up @@ -337,7 +346,10 @@ Mer information om planen
Kunta Kuntalainen (Nokia),
tel. 123456789, Kunta.Kuntalainen(at)vayla.fi
Pekka Projari (Väylävirasto),
tel. 123456789, pekka.projari(at)vayla.fi
tel. 123456789, pekka.projari(at)vayla.fi VAYLA/1/2022
Matti Meikalainen (Väylävirasto),
tel. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
Expand Down Expand Up @@ -569,7 +581,7 @@ puh. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
puh. 0293121213, markku.koi(at)koi.com
Väylävirasto
LUONNOSLUONNOS",
LUONNOS",
}
`;

Expand Down Expand Up @@ -724,7 +736,7 @@ puh. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
puh. 0293121213, markku.koi(at)koi.com
Väylävirasto
LUONNOSLUONNOS",
LUONNOS",
}
`;

Expand Down Expand Up @@ -1032,7 +1044,10 @@ Matti Meikalainen (Väylävirasto),
tel. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
tel. 0293121213, markku.koi(at)koi.com
Trafikledsverket
TrafikledsverketVAYLA/2/2022
LUONNOSLUONNOS",
}
`;
Expand Down Expand Up @@ -1187,7 +1202,10 @@ Matti Meikalainen (Väylävirasto),
tel. 123456789, Matti.Meikalainen(at)vayla.fi
Marko Koi (Kajaani),
tel. 0293121213, markku.koi(at)koi.com
Trafikledsverket
TrafikledsverketVAYLA/2/2022
LUONNOSLUONNOS",
}
`;
Expand Down
5 changes: 2 additions & 3 deletions deployment/lib/buildspec/buildspec-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ phases:

- touch .env.test
- npm ci
- fg || true
- npm run buildimage:generate
build:
commands:
- npm run lint&
- npm run localstack
- npm run lint
- npm run setupenvironment
- npm run test
- npm run localstack:stop&
- npm run localstack:stop &
- npm run build
cache:
paths:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"setupenvironment": "ts-node --project=tsconfig.cdk.json deployment/bin/setupEnvironment.ts",
"graphQLIntrospection": "ts-node $NODE_DEBUG_OPTION --project=tsconfig.cdk.json -r dotenv/config deployment/bin/runGraphQLIntrospection.ts dotenv_config_path=.env.local",
"test": "npm-run-all --aggregate-output --parallel test:frontend test:coverage test:integration:coverage",
"husky:test": "cross-env LOG_LEVEL=silent npm-run-all --aggregate-output --parallel \"test:!(backend|integration|migration)\"",
"husky:test": "cross-env LOG_LEVEL=silent npm-run-all --aggregate-output --parallel lint test:coverage test:integration:coverage",
"test:frontend": "jest --config \"./jest.frontend.config.js\"",
"test:migration": "cd migration-cli && npm run test",
"test:backend": "cross-env AWS_PROFILE=nonexistent TS_NODE_PROJECT=\"./backend/tsconfig.json\" mocha -r ts-node/register \"backend/test/**/*.test.ts\" \"common/**/*.test.ts\" --reporter mocha-multi-reporters --reporter-options configFile=mocha_reporter_config.json",
Expand Down
14 changes: 14 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@
"groupName": "all patch dependencies",
"groupSlug": "all-patch"
},
{
"matchPackagePatterns": [
"*"
],
"matchPackageNames": [
"@types/react"
],
"matchUpdateTypes": [
"patch"
],
"enabled": false,
"groupName": "ignored",
"groupSlug": "ignored"
},
{
"matchPackagePatterns": [
"*"
Expand Down

0 comments on commit ccbbddc

Please sign in to comment.