diff --git a/frontend/src/components/VSourcesTable.vue b/frontend/src/components/VSourcesTable.vue index 4fd59510c2d..719488bf31a 100644 --- a/frontend/src/components/VSourcesTable.vue +++ b/frontend/src/components/VSourcesTable.vue @@ -111,6 +111,11 @@ export default defineComponent({ function compareProviders(prov1: MediaProvider, prov2: MediaProvider) { let field1 = prov1[sorting.field] let field2 = prov2[sorting.field] + if (sorting.field === "display_name") { + field1 = prov1[sorting.field].toLowerCase() + field2 = prov2[sorting.field].toLowerCase() + } + if (sorting.field === "source_url") { field1 = cleanSourceUrlForPresentation(field1 as string) field2 = cleanSourceUrlForPresentation(field2 as string) diff --git a/frontend/test/playwright/e2e/filters.spec.ts b/frontend/test/playwright/e2e/filters.spec.ts index 6e0b8f11fc9..1f221135cd3 100644 --- a/frontend/test/playwright/e2e/filters.spec.ts +++ b/frontend/test/playwright/e2e/filters.spec.ts @@ -40,7 +40,7 @@ const assertCheckboxCount = async ( const FILTER_COUNTS = { [ALL_MEDIA]: 10, [AUDIO]: 31, - [IMAGE]: 69, + [IMAGE]: 71, } breakpoints.describeMobileAndDesktop(() => { diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png index 9fd4c664c89..f4b15c18cc5 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png index d3f27d3aaf5..0a9175892d9 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png index 74b1fc1b2e6..f3795cea922 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png index 8c4ba393eb9..6c7382a816f 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png index 6d3010fa56a..4079bf01d1e 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png index 1bd3de990d3..db43c373859 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png index 0c9e46dc5a7..27ca1ec76b8 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png index 2708c2bdde4..142143cc037 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png index 3dc231d5c99..2266f3785d3 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png index 9ae8e9c1728..fd4a66090fc 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png index 6933b9812b5..d200404c7e3 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png index 1135c4fa006..8de941a11a0 100644 Binary files a/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png and b/frontend/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png differ diff --git a/frontend/test/tapes/response-1.json5 b/frontend/test/tapes/response-1.json5 index dcea32cf4a6..f5b97e35318 100644 --- a/frontend/test/tapes/response-1.json5 +++ b/frontend/test/tapes/response-1.json5 @@ -397,6 +397,20 @@ logo_url: null, media_count: 154, }, + { + "source_name": "inaturalist", + "display_name": "iNaturalist", + "source_url": "https://inaturalist.org", + "logo_url": null, + "media_count": 158267579 + }, + { + "source_name": "nappy", + "display_name": "Nappy", + "source_url": "https://nappy.co", + "logo_url": null, + "media_count": 2211 + }, ], }, -} \ No newline at end of file +}