Skip to content

Refactor series components for creator and presentation module

Rename GroupContentComponent to more appropriate ContentListComponent and stop using ContentListComponent for dialog ref of ContentGroupCreationComponent.

Move creators content group components to new module. Then split and refactor content list component:

  • Create `ContentGroupPageComponent` as parent component
  • Create `ContentGroupTitleComponent` for editable title
  • Create `ContentListSortComponent` for sortable content list Also stop use of `selectTranslate` where no subscription is needed and make use of `[routerLink]` instead of functions using `Router.navigate`.
  • Fix and remove no longer used aria labels
  • Move content group feature specific dialogs to series module

Cleanup StatisticPageComponent: Since this page can only be reached via a content group page view, the check if there is a series name as parameter can be removed.

Refactor content creation components:

  • Cleanup `ContentCreationPageComponent` and move creation itself to it and get format specific content from child components
  • Stop using `ContentCreationComponent` as abstract component and remove it
  • Create `AnswerOptionListComponent` which displays answer option list for choice, sort and prioritization contents and has validation
  • Move validation logic to `CreateAnswerOptionComponent`
  • Cleanup all format specific creation components
  • Cleanup `PreviewComponent` and remove redundant button section
  • Fix and remove unused aria labels for content creation components

Split content presentation for creator and presentation:

  • Create content group module for presentation
  • Cleanup creators `ContentPresentationComponent` which was recently shared with presentation module
  • Move `PublishContentComponent` to presentation content group module
  • Remove redundant `i18nPrefix` input in `StepperComponent`
  • Set translation scope in presentation module to `creator`
  • Remove no longer needed `InfoBarComponent` and `BarBaseComponent` since step container for current content step has been moved to presentation `ContentGroupPageComponent`
  • Rename `ContentStatisticComponent` to `ContentResultsComponent`
  • Make `StepperComponent` standalone

Closes #1082 (closed)

Edited by Lukas Weingarten

Merge request reports