feat(web): useSearch infinite query + useDebouncedValue + MSW search handler
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -63,6 +63,27 @@ export const personAuthorities: AuthorityView[] = [
|
||||
{ id: "a-ada", kind: "person", external_uri: null, labels: [{ lang: "en", label: "Ada Lovelace" }] },
|
||||
];
|
||||
|
||||
export type SearchHitView = components["schemas"]["SearchHitView"];
|
||||
|
||||
export const searchHits: SearchHitView[] = [
|
||||
{
|
||||
id: amphora.id,
|
||||
object_number: "2019.4.12",
|
||||
object_name: "Bronze figurine",
|
||||
brief_description: "A small cast figure.",
|
||||
visibility: "public",
|
||||
snippet: "cast bronze with green patina",
|
||||
},
|
||||
...Array.from({ length: 24 }, (_, i) => ({
|
||||
id: `s-${i + 2}`,
|
||||
object_number: `N-${i + 2}`,
|
||||
object_name: `Object ${i + 2}`,
|
||||
brief_description: null,
|
||||
visibility: "internal",
|
||||
snippet: null,
|
||||
})),
|
||||
];
|
||||
|
||||
export type VocabularyView = components["schemas"]["VocabularyView"];
|
||||
|
||||
export const vocabularies: VocabularyView[] = [
|
||||
|
||||
Reference in New Issue
Block a user