Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[34071] Improve the labels in the board add-list modal

Oliver Günthere7422f4076ab
diff --git a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html b/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html
index cc091129e5d..d39113dd81d 100644
--- a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html
+++ b/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html
@@ -24,7 +24,7 @@
<div class="form--field">
<div class="form--field-container">
<div class="form--select-container">
- <label class="form--label" [textContent]="actionService.localizedName"></label>
+ <label class="form--label" [textContent]="actionService.label"></label>
<ndc-dynamic [ndcDynamicComponent]="autocompleterComponent()"
[ndcDynamicInputs]="{ availableValues: availableValues,
typeahead: requests.input$,
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts
index ede21a28a0c..f4952dafe73 100644
--- a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts
@@ -20,6 +20,8 @@ export class BoardAssigneeActionService extends CachedBoardActionService {
description = this.I18n.t('js.boards.board_type.action_text',
{ attribute: this.I18n.t('js.boards.board_type.action_type.assignee')});
+ label = this.I18n.t('js.boards.add_list_modal.labels.assignee');
+
icon = 'icon-user';
readonly unassignedUser:any = {
diff --git a/frontend/src/app/modules/boards/board/board-actions/board-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/board-action.service.ts
index 2f216b11f74..753c0b80d96 100644
--- a/frontend/src/app/modules/boards/board/board-actions/board-action.service.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/board-action.service.ts
@@ -55,7 +55,12 @@ export abstract class BoardActionService {
*/
description:string;
- /**
+ /**
+ * Label used to describe the values in the modal
+ */
+ label:string;
+
+ /**
* The text used in tile header
*/
text:string;
diff --git a/frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts
index 1bb00685e09..830658f2228 100644
--- a/frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts
@@ -14,6 +14,8 @@ export class BoardStatusActionService extends CachedBoardActionService {
description = this.I18n.t('js.boards.board_type.action_text',
{ attribute: this.I18n.t('js.boards.board_type.action_type.status')});
+ label = this.I18n.t('js.boards.add_list_modal.labels.status');
+
icon = 'icon-workflow';
public get localizedName() {
diff --git a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts
index 6c43b75e936..2ee90af5eb2 100644
--- a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts
@@ -19,6 +19,8 @@ export class BoardSubprojectActionService extends CachedBoardActionService {
description = this.I18n.t('js.boards.board_type.action_text_subprojects');
+ label = this.I18n.t('js.boards.add_list_modal.labels.subproject');
+
icon = 'icon-projects';
get localizedName() {
diff --git a/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
index 4ce72a68d47..deb08eebc50 100644
--- a/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
@@ -1,12 +1,10 @@
import {Injectable} from "@angular/core";
-import {Board} from "core-app/modules/boards/board/board";
-import {StatusResource} from "core-app/modules/hal/resources/status-resource";
import {BoardActionService} from "core-app/modules/boards/board/board-actions/board-action.service";
import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource";
import {HalResource} from "core-app/modules/hal/resources/hal-resource";
import {Observable} from "rxjs";
import {map} from "rxjs/operators";
-import {ApiV3FilterBuilder, buildApiV3Filter, FalseValue} from "core-components/api/api-v3/api-v3-filter-builder";
+import {ApiV3FilterBuilder} from "core-components/api/api-v3/api-v3-filter-builder";
import {SubtasksBoardHeaderComponent} from "core-app/modules/boards/board/board-actions/subtasks/subtasks-board-header.component";
@Injectable()
@@ -18,6 +16,8 @@ export class BoardSubtasksActionService extends BoardActionService {
description = this.I18n.t('js.boards.board_type.action_text_subtasks');
+ label = this.I18n.t('js.boards.add_list_modal.labels.subtasks');
+
icon = 'icon-hierarchy';
public get localizedName() {
diff --git a/frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts b/frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts
index c8a0f888412..db0b3087519 100644
--- a/frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts
@@ -27,6 +27,8 @@ export class BoardVersionActionService extends CachedBoardActionService {
description = this.I18n.t('js.boards.board_type.action_text',
{ attribute: this.I18n.t('js.boards.board_type.action_type.version')});
+ label = this.I18n.t('js.boards.add_list_modal.labels.version');
+
icon = 'icon-getting-started';
private writable$:Promise<boolean>;
diff --git a/modules/boards/config/locales/js-en.yml b/modules/boards/config/locales/js-en.yml
index 77eacbae5a4..70366152de8 100644
--- a/modules/boards/config/locales/js-en.yml
+++ b/modules/boards/config/locales/js-en.yml
@@ -27,7 +27,7 @@ en:
closed: 'Closed'
new_board: 'New board'
- add_list: 'Add list'
+ add_list: 'Add list to board'
add_card: 'Add card'
error_attribute_not_writable: "Cannot move the work package, %{attribute} is not writable."
error_loading_the_list: "Error loading the list: %{error_message}"
@@ -60,6 +60,12 @@ en:
select_attribute: "Action attribute"
add_list_modal:
+ labels:
+ assignee: Select user to add as a new assignee list
+ status: Select status to add as a new list
+ version: Select version to add as a new list
+ subproject: Select subproject to add as a new list
+ subtasks: Select work package to add as a new list
warning:
status: |
There is currently no status available. <br>