Allow supervisors to write a note associated with their projects #8

Merged
ansv7779 merged 10 commits from 3399-supervisor-project-note into develop 2024-07-10 13:43:27 +02:00
Owner

There is a need among supervisors to maintain some work notes for each project. Where they are in the process, what students need to do, and other such things.

This PR gives the supervisors the ability to write a note for each project on their overview page.

Card 3399

There is a need among supervisors to maintain some work notes for each project. Where they are in the process, what students need to do, and other such things. This PR gives the supervisors the ability to write a note for each project on their overview page. Card 3399
ansv7779 added 6 commits 2024-07-03 15:48:10 +02:00
niat8586 reviewed 2024-07-10 10:29:15 +02:00
@ -0,0 +96,4 @@
@Override
protected void onSubmit() {
projectNoteService.setUserNote(
model.getObject(),
Owner

Rename model.getObject to projectModel.getObject ?

Would make it more readable and conform with the projectNoteService.setUserNote method.

Rename model.getObject to projectModel.getObject ? Would make it more readable and conform with the projectNoteService.setUserNote method.
ansv7779 marked this conversation as resolved
niat8586 reviewed 2024-07-10 11:18:44 +02:00
@ -0,0 +62,4 @@
super(id, model);
ModalWindowPlus modal = new LargeModalWindow("edit_note_modal");
modal.setTitle(model.map(Project::getTitle).map(projectTitle -> "View/Edit note for " + projectTitle));
Owner

Use of String.format could work here?
Example
modal.setTitle(model.map(Project::getTitle).map(projectTitle -> String.format("View/Edit note for %s", projectTitle)));

What do you think?

Use of String.format could work here? Example ```modal.setTitle(model.map(Project::getTitle).map(projectTitle -> String.format("View/Edit note for %s", projectTitle)));``` What do you think?
Author
Owner

Replaced with proper i18n

Replaced with proper i18n
ansv7779 marked this conversation as resolved
niat8586 requested review from niat8586 2024-07-10 12:34:25 +02:00
Owner

If note formatted and you look at it in full note mode then it removes the formatting. Would be prettier if it keeps it's formatting when looking at full note mode.

If note formatted and you look at it in full note mode then it removes the formatting. Would be prettier if it keeps it's formatting when looking at full note mode.
ansv7779 added 2 commits 2024-07-10 13:28:49 +02:00
ansv7779 added 1 commit 2024-07-10 13:38:34 +02:00
niat8586 approved these changes 2024-07-10 13:42:09 +02:00
niat8586 left a comment
Owner

Excellent, thanks for changes. Have a great day.

Excellent, thanks for changes. Have a great day.
ansv7779 added 1 commit 2024-07-10 13:42:33 +02:00
ansv7779 merged commit 949de4a260 into develop 2024-07-10 13:43:27 +02:00
ansv7779 deleted branch 3399-supervisor-project-note 2024-07-10 13:43:27 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: DMC/scipro#8
No description provided.