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

Deploy/documentation/2024 10 09 #718

Merged
merged 53 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7347220
Fix 404 for link to CHANGELOG (#610)
proand Jun 14, 2024
2f4e403
Update API-doc for FHI Angular Highcharts (units) (#615)
proand Jun 19, 2024
9340f3d
Improve the Highcharts example code (#619)
proand Jun 25, 2024
a91d086
Add unit.yAxisMax/unit.yAxisMin (#620)
proand Jun 26, 2024
f427937
Release/fhi-angular-highcharts/4.1.0 (#621)
proand Jun 27, 2024
0edbe60
Enhancement/add search to tree view checkbox and tree view radio (#622)
yleaxeman Jun 28, 2024
fd36f9b
Enhancement/highcharts svg export (#627)
proand Jul 25, 2024
da94070
Bugfix/treeview problem (#630)
proand Aug 14, 2024
a71a815
Enhancement/highcharts update color palette (#634)
proand Aug 21, 2024
38b51b5
Add issue templates (#632)
proand Aug 22, 2024
45ccd06
Remove asterisks in issue template labels, they are added automatical…
proand Aug 22, 2024
cdf3315
Update color-system.ts (#637)
trybern Aug 23, 2024
db34cd4
Enhancement/improve feedback about disabled diagram types, and (#639)
proand Aug 29, 2024
c7b9cac
Bugfix/placeholder ng select (#642)
proand Aug 30, 2024
6458136
Enhancement/open modal from parent (#643)
proand Aug 30, 2024
235090a
Release/fhi-angular-components/4.4.0 (#646)
proand Sep 2, 2024
678ebe0
Prerelease fix FHI Angular Highcharts (#644)
proand Sep 2, 2024
a2b1711
Release/fhi-angular-highcharts/4.2.0 (#647)
proand Sep 3, 2024
6a56cb3
Remove diagram type navigation from fullscreen view (#652)
proand Sep 4, 2024
7814e17
Give the diagrams better aspect ratios (#651)
proand Sep 4, 2024
dae0805
Always update to latest minor version of @folkehelseinstituttet/style…
proand Sep 5, 2024
5386654
Bugfix/consistent label formatting (#653)
proand Sep 5, 2024
e364291
Release/fhi-angular-components/4.4.1 (#660)
proand Sep 9, 2024
e0fead1
Release/fhi-angular-highcharts/4.3.0 (#661)
proand Sep 9, 2024
3201e9f
Add support for showing diagram type line with multiple series even i…
stalehaugenes Sep 12, 2024
6871d8a
Add null check for unit.decimals (#667)
proand Sep 13, 2024
7a8843a
Don't remove decimals if they end with zero (#668)
proand Sep 13, 2024
8a3cbfe
Reduce max decimal places to 9 (#669)
proand Sep 13, 2024
2122b5c
Update documentation for Interface FhiDiagramUnit (#670)
proand Sep 13, 2024
70d1169
Adjust allowed max widths on the Highcharts (#672)
proand Sep 13, 2024
b2b979a
enhancement/highcharts Add support for showing a description below th…
proand Sep 13, 2024
c62b2d0
Bugfix/highcharts dynamically add diagram types to nav (#665)
proand Sep 13, 2024
669e9c5
Release/fhi-angular-highcharts/4.4.0 (#681)
proand Sep 17, 2024
cc837f2
Add test for undefined in FhiTreeViewNavigationComponent (#680)
proand Sep 17, 2024
b1e322c
Bugfix/fhi-tree-view-selection (#679)
proand Sep 17, 2024
fbc8871
Release/fhi-angular-components/4.4.2 (#683)
proand Sep 17, 2024
54fdab8
Bugfix/highcharts: Don't set default diagram types (#688)
proand Sep 19, 2024
e3bd896
Update to Angular 18 in @folkehelseinstituttet/angular-components (#689)
proand Sep 19, 2024
402e11e
Update to Angular 18 in @folkehelseinstituttet/angular-highcharts (#691)
proand Sep 19, 2024
4d8ccbd
Release/fhi-angular-components/5.0.0 (#692)
proand Sep 19, 2024
4fcba6e
Release/fhi-angular-highcharts/5.0.0 (#693)
proand Sep 19, 2024
fad53ca
Release/fhi-angular-highcharts/5.0.1 (#695)
proand Sep 19, 2024
9ca6c2a
Release/fhi-angular-highcharts/5.0.2 (#697)
proand Sep 19, 2024
9837e7c
Release/fhi-angular-components/5.0.1 (#696)
proand Sep 19, 2024
eeb6cae
Update documentation app to angular 18 (#698)
proand Sep 20, 2024
aa94273
Internal/update footer (#699)
proand Sep 24, 2024
9963352
Internal/update top menu (#705)
proand Sep 24, 2024
1183a14
Internal/Add and info box on the "Komponenter"-landing page, (#708)
proand Sep 26, 2024
e6c0eb8
Bugfix/remove deprecated prop (#706)
proand Sep 30, 2024
dec5b01
Internal/table of components (#712)
proand Oct 2, 2024
1b19530
Internal/update contributing (#707)
proand Oct 2, 2024
bfa4965
Enhancement/higcharts Add description also in full screen view (#710)
proand Oct 8, 2024
6b974ab
Merge branch 'dev' into deploy/documentation/2024-10-09
Oct 9, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ speed-measure-plugin*.json
*.launch
.settings/
*.sublime-workspace
/.vs

# IDE - VSCode
.vscode/*
Expand Down
113 changes: 74 additions & 39 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ So you're thinking about contributing to **Fhi.Frontend.Demo**, and or its submo
- [Feature branches](#feature-branches-1)
- [Release branches for library projects](#release-branches-for-library-projects)
- [Release a patch to older version in a library project](#release-a-patch-to-older-version-in-a-library-project)
- [Release branches for the Fhi.Frontend.Demo app](#release-branches-for-the-fhifrontenddemo-app)
- [After release is done](#after-release-is-done)
- [Deploy branches for the documentation site](#deploy-branches-for-the-documentation-site)
- [Coding conventions](#coding-conventions)
- [CSS/SASS](#csssass)
- [CSS architecture](#css-architecture)
Expand Down Expand Up @@ -73,8 +74,8 @@ It is also a good idea to add a comment to an issue that you are working on to l

### Workflows

_These are just examples. Feel free to find workflows that suites you._
_For more info about git submodules see: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)_
*These are just examples. Feel free to find workflows that suites you.*
*For more info about git submodules see: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)*

#### How to work on Fhi.Frontend.Style and Fhi.Frontend.Demo

Expand Down Expand Up @@ -122,16 +123,29 @@ You can also use `ng generate directive|pipe|service|class|guard|interface|enum

##### Release branches

>**Before creating a release branch**
>
>- Check that the CHANGELOG.md is updated, and has "Unreleased" as latest version.
>
> If not; create a branch, fix, and create a new pull request.
>
>**If everything is OK; create a release branch**
>
>- When creating a release branch, follow the instructions below to the letter!

1. Create a new branch from `main`.
2. Name it `release/x.x.x`, where `x.x.x` is the version you're releasing.
3. Change text `# Unreleased` to `# x.x.x` i `CHANGELOG.md`
3. Update CHANGELOG
1. Change text `# Unreleased` to `# x.x.x` i CHANGELOG.md.
2. Change the date below the version number to today.
3. Check that all descriptions have a link to the PR at the end of the line.
4. Run `npm version [patch, minor, major]` to upgrade `package.json` and automatically create a new commit.
5. Push release branch and create pull request from release branch into `main`
6. After approved review, squash and merge to `main` (deploy), delete the release branch for the previous release, but keep the latest release branch.
5. Push release branch and create pull request from release branch into main.
6. After approved review, squash and merge to main (deploy), delete the release branch for the previous release, but keep the latest release branch.

#### Fhi.Frontend.Demo, including library projects

_A library project is an Angular concept for organising code that are going to be made into a npm package. A library project is defined in `./angular.json`, and the files are located in `./projects/fhi-[project]`_
*A library project is an Angular concept for organising code that are going to be made into a npm package. A library project is defined in `./angular.json`, and the files are located in `./projects/fhi-[project]`*

##### Feature branches

Expand All @@ -145,7 +159,7 @@ _A library project is an Angular concept for organising code that are going to b
>
>- Check that all peerDependencies are updated
>- Check that `@folkehelseinstituttet/*` is already released if listed in peerDependencies
>- Check that the dependency matrix is updated, and has "Unreleased" as latest version.
>- Check that the dependency matrix still is correct, and if it's updated since last release, that it has "Unreleased" as latest version.
>- Check that the CHANGELOG.md is updated, and has "Unreleased" as latest version.
>
> If one or more of the checks above is not OK; create a branch, fix, and create a new pull request.
Expand All @@ -156,42 +170,63 @@ _A library project is an Angular concept for organising code that are going to b

1. Create a new branch from `dev`.
2. Name it `release/fhi-[project]/x.x.x`, where `x.x.x` is the version you're releasing.
3. Update the following and commit:
1. text `# Unreleased` to `# x.x.x` in the CHANGELOG for the project: `./projects/fhi-[project]/CHANGELOG.md`
2. text `Unreleased` to `x.x.x` in the dependency matrix for the project: `./projects/fhi-[project]/README.md` (if a new line was added).
3. version in `./projects/fhi-[project]/package.json` to `x.x.x` manually.
>_It's cumbersome to use `npm version` since `package.json` is in another directory than the git directory. And since there is no `package-lock.json`, and no need for a tag in the current workflow, doing it manually is faster. A better, and more automated, solution may come in the future._
4. Create PR into `dev` from `release/fhi-[project]/x.x.x`, and when approved, make sure commit message is _Release/fhi-[project]/x.x.x_, and then merge (ie. deploy).
>_NB! Automated release job only runs if `Release/fhi-[project]/` is present in commit message since this isn't a release for everything in the repo, just a particular library._
3. Update CHANGELOG
1. Change text `# Unreleased` to `# x.x.x` i CHANGELOG.md.
2. Change the date below the version number to today.
3. Check that all descriptions have a link to the PR at the end of the line.
4. Update text `Unreleased` to `x.x.x` in the dependency matrix for the project: `./projects/fhi-[project]/README.md` (if a new line was added).
5. Update version in `./projects/fhi-[project]/package.json` to `x.x.x` manually.
>*It's cumbersome to use `npm version` since `package.json` is in another directory than the git directory. And since there is no `package-lock.json`, and no need for a tag in the current workflow, doing it manually is faster. A better, and more automated, solution may come in the future.*
6. Create PR into `dev` from `release/fhi-[project]/x.x.x`, and when approved, make sure commit message is *Release/fhi-[project]/x.x.x*, and then merge (ie. deploy).

>*NB! Automated release job only runs if `Release/fhi-[project]/` is present in commit message since this isn't a release for everything in the repo, just a particular library.*

##### Release a patch to older version in a library project

Almost same procedure as described under [Release branches for library projects](#release-branches-for-library-projects), but there are some minor differences:

1. Create a new branch from `fhi-[project]/vx`, where `X` is the major version you're patching (remember ref. to correct git submodule).
2. Name it `release/fhi-[project]/x.x.x`, where `x.x.x` is the version you're releasing.
3. Update the following and commit:
1. Add `# x.x.x` in beginning of the CHANGELOG for the project: `./projects/fhi-[project]/CHANGELOG.md`
2. Add and extra `#` to the previous version number.
3. **NB!** when updating version in `./projects/fhi-[project]/package.json` to `x.x.x`, ALSO update `publishConfig.tag` to `v[x]` where `[x]` is the major version you're patching.
4. Create PR into `fhi-[project]/vx` from `release/fhi-[project]/x.x.x`, and when approved, make sure commit message is _Release/fhi-[project]/x.x.x_, and then merge (ie. deploy).
5. Create PR into `dev` from `release/fhi-[project]/x.x.x` to merge relevant changes from the patch back into `dev`, and when approved, make sure commit message is _Release/fhi-[project]/x.x.x_, and then merge AND delte branch `release`.
>_NB! This PR will probably have conflicts, so just merge `dev` into `release` before creating PR, and fix conflicts. Ask someone if in doubt about any conflicts, but here are a few things to remember when merging:_
>1. **ALWAYS** merge changes to CHANGELOG (in chronological order based on date, not version)
>2. Sometimes merge changes to the code
>3. **NEVER** merge any changes to `publishConfig.tag` in `./projects/fhi-[project]/package.json`
>4. Remember correct git submodule ref.

##### Release branches for the Fhi.Frontend.Demo app

There is no need for a release branch, since the branch `dev` represents the "truth". Therefore we do not create a pull request with main as base either, we just:

1. Check that `package.json` is up to date with the latest versions of `@folkehelseinstituttet/style`
- If not: create a feature branch named `enhancement/update-dependencies`, and fix it.
- Create PR, and merge `enhancement/update-dependencies` to `dev` when approved.
2. Merge `main` into `dev` and fix merge conflicts if any.
3. Merge `dev` into `main`
4. Push to origin (which will trigger the release)
1. If it doesn't already exist, create a branch from `dev` called `fhi-[project]/vx`, where `X` is the major version you're patching.
2. Create a new branch from `fhi-[project]/vx`, and fix bug (remember ref. to correct git submodule).
3. Merge bugfix back to `fhi-[project]/vx`
4. Create a new branch from `fhi-[project]/vx`.
5. Name it `release/fhi-[project]/x.x.x`, where `x.x.x` is the version you're releasing.
6. Update CHANGELOG
1. Change text `# Unreleased` to `# x.x.x` i CHANGELOG.md.
2. Change the date below the version number to today.
3. Check that all descriptions have a link to the PR at the end of the line.
7. Update text `Unreleased` to `x.x.x` in the dependency matrix for the project: `./projects/fhi-[project]/README.md` (if a new line was added).
8. Update version in `./projects/fhi-[project]/package.json` to `x.x.x` manually.
9. **NB! Also update `publishConfig.tag` to `v[x]` where `[x]` is the major version you're patching.**
10. Create PR into `fhi-[project]/vx` from `release/fhi-[project]/x.x.x`, and when approved, make sure commit message is *Release/fhi-[project]/x.x.x*, and then merge (ie. deploy).

###### After release is done

Create PR into `dev` from `release/fhi-[project]/x.x.x` to merge relevant changes from the patch back into `dev`, and when approved, make sure commit message is *Changes from patch @folkehelseinstituttet/angular-[project]/v/x.x.x*, and then merge and delete branch `release`.

>*NB! This PR will probably have conflicts, so just merge `dev` into `release` before creating PR, and fix conflicts. Ask someone if in doubt about any conflicts, but here are a few things to remember when merging:*
>
>1. **ALWAYS** merge changes to CHANGELOG (in chronological order based on date, not version), but change `# x.x.x` to `Unreleased`.
>2. Merge relevant changes to the code.
>3. **NEVER** merge any changes to `./projects/fhi-[project]/package.json`.
>4. Remember correct git submodule ref.

##### Deploy branches for the documentation site

>**Before creating a deploy branch**
>
>- Check that `package.json` is up to date with the latest versions of `@folkehelseinstituttet/style`.
>
> *PS. The angular-packages are not listet in `package.json` since they are always latest, buildt from source, not downloaded from npm registry unless you run script `build-prod`*
>
> If not; create a branch, fix, and create a new pull request.
>
> **If everything is OK; create a release branch**
>
>- When creating a release branch, follow the instructions below to the letter!

1. Create a new branch from `main`, and call it `deploy/documentation-[yyy-mm-dd]`.
2. Merge `dev` into `deploy/documentation-[yyy-mm-dd]` and fix merge conflicts if any.
3. Create PR into `main` from `deploy/documentation-[yyy-mm-dd]`, and when approved, merge (ie. deploy).

## Coding conventions

Expand Down
2 changes: 1 addition & 1 deletion Fhi.Frontend.Style
Loading
Loading