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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove Angular `BoardsIndexPageComponent`
Aaron Contreras6112a8a107ad
diff --git a/frontend/src/app/features/boards/index-page/boards-index-page.component.html b/frontend/src/app/features/boards/index-page/boards-index-page.component.htmldeleted file mode 100644index 88e80f0bb5d..00000000000--- a/frontend/src/app/features/boards/index-page/boards-index-page.component.html+++ /dev/null@@ -1,110 +0,0 @@-<div class="toolbar-container">- <div class="toolbar">- <div class="title-container">- <h2 [textContent]="text.boards"></h2>- </div>- <ul class="toolbar-items">- <li *ngIf="canAdd"- class="toolbar-item">- <a class="button -alt-highlight"- [title]="text.create_new_board"- (click)="newBoard()">- <op-icon icon-classes="button--icon icon-add">- </op-icon>- <span class="button--text"- [textContent]="text.board">- </span>- </a>- </li>- </ul>- </div>-</div>--<div class="boards--listing-group loading-indicator--location"- data-indicator-name="boards-module">- <div *ngIf="(boards$ | async) as boards"- class="generic-table--container">- <div class="generic-table--results-container">- <table class="generic-table">- <colgroup>- <col opHighlightCol>- <col opHighlightCol>- <col opHighlightCol>- <col opHighlightCol>- <col>- </colgroup>- <thead>- <tr>- <th>- <div class="generic-table--sort-header-outer">- <div class="generic-table--sort-header">- <span [textContent]="text.name">- </span>- </div>- </div>- </th>- <th>- <div class="generic-table--sort-header-outer">- <div class="generic-table--sort-header">- <span [textContent]="text.type">- </span>- </div>- </div>- </th>- <th>- <div class="generic-table--sort-header-outer">- <div class="generic-table--sort-header">- <span [textContent]="text.createdAt">- </span>- </div>- </div>- </th>- <th>- <div class="generic-table--empty-header">- </div>- </th>- </tr>- </thead>- <tbody>- <tr *ngIf="boards.length === 0" id="empty-row-notification">- <td colspan="4">- <span>- <op-icon icon-classes="icon-info1 icon-context"></op-icon>- <span>- <strong [textContent]="text.noResults"></strong>- </span>- </span>- </td>- </tr>- <tr *ngFor="let board of boards">- <td- class="name"- data-qa-selector="boards-table-column--name"- >- <a [textContent]="board.name"- uiSref="boards.partitioned.show"- [uiParams]="{ board_id: board.id }">- </a>- </td>- <td>- <span *ngIf="board.isFree" [textContent]="text.type_free"></span>- <span *ngIf="board.isAction" [textContent]="text.action_by_attribute(board.actionAttribute)"></span>- </td>- <td>- <op-date-time [dateTimeValue]="board.createdAt"></op-date-time>- </td>- <td class="buttons">- <button class="spot-link"- type="button"- (click)="destroyBoard(board)"- [title]="text.delete"- >- <op-icon icon-classes="icon icon-delete"></op-icon>- </button>- </td>- </tr>- </tbody>- </table>- </div>- </div>-</div>diff --git a/frontend/src/app/features/boards/index-page/boards-index-page.component.sass b/frontend/src/app/features/boards/index-page/boards-index-page.component.sassdeleted file mode 100644index 8519106d6e3..00000000000--- a/frontend/src/app/features/boards/index-page/boards-index-page.component.sass+++ /dev/null@@ -1,10 +0,0 @@-.boards--listing-group- position: relative--.boards--teaser-video-container- height: 50vh- text-align: center-- .boards--teaser-video- width: 100%- height: 100%diff --git a/frontend/src/app/features/boards/index-page/boards-index-page.component.ts b/frontend/src/app/features/boards/index-page/boards-index-page.component.tsdeleted file mode 100644index ff3fd6cf65f..00000000000--- a/frontend/src/app/features/boards/index-page/boards-index-page.component.ts+++ /dev/null@@ -1,95 +0,0 @@-import {- AfterViewInit,- Component,- Injector,- OnInit,-} from '@angular/core';-import { Observable } from 'rxjs';-import { I18nService } from 'core-app/core/i18n/i18n.service';-import { BoardService } from 'core-app/features/boards/board/board.service';-import { Board } from 'core-app/features/boards/board/board';-import { ToastService } from 'core-app/shared/components/toaster/toast.service';-import { OpModalService } from 'core-app/shared/components/modal/modal.service';-import { NewBoardModalComponent } from 'core-app/features/boards/new-board-modal/new-board-modal.component';-import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';-import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';-import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { componentDestroyed } from '@w11k/ngx-componentdestroyed';-import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-import { map } from 'rxjs/operators';--@Component({- templateUrl: './boards-index-page.component.html',- styleUrls: ['./boards-index-page.component.sass'],-})-export class BoardsIndexPageComponent extends UntilDestroyedMixin implements OnInit, AfterViewInit {- public text = {- name: this.I18n.t('js.modals.label_name'),- create: this.I18n.t('js.button_create'),- create_new_board: this.I18n.t('js.boards.create_new'),- board: this.I18n.t('js.label_board'),- boards: this.I18n.t('js.label_board_plural'),- type: this.I18n.t('js.boards.label_board_type'),- type_free: this.I18n.t('js.boards.board_type.free'),- action_by_attribute: (attr:string) => this.I18n.t('js.boards.board_type.action_by_attribute',- { attribute: this.I18n.t(`js.boards.board_type.action_type.${attr}`) }),- createdAt: this.I18n.t('js.label_created_on'),- delete: this.I18n.t('js.button_delete'),- areYouSure: this.I18n.t('js.text_are_you_sure'),- deleteSuccessful: this.I18n.t('js.notice_successful_delete'),- noResults: this.I18n.t('js.notice_no_results_to_display'),- };-- public canAdd = false;-- public boards$:Observable<Board[]> = this- .apiV3Service- .boards- .observeAll()- .pipe(- map((boards:Board[]) => boards.sort((a, b) => a.name.localeCompare(b.name))),- );-- constructor(- private readonly boardService:BoardService,- private readonly apiV3Service:ApiV3Service,- private readonly I18n:I18nService,- private readonly toastService:ToastService,- private readonly opModalService:OpModalService,- private readonly loadingIndicatorService:LoadingIndicatorService,- private readonly authorisationService:AuthorisationService,- private readonly injector:Injector,- ) {- super();- }-- ngOnInit():void {- this.authorisationService- .observeUntil(componentDestroyed(this))- .subscribe(() => {- this.canAdd = this.authorisationService.can('boards', 'create');- });- }-- ngAfterViewInit():void {- const loadingIndicator = this.loadingIndicatorService.indicator('boards-module');- loadingIndicator.promise = this.boardService.loadAllBoards();- }-- newBoard():void {- this.opModalService.show(NewBoardModalComponent, this.injector);- }-- destroyBoard(board:Board):void {- if (!window.confirm(this.text.areYouSure)) {- return;- }-- this.boardService- .delete(board)- .then(() => {- this.toastService.addSuccess(this.text.deleteSuccessful);- })- .catch((error) => this.toastService.addError(`Deletion failed: ${error}`));- }-}diff --git a/frontend/src/app/features/boards/openproject-boards.module.ts b/frontend/src/app/features/boards/openproject-boards.module.tsindex 42177be7938..12c3788ea59 100644--- a/frontend/src/app/features/boards/openproject-boards.module.ts+++ b/frontend/src/app/features/boards/openproject-boards.module.ts@@ -36,7 +36,6 @@ import { BoardsRootComponent } from 'core-app/features/boards/boards-root/boardsimport { BoardInlineAddAutocompleterComponent } from 'core-app/features/boards/board/inline-add/board-inline-add-autocompleter.component';import { BoardsToolbarMenuDirective } from 'core-app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive';import { BoardConfigurationModalComponent } from 'core-app/features/boards/board/configuration-modal/board-configuration.modal';-import { BoardsIndexPageComponent } from 'core-app/features/boards/index-page/boards-index-page.component';import { BoardsMenuComponent } from 'core-app/features/boards/boards-sidebar/boards-menu.component';import { NewBoardModalComponent } from 'core-app/features/boards/new-board-modal/new-board-modal.component';import { AddListModalComponent } from 'core-app/features/boards/board/add-list-modal/add-list-modal.component';@@ -74,7 +73,6 @@ import { TileViewComponent } from './tile-view/tile-view.component';}),],declarations: [- BoardsIndexPageComponent,BoardPartitionedPageComponent,BoardListContainerComponent,BoardListComponent,diff --git a/frontend/src/app/features/boards/openproject-boards.routes.ts b/frontend/src/app/features/boards/openproject-boards.routes.tsindex 68bce27e267..2ac2e75daeb 100644--- a/frontend/src/app/features/boards/openproject-boards.routes.ts+++ b/frontend/src/app/features/boards/openproject-boards.routes.ts@@ -28,7 +28,6 @@import { Ng2StateDeclaration, UIRouter } from '@uirouter/angular';import { BoardsRootComponent } from 'core-app/features/boards/boards-root/boards-root.component';-import { BoardsIndexPageComponent } from 'core-app/features/boards/index-page/boards-index-page.component';import { BoardPartitionedPageComponent } from 'core-app/features/boards/board/board-partitioned-page/board-partitioned-page.component';import { BoardListContainerComponent } from 'core-app/features/boards/board/board-partitioned-page/board-list-container.component';import { makeSplitViewRoutes } from 'core-app/features/work-packages/routing/split-view-routes.template';@@ -51,18 +50,8 @@ export const BOARDS_ROUTES:Ng2StateDeclaration[] = [// Use custom encoder/decoder that ensures validity of URL stringquery_props: { type: 'opQueryString', dynamic: true },},- redirectTo: 'boards.list',component: BoardsRootComponent,},- {- name: 'boards.list',- component: BoardsIndexPageComponent,- data: {- parent: 'boards',- bodyClasses: 'router--boards-list-view',- menuItem: menuItemClass,- },- },{name: 'boards.partitioned',url: '{board_id}',