Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

External sources on no results page (#2077)

Olga Bulatde7e3cba6672
diff --git a/src/components/VErrorSection/VNoResults.vue b/src/components/VErrorSection/VNoResults.vue
index 7c38b5c4a..8bc304aea 100644
--- a/src/components/VErrorSection/VNoResults.vue
+++ b/src/components/VErrorSection/VNoResults.vue
@@ -1,35 +1,56 @@
<template>
<div class="no-results text-center md:text-left">
- <h1 class="break-words text-4xl md:text-6xl">
- {{ $t("no-results.heading", { query: query.q }) }}
+ <h1 class="heading-4 md:heading-2 break-words">
+ {{ $t("no-results.heading", { query: searchTerm }) }}
</h1>
- <h2
- class="mt-10 text-base font-normal md:mt-16 md:text-3xl md:font-semibold"
- >
+ <h2 class="description-regular md:heading-5 mt-4">
{{ $t("no-results.alternatives") }}
</h2>
- <VExternalSourceList class="mt-4 md:mt-6" :type="type" :query="query" />
+
+ <div class="mt-10 flex flex-col flex-wrap gap-4 gap-2 md:flex-row">
+ <VButton
+ v-for="source in externalSources"
+ :key="source.name"
+ as="VLink"
+ :href="source.url"
+ variant="secondary-bordered"
+ class="label-bold justify-between text-dark-charcoal md:justify-start md:gap-x-2"
+ >
+ {{ source.name }}
+ <VIcon :icon-path="externalLinkIcon" :size="4" rtl-flip />
+ </VButton>
+ </div>
</div>
</template>
<script lang="ts">
import { defineComponent, PropType } from "@nuxtjs/composition-api"
-import type { MediaType } from "~/constants/media"
-import type { ApiQueryParams } from "~/utils/search-query-transform"
+import type { ExternalSource } from "~/types/external-source"
+
+import VButton from "~/components/VButton.vue"
-import VExternalSourceList from "~/components/VExternalSearch/VExternalSourceList.vue"
+import VIcon from "~/components/VIcon/VIcon.vue"
+
+import externalLinkIcon from "~/assets/icons/external-link.svg"
export default defineComponent({
name: "VNoResults",
- components: { VExternalSourceList },
+ components: { VIcon, VButton },
props: {
- type: {
- type: String as PropType<MediaType>,
+ externalSources: {
+ type: Array as PropType<ExternalSource[]>,
+ required: true,
},
- query: {
- type: Object as PropType<ApiQueryParams>,
+ searchTerm: {
+ type: String,
+ required: true,
},
},
+ setup() {
+ return {
+ externalLinkIcon,
+ }
+ },
})
</script>
diff --git a/src/components/VExternalSearch/VExternalSearchForm.vue b/src/components/VExternalSearch/VExternalSearchForm.vue
index 3688ddcf6..53903f236 100644
--- a/src/components/VExternalSearch/VExternalSearchForm.vue
+++ b/src/components/VExternalSearch/VExternalSearchForm.vue
@@ -30,13 +30,12 @@
class="text-base font-normal leading-[130%]"
>
<template #type>{{ $t(`external-sources.form.types.${type}`) }}</template>
- <template #query>{{ query.q }}</template>
+ <template #query>{{ searchTerm }}</template>
</i18n>
<VExternalSourceList
class="inline-flex ms-2 md:justify-center"
- :type="type"
- :query="query"
+ :external-sources="externalSources"
/>
</section>
</template>
@@ -49,12 +48,14 @@ import {
ref,
} from "@nuxtjs/composition-api"
-import type { MediaType } from "~/constants/media"
-import type { ApiQueryParams } from "~/utils/search-query-transform"
import { getFocusableElements } from "~/utils/focus-management"
import { defineEvent } from "~/types/emits"
-import VExternalSourceList from "./VExternalSourceList.vue"
+import type { MediaType } from "~/constants/media"
+
+import type { ExternalSource } from "~/types/external-source"
+
+import VExternalSourceList from "~/components/VExternalSearch/VExternalSourceList.vue"
export default defineComponent({
name: "VExternalSearchForm",
@@ -62,10 +63,26 @@ export default defineComponent({
VExternalSourceList,
},
props: {
- query: { type: Object as PropType<ApiQueryParams>, required: true },
- type: { type: String as PropType<MediaType>, required: true },
- isSupported: { type: Boolean, default: false },
- hasNoResults: { type: Boolean, required: true },
+ type: {
+ type: String as PropType<MediaType>,
+ required: true,
+ },
+ searchTerm: {
+ type: String,
+ required: true,
+ },
+ externalSources: {
+ type: Array as PropType<ExternalSource[]>,
+ required: true,
+ },
+ isSupported: {
+ type: Boolean,
+ default: false,
+ },
+ hasNoResults: {
+ type: Boolean,
+ required: true,
+ },
},
emits: {
tab: defineEvent<[KeyboardEvent]>(),
diff --git a/src/components/VExternalSearch/VExternalSourceList.vue b/src/components/VExternalSearch/VExternalSourceList.vue
index d6d438348..7012d2a18 100644
--- a/src/components/VExternalSearch/VExternalSourceList.vue
+++ b/src/components/VExternalSearch/VExternalSourceList.vue
@@ -38,7 +38,7 @@
{{ $t("external-sources.caption", { openverse: "Openverse" }) }}
</p>
<VButton
- v-for="source in sources"
+ v-for="source in externalSources"
:key="source.name"
as="VLink"
variant="plain"
@@ -60,11 +60,9 @@
</template>
<script lang="ts">
-import { computed, defineComponent, PropType } from "@nuxtjs/composition-api"
+import { defineComponent, PropType } from "@nuxtjs/composition-api"
-import { getAdditionalSources } from "~/utils/get-additional-sources"
-import type { ApiQueryParams } from "~/utils/search-query-transform"
-import type { MediaType } from "~/constants/media"
+import type { ExternalSource } from "~/types/external-source"
import VButton from "~/components/VButton.vue"
import VIcon from "~/components/VIcon/VIcon.vue"
@@ -86,24 +84,18 @@ export default defineComponent({
/**
* the media type to use as the criteria for filtering additional sources
*/
- type: { type: String as PropType<MediaType>, required: true },
- /**
- * the search query to pre-populate in the additional sources link
- */
- query: { type: Object as PropType<ApiQueryParams>, required: true },
+ externalSources: {
+ type: Array as PropType<ExternalSource[]>,
+ required: true,
+ },
},
- setup(props) {
- const sources = computed(() =>
- getAdditionalSources(props.type, props.query)
- )
-
+ setup() {
return {
icons: {
externalLink: externalLinkIcon,
caretDown: caretDownIcon,
closeSmall: closeSmallIcon,
},
- sources,
}
},
})
diff --git a/src/components/VSearchGrid.vue b/src/components/VSearchGrid.vue
index 6028c6a00..052954970 100644
--- a/src/components/VSearchGrid.vue
+++ b/src/components/VSearchGrid.vue
@@ -12,36 +12,43 @@
:class="isAllView ? 'mb-10' : 'mb-8'"
>
<VSearchResultsTitle :size="isAllView ? 'large' : 'default'">
- {{ query.q }}
+ {{ searchTerm }}
</VSearchResultsTitle>
</header>
<slot name="media" />
<VExternalSearchForm
- :type="metaSearchFormType"
+ :type="externalSourcesType"
:has-no-results="hasNoResults"
- :query="query"
+ :external-sources="externalSources"
+ :search-term="searchTerm"
:is-supported="supported"
@tab="$emit('tab', $event)"
/>
</section>
<VErrorSection v-else class="w-full py-10">
<template #image>
- <VErrorImage :error-code="NO_RESULT" />
+ <VErrorImage error-code="NO_RESULT" />
</template>
- <VNoResults :type="metaSearchFormType" :query="query" />
+ <VNoResults :external-sources="externalSources" :search-term="searchTerm" />
</VErrorSection>
</template>
<script lang="ts">
import { computed, defineComponent, PropType } from "@nuxtjs/composition-api"
-import { ALL_MEDIA, IMAGE, SearchType, mediaTypes } from "~/constants/media"
+import {
+ ALL_MEDIA,
+ IMAGE,
+ SearchType,
+ isSupportedMediaType,
+} from "~/constants/media"
import { NO_RESULT } from "~/constants/errors"
import { defineEvent } from "~/types/emits"
-import type { ApiQueryParams } from "~/utils/search-query-transform"
import type { FetchState } from "~/types/fetch-state"
+import type { ApiQueryParams } from "~/utils/search-query-transform"
+import { getAdditionalSources } from "~/utils/get-additional-sources"
import VExternalSearchForm from "~/components/VExternalSearch/VExternalSearchForm.vue"
import VErrorSection from "~/components/VErrorSection/VErrorSection.vue"
@@ -88,29 +95,39 @@ export default defineComponent({
// noResult is hard-coded for search types that are not currently
// supported by Openverse built-in search
return props.supported
- ? props.query.q !== "" && props.resultsCount === 0
+ ? Boolean(
+ props.query.q !== "" &&
+ props.fetchState.hasStarted &&
+ props.resultsCount === 0
+ )
: false
})
/**
- * Metasearch form shows the external sources for current search type, or for images if the search type is 'All Content'.
+ * External sources search form shows the external sources for current search type, or for images if the search type is 'All Content'.
*/
- const metaSearchFormType = computed(() => {
- if (mediaTypes.includes(props.searchType)) {
+ const externalSourcesType = computed(() => {
+ if (isSupportedMediaType(props.searchType)) {
return props.searchType
}
return IMAGE
})
- const isAllView = computed(() => {
- return props.searchType === ALL_MEDIA
- })
+ const isAllView = computed(() => props.searchType === ALL_MEDIA)
+
+ const externalSources = computed(() =>
+ getAdditionalSources(externalSourcesType.value, props.query)
+ )
+
+ const searchTerm = computed(() => props.query.q || "")
return {
hasNoResults,
- metaSearchFormType,
+ externalSourcesType,
isAllView,
NO_RESULT,
+ externalSources,
+ searchTerm,
}
},
})
diff --git a/src/components/VSearchResultsTitle.vue b/src/components/VSearchResultsTitle.vue
index 162bab6f0..20180ed89 100644
--- a/src/components/VSearchResultsTitle.vue
+++ b/src/components/VSearchResultsTitle.vue
@@ -7,20 +7,16 @@
</h1>
</template>
-<script>
-import { defineComponent } from "@nuxtjs/composition-api"
+<script lang="ts">
+import { defineComponent, PropType } from "@nuxtjs/composition-api"
-const sizes = {
- DEFAULT: "default",
- LARGE: "large",
-}
export default defineComponent({
name: "VSearchResultsTitle",
props: {
size: {
required: false,
- default: sizes.DEFAULT,
- validator: (value) => Object.values(sizes).includes(value),
+ default: "default",
+ type: String as PropType<"default" | "large">,
},
},
})
diff --git a/src/constants/media.ts b/src/constants/media.ts
index a19ee399e..da2d9f711 100644
--- a/src/constants/media.ts
+++ b/src/constants/media.ts
@@ -48,6 +48,11 @@ export function isAdditionalSearchType(
return (additionalSearchTypes as readonly string[]).includes(searchType)
}
+export function isSupportedMediaType(
+ searchType: string
+): searchType is SupportedMediaType {
+ return supportedMediaTypes.includes(searchType as SupportedMediaType)
+}
/* Media support */
export const SUPPORTED = "supported" // Native search
diff --git a/src/types/external-source.ts b/src/types/external-source.ts
new file mode 100644
index 000000000..0befacce1
--- /dev/null
+++ b/src/types/external-source.ts
@@ -0,0 +1,4 @@
+export interface ExternalSource {
+ name: string
+ url: string
+}
diff --git a/test/playwright/utils/navigation.ts b/test/playwright/utils/navigation.ts
index 6aea781df..f4ba5d9a9 100644
--- a/test/playwright/utils/navigation.ts
+++ b/test/playwright/utils/navigation.ts
@@ -8,6 +8,7 @@ import {
IMAGE,
MediaType,
MODEL_3D,
+ searchPath,
SupportedSearchType,
VIDEO,
} from "~/constants/media"
@@ -351,7 +352,7 @@ export const goToSearchTerm = async (
const headerMode = options.headerMode ?? NEW_HEADER
if (mode === "SSR") {
- const path = `search/${searchTypePath(searchType)}?q=${term}${query}`
+ const path = `${searchPath(searchType)}?q=${term}${query}`
await page.goto(pathWithDir(path, dir))
await dismissTranslationBanner(page)
} else {
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts b/test/playwright/visual-regression/pages/no-results.spec.ts
new file mode 100644
index 000000000..c8dfa8bab
--- /dev/null
+++ b/test/playwright/visual-regression/pages/no-results.spec.ts
@@ -0,0 +1,35 @@
+import { test } from "@playwright/test"
+
+import {
+ enableNewHeader,
+ goToSearchTerm,
+ languageDirections,
+ setCookies,
+} from "~~/test/playwright/utils/navigation"
+import breakpoints from "~~/test/playwright/utils/breakpoints"
+
+import { supportedSearchTypes } from "~/constants/media"
+
+test.describe.configure({ mode: "parallel" })
+
+for (const searchType of supportedSearchTypes) {
+ for (const dir of languageDirections) {
+ breakpoints.describeEvery(({ breakpoint, expectSnapshot }) => {
+ test(`No results ${searchType} ${dir} page snapshots`, async ({
+ page,
+ }) => {
+ await enableNewHeader(page)
+ await setCookies(page.context(), {
+ uiBreakpoint: breakpoint as string,
+ uiIsFilterDismissed: true,
+ uiDismissedBanners: ["translation-ar"],
+ })
+ await goToSearchTerm(page, "querywithnoresults", { dir, searchType })
+
+ await expectSnapshot(`no-results-${searchType}-${dir}`, page, {
+ fullPage: true,
+ })
+ })
+ })
+ }
+}
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-2xl-linux.png
new file mode 100644
index 000000000..1ddcad7ce
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-2xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-lg-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-lg-linux.png
new file mode 100644
index 000000000..6dd3795ce
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-lg-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-md-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-md-linux.png
new file mode 100644
index 000000000..ca88bb95c
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-md-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-sm-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-sm-linux.png
new file mode 100644
index 000000000..1dd683555
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-sm-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-xl-linux.png
new file mode 100644
index 000000000..032567ed1
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-xs-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-xs-linux.png
new file mode 100644
index 000000000..db395fc55
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-ltr-xs-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-2xl-linux.png
new file mode 100644
index 000000000..9f4e82f34
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-2xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-lg-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-lg-linux.png
new file mode 100644
index 000000000..2c275091b
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-lg-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-md-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-md-linux.png
new file mode 100644
index 000000000..0484598af
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-md-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-sm-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-sm-linux.png
new file mode 100644
index 000000000..64df4e519
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-sm-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-xl-linux.png
new file mode 100644
index 000000000..fd3faf16c
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-xs-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-xs-linux.png
new file mode 100644
index 000000000..6d86df77a
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-all-rtl-xs-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-2xl-linux.png
new file mode 100644
index 000000000..ecc5b5dc1
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-2xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-lg-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-lg-linux.png
new file mode 100644
index 000000000..e3f54bfc6
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-lg-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-md-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-md-linux.png
new file mode 100644
index 000000000..ed81634eb
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-md-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-sm-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-sm-linux.png
new file mode 100644
index 000000000..960afede4
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-sm-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-xl-linux.png
new file mode 100644
index 000000000..dc387975a
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-xs-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-xs-linux.png
new file mode 100644
index 000000000..9c0b8b366
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-ltr-xs-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-2xl-linux.png
new file mode 100644
index 000000000..068b1c22d
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-2xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-lg-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-lg-linux.png
new file mode 100644
index 000000000..ec550799c
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-lg-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-md-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-md-linux.png
new file mode 100644
index 000000000..c3a9b2ab1
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-md-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-sm-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-sm-linux.png
new file mode 100644
index 000000000..207da731b
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-sm-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-xl-linux.png
new file mode 100644
index 000000000..06c6ddc05
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-xs-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-xs-linux.png
new file mode 100644
index 000000000..d3833f017
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-audio-rtl-xs-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-2xl-linux.png
new file mode 100644
index 000000000..419650735
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-2xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-lg-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-lg-linux.png
new file mode 100644
index 000000000..a79a874d0
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-lg-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-md-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-md-linux.png
new file mode 100644
index 000000000..ca88bb95c
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-md-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-sm-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-sm-linux.png
new file mode 100644
index 000000000..1dd683555
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-sm-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-xl-linux.png
new file mode 100644
index 000000000..0eebfb650
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-xs-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-xs-linux.png
new file mode 100644
index 000000000..db395fc55
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-ltr-xs-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-2xl-linux.png
new file mode 100644
index 000000000..228a67652
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-2xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-lg-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-lg-linux.png
new file mode 100644
index 000000000..5cc2ea73f
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-lg-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-md-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-md-linux.png
new file mode 100644
index 000000000..0484598af
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-md-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-sm-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-sm-linux.png
new file mode 100644
index 000000000..64df4e519
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-sm-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-xl-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-xl-linux.png
new file mode 100644
index 000000000..f18ee798a
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-xl-linux.png differ
diff --git a/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-xs-linux.png b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-xs-linux.png
new file mode 100644
index 000000000..6d86df77a
Binary files /dev/null and b/test/playwright/visual-regression/pages/no-results.spec.ts-snapshots/no-results-image-rtl-xs-linux.png differ
diff --git a/tsconfig.json b/tsconfig.json
index 1a6f69fae..207ae9fa7 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -49,6 +49,8 @@
"src/components/TableSortIcon.vue",
"src/components/VCopyButton.vue",
"src/components/VSketchFabViewer.vue",
+ "src/components/VSearchGrid.vue",
+
"src/components/VAudioThumbnail/**.vue",
"src/components/VAudioTrack/**.vue",
"src/components/VCheckbox/**.vue",