diff --git a/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts b/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts index 6f206e848..6d2b978e2 100644 --- a/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts +++ b/apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts @@ -140,25 +140,11 @@ describe('dashboard (authenticated)', () => { it('should show nothing when none are selected', () => { cy.visit('/catalog/search') - cy.get('gn-ui-results-table') - .find('.table-row-cell') - .get('gn-ui-checkbox') - .each(($checkbox) => cy.wrap($checkbox).click()) cy.get('[data-cy=records-information]').should( 'not.have.descendants', '[data-test=selected-count]' ) }) - - it('should select all records when the "select all" checkbox is checked', () => { - cy.visit('/catalog/search') - cy.get('gn-ui-results-table') - .find('.table-row-cell') - .get('gn-ui-checkbox') - .first() - .click() - cy.get('[data-test=selected-count]').contains('15 selected') - }) }) describe('columns', () => { beforeEach(() => { @@ -225,7 +211,7 @@ describe('dashboard (authenticated)', () => { }) describe('my records', () => { it('should only display records I own', () => { - cy.get('md-editor-dashboard-menu').find('a').eq(5).click() + cy.get('md-editor-dashboard-menu').find('a').eq(3).click() cy.get('gn-ui-results-table') .find('[data-cy="table-row"]') .find('ng-icon') @@ -233,19 +219,18 @@ describe('dashboard (authenticated)', () => { .should('contain', 'admin admin') }) it('should display the correct amount of records', () => { - cy.get('md-editor-dashboard-menu').find('a').eq(5).click() + cy.get('md-editor-dashboard-menu').find('a').eq(3).click() cy.get('gn-ui-results-table') .find('[data-cy="table-row"]') .should('have.length', '10') }) it('should sort the records by title', () => { - cy.get('md-editor-dashboard-menu').find('a').eq(5).click() + cy.get('md-editor-dashboard-menu').find('a').eq(3).click() cy.get('gn-ui-results-table') .find('[data-cy="table-row"]') .first() .invoke('text') .then((firstRecord) => { - console.log(firstRecord) cy.get('gn-ui-results-table') .find('.table-header-cell') .eq(1) @@ -288,7 +273,7 @@ describe('dashboard (authenticated)', () => { cy.get('gn-ui-autocomplete').should('have.value', '') }) it('should hide the search input when navigating to my drafts', () => { - cy.get('md-editor-dashboard-menu').find('a').eq(6).click() + cy.get('md-editor-dashboard-menu').find('a').eq(4).click() cy.get('gn-ui-autocomplete').should('not.exist') }) }) diff --git a/apps/metadata-editor/src/app/dashboard/dashboard-menu/dashboard-menu.component.html b/apps/metadata-editor/src/app/dashboard/dashboard-menu/dashboard-menu.component.html index 021ad9895..debd4e9c7 100644 --- a/apps/metadata-editor/src/app/dashboard/dashboard-menu/dashboard-menu.component.html +++ b/apps/metadata-editor/src/app/dashboard/dashboard-menu/dashboard-menu.component.html @@ -10,7 +10,7 @@ dashboard.catalog.allRecords - dashboard.catalog.calendar - + --> - - + --> editor.record.saveStatus.draftWithChangesPending - - + --> diff --git a/apps/metadata-editor/src/app/records/all-records/all-records.component.html b/apps/metadata-editor/src/app/records/all-records/all-records.component.html index 2cef0f1d7..3cd22212c 100644 --- a/apps/metadata-editor/src/app/records/all-records/all-records.component.html +++ b/apps/metadata-editor/src/app/records/all-records/all-records.component.html @@ -27,22 +27,6 @@

-
- dashboard.results.listMetadata -
-
- dashboard.results.listResources -
-
- dashboard.myRecords.publishedMetadatas -
-
- dashboard.myRecords.currentlyEdited -
() importMenuItems: ImportMenuItems[] = [ - { - label: this.translateService.instant('dashboard.importRecord.useModel'), - icon: 'iconoirLightBulbOn', - action: () => null, - dataTest: 'useAModelButton', - disabled: true, - }, + // { + // label: this.translateService.instant('dashboard.importRecord.useModel'), + // icon: 'iconoirLightBulbOn', + // action: () => null, + // dataTest: 'useAModelButton', + // disabled: true, + // }, { label: this.translateService.instant( 'dashboard.importRecord.importExternal' diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html b/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html index f2d34d0b7..93c3990f5 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html @@ -41,6 +41,7 @@ >edit - - - - { expect(emitted).toEqual([[record], true]) }) }) - - describe('#isAllSelected', () => { - it('returns true if all records in the page are selected', () => { - component.selectedRecordsIdentifiers = ['1', '2', '3', '4', '5'] - expect(component.isAllSelected()).toBe(true) - }) - it('returns false otherwise', () => { - component.selectedRecordsIdentifiers = ['1'] - expect(component.isAllSelected()).toBe(false) - }) - }) - - describe('#isSomeSelected', () => { - it('returns false if all records in the page are selected', () => { - component.selectedRecordsIdentifiers = ['1', '2', '3', '4', '5'] - expect(component.isSomeSelected()).toBe(false) - }) - it('returns true if one or more records in the page is selected', () => { - component.selectedRecordsIdentifiers = ['2', '3'] - expect(component.isSomeSelected()).toBe(true) - }) - it('returns false if no record in the page is selected', () => { - component.selectedRecordsIdentifiers = ['4', '5'] - expect(component.isSomeSelected()).toBe(false) - }) - }) }) describe('clicking on a dataset', () => { diff --git a/libs/ui/search/src/lib/results-table/results-table.component.ts b/libs/ui/search/src/lib/results-table/results-table.component.ts index edd269538..78a5aa689 100644 --- a/libs/ui/search/src/lib/results-table/results-table.component.ts +++ b/libs/ui/search/src/lib/results-table/results-table.component.ts @@ -212,24 +212,4 @@ export class ResultsTableComponent { handleRecordSelectedChange(selected: boolean, record: CatalogRecord) { this.recordsSelectedChange.emit([[record], selected]) } - - async toggleSelectAll() { - this.recordsSelectedChange.emit([this.records, !this.isAllSelected()]) - } - - isAllSelected(): boolean { - return this.records.every((record) => - this.selectedRecordsIdentifiers.includes(record.uniqueIdentifier) - ) - } - - isSomeSelected(): boolean { - const allSelected = this.records.every((record) => - this.selectedRecordsIdentifiers.includes(record.uniqueIdentifier) - ) - const someSelected = this.records.some((record) => - this.selectedRecordsIdentifiers.includes(record.uniqueIdentifier) - ) - return !allSelected && someSelected - } } diff --git a/translations/de.json b/translations/de.json index d0b48b1ea..28414b901 100644 --- a/translations/de.json +++ b/translations/de.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "Geglättes Liniendiagramm", "chart.type.pie": "Kreisdiagramm", "dashboard.catalog.allRecords": "Metadatenkatalog", - "dashboard.catalog.calendar": "Kalender", "dashboard.catalog.contacts": "Kontakte", - "dashboard.catalog.discussion": "Diskussion", "dashboard.catalog.thesaurus": "Thesaurus", "dashboard.createRecord": "Neuer Eintrag", "dashboard.importRecord": "", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Katalog", "dashboard.labels.mySpace": "Mein Bereich", - "dashboard.myRecords.currentlyEdited": "", - "dashboard.myRecords.publishedMetadatas": "", "dashboard.records.all": "Metadatenkatalog", "dashboard.records.hasDraft": "", "dashboard.records.myDraft": "Meine Entwürfe", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "E-Mail", "dashboard.records.username": "Benutzername", "dashboard.records.users": "{count, plural, =1{Benutzer} other{Benutzer}}", - "dashboard.results.listMetadata": "Metadaten anzeigen", - "dashboard.results.listResources": "Ressourcen anzeigen", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Dateiformat-Erkennung", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Sammeln von Datensatzinformationen", "datafeeder.analysisProgressBar.illustration.samplingData": "Datenauswahl", diff --git a/translations/en.json b/translations/en.json index 8c1a12c50..62ea740aa 100644 --- a/translations/en.json +++ b/translations/en.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "smooth line chart", "chart.type.pie": "pie chart", "dashboard.catalog.allRecords": "Metadata records", - "dashboard.catalog.calendar": "Calendar", "dashboard.catalog.contacts": "Contacts", - "dashboard.catalog.discussion": "Discussion", "dashboard.catalog.thesaurus": "Thesaurus", "dashboard.createRecord": "New record", "dashboard.importRecord": "Import", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "Use a model", "dashboard.labels.catalog": "Catalog", "dashboard.labels.mySpace": "My space", - "dashboard.myRecords.currentlyEdited": "Currently edited", - "dashboard.myRecords.publishedMetadatas": "Published metadatas", "dashboard.records.all": "Metadata records", "dashboard.records.hasDraft": "draft", "dashboard.records.myDraft": "My drafts", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "Email", "dashboard.records.username": "Username", "dashboard.records.users": "{count, plural, =1{user} other{users}}", - "dashboard.results.listMetadata": "Show metadata", - "dashboard.results.listResources": "Show resources", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "File format \n detection", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Gathering dataset \n information", "datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n data", diff --git a/translations/es.json b/translations/es.json index 8e8c83c5b..5f21daf82 100644 --- a/translations/es.json +++ b/translations/es.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "gráfico de líneas suave", "chart.type.pie": "gráfico circular", "dashboard.catalog.allRecords": "", - "dashboard.catalog.calendar": "", "dashboard.catalog.contacts": "", - "dashboard.catalog.discussion": "", "dashboard.catalog.thesaurus": "", "dashboard.createRecord": "", "dashboard.importRecord": "", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catálogo", "dashboard.labels.mySpace": "Mi espacio", - "dashboard.myRecords.currentlyEdited": "", - "dashboard.myRecords.publishedMetadatas": "", "dashboard.records.all": "Catálogo", "dashboard.records.hasDraft": "", "dashboard.records.myDraft": "Mis borradores", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "", "dashboard.records.username": "", "dashboard.records.users": "", - "dashboard.results.listMetadata": "", - "dashboard.results.listResources": "", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "", "datafeeder.analysisProgressBar.illustration.samplingData": "", diff --git a/translations/fr.json b/translations/fr.json index 2459eb4c7..612edba30 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "ligne lisse", "chart.type.pie": "camembert", "dashboard.catalog.allRecords": "Fiches de métadonnées", - "dashboard.catalog.calendar": "Calendrier", "dashboard.catalog.contacts": "Annuaire", - "dashboard.catalog.discussion": "Discussions", "dashboard.catalog.thesaurus": "Thesaurus", "dashboard.createRecord": "Nouvel enregistrement", "dashboard.importRecord": "Importer", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "Utiliser un modèle", "dashboard.labels.catalog": "Catalogue", "dashboard.labels.mySpace": "Mon espace", - "dashboard.myRecords.currentlyEdited": "En cours d'édition", - "dashboard.myRecords.publishedMetadatas": "Fiches publiées", "dashboard.records.all": "Fiches de métadonnées", "dashboard.records.hasDraft": "brouillon", "dashboard.records.myDraft": "Mes brouillons", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "Email", "dashboard.records.username": "Nom d'utilisateur", "dashboard.records.users": "{count, plural, =1{utilisateur} other{utilisateurs}}", - "dashboard.results.listMetadata": "Afficher les métadonnées", - "dashboard.results.listResources": "Afficher les ressources", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Détection du \n format de fichier", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Récupération des informations \n sur le jeu de données", "datafeeder.analysisProgressBar.illustration.samplingData": "Échantillonnage \n des données", diff --git a/translations/it.json b/translations/it.json index 73b3c203b..faaa3ae87 100644 --- a/translations/it.json +++ b/translations/it.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "grafico a linea liscia", "chart.type.pie": "grafico a torta", "dashboard.catalog.allRecords": "", - "dashboard.catalog.calendar": "", "dashboard.catalog.contacts": "", - "dashboard.catalog.discussion": "", "dashboard.catalog.thesaurus": "", "dashboard.createRecord": "Crea un record", "dashboard.importRecord": "", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catalogo", "dashboard.labels.mySpace": "Il mio spazio", - "dashboard.myRecords.currentlyEdited": "", - "dashboard.myRecords.publishedMetadatas": "", "dashboard.records.all": "Catalogo", "dashboard.records.hasDraft": "", "dashboard.records.myDraft": "Le mie bozze", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "Email", "dashboard.records.username": "Nome utente", "dashboard.records.users": "utenti", - "dashboard.results.listMetadata": "Elenco dei metadati", - "dashboard.results.listResources": "Elenco delle risorse", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Rilevamento del formato dei file", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Recupero delle informazioni dal dataset", "datafeeder.analysisProgressBar.illustration.samplingData": "Campionatura dei dati", diff --git a/translations/nl.json b/translations/nl.json index 3b1b59111..ef84e7e54 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "glad lijndiagram", "chart.type.pie": "cirkeldiagram", "dashboard.catalog.allRecords": "", - "dashboard.catalog.calendar": "", "dashboard.catalog.contacts": "", - "dashboard.catalog.discussion": "", "dashboard.catalog.thesaurus": "", "dashboard.createRecord": "", "dashboard.importRecord": "", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catalogus", "dashboard.labels.mySpace": "Mijn ruimte", - "dashboard.myRecords.currentlyEdited": "", - "dashboard.myRecords.publishedMetadatas": "", "dashboard.records.all": "Catalogus", "dashboard.records.hasDraft": "", "dashboard.records.myDraft": "Mijn concepten", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "", "dashboard.records.username": "", "dashboard.records.users": "", - "dashboard.results.listMetadata": "", - "dashboard.results.listResources": "", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "", "datafeeder.analysisProgressBar.illustration.samplingData": "", diff --git a/translations/pt.json b/translations/pt.json index 3525f4d9a..1144fb5dc 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "gráfico de linha suave", "chart.type.pie": "gráfico de pizza", "dashboard.catalog.allRecords": "", - "dashboard.catalog.calendar": "", "dashboard.catalog.contacts": "", - "dashboard.catalog.discussion": "", "dashboard.catalog.thesaurus": "", "dashboard.createRecord": "", "dashboard.importRecord": "", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catálogo", "dashboard.labels.mySpace": "Meu espaço", - "dashboard.myRecords.currentlyEdited": "", - "dashboard.myRecords.publishedMetadatas": "", "dashboard.records.all": "Catálogo", "dashboard.records.hasDraft": "", "dashboard.records.myDraft": "Meus rascunhos", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "", "dashboard.records.username": "", "dashboard.records.users": "", - "dashboard.results.listMetadata": "", - "dashboard.results.listResources": "", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "", "datafeeder.analysisProgressBar.illustration.samplingData": "", diff --git a/translations/sk.json b/translations/sk.json index b83bcef32..3cfbb3758 100644 --- a/translations/sk.json +++ b/translations/sk.json @@ -20,9 +20,7 @@ "chart.type.lineSmooth": "vyhladený čiarový graf", "chart.type.pie": "koláčový graf", "dashboard.catalog.allRecords": "", - "dashboard.catalog.calendar": "", "dashboard.catalog.contacts": "", - "dashboard.catalog.discussion": "", "dashboard.catalog.thesaurus": "", "dashboard.createRecord": "", "dashboard.importRecord": "", @@ -31,8 +29,6 @@ "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Katalóg", "dashboard.labels.mySpace": "Môj priestor", - "dashboard.myRecords.currentlyEdited": "", - "dashboard.myRecords.publishedMetadatas": "", "dashboard.records.all": "Katalóg", "dashboard.records.hasDraft": "", "dashboard.records.myDraft": "Moje koncepty", @@ -43,8 +39,6 @@ "dashboard.records.userEmail": "Email", "dashboard.records.username": "Užívateľské meno", "dashboard.records.users": "{count, plural, =1{užívateľ} other{užívatelia}}", - "dashboard.results.listMetadata": "Zobraziť metadata", - "dashboard.results.listResources": "Zobraziť zdroje", "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Detekcia formátu súboru", "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Zbieranie informácií o datasete", "datafeeder.analysisProgressBar.illustration.samplingData": "Vzorkovanie dát",