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

improve the new board modal display

bsatarnejad2ea25f80624f
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 d1cc3bab332..20ef55f1327 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
@@ -15,11 +15,9 @@ import imagePath = ImageHelpers.imagePath;
export class BoardAssigneeActionService extends CachedBoardActionService {
filterName = 'assignee';
- text = this.I18n.t('js.boards.board_type.action_by_attribute',
- { attribute: this.I18n.t('js.boards.board_type.action_type.assignee')});
+ text = this.I18n.t('js.boards.board_type.action_type.assignee');
- description = this.I18n.t('js.boards.board_type.action_text',
- { attribute: this.I18n.t('js.boards.board_type.action_type.assignee')});
+ description = this.I18n.t('js.boards.board_type.action_text_assignee');
label = this.I18n.t('js.boards.add_list_modal.labels.assignee');
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 6e81765f50a..d801f6a42f1 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
@@ -10,11 +10,9 @@ import {ImageHelpers} from "core-app/helpers/images/path-helper";
export class BoardStatusActionService extends CachedBoardActionService {
filterName = 'status';
- text = this.I18n.t('js.boards.board_type.action_by_attribute',
- { attribute: this.I18n.t('js.boards.board_type.action_type.status')});
+ text = this.I18n.t('js.boards.board_type.action_type.status');
- description = this.I18n.t('js.boards.board_type.action_text',
- { attribute: this.I18n.t('js.boards.board_type.action_type.status')});
+ description = this.I18n.t('js.boards.board_type.action_text_status');
label = this.I18n.t('js.boards.add_list_modal.labels.status');
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 4f7c0e0189d..beb7af892a3 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
@@ -14,8 +14,7 @@ import {ImageHelpers} from "core-app/helpers/images/path-helper";
export class BoardSubprojectActionService extends CachedBoardActionService {
filterName = 'onlySubproject';
- text = this.I18n.t('js.boards.board_type.action_by_attribute',
- { attribute: this.I18n.t('js.boards.board_type.action_type.subproject')}) ;
+ text = this.I18n.t('js.boards.board_type.action_type.subproject');
description = this.I18n.t('js.boards.board_type.action_text_subprojects');
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 3d262c9ed03..3529689c795 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
@@ -14,8 +14,7 @@ import {ImageHelpers} from "core-app/helpers/images/path-helper";
export class BoardSubtasksActionService extends BoardActionService {
filterName = 'parent';
- text = this.I18n.t('js.boards.board_type.action_by_attribute',
- { attribute: this.I18n.t('js.boards.board_type.action_type.subtasks') });
+ text = this.I18n.t('js.boards.board_type.action_type.subtasks');
description = this.I18n.t('js.boards.board_type.action_text_subtasks');
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 fbe20f911ab..6a7c28cb919 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
@@ -22,11 +22,9 @@ export class BoardVersionActionService extends CachedBoardActionService {
filterName = 'version';
- text = this.I18n.t('js.boards.board_type.action_by_attribute',
- { attribute: this.I18n.t('js.boards.board_type.action_type.version')});
+ text = this.I18n.t('js.boards.board_type.action_type.version');
- description = this.I18n.t('js.boards.board_type.action_text',
- { attribute: this.I18n.t('js.boards.board_type.action_type.version')});
+ description = this.I18n.t('js.boards.board_type.action_text_version');
label = this.I18n.t('js.boards.add_list_modal.labels.version');
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.html b/frontend/src/app/modules/boards/tile-view/tile-view.component.html
index 6a42ba5c2dc..9ee4cc6a7cc 100644
--- a/frontend/src/app/modules/boards/tile-view/tile-view.component.html
+++ b/frontend/src/app/modules/boards/tile-view/tile-view.component.html
@@ -1,15 +1,12 @@
<div class="tile-blocks--container">
- <div class="tile-block"
- [disabled]="disabled()"
- (accessibleClick)="created(tile.attribute)"
- *ngFor="let tile of tiles">
- <img [src]="tile.image" />
- <div class="row tile-block-header">
-
-
- <span>{{ tile.text | titlecase}}</span>
- </div>
-
- <p [textContent]="tile.description"></p>
+ <div class="tile-block button row"
+ [disabled]="disabled()"
+ (accessibleClick)="created(tile.attribute)"
+ *ngFor="let tile of tiles">
+ <img [src]="tile.image" class="tile-block-image"/>
+ <div>
+ <span class="tile-block-title">{{ tile.text | titlecase}}</span>
+ <p class="tile-block-description" [textContent]="tile.description"></p>
+ </div>
</div>
</div>
\ No newline at end of file
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.sass b/frontend/src/app/modules/boards/tile-view/tile-view.component.sass
index 4a18a630ced..42acc83adc4 100644
--- a/frontend/src/app/modules/boards/tile-view/tile-view.component.sass
+++ b/frontend/src/app/modules/boards/tile-view/tile-view.component.sass
@@ -1,32 +1,40 @@
.tile-blocks--container
display: grid
- grid-template: repeat(auto-fit, 220px) / repeat(auto-fit, 450px)
- grid-auto-rows: 220px
+ grid-template: repeat(auto-fit, 200px) / repeat(auto-fit, 450px)
+ grid-auto-rows: 200px
grid-column-gap: 10px
grid-row-gap: 10px
- min-width: 500px
- margin: 5px
+ min-width: 910px
+
.tile-block
border-radius: 10px
display: grid
grid-template: 95px 1fr / 1fr
+ grid-template-columns: auto 1fr auto
+ grid-template-rows: auto
grid-row-gap: 5px
justify-items: left
- background: #f8f8f8
+ background: #f7fafc
&:hover
- outline: 1px solid grey
text-decoration: none
+ border: 1px solid grey
+ border-radius: 10px !important
+ cursor: pointer
.tile-block--icon
font-size: 50px
-.tile-block-header
- padding-left: 10px
+.tile-block-title
+ padding-top: 30px
color: var(--primary-color-dark)
- display: flex
- align-items: center
+ display: block
+ text-align: left
+ font-weight: bolder
.tile-block p
- text-align: left
\ No newline at end of file
+ text-align: left
+ width: 90%
+
+
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts b/frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts
index 9ead365954d..aa03296dc66 100644
--- a/frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts
+++ b/frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts
@@ -2,6 +2,8 @@ import {ComponentFixture, TestBed, async} from '@angular/core/testing';
import {DebugElement} from '@angular/core';
import {By} from '@angular/platform-browser';
import {TileViewComponent} from './tile-view.component';
+import {ImageHelpers} from "core-app/helpers/images/path-helper";
+import imagePath = ImageHelpers.imagePath;
describe('shows tiles', () => {
let app:TileViewComponent;
@@ -9,8 +11,11 @@ describe('shows tiles', () => {
let element:DebugElement;
let tilesStub = [{
- attribute: 'basic', text: 'Basic board',
- icon: 'icon-boards', description: `Create a board in which you can freely
+ attribute: 'basic',
+ text: 'Basic board',
+ icon: 'icon-boards',
+ image: imagePath('board_creation_modal/lists.svg'),
+ description: `Create a board in which you can freely
create lists and order your work packages within.
Moving work packages between lists do not change the work package itself.`
}];
@@ -37,13 +42,13 @@ describe('shows tiles', () => {
it('should show each tile', () => {
fixture.detectChanges();
let tile:HTMLElement = element.query(By.css('.tile-block')).nativeElement;
- expect(tile.textContent).toContain('Basic Board');
+ expect(tile.textContent).toContain('Basic');
});
- it('should show the icon', () => {
+ it('should show the image', () => {
fixture.detectChanges();
- let tile = document.querySelector('.tile-block--icon');
+ let tile = document.querySelector('.tile-block-image');
expect(document.contains(tile)).toBeTruthy();
});
diff --git a/modules/boards/config/locales/js-en.yml b/modules/boards/config/locales/js-en.yml
index 78748912fa5..68a2a9906ec 100644
--- a/modules/boards/config/locales/js-en.yml
+++ b/modules/boards/config/locales/js-en.yml
@@ -36,28 +36,36 @@ en:
click_to_remove_list: "Click to remove this list"
board_type:
text: 'Board type'
- free: 'Basic board'
+ free: 'basic'
select_board_type: 'Please choose the type of board you need.'
free_text: >
- A board in which you can freely create lists and order your work packages within.
- Dragging work packages between lists do not change the work package itself.
+ Start from scratch with a blank board.
+ Manually add cards and columns to this board.
action: 'Action board'
action_by_attribute: 'Action board (%{attribute})'
action_text: >
A board with filtered lists on %{attribute} attribute. Moving work packages to other lists
will update their attribute.
action_text_subprojects: >
- A board with lists of subprojects of this project and their work packages as list items.
- Dragging work packages to other lists will move them to the corresponding subproject.
+ Board with automated columns for subprojects.
+ Ideal for handling permissions across stakeholders.
action_text_subtasks: >
- A board with lists of selected parents and their child work packages as list items.
- Dragging work packages to other lists will update the parent accordingly.
+ Board with automated columns for sub-elements.
+ Dragging work packages to other lists updates the parent accordingly.
+ action_text_status: >
+ Basic kanban style board with columns for status such as To Do, In Progress, Done.
+ action_text_assignee: >
+ Board with automated columns based on assigned users.
+ Ideal for dispatching work packages.
+ action_text_version: >
+ Board with automated columns based on the version attribute.
+ Ideal for planning software releases.
action_type:
assignee: assignee
status: status
version: version
subproject: subproject
- subtasks: children
+ subtasks: parent-child
select_attribute: "Action attribute"
add_list_modal: