mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 10:51:02 +01:00
style: colored icons for entity type, reorder action bar buttons to actually make sense
This commit is contained in:
@@ -273,6 +273,7 @@
|
|||||||
<!-- Actions Bar -->
|
<!-- Actions Bar -->
|
||||||
<ActionsBar>
|
<ActionsBar>
|
||||||
<SearchAction searchStore={search} placeholder={searchPlaceholder} />
|
<SearchAction searchStore={search} placeholder={searchPlaceholder} />
|
||||||
|
<ActionButton icon={Plus} on:click={() => (showAddModal = true)} />
|
||||||
<ActionButton icon={Sliders} hasDropdown={true} dropdownPosition="right" square={!selectedProfile}>
|
<ActionButton icon={Sliders} hasDropdown={true} dropdownPosition="right" square={!selectedProfile}>
|
||||||
{#if selectedProfile}
|
{#if selectedProfile}
|
||||||
<span class="ml-2 text-sm text-neutral-700 dark:text-neutral-300">{selectedProfile.name}</span>
|
<span class="ml-2 text-sm text-neutral-700 dark:text-neutral-300">{selectedProfile.name}</span>
|
||||||
@@ -309,7 +310,6 @@
|
|||||||
</Dropdown>
|
</Dropdown>
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
<ActionButton icon={Info} on:click={() => (showInfoModal = true)} />
|
<ActionButton icon={Info} on:click={() => (showInfoModal = true)} />
|
||||||
<ActionButton icon={Plus} on:click={() => (showAddModal = true)} />
|
|
||||||
</ActionsBar>
|
</ActionsBar>
|
||||||
|
|
||||||
<!-- Entity Testing Content -->
|
<!-- Entity Testing Content -->
|
||||||
@@ -356,10 +356,27 @@
|
|||||||
<InfoModal bind:open={showInfoModal} header="How Entity Testing Works">
|
<InfoModal bind:open={showInfoModal} header="How Entity Testing Works">
|
||||||
<div class="space-y-4 text-sm text-neutral-600 dark:text-neutral-400">
|
<div class="space-y-4 text-sm text-neutral-600 dark:text-neutral-400">
|
||||||
<div>
|
<div>
|
||||||
<div class="font-medium text-neutral-900 dark:text-neutral-100">Test Quality Profiles</div>
|
<div class="font-medium text-neutral-900 dark:text-neutral-100">Adding Entities</div>
|
||||||
<p class="mt-1">
|
<p class="mt-1">
|
||||||
Entity testing allows you to test your quality profiles against sample media to see how they
|
Add movies or TV series from TMDB to use as test cases. These represent the media you want to simulate release matching for.
|
||||||
would score and match.
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="font-medium text-neutral-900 dark:text-neutral-100">Test Releases</div>
|
||||||
|
<p class="mt-1">
|
||||||
|
For each entity, add test releases with realistic release titles (e.g., "Movie.2024.1080p.BluRay.REMUX-GROUP"). You can also specify size, languages, indexers, and flags.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="font-medium text-neutral-900 dark:text-neutral-100">Quality Profile Scoring</div>
|
||||||
|
<p class="mt-1">
|
||||||
|
Select a quality profile from the dropdown to see how each release would score. The score is calculated by matching custom formats and summing their configured point values.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="font-medium text-neutral-900 dark:text-neutral-100">Custom Format Matching</div>
|
||||||
|
<p class="mt-1">
|
||||||
|
Expand a release row to see parsed metadata and which custom formats matched. Each matched format shows its score contribution, helping you understand why a release scored the way it did.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -93,17 +93,12 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{:else if column.key === 'type'}
|
{:else if column.key === 'type'}
|
||||||
<span
|
<span class="inline-flex items-center gap-1.5 rounded-full bg-neutral-100 px-2 py-0.5 text-xs font-medium text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400">
|
||||||
class="inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium {row.type ===
|
|
||||||
'movie'
|
|
||||||
? 'bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400'
|
|
||||||
: 'bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400'}"
|
|
||||||
>
|
|
||||||
{#if row.type === 'movie'}
|
{#if row.type === 'movie'}
|
||||||
<Film size={12} />
|
<Film size={12} class="text-amber-500" />
|
||||||
Movie
|
Movie
|
||||||
{:else}
|
{:else}
|
||||||
<Tv size={12} />
|
<Tv size={12} class="text-cyan-500" />
|
||||||
Series
|
Series
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user