-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lectures
: Add dismiss modal for unsaved changes to title or period section
#10023
Lectures
: Add dismiss modal for unsaved changes to title or period section
#10023
Conversation
4afc64f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/main/webapp/app/lecture/close-edit-lecture-dialog/close-edit-lecture-modal.component.html
(1 hunks)src/main/webapp/i18n/de/lecture.json
(2 hunks)src/main/webapp/i18n/en/lecture.json
(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- src/main/webapp/app/lecture/close-edit-lecture-dialog/close-edit-lecture-modal.component.html
🧰 Additional context used
📓 Path-based instructions (1)
src/main/webapp/i18n/de/lecture.json (1)
Pattern src/main/webapp/i18n/de/**/*.json
: German language translations should be informal (dutzen) and should never be formal (sietzen). So the user should always be addressed with "du/dein" and never with "sie/ihr".
🔇 Additional comments (3)
src/main/webapp/i18n/en/lecture.json (2)
83-83
: LGTM: Clear and concise message
The updated message clearly communicates the purpose of the units step.
93-97
: LGTM: Well-structured modal translations
The new dismissChangesModal
section provides clear and consistent messaging with proper handling of singular/plural cases.
src/main/webapp/i18n/de/lecture.json (1)
83-83
: LGTM: Proper informal German translation
The message correctly uses the informal form and maintains good German grammar structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-approve after changing translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reapprove code after changes 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS3. Everything works as described
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS2, everything works perfectly.
…saved-changes-to-title-or-period
Checklist
General
Client
Motivation and Context
With Lectures: Add status bar to lecture creation and edit mode #9655 the guided mode will be removed and a "Status-bar-edit-view" will be introduced, with the sections
title
,period
,attachments
, andunits
.As
attachments
andunits
are saved directly when being edited, but fortitle
andperiod
a save button will explicitly need to be pressed the user shall not be able to leave the edit page mistakenly without saving the changes to thetitle
andperiod
section.To keep the scope of #9655 at a manageable size, we introduce the warning modal beforehand.
Description
title
orperiod
sectionisPeriodSectionValid
computed signal to period section component, also renamed and moved the component as the wizard will be removed soonlecture-update.component.html
and usinglecture-period.component.ts
insteadcompetenciesStepTitle
andcompetenciesStepMessage
Steps for Testing
Prerequisites:
Save
button is only enabled if you made a change to the lectureTestserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
Screenshots
Summary by CodeRabbit
Release Notes
New Features
TitleChannelNameComponent
andExerciseTitleChannelNameComponent
for streamlined output event handling.Bug Fixes
Documentation
Tests