From 7b80b589768fb8bc772d97f003ed8bf1bdb6d19a Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Tue, 19 May 2026 16:59:27 -0700 Subject: [PATCH] style(Authoring): Organize notebook authoring using tabs --- .../notebook-authoring.component.html | 499 +++++++++--------- .../notebook-authoring.component.ts | 2 + src/messages.xlf | 48 +- 3 files changed, 282 insertions(+), 267 deletions(-) diff --git a/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html b/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html index 7d118503ee0..aec47d4d1e6 100644 --- a/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html +++ b/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html @@ -1,285 +1,294 @@ -
-

Notebook Settings

-
-
- - Student Notebook - -
-@if (project.notebook.enabled) { -
-
- -
-
- - Enable Note - -
- @if (project.notebook.itemTypes.note.enabled) { -
-
- - - -
- - Enable Add Note Button - -
- - Require students to write text on every note - -
- - Enable Clipping - -
- - Enable Student Uploads - -
- } + + + + Student + - Enable Report + Enable Student Notebook - @if (project.notebook.itemTypes.report.enabled) { -
-
+ @if (project.notebook.enabled) { +
+
- -
- @for (reportNote of project.notebook.itemTypes.report.notes; track reportNote) { -
-
+
+ + Enable Note + +
+ @if (project.notebook.itemTypes.note.enabled) { +
+
+ +
-
- - Max Score - - + + Enable Add Note Button + +
+ + Require students to write text on every note + +
+ + Enable Clipping + +
+ + Enable Student Uploads + +
+ } + + Enable Report + + @if (project.notebook.itemTypes.report.enabled) { +
+
+ + +
- - - Starter Text - + @for (reportNote of project.notebook.itemTypes.report.notes; track reportNote) { +
+
+ +
+
+ + Max Score + + +
+ + + Starter Text + +
+ }
}
} -
-} -
- - Teacher Notebook - -
-@if (project.teacherNotebook.enabled) { -
-
- - Notebook Label - - -
+ + + + Teacher + - Enable Report + Enable Teacher Notebook - @if (project.teacherNotebook.itemTypes.report.enabled) { -
-
- - Label (Singular) - - + @if (project.teacherNotebook.enabled) { +
+
- Label (Plural) + Notebook Label - - - Label (Link) -
- @for (reportNote of project.teacherNotebook.itemTypes.report.notes; track reportNote) { -
- - Title - - -
- - Description - - -
- - Prompt - - -
- Starter Text - + + Enable Report + + @if (project.teacherNotebook.itemTypes.report.enabled) { +
+
+ + Label (Singular) + + + + Label (Plural) + + + + Label (Link) + + +
+ @for (reportNote of project.teacherNotebook.itemTypes.report.notes; track reportNote) { +
+ + Title + + +
+ + Description + + +
+ + Prompt + + +
+ Starter Text + +
+ }
}
} -
-} + + diff --git a/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.ts b/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.ts index 0cdb8d06e5d..58bf092630c 100644 --- a/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.ts +++ b/src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.ts @@ -15,6 +15,7 @@ import { MatInputModule } from '@angular/material/input'; import { CdkTextareaAutosize } from '@angular/cdk/text-field'; import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { WiseAuthoringTinymceEditorComponent } from '../../directives/wise-tinymce-editor/wise-authoring-tinymce-editor.component'; +import { MatTabsModule } from '@angular/material/tabs'; @Component({ imports: [ @@ -24,6 +25,7 @@ import { WiseAuthoringTinymceEditorComponent } from '../../directives/wise-tinym MatFormFieldModule, MatInputModule, MatSlideToggleModule, + MatTabsModule, TranslatableInputComponent, TranslatableRichTextEditorComponent, TranslatableTextareaComponent, diff --git a/src/messages.xlf b/src/messages.xlf index e4eed04917f..9513ce72c8e 100644 --- a/src/messages.xlf +++ b/src/messages.xlf @@ -941,7 +941,7 @@ src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 265,268 + 272,275 src/assets/wise5/classroomMonitor/classroomMonitorComponents/component-summary/component-summary.component.html @@ -2368,6 +2368,10 @@ src/app/register/register-home/register-home.component.html 28,29 + + src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html + 190,194 + src/assets/wise5/components/peerChat/peerChatService.ts 65 @@ -2431,7 +2435,7 @@ src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 255,258 + 262,265 src/assets/wise5/components/common/cRater/crater-rubric/crater-rubric.component.html @@ -3240,6 +3244,10 @@ src/app/register/register-home/register-home.component.html 18,19 + + src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html + 4,8 + src/assets/wise5/classroomMonitor/student-progress/student-progress.component.ts 45 @@ -10920,10 +10928,6 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.src/assets/wise5/authoringTool/components/shared/authoring-tool-bar/authoring-tool-bar.component.ts 75 - - src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 2,7 - Advanced Settings @@ -13046,11 +13050,11 @@ The branches will be removed but the steps will remain in the unit. 170 - - Student Notebook + + Enable Student Notebook src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 12,16 + 13,16 @@ -13061,7 +13065,7 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 202,205 + 205,208 @@ -13083,7 +13087,7 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 223,226 + 226,229 @@ -13098,7 +13102,7 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 231,234 + 234,237 @@ -13113,28 +13117,28 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 239,242 + 242,245 Enable Add Note Button src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 71,75 + 71,74 Require students to write text on every note src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 81,85 + 81,84 Enable Clipping src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 90,94 + 90,93 @@ -13152,7 +13156,7 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 217,219 + 220,222 @@ -13163,7 +13167,7 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 250,251 + 253,256 src/assets/wise5/components/graph/graph-authoring/graph-authoring.component.html @@ -13186,14 +13190,14 @@ The branches will be removed but the steps will remain in the unit. src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 274,276 + 281,283 - - Teacher Notebook + + Enable Teacher Notebook src/assets/wise5/authoringTool/notebook-authoring/notebook-authoring.component.html - 195,199 + 199,202