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

Replaced helsenorge/form with react-hook-form and replaced form components with designsystem #138

Closed
wants to merge 162 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
3c7d44d
Transferred types, interfaces, enums from helsenorge/form to refero
andreasnp Sep 14, 2023
f54ad69
Replaced validation component from form with the one from designsystem
andreasnp Sep 15, 2023
b087124
Replaced validation from form with the one from designsystem
andreasnp Sep 18, 2023
7b04792
Replaced more components
andreasnp Sep 19, 2023
67fadcd
Updated label and sublabel props in Select component
andreasnp Sep 20, 2023
d86f51e
Added Checkbox and RadioButton from designsystem
andreasnp Sep 25, 2023
803fe54
Removed form component from test file
andreasnp Sep 25, 2023
14b71aa
Replaced Label component in Input fields with strings
andreasnp Sep 25, 2023
5f8f295
Replaced label prop texts with Label component from designsystem
andreasnp Sep 25, 2023
1291023
Fixed crash caused by Select component
andreasnp Sep 26, 2023
1c8a1ca
Fixed confirmation field not displaying
andreasnp Sep 27, 2023
df75fc9
Recreated the buttonbar from helsenorge/form
andreasnp Oct 2, 2023
d3e9d0e
Replaced more of the old props from the form component
andreasnp Oct 3, 2023
3190f54
La til required prop i checkboxer og radiobuttons
andreasnp Oct 6, 2023
3e1b9d3
Installed v5.1.3 of Designsystem and added onChange prop on Select
andreasnp Nov 1, 2023
12951a0
Added helpButton, helpElement, and register to Designsystem comps
andreasnp Nov 2, 2023
59936d8
Added more missing props
andreasnp Nov 2, 2023
13fb3b5
Converted many class components to functional components
andreasnp Nov 6, 2023
ddf3d6a
Updated props interfaces related to withCommonFunctions
andreasnp Nov 6, 2023
07aa32b
Converted more class components to functional components
andreasnp Nov 7, 2023
7aa4791
Added keys where they were missing in map functions
andreasnp Nov 8, 2023
1b3b95d
Converted more class components to functional components
andreasnp Nov 8, 2023
9c88e7b
Converted even more class components to functional components
andreasnp Nov 8, 2023
bebfc08
add preview
rinrub Dec 8, 2023
1f3ef62
changelog
rinrub Dec 8, 2023
42312d4
table-hn2
rinrub Dec 21, 2023
a9ff24e
table-hn2 display, sorting
rinrub Dec 30, 2023
5a738b7
get values from datareciver as string for table
rinrub Jan 1, 2024
275a357
started on enable when
rinrub Jan 1, 2024
d7f7b7d
hn1-table
rinrub Jan 2, 2024
75e7350
table-hn1 and table-hn2
rinrub Jan 5, 2024
77ff0f8
updated changes and version in package.json
rinrub Jan 5, 2024
1fcb85f
version
rinrub Jan 5, 2024
fb9e8ed
version
rinrub Jan 5, 2024
6c1231b
fixed missing mock in tests
rinrub Jan 6, 2024
c3f48b2
Tests for table
rinrub Jan 9, 2024
f999710
Merge remote-tracking branch 'origin/master' into feature/table
rinrub Jan 9, 2024
9678bff
Merge remote-tracking branch 'origin/feature/table' into rubenr/table…
rinrub Jan 9, 2024
bf9cd06
install
rinrub Jan 9, 2024
af32e84
table-hn2
rinrub Dec 21, 2023
b427c99
table-hn2 display, sorting
rinrub Dec 30, 2023
ae85fc8
get values from datareciver as string for table
rinrub Jan 1, 2024
999b771
started on enable when
rinrub Jan 1, 2024
73f11ff
hn1-table
rinrub Jan 2, 2024
f8997f6
table-hn1 and table-hn2
rinrub Jan 5, 2024
0e51453
updated changes and version in package.json
rinrub Jan 5, 2024
16a3810
version
rinrub Jan 5, 2024
f170f7a
version
rinrub Jan 5, 2024
4302d44
fixed missing mock in tests
rinrub Jan 6, 2024
bb941c4
Tests for table
rinrub Jan 9, 2024
dd24f79
install
rinrub Jan 9, 2024
02fde3d
gtable
rinrub Jan 10, 2024
333da51
Merge branch 'rubenr/table-hn2-v2' of https://github.com/helsenorge/r…
rinrub Jan 10, 2024
a12281a
gtable
rinrub Jan 10, 2024
cd8120d
Update utils.ts
rinrub Jan 10, 2024
ce50f03
added basic gtable functionality
rinrub Jan 10, 2024
1c8e73e
version and changes
rinrub Jan 10, 2024
7a067be
testfile and return correct answers
rinrub Jan 10, 2024
228ca70
add tests
rinrub Jan 11, 2024
8bfda86
remove todo
rinrub Jan 11, 2024
0a91aba
added functionality for table
rinrub Jan 16, 2024
79ab8b1
updated version
rinrub Jan 16, 2024
22b65e1
bump version
rinrub Jan 16, 2024
879bcfe
fix tests
rinrub Jan 16, 2024
19290f4
version
rinrub Jan 16, 2024
9e89e82
fix quantity and gtable
rinrub Jan 17, 2024
f83dee7
fixed showing different types correct and added some sugar
rinrub Jan 17, 2024
eabc740
version
rinrub Jan 17, 2024
fe2e884
changed the test to reflect changes in code
rinrub Jan 17, 2024
dc4bd62
test update
rinrub Jan 17, 2024
830cd42
create union type for response item and item
rinrub Jan 18, 2024
c699792
fix hn2-bug
rinrub Jan 18, 2024
4e7e9db
fixed date format
rinrub Jan 18, 2024
9298b59
v 13.2.4-beta06
rinrub Jan 19, 2024
42a8aae
fix-test
rinrub Jan 19, 2024
b1ab7c8
version
rinrub Jan 19, 2024
327f6f5
version
rinrub Jan 19, 2024
ae39b6c
Merge remote-tracking branch 'origin/master' into feature/table
rinrub Jan 19, 2024
4755ad0
merged from new major version from master
rinrub Jan 19, 2024
761ba5e
sorting for standardtable
rinrub Jan 22, 2024
f8a1a6d
fix test types and move some code
rinrub Jan 22, 2024
050d5c8
update gtable
rinrub Jan 22, 2024
bf4194f
g-table
rinrub Jan 23, 2024
a12cb89
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Jan 23, 2024
4f14134
remove placeholder
rinrub Jan 23, 2024
7fd4529
fix issues to install react-hook-form and import, run npm audit
rinrub Jan 23, 2024
18d109f
typings and import
rinrub Jan 23, 2024
03ab939
sorting on gtable
rinrub Jan 24, 2024
83dfc7b
move header to its own file
rinrub Jan 24, 2024
2ff4224
added version and changelog
rinrub Jan 24, 2024
a93c431
Merge branch 'feature/table' into andreasn/remove-form
rinrub Jan 24, 2024
5b033bd
merge fix
rinrub Jan 24, 2024
b4cda89
fix import problems
rinrub Jan 24, 2024
15ebb08
change index to function component
rinrub Jan 25, 2024
e66a379
removed extra singlequoutes from answer
rinrub Jan 25, 2024
1dc0edc
remove schema
rinrub Jan 25, 2024
ee0bd1d
Merge remote-tracking branch 'origin/master' into feature/table
rinrub Jan 25, 2024
bce0cb2
version
rinrub Jan 25, 2024
837b3d2
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Jan 29, 2024
dc6d466
moved buttons into components, registered all components
rinrub Feb 1, 2024
48d306c
fix audit and update hn packages
rinrub Feb 2, 2024
2c7a12a
added more form stuff
rinrub Feb 6, 2024
e4a3132
added more rhf
rinrub Feb 7, 2024
1be2181
breakline after tables
rinrub Feb 8, 2024
dc54d67
Merge remote-tracking branch 'origin/master' into feature/table
rinrub Feb 8, 2024
ae32138
merge
rinrub Feb 8, 2024
d7d2eb5
Merge remote-tracking branch 'origin/feature/table' into rubenr/small…
rinrub Feb 8, 2024
4232879
fix import
rinrub Feb 8, 2024
9b1db0a
Merge remote-tracking branch 'origin/feature/table' into rubenr/small…
rinrub Feb 8, 2024
fb39903
sorting gtable
rinrub Feb 9, 2024
fa5d809
Merge remote-tracking branch 'origin/master' into feature/table
rinrub Feb 9, 2024
a0795d9
Merge remote-tracking branch 'origin/feature/table' into rubenr/small…
rinrub Feb 9, 2024
c2f3635
updated the sort function with the common function for sorting by table
rinrub Feb 9, 2024
8f21f16
fixes
rinrub Feb 11, 2024
c9695de
standard table
rinrub Feb 12, 2024
c2dacd1
fix tests
rinrub Feb 12, 2024
1a5e6fb
Merge remote-tracking branch 'origin/master' into feature/table
rinrub Feb 13, 2024
f60e56c
bump-version
rinrub Feb 13, 2024
f2b3f9e
fix calculated values in tables
rinrub Feb 14, 2024
6dcfa16
release version
rinrub Feb 14, 2024
b7379a7
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Feb 15, 2024
792ed90
Merge remote-tracking branch 'origin/feature/table' into andreasn/rem…
rinrub Feb 15, 2024
64eb249
merge fix
rinrub Feb 15, 2024
a8aa660
added undefined checks for sorting on gtable
rinrub Feb 15, 2024
cef1dba
fix sorting of different item.type
rinrub Feb 16, 2024
eecc2d6
release-14.1.0-beta03
rinrub Feb 16, 2024
e30751a
Merge remote-tracking branch 'origin/master' into feature/table-2
rinrub Feb 20, 2024
2dbcc95
Merge remote-tracking branch 'origin/feature/table-2' into andreasn/r…
rinrub Feb 20, 2024
458314b
testing
rinrub Feb 26, 2024
eb3fa76
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Feb 28, 2024
50840b6
remove duplicate
rinrub Feb 28, 2024
1c20fae
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Feb 29, 2024
886cfeb
added validation
rinrub Mar 4, 2024
82239fa
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Mar 4, 2024
4862688
add valdiations
rinrub Mar 4, 2024
be7506b
add more validation
rinrub Mar 6, 2024
4068d49
forn
rinrub Mar 7, 2024
e61bd63
fix errors
ruberino Mar 7, 2024
79f3a68
git
ruberino Mar 7, 2024
2113cce
fix
rinrub Mar 8, 2024
1f21042
Merge branch 'andreasn/remove-form' of https://github.com/helsenorge/…
rinrub Mar 8, 2024
5f5711c
added new ids and fixed some zod validation on the fomr
rinrub Mar 13, 2024
67f5074
fixes
rinrub Mar 15, 2024
04051a1
small fix
ruberino Mar 15, 2024
5b92643
text
ruberino Mar 18, 2024
2ab3b64
making datareciever work
rinrub Mar 18, 2024
bcd3804
fix all components
rinrub Mar 19, 2024
36fc56e
move redux to store folder
rinrub Mar 20, 2024
c4032a4
move redux stuff and fix imports
rinrub Mar 20, 2024
c9bba3d
update maked
rinrub Mar 20, 2024
91bc257
remove unused prop
rinrub Mar 21, 2024
c3fe128
remove types for react-redux
rinrub Mar 21, 2024
6c91735
update props name
rinrub Mar 22, 2024
5d64cb6
small polish
rinrub Mar 22, 2024
05c8e2f
remove dispatch step
rinrub Mar 22, 2024
f7602da
packages
rinrub Mar 25, 2024
4bbc2a4
Merge remote-tracking branch 'origin/master' into andreasn/remove-form
rinrub Mar 25, 2024
96c0892
imports
rinrub Mar 25, 2024
9f1b52d
updated packages
rinrub Mar 26, 2024
6b805e6
moved containedResource and questionnaire to selectors
rinrub Mar 27, 2024
470f288
fix selector
rinrub Mar 27, 2024
cb155ef
fix datae
rinrub Mar 27, 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
86 changes: 78 additions & 8 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -62,33 +62,103 @@

