Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
110 stars 72 forks source link

Refactor policy editor #12867

Closed ghost closed 1 month ago

ghost commented 1 month ago

Description

As we are soon going to refactor the UI of PolicyEditor, I have refactored the logic and components of the feature. The reason is to structure the code better for the next developer that comes in to do the issues later. Two contexts have been added:

Related Issue(s)

Verification

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 97.69452% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 91.00%. Comparing base (8d5d3b2) to head (fb1bf73).

Files Patch % Lines
...CardRules/PolicyRule/SubResources/SubResources.tsx 72.00% 6 Missing and 1 partial :warning:
frontend/packages/policy-editor/src/utils/index.ts 66.66% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12867 +/- ## ========================================== + Coverage 90.67% 91.00% +0.33% ========================================== Files 1369 1384 +15 Lines 19530 19629 +99 Branches 2379 2381 +2 ========================================== + Hits 17709 17864 +155 + Misses 1558 1503 -55 + Partials 263 262 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

JamalAlabdullah commented 1 month ago

Tested ok