folkehelseinstituttet / Fhi.Frontend.Demo

MIT License
2 stars 1 forks source link

New logic for DiagramTypeGroups #531

Closed proand closed 2 months ago

proand commented 3 months ago
  1. Make a new interface DiagramTypeGroup and a DiagramTypeGroups object to store all data and state related to diagram types and diagram type groups
  2. Make a new service DiagramTypeGroupService for all updates of the DiagramTypeGroups object
  3. Add a POC for a new diagram type nav based on data from DiagramTypeGroups in order to test the new logic for diagram type groups, but don't expose it in the API. PS. Consider whether new nav should get data from @input or service (not both as it is in existing nav) UPDATE: New nav component will get all data from a service.

Goal: to deprecate all old code related to storage/state of diagram types and (nav) diagram type groups, but refactoring of old code can wait for an later issue.

Acceptance Criteria No visible changes, and no changes to functionality

proand commented 3 months ago

Need to revise this issue after talking to the FHI Statistikk team.