Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions apps/trustlab/src/components/ReportFilters/ReportFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@ const ReportFilters = React.forwardRef(function ReportFilters(
alignItems="center"
justifyContent="space-between"
>
<Box display="flex" flexWrap="wrap" gap={2} flex={1}>
<Box
display="flex"
alignItems="center"
flexWrap="wrap"
gap={2}
flex={1}
>
{selectedYears.map((y) => (
<Chip
key={`year-${y}`}
Expand Down Expand Up @@ -292,7 +298,7 @@ const ReportFilters = React.forwardRef(function ReportFilters(
}}
component={CloseIcon}
/>
{clearFiltersLabel || "Clear Filters"}
{clearFiltersLabel || "Clear Filter(s)"}
</Button>
)}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ exports[`ReportFilters renders unchanged 1`] = `
class="MuiStack-root css-1x34icn-MuiStack-root"
>
<div
class="MuiBox-root css-3772j1"
class="MuiBox-root css-1sl536g"
/>
</div>
</div>
Expand Down
19 changes: 19 additions & 0 deletions apps/trustlab/src/payload/collections/Reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,25 @@ const Reports = {
position: "sidebar",
},
},
image({
overrides: {
name: "pageHeaderImage",
label: "Page Header Image",
description: "Image displayed at the top of the report page",
admin: {
position: "sidebar",
},
},
}),
richText({
name: "pageHeaderDescription",
label: "Page Header Description",
description: "Rich text content displayed below the page header image",
localized: true,
admin: {
position: "sidebar",
},
}),
],
timestamps: true,
};
Expand Down
2 changes: 2 additions & 0 deletions apps/trustlab/src/utils/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export async function getReport(api, slug) {
backgroundColor: "#010101",
textColor: "#FFFFFF",
id: report.id,
description: report.pageHeaderDescription || "",
image: report.pageHeaderImage || null,
},
{
blockType: "page-overview",
Expand Down
Loading