Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
dd2a971
os2forms_fordelingskomponent
rimi-itk Nov 10, 2025
9c6d969
Added GitHub Action workflows
rimi-itk Nov 12, 2025
8459288
Set up code analysis
rimi-itk Nov 12, 2025
21b2ca1
Updated example forms
rimi-itk Nov 13, 2025
44faf4f
Made code analysis work
rimi-itk Nov 13, 2025
e826f03
Cleaned up
rimi-itk Jan 14, 2026
9ee3b7a
Added some tests
rimi-itk Jan 20, 2026
384cb84
Cleaned up and improved XML helper
rimi-itk Feb 6, 2026
08493c1
Cleaned up
rimi-itk Feb 6, 2026
8ccec62
Added preview stuff
rimi-itk Feb 9, 2026
b853f94
More stuff
rimi-itk Feb 10, 2026
fbba31e
Fixed composer stuff
rimi-itk Feb 10, 2026
4ff8636
Cleaned up
rimi-itk Feb 10, 2026
d3376a8
Updated handler
rimi-itk Feb 17, 2026
dd089cb
Test and refactoring
rimi-itk Feb 18, 2026
d4af067
Another commit
rimi-itk Feb 19, 2026
818b66b
Yet another commit
rimi-itk Feb 20, 2026
d7aef81
Cleaned up
rimi-itk Feb 20, 2026
8238be4
Code analysis
rimi-itk Feb 21, 2026
08be1fc
Cleaned up
rimi-itk Feb 21, 2026
2fa532b
Refactored preview
rimi-itk Feb 21, 2026
2990635
Updated route access checks
rimi-itk Feb 23, 2026
cbac551
Updated stuff
rimi-itk Feb 23, 2026
d05568c
More stuff
rimi-itk Feb 25, 2026
5440280
Cleaned up and improved
rimi-itk Feb 25, 2026
04a1c56
Cleaned up
rimi-itk Mar 2, 2026
832b1c2
FordelingskvitteringModtag
rimi-itk Mar 2, 2026
962604b
Merge branch 'feature/FordelingskvitteringModtag' into os2forms_forde…
rimi-itk Mar 2, 2026
aa8db20
Cleaned up
rimi-itk Mar 2, 2026
04edde2
Fixed route name
rimi-itk Mar 6, 2026
da92bc6
Cleaned up
rimi-itk Mar 9, 2026
86007c0
Handled “Dokumenter”
rimi-itk Mar 10, 2026
7d93a27
Added trigger files
rimi-itk Apr 20, 2026
1349021
Files settings
rimi-itk Apr 20, 2026
ea82b03
Recipient ID
rimi-itk Apr 21, 2026
30ff647
More stuff
rimi-itk Apr 23, 2026
8bec6a5
Added some XML examples
rimi-itk Apr 24, 2026
ca36627
Updated installation instructions
rimi-itk Apr 24, 2026
22b0480
Added SP241 example
rimi-itk Apr 24, 2026
c9bf867
Cleaned up preview
rimi-itk Apr 24, 2026
0a29c00
Updated stuff
rimi-itk Apr 24, 2026
51332b7
UTF-8
rimi-itk Apr 24, 2026
842912a
Cleaned up
rimi-itk Apr 24, 2026
68fa216
Renamed and stuff
rimi-itk Apr 27, 2026
4df218d
Refactored code and handled file upload before sending distribution o…
rimi-itk Apr 27, 2026
792bef5
Updated example
rimi-itk Apr 27, 2026
6065953
Misc
rimi-itk Apr 28, 2026
a4cbf64
Allow prepopulating example webform
rimi-itk Apr 28, 2026
a0917d0
Added debug module
rimi-itk Apr 28, 2026
1d54a80
Cleaned up debug module
rimi-itk Apr 28, 2026
899d60e
Misc
rimi-itk Apr 30, 2026
4919cc5
Cleaned up
rimi-itk Apr 30, 2026
2369386
Validated XML before starting queue job show
rimi-itk Apr 30, 2026
a920355
Cleaned up
rimi-itk Apr 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is copied from config/drupal-module/.editorconfig in https://github.com/itk-dev/devops_itkdev-docker.
# Feel free to edit the file, but consider making a pull request if you find a general issue with the file.

# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = LF
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,css,scss}]
indent_size = 2

[*.{yml,yaml}]
indent_size = 2

[config/sync/**/*.{yml,yaml}]
indent_size = 2

[*.{php,install,module,theme}]
indent_size = 2
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COMPOSE_PROJECT_NAME=os2forms_fordelingskomponent
ITKDEV_TEMPLATE=drupal-module
29 changes: 29 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Do not edit this file! Make a pull request on changing
# github/workflows/changelog.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.

### ### Changelog
###
### Checks that changelog has been updated

name: Changelog

on:
pull_request:

jobs:
changelog:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Git fetch
run: git fetch

- name: Check that changelog has been updated.
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
85 changes: 85 additions & 0 deletions .github/workflows/composer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Do not edit this file! Make a pull request on changing
# github/workflows/composer.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.

