-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v4/ Add Config tools for AttachmentList (#12250)
* remove includePdf property * init attachmentList + display all datatypes in combobox (minus dataTypes that is datamodel) * filter added * Add some texts and cover some scenarios * include all attachments, all attach (exl. pdf), and sort them + description update * added behaviour when special variants is used + more * attachmentList functions as desired now * Refactor attachmentList + Content, and add pending spinner * remove unused file * update type * init tests for attachmentListComponent * added unit tests, but need to add some more and clean up the code * unit tests completed! * unit test - completed v2 * Add spinner on higher lvl * update code after ux feedback * update tests * other updates * cover some tests * naming * cover more lines * naming v2 * cover the uncovered partial lines * one last adjustment + remove comments * move function removeItemByValue to lib * change text * changes after feedback - next step implement indeterminate * Merge branch 'main' into update-attachmentList-config-v4 * small fix * remove console.log from App.tsx * implement indeterminate checkbox + change logic of incoming and outcoming data * assign state on currentTask to avoid saving to backend when no attachments/pdf selected * some cleanup * refactor outgoing data logic * update component and content logic + refactor * update onChangeTask - need to use an updated list of attachments * add unit tests for external format * add tests when converting to internal and external format * update tests on converting internal external * Refactor highest level to only handle incoming and outgoing data * second level -> attachmentListInternalFormat * Lvl 3 - internal format combobox * Updated attachmentListUtils * AttachmentListUtils - update naming + cleanup * small change in naming * Updated arrayUtils * fix validation function + add tests for validation * update ArrayUtils.intersection with tests and more use of it * renaming and get rid of the last bug! * temperoray status on attachmentListComponent tests before removing the once that are unecessary * check test coverage * try to check coverage * 3th attempt * Update unit tests * update unit tests * add spinner when data is fetching + tests * Some cleanup * renaming convert functions * update unit tests to use it.each format instead * test driven dev - update external and internal convert functions to have the same inputs/outputs * add fieldset wrapper * Fix converting unit tests after feedback * Updated convert functions, validation function + small adjustments in tests * Refactor react logic to handle the updated convert functions * remove console.log * Fix: call OnChange when onChangeTask is called :D * add types * Update component unit tests * move convert functions in separate files + own type file * small adjustments in unit tests * small changes * convert functions - split to two files and their own tests files * updated convertToInternalFunction * renaming validation function * refactor attachmentList: -Component, -Content, -InternalFormat files * simplify convertToExternalFormat function * rename file * rename file back * rename files lowercase * reuse function extractCurrentAvailableAttachments * solve a case when convert to internal format and only pdf is selected * small adjustment in unit test * fix breaking changes after merge with main * update naming mockStore after merge with main * fix - make sure that selected datatypes exists in available datatypes --> if selected data type is deleted or edited * add useEffect * Make sure initial selected values in combobox is displayed correctly immidiately when an attachment component is deleted * removal of key index * remove index*
- Loading branch information
1 parent
71853e0
commit 03c6cf6
Showing
28 changed files
with
1,017 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.