Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(form-system) Updated form builder to work with the new backend #17074

Open
wants to merge 168 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
167a4ca
form builder 'init'
Hyosam Feb 1, 2024
4615d90
Added functionality for relevant parties
Hyosam Feb 5, 2024
958e21b
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Feb 5, 2024
f795053
redirect to the correct url when creating a new form
Hyosam Feb 5, 2024
fc7f69d
removed secret from comment
Hyosam Feb 5, 2024
f8818bd
chore: nx format:write update dirty files
andes-it Feb 5, 2024
e1f667b
Property number component
Hyosam Feb 13, 2024
74464ff
Fixed the header
Hyosam Feb 13, 2024
6f8159e
Merge branch 'form-builder' of https://github.com/island-is/island.is…
Hyosam Feb 19, 2024
d7b708d
Reverted to next 13.3.0
Hyosam Feb 19, 2024
9666db4
Deleted the e2e project, updated to project to adhere to strict types…
Hyosam Feb 21, 2024
ba301da
chore: nx format:write update dirty files
andes-it Feb 21, 2024
ffe2b07
Started implementing zod validation
Hyosam Feb 22, 2024
1a988c7
Merge branch 'form-builder' of https://github.com/island-is/island.is…
Hyosam Feb 22, 2024
5f7f8f9
chore: nx format:write update dirty files
andes-it Feb 22, 2024
287bea8
Generated a nestjs client from our openapi schema
Hyosam Feb 23, 2024
e9b22be
Generated a client and created a domain client for graphql
Hyosam Feb 29, 2024
3ae8a54
Update Form, Group, Input, and Step DTOs
Hyosam Mar 4, 2024
32b2884
Refactor input settings in FormsService and Input model
Hyosam Mar 5, 2024
0bf07a0
Update API and authentication configurations
Hyosam Mar 5, 2024
c317d03
Added form-system client and module to the app/api and added a codege…
Hyosam Mar 6, 2024
0703fd8
Remove form-system module and add formSystemNavigation to masterNavig…
Hyosam Mar 11, 2024
1593e6a
Merge branches 'form-system' and 'main' of https://github.com/island-…
Hyosam Mar 11, 2024
2387fc7
Refactor form-system API code and formBuilder into portals/admin
Hyosam Mar 12, 2024
323ad38
Fixng typing erros in form system graphql domain
saevarma Mar 12, 2024
61a8469
Added another Object type and a bunch of inputTypes in order for code…
Hyosam Mar 13, 2024
8a5e637
Update import statements for LanguageTypeInput
Hyosam Mar 14, 2024
fd12938
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Mar 19, 2024
59ca682
Update form system module and related files
Hyosam Mar 19, 2024
4a54d78
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Mar 19, 2024
af195c6
Update FormSystemClient.config and Forms component
Hyosam Mar 20, 2024
1767ba6
Saving progress
Hyosam Apr 8, 2024
27aa9ab
Working version. Current issue: inputsettings are not being saved due…
Hyosam Apr 23, 2024
55226bc
took out the formsysteminputsettings and replaced it with a graphqlTy…
Hyosam Apr 23, 2024
d8a15cf
spring cleaning and creating dependencies within the form
Hyosam Apr 24, 2024
21edcb4
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Apr 24, 2024
5f92d53
removed form-builder app
Hyosam Apr 24, 2024
291432c
added required feature to preview items and fixed nextjs version
Hyosam Apr 24, 2024
dbd5161
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Apr 26, 2024
e2cb88e
chore: charts update dirty files
andes-it Apr 26, 2024
4aa133e
chore: nx format:write update dirty files
andes-it Apr 26, 2024
15976d7
memoized functions in the root for form
Hyosam Apr 30, 2024
33d25d1
memoized functions in the root form
Hyosam Apr 30, 2024
528662d
Translation button for english fields
Hyosam May 15, 2024
b45cb0b
More mideind translation
Hyosam May 15, 2024
67370ac
service.graphql
Hyosam May 15, 2024
10fa9e4
Users can choose static lists for Input type List
Hyosam May 16, 2024
f0b13e7
removed console logs
Hyosam May 16, 2024
33df16e
more cleanup
Hyosam May 16, 2024
d5a8217
added phone input preview
Hyosam May 16, 2024
a2fe3ca
Premises are correctly stored locally
Hyosam May 16, 2024
44de8cd
Merge branch 'form-system-phone-input' of https://github.com/island-i…
Hyosam May 16, 2024
d2e34ba
Preview is not shown when input type is default
Hyosam May 16, 2024
3984128
fixed relevant parties and added timeInput into preview
Hyosam May 17, 2024
f0ee8ff
MInor changes to styling in navComponent
Hyosam May 17, 2024
5a87909
PR revision
Hyosam May 24, 2024
1fe321e
Merge branch 'form-system' of https://github.com/island-is/island.is …
Hyosam May 24, 2024
acacdd7
Minor errors during merge fixed
Hyosam May 24, 2024
9af9f2c
Merge branch 'form-system' of https://github.com/island-is/island.is …
Hyosam May 27, 2024
e59279b
Merging form-system into this branch
Hyosam May 27, 2024
f4f9d91
listSettings changes
Hyosam May 27, 2024
36c8bee
Fixed the DnD
Hyosam May 30, 2024
106a319
PR requested changes
Hyosam Jun 3, 2024
b9f17db
Changes requested in PR
Hyosam Jun 3, 2024
0cdb74b
typo
Hyosam Jun 3, 2024
eea8010
Merge branch 'form-system' of https://github.com/island-is/island.is …
Hyosam Jun 4, 2024
bf72bcc
Removed dummy function from onChange
Hyosam Jun 4, 2024
345c6f6
started on propertyNumber preview
Hyosam Jun 5, 2024
f22f8a2
added propertyNumber preview
Hyosam Jun 6, 2024
35af4bc
fixed the listSettings so it correctly switches between custom and pr…
Hyosam Jun 6, 2024
122366a
Adjusted property number
Hyosam Jun 7, 2024
4d0128a
Added tooltips to the navbuttons
Hyosam Jun 10, 2024
ab4acba
When deleting step or group that contains any items, the system will …
Hyosam Jun 12, 2024
e0e3801
Using the DialogPrompt component when prompting for confirmation
Hyosam Jun 12, 2024
9a18716
formatMessage in navbuttons
Hyosam Jun 19, 2024
292f158
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Jun 19, 2024
278937d
Translation endpoint
Hyosam Jun 19, 2024
86fe623
Removed property from dropdown
Hyosam Jun 19, 2024
a39944f
format
Hyosam Jun 19, 2024
3c962a8
chore: charts update dirty files
andes-it Jun 19, 2024
0673442
Merge branch 'form-system1.1' of https://github.com/island-is/island.…
Hyosam Jun 19, 2024
599be10
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Jun 21, 2024
26442dd
Deleted file with typo
Hyosam Jun 21, 2024
995afe8
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Jun 21, 2024
48d76c0
update yarn.lock
Hyosam Jun 21, 2024
989ac92
chore: Remove unused code and fix linting issues
Hyosam Jun 26, 2024
80dae88
refactor radio button handler
Hyosam Jun 26, 2024
c686ba1
chore: nx format:write update dirty files
andes-it Jun 26, 2024
d925e44
refactor: Update ListSettings component to use array for list types a…
Hyosam Jun 26, 2024
d8fcab0
refactor: Handle error when fetching translation in FormSystemService
Hyosam Jun 26, 2024
7ad98ba
Merge branch 'form-system1.1' of https://github.com/island-is/island.…
Hyosam Jun 26, 2024
9215a5e
chore: nx format:write update dirty files
andes-it Jun 26, 2024
351c393
refactor: Improve conditional logic in NavButtons component
Hyosam Jun 26, 2024
90451af
lint
Hyosam Jun 26, 2024
cac8dd7
chore: nx format:write update dirty files
andes-it Jun 26, 2024
c19546e
Initialized a react app in apps/portals/form-system and a ui library …
Hyosam Jul 2, 2024
1ed07c6
deleted some files
Hyosam Jul 2, 2024
5ef6f8c
Created a Ui library
Hyosam Jul 2, 2024
4a61356
infra skeleton
Hyosam Jul 3, 2024
ee41b53
Be able to run app
baering Jul 3, 2024
d7a0b9f
Update client_id
baering Jul 3, 2024
c7ce982
Update link in index.src.html
baering Jul 3, 2024
2adfe6a
code format
Hyosam Jul 3, 2024
2951f6d
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Jul 3, 2024
0a42211
chore: Update page title and metadata for Umsóknir - Ísland.is
Hyosam Jul 8, 2024
40f4f66
PR fixes
Hyosam Jul 8, 2024
1d3f4ab
chore: nx format:write update dirty files
andes-it Jul 8, 2024
61bbeba
chore: Update project.json and vite.config.ts
Hyosam Jul 8, 2024
41087d3
chore: Update react-router-dom and form-system dependencies
Hyosam Jul 17, 2024
65855c0
Merge branch 'form-system1.1' of https://github.com/island-is/island.…
Hyosam Jul 17, 2024
0752662
Merge branch 'form-system-application' of https://github.com/island-i…
Hyosam Jul 17, 2024
998f7d4
Merge branch 'form-system-application' of https://github.com/island-i…
Hyosam Jul 17, 2024
f1eeb00
removing vite
Hyosam Jul 17, 2024
85052b7
chore: nx format:write update dirty files
andes-it Jul 17, 2024
9a9214c
re-generated the ui library in order to remove vite
Hyosam Jul 17, 2024
6fcf16c
Merge branch 'form-system-application' of https://github.com/island-i…
Hyosam Jul 17, 2024
c19cfe1
format and linting
Hyosam Jul 17, 2024
c747e5b
chore: nx format:write update dirty files
andes-it Jul 17, 2024
a7a4371
Merge branch 'form-system-application' of https://github.com/island-i…
Hyosam Jul 17, 2024
04cc14d
Migrated components and added a homestay overview component as well
Hyosam Jul 31, 2024
e42da27
removed comments and some minor ui changes
Hyosam Aug 1, 2024
6b865cb
init
Hyosam Aug 13, 2024
56cbeef
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Aug 14, 2024
1e4fef8
defining dto´s
Hyosam Aug 14, 2024
7fcc416
models
Hyosam Aug 16, 2024
324668d
finished dtos
Hyosam Aug 16, 2024
283c00f
feat(form-system): Add CreateApplicationInput to DTOs
Hyosam Aug 16, 2024
266f27f
Finished all resolvers and services
Hyosam Aug 19, 2024
b9a6ac6
finishing touches for the client and domain
Hyosam Aug 22, 2024
da5aa19
fixes
Hyosam Aug 22, 2024
77ef5ab
Merge branch 'form-system-application' of https://github.com/island-i…
Hyosam Aug 23, 2024
7bb2e3c
graphql queries and mutations
Hyosam Aug 23, 2024
1110354
chore: Update GraphQL queries and mutations
Hyosam Aug 28, 2024
060c6e9
Merge branch 'form-system-components-migrations' of https://github.co…
Hyosam Aug 28, 2024
706bd6b
chore: Refactor ControlContext functions for better readability and m…
Hyosam Aug 28, 2024
a0aa556
New backend adjustments
Hyosam Oct 1, 2024
feb9370
Refactor fieldSettings.input and fieldSettings.model
Hyosam Oct 7, 2024
785e4ff
Refactor GraphQL fragments for better organization and readability
Hyosam Oct 8, 2024
ea2787b
merge with main
Hyosam Oct 21, 2024
d38835a
Update dependencies: compare-versions, expo-linking, react-native-dat…
Hyosam Oct 22, 2024
835958a
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Oct 22, 2024
c33773d
feat(uber-charts): Add form system API setup
Hyosam Oct 25, 2024
2646853
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Oct 25, 2024
268d1b1
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Oct 28, 2024
dadfc7f
feat(MainContent): update checkbox label in MainContent component
Hyosam Oct 31, 2024
eb14b5e
The entire form builder project is finally adjusted to work with the …
Hyosam Nov 25, 2024
7b27d73
refactor: remove unnecessary comments and console logs across various…
Hyosam Nov 26, 2024
e27b1ad
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Nov 26, 2024
648b8cc
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Nov 27, 2024
f92cb63
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Nov 28, 2024
d4ee05f
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Dec 3, 2024
8ee99a6
about to pull main
Hyosam Dec 9, 2024
b9b9fa8
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Dec 9, 2024
c87dc50
Fixed forms resolver
Hyosam Dec 9, 2024
4ea7123
Merge branch 'main' of https://github.com/island-is/island.is into HEAD
Hyosam Dec 10, 2024
4cb26c4
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Dec 10, 2024
2d1c195
Merge branch 'form-system-new-client-domain' of https://github.com/is…
Hyosam Dec 10, 2024
f8dad9e
chore: charts update dirty files
andes-it Dec 10, 2024
c3084ed
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Dec 10, 2024
180e689
Linting and debugging
Hyosam Dec 17, 2024
1b6b859
Merge branch 'main' into form-system-new-client-domain
Hyosam Dec 17, 2024
d1d30ed
merge confict fix
Hyosam Dec 17, 2024
fbc9698
removed form-system application from apps/portals/
Hyosam Dec 19, 2024
951c227
refactor: Remove unused auth imports from form-system components
Hyosam Jan 13, 2025
39e07ff
fix: Update formatting and change API base path in configuration
Hyosam Jan 14, 2025
00f4004
Merge branch 'main' of https://github.com/island-is/island.is into fo…
Hyosam Jan 16, 2025
a287c14
feat(form-system): add models and resolvers for form applicant types
Hyosam Jan 17, 2025
07bbd12
feat(form-system): add OrganizationUrl and OrganizationUrlInput types…
Hyosam Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"onlyDependOnLibsWithTags": [
"lib:portals-admin",
"lib:application-system",
"lib:form-system",
"lib:portals",
"lib:react-spa",
"lib:react",
Expand Down
6 changes: 5 additions & 1 deletion apps/api/infra/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const serviceSetup = (services: {
authAdminApi: ServiceBuilder<'services-auth-admin-api'>
universityGatewayApi: ServiceBuilder<'services-university-gateway'>
userNotificationService: ServiceBuilder<'services-user-notification'>
formSystemService: ServiceBuilder<'api-domains-form-system'>
}): ServiceBuilder<'api'> => {
return service('api')
.namespace('islandis')
Expand Down Expand Up @@ -193,10 +194,13 @@ export const serviceSetup = (services: {
FINANCIAL_STATEMENTS_INAO_TOKEN_ENDPOINT:
'https://login.microsoftonline.com/05a20268-aaea-4bb5-bb78-960b0462185e/oauth2/v2.0/token',
FORM_SYSTEM_API_BASE_PATH: {
dev: 'https://profun.island.is/umsoknarkerfi',
dev: 'http://localhost:3434',
staging: '',
prod: '',
},
// FORM_SYSTEM_API_BASE_PATH: ref(
// (h) => `http://${h.svc(services.formSystemService)}`,
// ),
CONSULTATION_PORTAL_CLIENT_BASE_PATH: {
dev: 'https://samradapi-test.devland.is',
staging: 'https://samradapi-test.devland.is',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class FileController {
private readonly fileService: FileService,
@Inject(LOGGER_PROVIDER)
private readonly logger: Logger,
) {}
) { }

@Get('request')
@Header('Content-Type', 'application/pdf')
Expand Down Expand Up @@ -191,8 +191,7 @@ export class FileController {
@Query('subpoenaType') subpoenaType?: SubpoenaType,
): Promise<Response> {
this.logger.debug(
`Getting subpoena ${
subpoenaId ?? 'draft'
`Getting subpoena ${subpoenaId ?? 'draft'
} for defendant ${defendantId} of case ${id} as a pdf document`,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Header,
Inject,
Param,
Query,
Req,
Res,
UseGuards,
Expand All @@ -19,7 +20,7 @@ import {
CurrentHttpUser,
JwtInjectBearerAuthGuard,
} from '@island.is/judicial-system/auth'
import type { User } from '@island.is/judicial-system/types'
import type { SubpoenaType, User } from '@island.is/judicial-system/types'

import { FileService } from './file.service'

Expand All @@ -29,7 +30,7 @@ export class LimitedAccessFileController {
constructor(
private readonly fileService: FileService,
@Inject(LOGGER_PROVIDER) private readonly logger: Logger,
) {}
) { }

@Get('request')
@Header('Content-Type', 'application/pdf')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class PdfService {
private readonly subpoenaService: SubpoenaService,
@InjectModel(Case) private readonly caseModel: typeof Case,
@Inject(LOGGER_PROVIDER) private readonly logger: Logger,
) {}
) { }

private formatMessage: FormatMessage = () => {
throw new InternalServerErrorException('Format message not initialized')
Expand Down Expand Up @@ -93,7 +93,7 @@ export class PdfService {
(caseFile1, caseFile2) =>
(caseFile1.chapter ?? 0) - (caseFile2.chapter ?? 0) ||
(caseFile1.orderWithinChapter ?? 0) -
(caseFile2.orderWithinChapter ?? 0),
(caseFile2.orderWithinChapter ?? 0),
)
?.map((caseFile) => async () => {
const buffer = await this.awsS3Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class LimitedAccessSubpoenaController {
constructor(
private readonly pdfService: PdfService,
@Inject(LOGGER_PROVIDER) private readonly logger: Logger,
) {}
) { }

@UseGuards(SubpoenaExistsGuard)
@RolesRules(defenderGeneratedPdfRule)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class SubpoenaController {
private readonly pdfService: PdfService,
private readonly subpoenaService: SubpoenaService,
@Inject(LOGGER_PROVIDER) private readonly logger: Logger,
) {}
) { }

@RolesRules(
prosecutorRule,
Expand Down Expand Up @@ -125,8 +125,7 @@ export class SubpoenaController {
@Query('subpoenaType') subpoenaType?: SubpoenaType,
): Promise<void> {
this.logger.debug(
`Getting subpoena ${
subpoenaId ?? 'draft'
`Getting subpoena ${subpoenaId ?? 'draft'
} for defendant ${defendantId} of case ${caseId} as a pdf document`,
)

Expand Down
1 change: 1 addition & 0 deletions apps/portals/admin/infra/portals-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const serviceSetup = (): ServiceBuilder<'portals-admin'> =>
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY',
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID',
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN',
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY',
})
.ingress({
primary: {
Expand Down
3 changes: 2 additions & 1 deletion charts/islandis/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ api:
FINANCIAL_STATEMENTS_INAO_TOKEN_ENDPOINT: 'https://login.microsoftonline.com/05a20268-aaea-4bb5-bb78-960b0462185e/oauth2/v2.0/token'
FISHING_LICENSE_XROAD_PROVIDER_ID: 'IS-DEV/GOV/10012/Fiskistofa-Protected/veidileyfi-v1'
FISKISTOFA_ZENTER_CLIENT_ID: '1114'
FORM_SYSTEM_API_BASE_PATH: 'https://profun.island.is/umsoknarkerfi'
FORM_SYSTEM_API_BASE_PATH: 'http://localhost:3434'
HSN_WEB_FORM_ID: '1dimJFHLFYtnhoYEA3JxRK'
HUNTING_LICENSE_PASS_TEMPLATE_ID: '1da72d52-a93a-4d0f-8463-1933a2bd210b'
ICELANDIC_NAMES_REGISTRY_BACKEND_URL: 'http://web-icelandic-names-registry-backend.icelandic-names-registry.svc.cluster.local'
Expand Down Expand Up @@ -1871,6 +1871,7 @@ portals-admin:
memory: '256Mi'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY'
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID'
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN'
Expand Down
1 change: 1 addition & 0 deletions charts/islandis/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,7 @@ portals-admin:
memory: '256Mi'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY'
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID'
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN'
Expand Down
1 change: 1 addition & 0 deletions charts/islandis/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,7 @@ portals-admin:
memory: '256Mi'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY'
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID'
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN'
Expand Down
2 changes: 1 addition & 1 deletion charts/services/api/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ env:
FINANCIAL_STATEMENTS_INAO_TOKEN_ENDPOINT: 'https://login.microsoftonline.com/05a20268-aaea-4bb5-bb78-960b0462185e/oauth2/v2.0/token'
FISHING_LICENSE_XROAD_PROVIDER_ID: 'IS-DEV/GOV/10012/Fiskistofa-Protected/veidileyfi-v1'
FISKISTOFA_ZENTER_CLIENT_ID: '1114'
FORM_SYSTEM_API_BASE_PATH: 'https://profun.island.is/umsoknarkerfi'
FORM_SYSTEM_API_BASE_PATH: 'http://localhost:3434'
HSN_WEB_FORM_ID: '1dimJFHLFYtnhoYEA3JxRK'
HUNTING_LICENSE_PASS_TEMPLATE_ID: '1da72d52-a93a-4d0f-8463-1933a2bd210b'
ICELANDIC_NAMES_REGISTRY_BACKEND_URL: 'http://web-icelandic-names-registry-backend.icelandic-names-registry.svc.cluster.local'
Expand Down
1 change: 1 addition & 0 deletions charts/services/portals-admin/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ resources:
memory: '256Mi'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY'
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID'
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN'
Expand Down
1 change: 1 addition & 0 deletions charts/services/portals-admin/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ resources:
memory: '256Mi'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY'
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID'
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN'
Expand Down
1 change: 1 addition & 0 deletions charts/services/portals-admin/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ resources:
memory: '256Mi'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
FORM_SYSTEM_MIDEIND_KEY: '/k8s/portals-admin/FORM_SYSTEM_MIDEIND_KEY'
SI_PUBLIC_CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
SI_PUBLIC_DD_RUM_APPLICATION_ID: '/k8s/DD_RUM_APPLICATION_ID'
SI_PUBLIC_DD_RUM_CLIENT_TOKEN: '/k8s/DD_RUM_CLIENT_TOKEN'
Expand Down
8 changes: 8 additions & 0 deletions infra/src/uber-charts/islandis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import { serviceSetup as authAdminApiSetup } from '../../../apps/services/auth/a

import { EnvironmentServices } from '.././dsl/types/charts'
import { ServiceBuilder } from '../dsl/dsl'
import { serviceSetup as formSystemApiSetup } from '../../../apps/services/form-system/infra/form-system'

const endorsement = endorsementServiceSetup({})

Expand Down Expand Up @@ -105,6 +106,12 @@ const authAdminApi = authAdminApiSetup()
const universityGatewayService = universityGatewaySetup()
const universityGatewayWorker = universityGatewayWorkerSetup()

// const userNotificationService = userNotificationServiceSetup({
// userProfileApi: servicePortalApi,
// })

const formSystemApi = formSystemApiSetup()

const api = apiSetup({
appSystemApi,
servicePortalApi,
Expand All @@ -117,6 +124,7 @@ const api = apiSetup({
authAdminApi,
universityGatewayApi: universityGatewayService,
userNotificationService,
formSystemService: formSystemApi,
})

const adminPortal = adminPortalSetup()
Expand Down
3 changes: 3 additions & 0 deletions libs/api/domains/form-system/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"workbench.colorTheme": "Default Dark+"
}
2 changes: 2 additions & 0 deletions libs/api/domains/form-system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ This library was generated with [Nx](https://nx.dev).
## Running unit tests

Run `nx test api/domains/form-system` to execute the unit tests via [Jest](https://jestjs.io).

To generate the schema run yarn nx run api:codegen/backend-schema
2 changes: 1 addition & 1 deletion libs/api/domains/form-system/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "api/domains/form-system",
"name": "api-domains-form-system",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/api/domains/form-system/src",
"projectType": "library",
Expand Down
87 changes: 87 additions & 0 deletions libs/api/domains/form-system/src/dto/applicant.input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import { Field, InputType } from '@nestjs/graphql'
import { LanguageTypeInput } from './languageType.input'
import { DependencyInput } from './form.input'

@InputType('FormSystemCreateApplicantDtoInput')
export class FormSystemCreateApplicantDtoInput {
@Field(() => String, { nullable: true })
formId?: string

@Field(() => String, { nullable: true })
applicantTypeId?: string
}

@InputType('FormSystemUpdateApplicantDtoInput')
export class FormSystemUpdateApplicantDtoInput {
@Field(() => LanguageTypeInput, { nullable: true })
name?: LanguageTypeInput
}

@InputType('FormSystemCreateApplicantInput')
export class CreateApplicantInput {
@Field(() => FormSystemCreateApplicantDtoInput, { nullable: true })
createFormApplicantTypeDto?: FormSystemCreateApplicantDtoInput
}

@InputType('FormSystemDeleteApplicantInput')
export class DeleteApplicantInput {
@Field(() => String, { nullable: true })
id?: string
}

@InputType('FormSystemUpdateApplicantInput')
export class UpdateApplicantInput {
@Field(() => String, { nullable: true })
id?: string

@Field(() => FormSystemUpdateApplicantDtoInput, { nullable: true })
updateFormApplicantTypeDto?: FormSystemUpdateApplicantDtoInput
}

@InputType('FormSystemUpdateApplicationDependenciesInput')
export class UpdateApplicationDependenciesInput {
@Field(() => [DependencyInput], { nullable: 'itemsAndList' })
dependencies?: DependencyInput[]

@Field(() => [String], { nullable: 'itemsAndList' })
completed?: string[]
}

@InputType('FormSystemFormApplicantInput')
export class FormApplicantInput {
@Field(() => String, { nullable: true })
id?: string

@Field(() => LanguageTypeInput, { nullable: true })
description?: LanguageTypeInput

@Field(() => String, { nullable: true })
applicantTypeId?: string

@Field(() => LanguageTypeInput, { nullable: true })
name?: LanguageTypeInput

@Field(() => [LanguageTypeInput], { nullable: true })
nameSuggestions?: LanguageTypeInput[]
}

@InputType('FormSystemFormApplicantTypeDtoInput')
export class FormApplicantTypeDtoInput {
@Field(() => LanguageTypeInput, { nullable: true })
name?: LanguageTypeInput
}

@InputType('FormSystemFormApplicantTypeUpdateInput')
export class FormApplicantTypeUpdateInput {
@Field(() => String, { nullable: true })
id?: string

@Field(() => FormApplicantTypeDtoInput, { nullable: true })
updateFormApplicantTypeDto?: FormApplicantTypeDtoInput
}

@InputType('FormSystemFormApplicantTypeDeleteInput')
export class FormApplicantTypeDeleteInput {
@Field(() => String, { nullable: true })
id?: string
}
42 changes: 0 additions & 42 deletions libs/api/domains/form-system/src/dto/applicantType.input.ts

This file was deleted.

This file was deleted.

Loading