Skip to content

feat(snippet): add editable importance level (1–5)#597

Open
derangulacau wants to merge 10 commits intopaulscherrerinstitute:mainfrom
HayenNico:feat/edit-importance-level
Open

feat(snippet): add editable importance level (1–5)#597
derangulacau wants to merge 10 commits intopaulscherrerinstitute:mainfrom
HayenNico:feat/edit-importance-level

Conversation

@derangulacau
Copy link
Copy Markdown

Feature Description

This feature allows users to modify the importance level of a paragraph snippet
through the Modify Data Snippet dialog.

Users can select an importance level (1–5) using radio buttons.
The selected value is saved when the user clicks Done.

Implementation

  • Added Angular Material radio buttons (mat-radio-group, mat-radio-button)
    in add-content.component.html
  • Introduced importance state handling in add-content.component.ts
  • Loaded existing importance when editing a snippet
  • Included importance in payload for create and update operations

Result

  • Users can edit importance level of snippets
  • Importance persists correctly after update
  • Improved UX with clear selection interface

@derangulacau derangulacau requested a review from a team as a code owner April 22, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants