Skip to content

Commit

Permalink
Add tooltip with location to release mgmt quick select, fix filter on…
Browse files Browse the repository at this point in the history
… tag queries (#1020)

* Fix filter on tag queries

* Add tooltip with location to release mgmt quick select
  • Loading branch information
harshithmohan authored Aug 26, 2024
1 parent 83dc47b commit cf8363e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Collection/ListViewItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ListViewItem = ({ groupExtras, isSeries, isSidebarOpen, item }: Props) =>
const settings = useSettingsQuery().data;
const { showCustomTags, showGroupIndicator, showItemType, showTopTags } = settings.WebUI_Settings.collection.list;

const tagsQuery = useSeriesTagsQuery(item.IDs.ID, { filter: 128, excludeDescriptions: true }, isSeries);
const tagsQuery = useSeriesTagsQuery(item.IDs.ID, { filter: 1, excludeDescriptions: true }, isSeries);

const poster = useMainPoster(item);
const missingEpisodesCount = item.Sizes.Total.Episodes + item.Sizes.Total.Specials - item.Sizes.Local.Episodes
Expand Down
2 changes: 1 addition & 1 deletion src/components/Collection/SeriesTopPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const SeriesTopPanel = React.memo(({ series }: SeriesSidePanelProps) => {
const { WebUI_Settings: { collection: { image: { showRandomPoster } } } } = useSettingsQuery().data;
const [poster, setPoster] = useState<ImageType | null>(null);
const { seriesId } = useParams();
const tagsQuery = useSeriesTagsQuery(toNumber(seriesId!), { excludeDescriptions: true }, !!seriesId);
const tagsQuery = useSeriesTagsQuery(toNumber(seriesId!), { excludeDescriptions: true, filter: 1 }, !!seriesId);
const imagesQuery = useSeriesImagesQuery(toNumber(seriesId!), !!seriesId);
const tags = useMemo(() => tagsQuery?.data ?? [], [tagsQuery.data]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ const QuickSelectModal = ({ onClose, seriesId, show }: Props) => {
map(
fileSummary?.Groups,
(group, index) => (
<div key={`group-${index}`} className="flex items-center justify-between gap-x-3">
<div
key={`group-${index}`}
className="flex items-center justify-between gap-x-3"
data-tooltip-id="tooltip"
data-tooltip-content={group.FileLocation ? `Location: ${group.FileLocation}` : ''}
data-tooltip-place="top"
>
<div className="flex flex-col gap-y-2">
<div className="font-semibold">
{group.GroupName === 'None' ? 'Manual link' : group.GroupName}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/collection/series/SeriesTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ const SeriesTags = () => {
}
});

const { data: tagsQueryData, isLoading, isSuccess } = useSeriesTagsQuery(toNumber(seriesId!), {}, !!seriesId);
const { data: tagsQueryData, isLoading, isSuccess } = useSeriesTagsQuery(
toNumber(seriesId!),
{ filter: 1 },
!!seriesId,
);

const filteredTags = useMemo(
() =>
Expand Down

0 comments on commit cf8363e

Please sign in to comment.