Skip to content

Commit

Permalink
Update VSourcesTable.vue (#3026)
Browse files Browse the repository at this point in the history
Co-authored-by: sarayourfriend <[email protected]>
Co-authored-by: Olga Bulat <[email protected]>
Co-authored-by: Krystle Salazar <[email protected]>
  • Loading branch information
4 people authored Sep 27, 2023
1 parent 194d2cb commit c729209
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions frontend/src/components/VSourcesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/playwright/e2e/filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const assertCheckboxCount = async (
const FILTER_COUNTS = {
[ALL_MEDIA]: 10,
[AUDIO]: 31,
[IMAGE]: 69,
[IMAGE]: 71,
}

breakpoints.describeMobileAndDesktop(() => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion frontend/test/tapes/response-1.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
],
},
}
}

0 comments on commit c729209

Please sign in to comment.