Skip to content

Commit 00be2f6

Browse files
authored
feat: enable virtual assistant for all systems (#3409)
closes #3314 closes #3397
1 parent 307cdd5 commit 00be2f6

File tree

46 files changed

+527
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+527
-202
lines changed

src/app/child-dev-project/notes/admin-note-details/admin-note-details.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<div class="hint-banner" i18n>
1+
<app-hint-box i18n>
22
You can edit how users will see the Note details of a single record. Drag and
33
drop fields and sections in this preview of a profile view and group them as
44
appropriate. The editor below closely resembles how the form will look for
55
users later.
66
<br />
77
We recommend to keep things simple: Only add fields that you really need for
88
your work.
9-
</div>
9+
</app-hint-box>
1010

1111
<div class="form-sections">
1212
<app-admin-entity-form

src/app/child-dev-project/notes/admin-note-details/admin-note-details.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { Component, Input, OnInit, Output, EventEmitter } from "@angular/core";
1+
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
22
import { CommonModule } from "@angular/common";
33
import { EntityConstructor } from "../../../core/entity/model/entity";
44
import { AdminEntityFormComponent } from "../../../core/admin/admin-entity-details/admin-entity-form/admin-entity-form.component";
55
import { NoteDetailsConfig } from "../note-details/note-details-config.interface";
66
import { FormConfig } from "../../../core/entity-details/form/form.component";
77
import { FieldGroup } from "../../../core/entity-details/form/field-group";
88
import { getDefaultNoteDetailsConfig } from "../add-default-note-views";
9+
import { HintBoxComponent } from "#src/app/core/common-components/hint-box/hint-box.component";
910

1011
/**
1112
* Admin component for configuring NoteDetails view.
1213
* Allows users to configure the three form sections with full field editing capabilities.
1314
*/
1415
@Component({
1516
selector: "app-admin-note-details",
16-
imports: [CommonModule, AdminEntityFormComponent],
17+
imports: [CommonModule, AdminEntityFormComponent, HintBoxComponent],
1718
templateUrl: "./admin-note-details.component.html",
18-
styleUrls: ["../../../core/admin/admin-entity/admin-entity-styles.scss"],
1919
})
2020
export class AdminNoteDetailsComponent implements OnInit {
2121
@Input() config: NoteDetailsConfig = {};

src/app/core/admin/admin-entity-details/admin-entity-details/admin-entity-details.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<div class="hint-banner" i18n>
1+
<app-hint-box i18n>
22
You can edit how users will see the details of a single record of this type.
33
Drag and drop fields and sections in this preview of a profile view and group
44
them as appropriate. The editor below closely resembles how the form will look
55
for users later.
66
<br />
77
We recommend to keep things simple: Only add fields that you really need for
88
your work.
9-
</div>
9+
</app-hint-box>
1010

1111
<app-view-title [disableBackButton]="true" [displayInPlace]="true">
1212
&lt;Name of displayed {{ this.entityConstructor?.label }}&gt;

src/app/core/admin/admin-entity-details/admin-entity-details/admin-entity-details.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input, inject, signal } from "@angular/core";
1+
import { Component, inject, Input } from "@angular/core";
22
import {
33
EntityDetailsConfig,
44
Panel,
@@ -25,15 +25,13 @@ import {
2525
moveItemInArray,
2626
} from "@angular/cdk/drag-drop";
2727
import { WidgetComponentSelectComponent } from "#src/app/core/admin/admin-entity-details/widget-component-select/widget-component-select.component";
28+
import { HintBoxComponent } from "#src/app/core/common-components/hint-box/hint-box.component";
2829

2930
@DynamicComponent("AdminEntityDetails")
3031
@Component({
3132
selector: "app-admin-entity-details",
3233
templateUrl: "./admin-entity-details.component.html",
33-
styleUrls: [
34-
"./admin-entity-details.component.scss",
35-
"../../admin-entity/admin-entity-styles.scss",
36-
],
34+
styleUrls: ["./admin-entity-details.component.scss"],
3735
imports: [
3836
MatTabsModule,
3937
FaIconComponent,
@@ -48,6 +46,7 @@ import { WidgetComponentSelectComponent } from "#src/app/core/admin/admin-entity
4846
MatExpansionModule,
4947
MatIconModule,
5048
DragDropModule,
49+
HintBoxComponent,
5150
],
5251
})
5352
export class AdminEntityDetailsComponent {

src/app/core/admin/admin-entity-list/admin-entity-list.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<div class="hint-banner" i18n>
1+
<app-hint-box i18n>
22
You can edit how users will see the list of all records of this type. Drag and
33
drop filters and change table columns in this preview. The editor below
44
closely resembles how the list will look for users later.
55
<br />
66
To create new fields, use the "Details View" section.
7-
</div>
7+
</app-hint-box>
88

99
<app-view-title [disableBackButton]="true" [displayInPlace]="true">
1010
{{ entityConstructor.labelPlural }}

src/app/core/admin/admin-entity-list/admin-entity-list.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { AdminTabTemplateDirective } from "../building-blocks/admin-tabs/admin-t
1010
import { ViewTitleComponent } from "../../common-components/view-title/view-title.component";
1111
import { Logging } from "../../logging/logging.service";
1212
import { AdminListManagerComponent } from "#src/app/core/admin/admin-list-manager/admin-list-manager.component";
13+
import { HintBoxComponent } from "#src/app/core/common-components/hint-box/hint-box.component";
1314

1415
@Component({
1516
selector: "app-admin-entity-list",
@@ -19,12 +20,10 @@ import { AdminListManagerComponent } from "#src/app/core/admin/admin-list-manage
1920
AdminTabTemplateDirective,
2021
ViewTitleComponent,
2122
AdminListManagerComponent,
23+
HintBoxComponent,
2224
],
2325
templateUrl: "./admin-entity-list.component.html",
24-
styleUrls: [
25-
"./admin-entity-list.component.scss",
26-
"../admin-entity/admin-entity-styles.scss",
27-
],
26+
styleUrls: ["./admin-entity-list.component.scss"],
2827
})
2928
export class AdminEntityListComponent implements OnChanges {
3029
@Input() entityConstructor: EntityConstructor;

src/app/core/admin/admin-entity-public-forms/admin-entity-public-forms-component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="hint-banner" i18n>
1+
<app-hint-box i18n>
22
You can share the link to a "Public Form" with people who do not have an
33
account or embed it in your website. People can submit new records through
44
this form without logging in. For example, you can let participants
55
self-register this way and then review their data later.
6-
</div>
6+
</app-hint-box>
77

88
<app-view-title [disableBackButton]="true" [displayInPlace]="true" i18n>
99
Public Forms

src/app/core/admin/admin-entity-public-forms/admin-entity-public-forms-component.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import { Component, Input } from "@angular/core";
22
import { EntityConstructor } from "app/core/entity/model/entity";
33
import { ViewTitleComponent } from "../../common-components/view-title/view-title.component";
44
import { RelatedEntitiesComponent } from "../../entity-details/related-entities/related-entities.component";
5+
import { HintBoxComponent } from "#src/app/core/common-components/hint-box/hint-box.component";
56

67
@Component({
78
selector: "app-admin-entity-public-forms-component",
89
templateUrl: "./admin-entity-public-forms-component.html",
9-
styleUrls: [
10-
"./admin-entity-public-forms-component.scss",
11-
"../admin-entity/admin-entity-styles.scss",
12-
],
13-
imports: [ViewTitleComponent, RelatedEntitiesComponent],
10+
styleUrls: ["./admin-entity-public-forms-component.scss"],
11+
imports: [ViewTitleComponent, RelatedEntitiesComponent, HintBoxComponent],
1412
})
1513
export class AdminEntityPublicFormsComponent {
1614
/**

src/app/core/admin/admin-entity/admin-entity-general-settings/admin-entity-general-settings.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<div class="hint-banner" i18n>
1+
<app-hint-box i18n>
22
The settings here apply to the entity type overall and take effect everywhere
33
the entity is displayed, including lists, forms and other views.
4-
</div>
4+
</app-hint-box>
55

66
<h2 i18n>General Settings of "{{ entityConstructor.label }}" Records</h2>
77

src/app/core/admin/admin-entity/admin-entity-general-settings/admin-entity-general-settings.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
22
Component,
33
EventEmitter,
4+
inject,
45
Input,
56
OnInit,
67
Output,
7-
inject,
88
} from "@angular/core";
99
import { EntityConstructor } from "../../../entity/model/entity";
1010
import { MatButtonModule } from "@angular/material/button";
@@ -38,14 +38,12 @@ import { DateOnlyDatatype } from "app/core/basic-datatypes/date-only/date-only.d
3838
import { AdminIconComponent } from "app/admin-icon-input/admin-icon-input.component";
3939
import { SimpleDropdownValue } from "app/core/common-components/basic-autocomplete/simple-dropdown-value.interface";
4040
import { ColorInputComponent } from "#src/app/color-input/color-input.component";
41+
import { HintBoxComponent } from "#src/app/core/common-components/hint-box/hint-box.component";
4142

4243
@Component({
4344
selector: "app-admin-entity-general-settings",
4445
templateUrl: "./admin-entity-general-settings.component.html",
45-
styleUrls: [
46-
"./admin-entity-general-settings.component.scss",
47-
"../admin-entity-styles.scss",
48-
],
46+
styleUrls: ["./admin-entity-general-settings.component.scss"],
4947
imports: [
5048
MatButtonModule,
5149
MatInputModule,
@@ -64,6 +62,7 @@ import { ColorInputComponent } from "#src/app/color-input/color-input.component"
6462
FaIconComponent,
6563
AdminIconComponent,
6664
ColorInputComponent,
65+
HintBoxComponent,
6766
],
6867
})
6968
export class AdminEntityGeneralSettingsComponent implements OnInit {

0 commit comments

Comments
 (0)