---

- added enums to new fhirEnums.ts file
- fixed slidercomponent not showing children

## 14.0.1-beta01

## 14.0.4
- removing singlequoutes from units on quantity in table
- change the date output to norwegian format

---

- Remove fhir.ts and added an npm package for the fhir typescript types
## 14.0.0-beta02

## 14.0.3
- Added table feature to new major version

---

- bugfix: Render html tags in textarea label
## 14.0.0-beta01

## 14.0.1
- Added table feature to new major version

---

- fixed slidercomponent not showing children

## 14.0.0

---

- Added component for slider view
- Upgraded Helsenorge packages to v29

## 13.2.4-beta08

---

- remove time test

## 13.2.4-beta07

---

- fix failing test

## 13.2.4-beta06

---

- fix HN2-TABLE bug with enablewhen
- added type for QuestionnaireItemWithAnswers
- fix datetime formatting

## 13.2.4-beta05

---

- fix displaying the correct values in tables
- fix standardtable to be displayed correct with child items

## 13.2.4-beta04

---

- bump to correct version

## 13.2.4-beta03

---

- added displaying of table with the "table" extension set on group in fhir schema

## 13.2.4-beta01

---

- added package to mock structuredClone in tests

## 13.2.2-beta06

---

- added package to mock structuredClone in tests

