diff --git a/src/app/core/theme/components.ts b/src/app/core/theme/components.ts index 54d8fe2a2..123bddf02 100644 --- a/src/app/core/theme/components.ts +++ b/src/app/core/theme/components.ts @@ -2,25 +2,6 @@ import { primitives } from './primitives'; export const components = { button: { - root: { - success: { - hoverBackground: primitives.colors.greenThree, - hoverBorderColor: primitives.colors.greenThree, - }, - danger: { - hoverBackground: primitives.colors.redThree, - hoverBorderColor: primitives.colors.redThree, - }, - secondary: { - background: primitives.colors.bgBlueThree, - hoverBackground: primitives.colors.bgBlueTwo, - activeBackground: primitives.colors.bgBlueThree, - borderColor: primitives.colors.bgBlueThree, - hoverBorderColor: primitives.colors.bgBlueTwo, - color: primitives.colors.darkBlueTwo, - hoverColor: primitives.colors.prBlueThree, - }, - }, outlined: { primary: { hoverBackground: primitives.colors.bgBlueTwo, @@ -34,6 +15,14 @@ export const components = { colorScheme: { light: { root: { + success: { + hoverBackground: primitives.colors.greenThree, + hoverBorderColor: primitives.colors.greenThree, + }, + danger: { + hoverBackground: primitives.colors.redThree, + hoverBorderColor: primitives.colors.redThree, + }, info: { background: primitives.colors.transparent, hoverBackground: primitives.colors.transparent, @@ -45,6 +34,15 @@ export const components = { hoverColor: primitives.colors.darkBlueOne, activeColor: primitives.colors.darkBlueOne, }, + secondary: { + background: primitives.colors.bgBlueThree, + hoverBackground: primitives.colors.bgBlueTwo, + activeBackground: primitives.colors.bgBlueThree, + borderColor: primitives.colors.bgBlueThree, + hoverBorderColor: primitives.colors.bgBlueTwo, + color: primitives.colors.darkBlueTwo, + hoverColor: primitives.colors.prBlueThree, + }, }, }, }, diff --git a/src/app/features/admin-institutions/components/admin-table/admin-table.component.html b/src/app/features/admin-institutions/components/admin-table/admin-table.component.html index d1de12dac..5b666686e 100644 --- a/src/app/features/admin-institutions/components/admin-table/admin-table.component.html +++ b/src/app/features/admin-institutions/components/admin-table/admin-table.component.html @@ -70,17 +70,17 @@
diff --git a/src/app/features/admin-institutions/pages/institutions-preprints/institutions-preprints.component.ts b/src/app/features/admin-institutions/pages/institutions-preprints/institutions-preprints.component.ts index c80773de5..8c44bff77 100644 --- a/src/app/features/admin-institutions/pages/institutions-preprints/institutions-preprints.component.ts +++ b/src/app/features/admin-institutions/pages/institutions-preprints/institutions-preprints.component.ts @@ -4,7 +4,7 @@ import { TranslatePipe } from '@ngx-translate/core'; import { Button } from 'primeng/button'; -import { CommonModule } from '@angular/common'; +import { LowerCasePipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, computed, OnDestroy, OnInit, signal } from '@angular/core'; import { CurrentResourceType, ResourceType } from '@osf/shared/enums/resource-type.enum'; @@ -33,7 +33,7 @@ import { InstitutionsAdminSelectors } from '../../store'; @Component({ selector: 'osf-institutions-preprints', - imports: [CommonModule, AdminTableComponent, TranslatePipe, Button, FiltersSectionComponent], + imports: [Button, AdminTableComponent, FiltersSectionComponent, LowerCasePipe, TranslatePipe], templateUrl: './institutions-preprints.component.html', styleUrl: './institutions-preprints.component.scss', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/src/app/features/admin-institutions/pages/institutions-registrations/institutions-registrations.component.ts b/src/app/features/admin-institutions/pages/institutions-registrations/institutions-registrations.component.ts index d68ab8fae..a3c859bee 100644 --- a/src/app/features/admin-institutions/pages/institutions-registrations/institutions-registrations.component.ts +++ b/src/app/features/admin-institutions/pages/institutions-registrations/institutions-registrations.component.ts @@ -4,7 +4,7 @@ import { TranslatePipe } from '@ngx-translate/core'; import { Button } from 'primeng/button'; -import { CommonModule } from '@angular/common'; +import { LowerCasePipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, computed, OnDestroy, OnInit, signal } from '@angular/core'; import { CurrentResourceType, ResourceType } from '@osf/shared/enums/resource-type.enum'; @@ -34,7 +34,7 @@ import { InstitutionsAdminSelectors } from '../../store'; @Component({ selector: 'osf-institutions-registrations', - imports: [CommonModule, AdminTableComponent, TranslatePipe, Button, FiltersSectionComponent], + imports: [Button, AdminTableComponent, FiltersSectionComponent, LowerCasePipe, TranslatePipe], templateUrl: './institutions-registrations.component.html', styleUrl: './institutions-registrations.component.scss', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/src/app/features/auth/pages/forgot-password/forgot-password.component.html b/src/app/features/auth/pages/forgot-password/forgot-password.component.html index 1aff6b60e..304cc4b05 100644 --- a/src/app/features/auth/pages/forgot-password/forgot-password.component.html +++ b/src/app/features/auth/pages/forgot-password/forgot-password.component.html @@ -23,13 +23,9 @@

{{ 'auth.forgotPassword.title' | translate }}

@if (message()) { - + + {{ message()!.content | translate }} + }
diff --git a/src/app/features/auth/pages/reset-password/reset-password.component.html b/src/app/features/auth/pages/reset-password/reset-password.component.html index 5ec7f3b96..38624b8b1 100644 --- a/src/app/features/auth/pages/reset-password/reset-password.component.html +++ b/src/app/features/auth/pages/reset-password/reset-password.component.html @@ -8,7 +8,6 @@

{{ 'auth.resetPassword.title' | translate }}

{{ 'auth.resetPassword.title' | translate }} {{ 'auth.signUp.title' | translate }} [toggleMask]="true" [feedback]="false" autocomplete="new-password" - styleClass="w-full" > diff --git a/src/app/features/collections/components/add-to-collection/project-metadata-step/project-metadata-step.component.html b/src/app/features/collections/components/add-to-collection/project-metadata-step/project-metadata-step.component.html index 758781c74..030ec51ce 100644 --- a/src/app/features/collections/components/add-to-collection/project-metadata-step/project-metadata-step.component.html +++ b/src/app/features/collections/components/add-to-collection/project-metadata-step/project-metadata-step.component.html @@ -92,7 +92,7 @@

{{ 'collections.addToCollection.resourceMetadata' | translate }}

/> @let license = selectedLicense(); @if (license) { - + @if (license.requiredFields.length) {
diff --git a/src/app/features/files/pages/files/files.component.html b/src/app/features/files/pages/files/files.component.html index 79c645900..43d076f6b 100644 --- a/src/app/features/files/pages/files/files.component.html +++ b/src/app/features/files/pages/files/files.component.html @@ -11,11 +11,11 @@
@if (!isRegistration()) { diff --git a/src/app/features/meetings/pages/meeting-details/meeting-details.component.html b/src/app/features/meetings/pages/meeting-details/meeting-details.component.html index 4b40ecae9..fa14d8476 100644 --- a/src/app/features/meetings/pages/meeting-details/meeting-details.component.html +++ b/src/app/features/meetings/pages/meeting-details/meeting-details.component.html @@ -18,11 +18,9 @@ [paginator]="true" [totalRecords]="tableParams().totalRecords" paginatorDropdownAppendTo="body" - [resizableColumns]="true" [scrollable]="true" [sortMode]="'single'" [lazy]="true" - [lazyLoadOnInit]="true" (onPage)="onPageChange($event)" (onSort)="onSort($event)" [sortField]="sortColumn()" diff --git a/src/app/features/my-projects/my-projects.component.html b/src/app/features/my-projects/my-projects.component.html index 6e6e81133..e3a806661 100644 --- a/src/app/features/my-projects/my-projects.component.html +++ b/src/app/features/my-projects/my-projects.component.html @@ -27,87 +27,95 @@ > } - -
- + +
+
+ - -
+ +
- + +
- - + +
+ - + +
- - + +
+ - + +
- - + +
+ - + +
diff --git a/src/app/features/preprints/components/stepper/author-assertion-step/author-assertions-step.component.html b/src/app/features/preprints/components/stepper/author-assertion-step/author-assertions-step.component.html index 6840ebace..0cc639bef 100644 --- a/src/app/features/preprints/components/stepper/author-assertion-step/author-assertions-step.component.html +++ b/src/app/features/preprints/components/stepper/author-assertion-step/author-assertions-step.component.html @@ -1,6 +1,6 @@

{{ 'preprints.preprintStepper.authorAssertions.title' | translate }}

- +

{{ 'preprints.preprintStepper.authorAssertions.conflictOfInterest.title' | translate }}

@@ -52,7 +52,7 @@

{{ 'preprints.preprintStepper.authorAssertions.conflictOfInterest.title' | t

- +

{{ 'preprints.preprintStepper.authorAssertions.publicData.title' | translate }}

@@ -131,7 +131,7 @@

{{ 'preprints.preprintStepper.authorAssertions.publicData.title' | translate

- +

{{ 'preprints.preprintStepper.authorAssertions.publicPreregistration.title' | translate }}

diff --git a/src/app/features/preprints/components/stepper/file-step/file-step.component.html b/src/app/features/preprints/components/stepper/file-step/file-step.component.html index ee8b37860..e3530c1ae 100644 --- a/src/app/features/preprints/components/stepper/file-step/file-step.component.html +++ b/src/app/features/preprints/components/stepper/file-step/file-step.component.html @@ -62,7 +62,7 @@

{{ 'preprints.preprintStepper.file.title' | translate }}

} @if (selectedFileSource() === PreprintFileSource.Project && !preprintFile() && !isPreprintFileLoading()) { - +

{{ 'preprints.preprintStepper.projectSelection.description' | translate }} @@ -73,8 +73,7 @@

{{ 'preprints.preprintStepper.file.title' | translate }}

{{ 'preprints.preprintStepper.metadata.title' | translate }}
} - +

{{ 'shared.license.title' | translate }}

{{ 'shared.license.description' | translate }}

@@ -43,7 +43,7 @@

{{ 'shared.license.title' | translate }}

} - +

{{ 'preprints.preprintStepper.metadata.tagsTitle' | translate }}

@@ -53,7 +53,7 @@

{{ 'preprints.preprintStepper.metadata.tagsTitle' | translate }}

- +

{{ 'preprints.preprintStepper.metadata.publicationDoi.title' | translate }}

@@ -69,13 +69,12 @@

{{ 'preprints.preprintStepper.metadata.publicationDoi.title' | translate }}<

- +

{{ 'preprints.preprintStepper.metadata.publicationDateTitle' | translate }}

{{ 'preprints.preprintStepper.metadata.publicationDateTitle' | translate }}<
- +

{{ 'preprints.preprintStepper.metadata.publicationCitationTitle' | translate }}

{{ 'preprints.preprintStepper.review.title' | translate | titlecase }} {{ 'preprints.preprintStepper.review.supportCenter' | translate }}

- +

{{ 'preprints.preprintStepper.review.sections.titleAndAbstract.title' | translate }}

@@ -57,7 +57,7 @@

{{ 'preprints.preprintStepper.common.labels.abstract' | translate }}

- +

{{ 'preprints.preprintStepper.review.sections.metadata.title' | translate }}

@@ -146,7 +146,7 @@

{{ 'preprints.preprintStepper.review.sections.metadata.publicationCitation' @if (provider().assertionsEnabled) { - +

{{ 'preprints.preprintStepper.review.sections.authorAssertions.title' | translate }}

@@ -220,7 +220,7 @@

} - +

{{ 'preprints.preprintStepper.review.sections.supplements.title' | translate }}

@if (preprintProject()) { diff --git a/src/app/features/preprints/components/stepper/supplements-step/supplements-step.component.html b/src/app/features/preprints/components/stepper/supplements-step/supplements-step.component.html index 271498f42..157ec963a 100644 --- a/src/app/features/preprints/components/stepper/supplements-step/supplements-step.component.html +++ b/src/app/features/preprints/components/stepper/supplements-step/supplements-step.component.html @@ -41,8 +41,7 @@

{{ 'preprints.preprintStepper.supplements.title' | translate }}

{{ 'preprints.preprintStepper.titleAndAbstract.title' | translate }}

- +
} @else { @if (user()) { -
+
@if (user()?.mergedBy) { diff --git a/src/app/features/project/overview/components/delete-component-dialog/delete-component-dialog.component.html b/src/app/features/project/overview/components/delete-component-dialog/delete-component-dialog.component.html index 3e7b3eb6c..e21baff10 100644 --- a/src/app/features/project/overview/components/delete-component-dialog/delete-component-dialog.component.html +++ b/src/app/features/project/overview/components/delete-component-dialog/delete-component-dialog.component.html @@ -2,7 +2,7 @@ @if (hasSubComponents()) {

{{ 'project.overview.dialog.deleteComponent.listMessage' | translate }}

@if (isLoading()) { - + } @else {
    @for (component of components(); track component.id) { diff --git a/src/app/features/project/project-addons/project-addons.component.html b/src/app/features/project/project-addons/project-addons.component.html index 8b47ca55d..3fcf71ec0 100644 --- a/src/app/features/project/project-addons/project-addons.component.html +++ b/src/app/features/project/project-addons/project-addons.component.html @@ -5,6 +5,7 @@ {{ 'settings.addons.tabs.allAddons' | translate }} + {{ 'settings.addons.tabs.connectedAddons' | translate }} @@ -17,48 +18,57 @@ [(selectedValue)]="selectedTab" [fullWidth]="true" /> - -

    - {{ 'settings.addons.description' | translate }} -

    - - @if (!isAllAddonsTabLoading()) { - +
    +

    + {{ 'settings.addons.description' | translate }} +

    + + - } @else { -
    - -
    - } + + @if (!isAllAddonsTabLoading()) { + + } @else { +
    + +
    + } +
    - -

    - {{ 'settings.addons.connectedDescription' | translate }} -

    - - @if (!isConfiguredAddonsLoading()) { - +
    +

    + {{ 'settings.addons.connectedDescription' | translate }} +

    + + - } @else { -
    - -
    - } + + @if (!isConfiguredAddonsLoading()) { + + } @else { +
    + +
    + } +
    diff --git a/src/app/features/project/settings/components/delete-project-dialog/delete-project-dialog.component.html b/src/app/features/project/settings/components/delete-project-dialog/delete-project-dialog.component.html index afb2c977b..499c065ef 100644 --- a/src/app/features/project/settings/components/delete-project-dialog/delete-project-dialog.component.html +++ b/src/app/features/project/settings/components/delete-project-dialog/delete-project-dialog.component.html @@ -1,7 +1,7 @@ @if (hasAdminAccessForAllComponents()) {

    {{ 'project.deleteProject.dialog.listMessage' | translate }}

    @if (isLoading()) { - + } @else {
      @for (project of projects(); track project.id) { diff --git a/src/app/features/registries/components/confirm-registration-dialog/confirm-registration-dialog.component.html b/src/app/features/registries/components/confirm-registration-dialog/confirm-registration-dialog.component.html index 033bacab6..14609bffe 100644 --- a/src/app/features/registries/components/confirm-registration-dialog/confirm-registration-dialog.component.html +++ b/src/app/features/registries/components/confirm-registration-dialog/confirm-registration-dialog.component.html @@ -46,7 +46,7 @@
@if (showDateControl) { @if (q.exampleText) { - + {{ 'common.links.showExample' | translate }} diff --git a/src/app/features/registries/components/registries-metadata-step/registries-license/registries-license.component.html b/src/app/features/registries/components/registries-metadata-step/registries-license/registries-license.component.html index 0366f69b3..8394e9505 100644 --- a/src/app/features/registries/components/registries-metadata-step/registries-license/registries-license.component.html +++ b/src/app/features/registries/components/registries-metadata-step/registries-license/registries-license.component.html @@ -1,4 +1,4 @@ - +

{{ 'shared.license.title' | translate }}

{{ 'shared.license.description' | translate }}

diff --git a/src/app/features/registries/pages/my-registrations/my-registrations.component.html b/src/app/features/registries/pages/my-registrations/my-registrations.component.html index 45a6b4e5f..234d32b0d 100644 --- a/src/app/features/registries/pages/my-registrations/my-registrations.component.html +++ b/src/app/features/registries/pages/my-registrations/my-registrations.component.html @@ -30,52 +30,56 @@ > } - - @if (isDraftRegistrationsLoading()) { - @for (item of skeletons; track $index) { - + +
+ @if (isDraftRegistrationsLoading()) { + @for (item of skeletons; track $index) { + + } + } @else { + @if (draftRegistrationsTotalCount() === 0) { + + } + @for (registration of draftRegistrations(); track registration.id) { + + } + @if (draftRegistrationsTotalCount() > itemsPerPage) { + + } } - } @else { - @if (draftRegistrationsTotalCount() === 0) { - - } - @for (registration of draftRegistrations(); track registration.id) { - - } - @if (draftRegistrationsTotalCount() > itemsPerPage) { - - } - } +
- @if (isSubmittedRegistrationsLoading()) { - @for (item of skeletons; track $index) { - +
+ @if (isSubmittedRegistrationsLoading()) { + @for (item of skeletons; track $index) { + + } + } @else { + @if (submittedRegistrationsTotalCount() === 0) { + + } + @for (registration of submittedRegistrations(); track $index) { + + } + @if (submittedRegistrationsTotalCount() > itemsPerPage) { + + } } - } @else { - @if (submittedRegistrationsTotalCount() === 0) { - - } - @for (registration of submittedRegistrations(); track $index) { - - } - @if (submittedRegistrationsTotalCount() > itemsPerPage) { - - } - } +
diff --git a/src/app/features/settings/account-settings/components/change-password/change-password.component.html b/src/app/features/settings/account-settings/components/change-password/change-password.component.html index d34479af4..34a031456 100644 --- a/src/app/features/settings/account-settings/components/change-password/change-password.component.html +++ b/src/app/features/settings/account-settings/components/change-password/change-password.component.html @@ -10,7 +10,6 @@

{{ 'settings.accountSettings.changePassword.title' | translate }}

{{ 'settings.accountSettings.changePassword.title' | translate }}

{{ 'settings.accountSettings.changePassword.title' | translate }} {{ 'settings.accountSettings.defaultStorageLocation.title' | translate }}
- +
diff --git a/src/app/features/settings/developer-apps/developer-apps-container.component.spec.ts b/src/app/features/settings/developer-apps/developer-apps-container.component.spec.ts index 9ce430ea0..37577ae72 100644 --- a/src/app/features/settings/developer-apps/developer-apps-container.component.spec.ts +++ b/src/app/features/settings/developer-apps/developer-apps-container.component.spec.ts @@ -1,65 +1,70 @@ -import { TranslateService } from '@ngx-translate/core'; -import { MockComponent, MockProvider } from 'ng-mocks'; - -import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog'; - -import { Subject } from 'rxjs'; +import { MockProvider } from 'ng-mocks'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Router } from '@angular/router'; -import { DeveloperAppAddEditFormComponent } from '@osf/features/settings/developer-apps/components'; -import { SubHeaderComponent } from '@osf/shared/components/sub-header/sub-header.component'; -import { ToastService } from '@osf/shared/services/toast.service'; +import { CustomDialogService } from '@osf/shared/services/custom-dialog.service'; +import { DeveloperAppAddEditFormComponent } from './components'; import { DeveloperAppsContainerComponent } from './developer-apps-container.component'; import { provideOSFCore } from '@testing/osf.testing.provider'; +import { + CustomDialogServiceMockBuilder, + CustomDialogServiceMockType, +} from '@testing/providers/custom-dialog-provider.mock'; +import { RouterMockBuilder, RouterMockType } from '@testing/providers/router-provider.mock'; describe('DeveloperAppsContainerComponent', () => { let component: DeveloperAppsContainerComponent; let fixture: ComponentFixture; - let translateService: TranslateService; - let dialogRefMock: Partial; - let dialogService: DialogService; - let openSpy: jest.SpyInstance; - let translateSpy: jest.SpyInstance; - - beforeEach(async () => { - dialogRefMock = { onClose: new Subject() }; - - await TestBed.configureTestingModule({ - imports: [DeveloperAppsContainerComponent, MockComponent(SubHeaderComponent)], - providers: [MockProvider(DialogService), MockProvider(ToastService), provideOSFCore()], - }).compileComponents(); + let routerMock: RouterMockType; + let customDialogServiceMock: CustomDialogServiceMockType; + + function setup(url = '/settings/developer-apps') { + routerMock = RouterMockBuilder.create().withUrl(url).build(); + customDialogServiceMock = CustomDialogServiceMockBuilder.create().withDefaultOpen().build(); + + TestBed.configureTestingModule({ + imports: [DeveloperAppsContainerComponent], + providers: [ + provideOSFCore(), + MockProvider(Router, routerMock), + MockProvider(CustomDialogService, customDialogServiceMock), + ], + }); fixture = TestBed.createComponent(DeveloperAppsContainerComponent); component = fixture.componentInstance; + fixture.detectChanges(); + } - translateService = TestBed.inject(TranslateService); - dialogService = fixture.debugElement.injector.get(DialogService); + it('should create', () => { + setup(); - openSpy = jest.spyOn(dialogService, 'open').mockReturnValue(dialogRefMock as DynamicDialogRef); - translateSpy = jest.spyOn(translateService, 'instant').mockReturnValue('Create Developer App'); + expect(component).toBeTruthy(); + }); - fixture.detectChanges(); + it('should set isBaseRoute to true when current url is base route', () => { + setup('/settings/developer-apps'); + + expect(component.isBaseRoute()).toBe(true); }); - it('should create', () => { - expect(component).toBeTruthy(); + it('should set isBaseRoute to false when current url is not base route', () => { + setup('/settings/developer-apps/create'); + + expect(component.isBaseRoute()).toBe(false); }); - it('should open dialog with 500px width', () => { + it('should open create developer app dialog with expected config', () => { + setup(); + component.createDeveloperApp(); - expect(openSpy).toHaveBeenCalledWith(DeveloperAppAddEditFormComponent, { + expect(customDialogServiceMock.open).toHaveBeenCalledWith(DeveloperAppAddEditFormComponent, { + header: 'settings.developerApps.form.createTitle', width: '500px', - focusOnShow: false, - header: 'Create Developer App', - breakpoints: { '768px': '95vw' }, - closeOnEscape: true, - modal: true, - closable: true, }); - expect(translateSpy).toHaveBeenCalledWith('settings.developerApps.form.createTitle'); }); }); diff --git a/src/app/features/settings/settings-addons/settings-addons.component.html b/src/app/features/settings/settings-addons/settings-addons.component.html index 28f1a4a77..e4c22cb83 100644 --- a/src/app/features/settings/settings-addons/settings-addons.component.html +++ b/src/app/features/settings/settings-addons/settings-addons.component.html @@ -18,43 +18,47 @@ [(selectedValue)]="selectedTab" [fullWidth]="true" /> - -

- {{ 'settings.addons.description' | translate }} -

+ +
+

+ {{ 'settings.addons.description' | translate }} +

- + - @if (!isAddonsLoading()) { - - } @else { -
- -
- } + @if (!isAddonsLoading()) { + + } @else { +
+ +
+ } +
- -

- {{ 'settings.addons.connectedDescription' | translate }} -

- + +
+

+ {{ 'settings.addons.connectedDescription' | translate }} +

+ - @if (!isAuthorizedAddonsLoading()) { - - } @else { -
- -
- } + @if (!isAuthorizedAddonsLoading()) { + + } @else { +
+ +
+ } +
diff --git a/src/app/shared/components/addons/addon-setup-account-form/addon-setup-account-form.component.html b/src/app/shared/components/addons/addon-setup-account-form/addon-setup-account-form.component.html index a5b7955aa..4dc56c510 100644 --- a/src/app/shared/components/addons/addon-setup-account-form/addon-setup-account-form.component.html +++ b/src/app/shared/components/addons/addon-setup-account-form/addon-setup-account-form.component.html @@ -24,7 +24,7 @@

{{ 'settings.addons.form.fields.secretKey' | translate }}

{{ 'settings.addons.form.fields.apiToken' | translate }} {{ 'settings.addons.form.fields.personalAccessToken' | translate }}
} @else { @if (selectedLicense()) { - + @if (selectedLicense()!.requiredFields.length) {
diff --git a/src/app/shared/components/my-projects-table/my-projects-table.component.html b/src/app/shared/components/my-projects-table/my-projects-table.component.html index 3ebfec6b0..00a334364 100644 --- a/src/app/shared/components/my-projects-table/my-projects-table.component.html +++ b/src/app/shared/components/my-projects-table/my-projects-table.component.html @@ -7,17 +7,15 @@ [paginator]="tableParams().paginator" [totalRecords]="tableParams().totalRecords" paginatorDropdownAppendTo="body" - [resizableColumns]="true" [scrollable]="true" [sortMode]="'single'" [lazy]="true" - [lazyLoadOnInit]="true" - (onPage)="onPageChange($event)" - (onSort)="onSort($event)" [sortField]="sortColumn()" [sortOrder]="sortOrder()" [customSort]="true" [resetPageOnSort]="false" + (onSort)="onSort($event)" + (onPage)="onPageChange($event)" > @@ -25,13 +23,16 @@ {{ 'myProjects.table.columns.title' | translate }} + {{ 'myProjects.table.columns.contributors' | translate }} + {{ 'myProjects.table.columns.modified' | translate }} + @if (item?.id) { @@ -41,9 +42,11 @@ {{ item.title }}

+ + {{ item.dateModified | date: 'MMM d, y, h:mm a' }} } @else { diff --git a/src/app/shared/components/my-projects-table/my-projects-table.component.ts b/src/app/shared/components/my-projects-table/my-projects-table.component.ts index 0cd62cda7..a309d648d 100644 --- a/src/app/shared/components/my-projects-table/my-projects-table.component.ts +++ b/src/app/shared/components/my-projects-table/my-projects-table.component.ts @@ -4,7 +4,7 @@ import { SortEvent } from 'primeng/api'; import { Skeleton } from 'primeng/skeleton'; import { TableModule, TablePageEvent } from 'primeng/table'; -import { CommonModule } from '@angular/common'; +import { DatePipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, input, output } from '@angular/core'; import { SortOrder } from '@osf/shared/enums/sort-order.enum'; @@ -16,7 +16,7 @@ import { IconComponent } from '../icon/icon.component'; @Component({ selector: 'osf-my-projects-table', - imports: [CommonModule, TableModule, IconComponent, Skeleton, TranslatePipe, ContributorsListShortenerComponent], + imports: [TableModule, Skeleton, IconComponent, ContributorsListShortenerComponent, TranslatePipe, DatePipe], templateUrl: './my-projects-table.component.html', styleUrl: './my-projects-table.component.scss', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/src/app/shared/components/registration-blocks-data/registration-blocks-data.component.html b/src/app/shared/components/registration-blocks-data/registration-blocks-data.component.html index 33ae60402..0f3e2636a 100644 --- a/src/app/shared/components/registration-blocks-data/registration-blocks-data.component.html +++ b/src/app/shared/components/registration-blocks-data/registration-blocks-data.component.html @@ -4,7 +4,7 @@

{{ question.displayText }} @if (!isOriginalRevision() && updatedKeysMap()[question.responseKey!]) { - + }

diff --git a/src/app/shared/components/status-badge/status-badge.component.html b/src/app/shared/components/status-badge/status-badge.component.html index f046b3ade..0f2b18722 100644 --- a/src/app/shared/components/status-badge/status-badge.component.html +++ b/src/app/shared/components/status-badge/status-badge.component.html @@ -1,3 +1,3 @@ @if (label) { - + } diff --git a/src/app/shared/components/view-only-table/view-only-table.component.html b/src/app/shared/components/view-only-table/view-only-table.component.html index 9d07abddf..1fabaa4b2 100644 --- a/src/app/shared/components/view-only-table/view-only-table.component.html +++ b/src/app/shared/components/view-only-table/view-only-table.component.html @@ -35,7 +35,7 @@ {{ item.name }} -
+
{{ 'project.wiki.compare' | translate }} {{ 'project.wiki.compare' | translate }} />
- -
+ +
} diff --git a/src/app/shared/components/wiki/view-section/view-section.component.html b/src/app/shared/components/wiki/view-section/view-section.component.html index 9c6fee8c4..5eebca4b3 100644 --- a/src/app/shared/components/wiki/view-section/view-section.component.html +++ b/src/app/shared/components/wiki/view-section/view-section.component.html @@ -14,7 +14,7 @@

{{ 'project.wiki.view' | translate }}