Skip to content

Commit

Permalink
Remove the records list component
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Dec 10, 2024
1 parent e2816be commit 2be0f8c
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 309 deletions.
2 changes: 0 additions & 2 deletions .github/actions/prototype-kit-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ runs:
echo -e "{% from \"nationalarchives/components/picture/macro.njk\" import tnaPicture %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
echo -e "{% from \"nationalarchives/components/quick-filters/macro.njk\" import tnaQuickFilters %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
echo -e "{% from \"nationalarchives/components/radios/macro.njk\" import tnaRadios %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
echo -e "{% from \"nationalarchives/components/records-list/macro.njk\" import tnaRecordsList %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
echo -e "{% from \"nationalarchives/components/search-field/macro.njk\" import tnaSearchField %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
echo -e "{% from \"nationalarchives/components/select/macro.njk\" import tnaSelect %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
echo -e "{% from \"nationalarchives/components/sidebar/macro.njk\" import tnaSidebar %}\n$(cat prototype/app/views/index.html)" > prototype/app/views/index.html &&
Expand Down Expand Up @@ -96,7 +95,6 @@ runs:
echo "{{ tnaPicture({}) }}" >> prototype/app/views/index.html &&
echo "{{ tnaQuickFilters({}) }}" >> prototype/app/views/index.html &&
echo "{{ tnaRadios({}) }}" >> prototype/app/views/index.html &&
echo "{{ tnaRecordsList({}) }}" >> prototype/app/views/index.html &&
echo "{{ tnaSearchField({}) }}" >> prototype/app/views/index.html &&
echo "{{ tnaSelect({}) }}" >> prototype/app/views/index.html &&
echo "{{ tnaSidebar({}) }}" >> prototype/app/views/index.html &&
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a `tna-large-paragraph--bold` to change the weight and colour `tna-large-paragraph`

### Deprecated

- Removed the records list component

### Removed
### Fixed

Expand Down
1 change: 0 additions & 1 deletion src/nationalarchives/components/_presentation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@use "phase-banner";
@use "picture";
@use "quick-filters";
@use "records-list";
@use "sidebar";
@use "skip-link";
@use "tabs";
Expand Down
1 change: 0 additions & 1 deletion src/nationalarchives/components/records-list/_index.scss

This file was deleted.

42 changes: 0 additions & 42 deletions src/nationalarchives/components/records-list/fixtures.json

This file was deleted.

70 changes: 0 additions & 70 deletions src/nationalarchives/components/records-list/macro-options.json

This file was deleted.

3 changes: 0 additions & 3 deletions src/nationalarchives/components/records-list/macro.njk

This file was deleted.

92 changes: 0 additions & 92 deletions src/nationalarchives/components/records-list/records-list.scss

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions src/nationalarchives/components/records-list/template.njk

This file was deleted.

26 changes: 0 additions & 26 deletions src/nationalarchives/utilities/colour/colour-themes.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Pagination from "../../components/pagination/template.njk";
import PhaseBanner from "../../components/phase-banner/template.njk";
import Picture from "../../components/picture/template.njk";
import Radios from "../../components/radios/template.njk";
import RecordsList from "../../components/records-list/template.njk";
import SearchField from "../../components/search-field/template.njk";
import Select from "../../components/select/template.njk";
import SkipLink from "../../components/skip-link/template.njk";
Expand Down Expand Up @@ -443,31 +442,6 @@ const Template = ({ theme, accent }) => {
body: "Please note this page references hunger strikes and force feeding, which some people may find upsetting.",
},
})}
<h2 class="tna-heading-l">
Featured records
</h2>
${RecordsList({
params: {
items: [
{
imageSrc: "https://picsum.photos/id/237/400/600",
imageWidth: 400,
imageHeight: 600,
collection: "TS 11/45/167",
title: "Court records relating to Robert Wedderburn’s trial",
href: "#",
date: "1819–1820",
},
{
collection: "HO 42/191",
title: "Home office letters",
href: "#",
date: "1819",
},
],
classes: "tna-records-list--demo",
},
})}
<h2 class="tna-heading-l">
Accordion
</h2>
Expand Down
1 change: 0 additions & 1 deletion tasks/test-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ const checkExists = [
...componentFiles("picture", "Picture"),
...componentFiles("quick-filters"),
...componentFiles("radios"),
...componentFiles("records-list"),
...componentFiles("search-field"),
...componentFiles("select"),
...componentFiles("sidebar"),
Expand Down

0 comments on commit 2be0f8c

Please sign in to comment.