## 13.2.2-beta05

---

- correct version

## 13.2.2-beta04

---

- Added support for table-hn2 and table-hn1 code in summary.

## 13.2.2-beta01

---

- Added a preview for refero using vite.

## 13.2.2

---
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ class App extends Component<{}, {}> {
fetchReceivers={...}
onFieldsNotCorrectlyFilledOut={...}
onStepChange={...}
isHelsenorgeForm={...}
/>
</Provider>
);
)
}
};
```

## Props
Expand Down Expand Up @@ -113,6 +116,7 @@ class App extends Component<{}, {}> {
| fetchReceivers | | callback | | Callback when the receiver component is mounted |
| onFieldsNotCorrectlyFilledOut | | callback | | Callback when a field is incorrectly filled out |
| onStepChange | | callback | | Callback when the current step in step-views changes |
| isHelsenorgeForm | | boolean | | Whether the form is a Helsenorge form or not |


### `questionnaire: Questionnaire`
Expand Down Expand Up @@ -172,6 +176,10 @@ Configuration for when autosuggest fields should call `fetchValueSet`. `minSearc
typed before `fetchValueSet` will be called. Default value is 0. `typingSearchDelay` is the amount of milliseconds to wait after the user
stop typing before calling `fetchValueSet`. Default value is 500.

### `isHelsenorgeForm: boolean`

When this property is `true`, additional stylings for Helsenorge forms are applied.

## Callback API

### `onSubmit: () => void`
Expand Down
Loading
Loading