### ### Composer
###
### Validates composer.json and checks that it's normalized.
###
### #### Assumptions
###
### 1. A docker compose service named `phpfpm` can be run and `composer` can be
### run inside the `phpfpm` service.
### 2. [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize)
### is a dev requirement in `composer.json`:
###
### ``` shell
### docker compose run --rm phpfpm composer require --dev ergebnis/composer-normalize
### ```
###
### Normalize `composer.json` by running
###
### ``` shell
### docker compose run --rm phpfpm composer normalize
### ```

name: Composer

env:
COMPOSE_USER: root

on:
pull_request:
push:
branches:
- main
- develop

jobs:
composer-validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer validate --strict

composer-normalized:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer init --no-interaction
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer require mglaman/composer-drupal-lenient
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm rm composer.lenient.*

docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm composer normalize --dry-run

composer-audit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer audit
44 changes: 44 additions & 0 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Do not edit this file! Make a pull request on changing
# github/workflows/markdown.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.

### ### Markdown
###
### Lints Markdown files (`**/*.md`) in the project.
###
### [markdownlint-cli configuration
### files](https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration),
### `.markdownlint.jsonc` and `.markdownlintignore`, control what is actually
### linted and how.
###
### #### Assumptions
###
### 1. A docker compose service named `markdownlint` for running `markdownlint`
### (from
### [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli))
### exists.

name: Markdown

on:
pull_request:
push:
branches:
- main
- develop

jobs:
markdown-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm markdownlint markdownlint '**/*.md'
64 changes: 64 additions & 0 deletions .github/workflows/php.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Do not edit this file! Make a pull request on changing
# github/workflows/drupal-module/php.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.

### ### Drupal module PHP
###
### Checks that PHP code adheres to the [Drupal coding
### standards](https://www.drupal.org/docs/develop/standards).
###
### #### Assumptions
###
### 1. A docker compose service named `phpfpm` can be run and `composer` can be
### run inside the `phpfpm` service.
### 2. [drupal/coder](https://www.drupal.org/project/coder) is a dev requirement
### in `composer.json`:
###
### ``` shell
### docker compose run --rm phpfpm composer require --dev drupal/coder
### ```
###
### Clean up and check code by running
###
### ``` shell
### docker compose run --rm phpfpm vendor/bin/phpcbf
### docker compose run --rm phpfpm vendor/bin/phpcs
### ```
###
### > [!NOTE]
### > The template adds `.phpcs.xml.dist` as [a configuration file for
### > PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file)
### > and this makes it possible to override the actual configuration used in a
### > project by adding a more important configuration file, e.g. `.phpcs.xml`.

name: PHP

env:
COMPOSE_USER: root

on:
pull_request:
push:
branches:
- main
- develop

jobs:
coding-standards:
name: PHP - Check Coding Standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer init --no-interaction
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer require mglaman/composer-drupal-lenient
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm rm composer.lenient.*

docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/phpcs
30 changes: 30 additions & 0 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Project

env:
COMPOSE_USER: root

on:
pull_request:
push:
branches:
- main
- develop

jobs:
code-analysis:
name: PHP - Code analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- run: |
./scripts/code-analysis

rector:
name: PHP - Rector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- run: |
./scripts/rector
54 changes: 54 additions & 0 deletions .github/workflows/twig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Do not edit this file! Make a pull request on changing
# github/workflows/twig.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.

### ### Twig
###
### Validates Twig files
###
### #### Assumptions
###
### 1. A docker compose service named `phpfpm` can be run and `composer` can be
### run inside the `phpfpm` service.
### 2. [vincentlanglet/twig-cs-fixer](https://github.com/VincentLanglet/Twig-CS-Fixer)
### is a dev requirement in `composer.json`:
###
### ``` shell
### docker compose run --rm phpfpm composer require --dev vincentlanglet/twig-cs-fixer
### ```
###
### 3. A [Configuration
### file](https://github.com/VincentLanglet/Twig-CS-Fixer/blob/main/docs/configuration.md#configuration-file)
### in the root of the project defines which files to check and rules to use.

name: Twig

env:
COMPOSE_USER: root

on:
pull_request:
push:
branches:
- main
- develop

jobs:
twig-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4

- run: |
docker network create frontend

docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer init --no-interaction
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer require mglaman/composer-drupal-lenient
docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm rm composer.lenient.*

docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/twig-cs-fixer lint
41 changes: 41 additions & 0 deletions .github/workflows/yaml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Do not edit this file! Make a pull request on changing
# github/workflows/yaml.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.

### ### YAML
###
### Validates YAML files.
###
### #### Assumptions
###
### 1. A docker compose service named `prettier` for running
### [Prettier](https://prettier.io/) exists.
###
### #### Symfony YAML
###
### Symfony's YAML config files use 4 spaces for indentation and single quotes.
### Therefore we use a [Prettier configuration
### file](https://prettier.io/docs/configuration), `.prettierrc.yaml`, to make
### Prettier format YAML files in the `config/` folder like Symfony expects.

name: YAML

on:
pull_request:
push:
branches:
- main
- develop

jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm prettier '**/*.{yml,yaml}' --check
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
composer.lock
*.cache
Loading
Loading