feat(web): show recording_date on search rows; flag estimated count as approximate (#61)

This commit is contained in:
2026-06-08 13:45:35 +02:00
parent 1cdfa21259
commit 30da072d96
5 changed files with 9 additions and 5 deletions
+1
View File
@@ -18,6 +18,7 @@ export function SearchResultRow({ hit }: { hit: SearchHitView }) {
<div className="text-sm font-semibold">{hit.object_name}</div>
<div className="mt-0.5 flex items-center gap-2 text-xs text-muted-foreground">
<span>{hit.object_number}</span>
{hit.recording_date && <span>· {hit.recording_date}</span>}
<VisibilityBadge visibility={hit.visibility} />
</div>
{hit.snippet && (
+2 -1
View File
@@ -60,7 +60,8 @@ test("typing searches and renders highlighted rich rows", async () => {
expect(await screen.findByText("Bronze figurine")).toBeInTheDocument();
const mark = await screen.findByText("bronze");
expect(mark.tagName).toBe("MARK");
expect(screen.getByText(/25 results/i)).toBeInTheDocument();
expect(screen.getByText(/~\s*25 results/i)).toBeInTheDocument();
expect(screen.getByText(/1962-04-03/)).toBeInTheDocument();
});
test("Load more appends the next page", async () => {