Skip to content

Commit

Permalink
refactor(logic): consolidate logic functions into shared (#7136)
Browse files Browse the repository at this point in the history
* refactor(logic): consolidate logic functions into shared

* test: fix test import paths

* chore: add more details to comments, use shared function for isNonEmpty

* refactor: move internal radio field constant over to shared as SSOT

* chore: add comment to unreachable code path
  • Loading branch information
justynoh authored Mar 19, 2024
1 parent 8c5a160 commit 520c5bf
Show file tree
Hide file tree
Showing 17 changed files with 917 additions and 814 deletions.
16 changes: 0 additions & 16 deletions frontend/src/features/logic/utils/allConditionsExist.ts

This file was deleted.

95 changes: 0 additions & 95 deletions frontend/src/features/logic/utils/getLogicUnitPreventingSubmit.tsx

This file was deleted.

93 changes: 0 additions & 93 deletions frontend/src/features/logic/utils/getVisibleFieldIds.ts

This file was deleted.

106 changes: 0 additions & 106 deletions frontend/src/features/logic/utils/groupLogicUnitsByField.ts

This file was deleted.

3 changes: 1 addition & 2 deletions frontend/src/features/logic/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './getIfLogicType'
export * from './getLogicUnitPreventingSubmit'
export * from './getVisibleFieldIds'
export * from './logic-adaptor'
Loading

0 comments on commit 520c5bf

Please sign in to comment.