feat(web): show recording_date on search rows; flag estimated count as approximate (#61)
This commit is contained in:
@@ -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 && (
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user