[Enhancement] Add media count to sources page (#251)

* [WIP] Got query kinda working, now to refactor other queries

* Refactored all query methods to use dynamic snippets

* Refactored tab layout to grab tabs by name

* Removed standalone show buttons from in-app tables

* Removed unneeded comment
This commit is contained in:
Kieran authored and GitHub committed 2024-05-21 08:53:22 -07:00
1 parent 94c0cf9970
commit a2a0f48065
28 files changed
+219 -242

No files matched your search

+2
View File
@@ -405,7 +405,9 @@ defmodule Pinchflat.MediaTest do
describe "list_pending_media_items_for/1" do
test "it returns pending without a filepath for a given source" do
source = source_fixture()
other_source = source_fixture()
media_item = media_item_fixture(%{source_id: source.id, media_filepath: nil})
_other_media_item = media_item_fixture(%{source_id: other_source.id, media_filepath: nil})
assert Media.list_pending_media_items_for(source) == [media_item]
end