aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Settings/Categories/Calculation.svelte
blob: 99e42463e492257c8b2ae294946d4f122df06f2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<script lang="ts">
  import { pruneAllManga } from '$lib/Media/Manga/cache';
  import locale from '$stores/locale';
  import settings from '$stores/settings';
  import SettingCheckboxToggle from '../SettingCheckboxToggle.svelte';
  import SettingHint from '../SettingHint.svelte';
</script>

<SettingCheckboxToggle
  setting="calculatePreferNativeChapterCount"
  text={$locale().settings.calculation.fields.preferNativeChapterCount.title}
  onChange={pruneAllManga}
>
  <SettingHint lineBreak>
    {$locale().settings.calculation.fields.preferNativeChapterCount.hint}
  </SettingHint>
</SettingCheckboxToggle>

<br />

<SettingCheckboxToggle
  setting="calculateChaptersRoundedDown"
  text={$locale().settings.calculation.fields.roundDownChapters.title}
>
  <SettingHint lineBreak>
    {$locale().settings.calculation.fields.roundDownChapters.hint}
  </SettingHint>
</SettingCheckboxToggle>

<br />

<SettingCheckboxToggle
  setting="displayNotStarted"
  text={$locale().settings.calculation.fields.showMediaWithZeroProgress.title}
>
  <SettingHint lineBreak>
    {$locale().settings.calculation.fields.showMediaWithZeroProgress.hint}
  </SettingHint>
</SettingCheckboxToggle>

<br />

<SettingCheckboxToggle
  setting="calculateDisableOutOfDateVolumeWarning"
  text={$locale().settings.calculation.fields.hideOutOfDateVolumeWarning.title}
>
  <SettingHint lineBreak>
    Out-of-date volume warnings display an alert when there is a mismatch between the chapter
    progress and number of volumes you have logged for a given title.
    <br />
    For example, an alert would be shown if you have tracked a manga up to Ch. 50 (Vol. 5), but have less
    than 4 volumes logged.

    <br />

    Disabling this option speeds up refresh times for manga lists.
  </SettingHint>
</SettingCheckboxToggle>

<br />

<SettingCheckboxToggle
  setting="calculateGuessingDisabled"
  text={$locale().settings.calculation.fields.smartChapterCountEstimation.title}
  invert
>
  <SettingHint lineBreak>
    Smart chapter count calculation uses statistical methods to estimate the number of chapters
    available for a given title based on user submitted progress.<br />Disabling this setting will
    disable light novel chapter count reporting and will disable smart chapter count calculation for
    titles which you have higher progress than officially reported.
  </SettingHint>
</SettingCheckboxToggle>

{#if !$settings.calculateGuessingDisabled}
  <br />

  <select bind:value={$settings.calculateGuessMethod} onchange={pruneAllManga}>
    <option value="mode">Mode (fast, moderate to low accuracy)</option>
    <option value="median">Median (moderate speed, high accuracy, recommended)</option>
    <option value="iqr_median">Interquartile Range with Median (slower, high accuracy)</option>
    <option value="iqr_mode">Interquartile Range with Mode (slower, high accuracy)</option>
  </select>
  Smart chapter count calculation method

  <SettingHint lineBreak>
    No chapter count estimation method will be 100% accurate. Since estimated media requires scores
    derived from user submitted progress, high (or low) false-reports skew the data.
  </SettingHint>
{/if}