Skip to content

Commit

Permalink
EES-4781 remove data catalogue feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
amyb-hiveit committed Jun 24, 2024
1 parent 382520f commit b714512
Show file tree
Hide file tree
Showing 46 changed files with 2,066 additions and 3,723 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ReleaseDataGuidancePage = ({
renderDataCatalogueLink={
model.release.published ? (
<Link
to={`${publicAppUrl}/data-catalogue/${model.release.publicationSlug}/${model.release.slug}`}
to={`${publicAppUrl}/data-catalogue?publicationId=${model.release.publicationId}&releaseId=${model.release.id}`}
>
data catalogue
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('ReleaseContentPage', () => {
slug: 'publication-1',
releases: [],
releaseSeries: [],
topic: { theme: { title: 'Theme 1' } },
topic: { theme: { id: 'theme-1', title: 'Theme 1' } },
contact: {
contactName: 'John Smith',
contactTelNo: '0777777777',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('PreReleaseContentPage', () => {
slug: 'publication-1',
releases: [],
releaseSeries: [],
topic: { theme: { title: 'Theme 1' } },
topic: { theme: { id: 'theme-1', title: 'Theme 1' } },
contact: {
contactName: 'John Smith',
contactTelNo: '0777777777',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const prototypeReleaseContent: ReleaseContent = {
title: 'Initial Teacher Training Census',
topic: {
theme: {
id: 'test-theme',
title: 'Test theme',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const defaultPublication: Publication = {
],
slug: 'publication-slug',
title: 'Publication title',
topic: { theme: { title: 'Test theme' } },
topic: { theme: { id: 'test-theme', title: 'Test theme' } },
};

const defaultKeyStatistics: KeyStatistic[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ import tableBuilderService, {
Subject,
SubjectMeta,
} from '@common/services/tableBuilderService';
import React, {
ReactElement,
ReactNode,
useEffect,
useMemo,
useState,
} from 'react';
import React, { ReactElement, ReactNode, useMemo, useState } from 'react';
import { useImmer } from 'use-immer';
import { Dictionary } from 'lodash';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface Publication {
releaseSeries: ReleaseSeriesItem[];
topic: {
theme: {
id: string;
title: string;
};
};
Expand Down Expand Up @@ -131,21 +132,8 @@ export interface ContentSection<BlockType> {
content: BlockType[];
}

export const publicationSortOptions = [
'newest',
'oldest',
'relevance',
'title',
] as const;

export type PublicationSortOption = (typeof publicationSortOptions)[number];

export type PublicationSortParam = 'published' | 'title' | 'relevance';

export const publicationFilters = ['releaseType', 'search', 'themeId'] as const;

export type PublicationFilter = (typeof publicationFilters)[number];

export interface PublicationListRequest {
page?: number;
pageSize?: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Button from '@common/components/Button';
import { FormRadioGroup, FormSelect } from '@common/components/form';
import { useMobileMedia } from '@common/hooks/useMedia';
import { PublicationSortOption } from '@common/services/publicationService';
import styles from '@frontend/components/SortControls.module.scss';
import { DataSetFileSortOption } from '@frontend/services/dataSetFileService';
import { DataSetFileSortOption } from '@frontend/modules/data-catalogue/utils/dataSetFileSortOptions';
import { PublicationSortOption } from '@frontend/modules/find-statistics/utils/publicationSortOptions';
import classNames from 'classnames';
import React from 'react';

Expand Down
Loading

0 comments on commit b714512

Please sign in to comment.