Skip to content

Commit

Permalink
Revert "[ACS-9166] Migrate Saved Searches to preferences API from con…
Browse files Browse the repository at this point in the history
…fig file…" (#4347)

This reverts commit 0dfd2c1.
  • Loading branch information
MichalKinas authored Jan 20, 2025
1 parent 0dfd2c1 commit 1b170f6
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 42 deletions.
2 changes: 1 addition & 1 deletion e2e/playwright/list-views/src/tests/sort-list.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ test.describe('Remember sorting', () => {
});

test('[C261147] Sort order is retained when user changes the page from pagination', async ({ personalFiles }) => {
const lastFileInArray = testData.user1.files.jpg.slice(-2).pop();
const lastFileInArray = testData.user1.files.jpg.slice(-2)[0];
const firstFileInArray = testData.user1.files.pdf[0];

await personalFiles.pagination.clickOnNextPage();
Expand Down
79 changes: 48 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
},
"private": true,
"dependencies": {
"@alfresco/adf-content-services": "7.0.0-alpha.7-12862968027",
"@alfresco/adf-core": "7.0.0-alpha.7-12862968027",
"@alfresco/adf-extensions": "7.0.0-alpha.7-12862968027",
"@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12862968027",
"@alfresco/js-api": "8.0.0-alpha.7-12862968027",
"@alfresco/adf-content-services": "7.0.0-alpha.7-12797937770",
"@alfresco/adf-core": "7.0.0-alpha.7-12797937770",
"@alfresco/adf-extensions": "7.0.0-alpha.7-12797937770",
"@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12797937770",
"@alfresco/js-api": "8.0.0-alpha.7-12797937770",
"@angular/animations": "16.2.9",
"@angular/cdk": "16.2.9",
"@angular/common": "16.2.9",
Expand Down Expand Up @@ -62,7 +62,7 @@
"zone.js": "0.13.3"
},
"devDependencies": {
"@alfresco/adf-cli": "7.0.0-alpha.7-12862968027",
"@alfresco/adf-cli": "7.0.0-alpha.7-12797937770",
"@angular-devkit/build-angular": "16.2.16",
"@angular-devkit/core": "16.2.9",
"@angular-devkit/schematics": "16.2.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('SaveSearchSidenavComponent', () => {

beforeEach(() => {
const mockService = {
init: () => {},
innit: () => {},
getSavedSearches: () => of(),
savedSearches$: new ReplaySubject(1)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
import { Component, DestroyRef, inject, OnInit, ViewEncapsulation } from '@angular/core';
import { SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
import { CoreModule, TranslationService } from '@alfresco/adf-core';
import { NavBarLinkRef } from '@alfresco/adf-extensions';
import { DynamicExtensionComponent, NavBarLinkRef } from '@alfresco/adf-extensions';
import { ExpandMenuComponent } from '../../../sidenav/components/expand-menu.component';
import { SidenavHeaderComponent } from '../../../sidenav/components/sidenav-header.component';
import { AppService } from '@alfresco/aca-shared';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';

@Component({
selector: 'aca-save-search-sidenav',
standalone: true,
imports: [CoreModule, ExpandMenuComponent],
imports: [CoreModule, DynamicExtensionComponent, ExpandMenuComponent, SidenavHeaderComponent],
templateUrl: './save-search-sidenav.component.html',
encapsulation: ViewEncapsulation.None
})
Expand All @@ -47,7 +48,7 @@ export class SaveSearchSidenavComponent implements OnInit {
private readonly destroyRef = inject(DestroyRef);

ngOnInit() {
this.savedSearchesService.init();
this.savedSearchesService.innit();
this.savedSearchesService.savedSearches$
.asObservable()
.pipe(takeUntilDestroyed(this.destroyRef))
Expand Down

0 comments on commit 1b170f6

Please sign in to comment.