-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Evan Strat <[email protected]>
- Loading branch information
Showing
74 changed files
with
3,728 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Auto Rename association issues | ||
description: Inaccurate or unexpected associations made by the Auto Rename feature | ||
labels: ["area / auto rename", "type / bug", "status / grooming"] | ||
body: | ||
- type: dropdown | ||
attributes: | ||
label: Association problem type | ||
options: | ||
- Select a value... | ||
- Strong association to the wrong match | ||
- Association status unexpectedly weak | ||
- Association was expected but not made | ||
- Something else (describe in Additional Information) | ||
- type: input | ||
attributes: | ||
label: Video file path | ||
description: Relative path of the video file (within the videos directory) that was incorrectly associated. If multiple related instances, add more details in the Additional Information section below | ||
validations: | ||
required: false | ||
- type: input | ||
attributes: | ||
label: Expected match key | ||
description: The full match key (e.g., 2024gadal_qm1) of the match that should have been associated with the video file | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Actual associated match key | ||
description: The full match key (e.g., 2024gadal_qm1) of the match that Auto Rename associated with the video file. Enter N/A if no association was made, but you were expecting one. | ||
validations: | ||
required: false | ||
- type: dropdown | ||
attributes: | ||
label: Association status | ||
description: The full match key (e.g., 2024gadal_qm1) of the match that Auto Rename associated with the video file. Enter N/A if no association was made, but you were expecting one. | ||
options: | ||
- Select a value... | ||
- Unmatched | ||
- Strong | ||
- Weak | ||
- Failed | ||
- Ignored | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
description: For instance, a screenshot of the association review dialog, errors you saw, etc. | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Match Uploader version | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Are you running Match Uploader using the official Docker Compose setup? | ||
options: | ||
- Select a value... | ||
- "Yes" | ||
- "No" | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Relevant error or log output | ||
description: If there are logs or errors related to this problem, include them here. Make sure to note which component the logs came from. This will be automatically formatted into code, so no need for backticks. | ||
render: shell |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<VAlert v-if="!settingsStore.isFirstLoad && settingsStore.settings?.autoRenameEnabled" | ||
color="success" | ||
variant="tonal" | ||
density="comfortable" | ||
:rounded="props.rounded ?? 0" | ||
icon="mdi-auto-mode" | ||
> | ||
<template v-slot:text> | ||
<strong>Auto Rename is enabled.</strong> It triggers every 5 minutes and continues running until you disable it, | ||
even if you close this page. | ||
</template> | ||
</VAlert> | ||
</template> | ||
<script lang="ts" setup> | ||
import {useSettingsStore} from "@/stores/settings"; | ||
const settingsStore = useSettingsStore(); | ||
settingsStore.getSettings(); | ||
interface IProps { | ||
rounded?: number; | ||
} | ||
const props = defineProps<IProps>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<VAlert v-if="liveModeStore.isActive" | ||
color="purple" | ||
variant="tonal" | ||
density="comfortable" | ||
:rounded="props.rounded ?? 0" | ||
icon="mdi-auto-fix" | ||
> | ||
<template v-slot:text> | ||
<strong>Live Mode is activated.</strong> Keep this tab open—Live Mode runs in your browser. | ||
</template> | ||
</VAlert> | ||
</template> | ||
<script lang="ts" setup> | ||
import { useLiveModeStore } from "@/stores/liveMode"; | ||
const liveModeStore = useLiveModeStore(); | ||
interface IProps { | ||
rounded?: number; | ||
} | ||
const props = defineProps<IProps>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<template> | ||
<VRow> | ||
<VCol> | ||
<h1>Auto rename <VChip color="purple">Beta</VChip></h1> | ||
<VAlert color="purple" | ||
variant="tonal" | ||
class="mb-4" | ||
density="compact" | ||
icon="mdi-bug-outline" | ||
> | ||
Report bugs and send feedback | ||
<a target="_blank" href="https://github.com/gafirst/match-uploader/issues/new/choose">on GitHub</a>. | ||
</VAlert> | ||
|
||
<p class="mb-1">Enable auto rename</p> | ||
<AutosavingBtnSelectGroup :choices="['On', 'Off']" | ||
class="mb-2" | ||
:default-value="settingsStore.settings?.autoRenameEnabled ? 'On' : 'Off'" | ||
:loading="savingAutoRenameEnabled" | ||
@on-choice-selected="saveAutoRenameEnabled" | ||
/> | ||
|
||
<VAlert v-if="autoRenameStore.confirmWeakAssociationError" | ||
class="mb-2" | ||
variant="tonal" | ||
color="error" | ||
> | ||
Confirm weak association failed: {{ autoRenameStore.confirmWeakAssociationError }} | ||
</VAlert> | ||
<VAlert v-if="autoRenameStore.undoRenameError" | ||
class="mb-2" | ||
variant="tonal" | ||
color="error" | ||
> | ||
Undo rename failed: {{ autoRenameStore.undoRenameError }} | ||
</VAlert> | ||
<VAlert v-if="autoRenameStore.ignoreAssociationError" | ||
class="mb-2" | ||
variant="tonal" | ||
color="error" | ||
> | ||
Ignore association failed: {{ autoRenameStore.ignoreAssociationError }} | ||
</VAlert> | ||
|
||
<h2>Review required</h2> | ||
<VAlert v-if="autoRenameStore.associationsError" | ||
class="mt-2" | ||
variant="tonal" | ||
color="error" | ||
> | ||
{{ autoRenameStore.associationsError }} | ||
</VAlert> | ||
<AutoRenameAssociations :included-association-statuses="[ | ||
AutoRenameAssociationStatus.WEAK, | ||
AutoRenameAssociationStatus.FAILED, | ||
]" | ||
/> | ||
<h2>Recently associated</h2> | ||
<AutoRenameAssociations :included-association-statuses="[ | ||
AutoRenameAssociationStatus.STRONG, | ||
]" | ||
/> | ||
<h2>Unmatched</h2> | ||
<AutoRenameAssociations :included-association-statuses="[ | ||
AutoRenameAssociationStatus.UNMATCHED, | ||
]" | ||
/> | ||
<h2>Ignored</h2> | ||
<AutoRenameAssociations :included-association-statuses="[ | ||
AutoRenameAssociationStatus.IGNORED, | ||
]" | ||
/> | ||
</VCol> | ||
</VRow> | ||
</template> | ||
<script lang="ts" setup> | ||
import { useAutoRenameStore } from "@/stores/autoRename"; | ||
import { AutoRenameAssociationStatus } from "@/types/autoRename/AutoRenameAssociationStatus"; | ||
import AutoRenameAssociations from "@/components/autoRename/AutoRenameAssociations.vue"; | ||
import { useSettingsStore } from "@/stores/settings"; | ||
import AutosavingBtnSelectGroup from "@/components/form/AutosavingBtnSelectGroup.vue"; | ||
import { ref } from "vue"; | ||
const autoRenameStore = useAutoRenameStore(); | ||
autoRenameStore.getAssociations(); | ||
const settingsStore = useSettingsStore(); | ||
// TODO: Move into its own component | ||
const savingAutoRenameEnabled = ref(false); | ||
async function saveAutoRenameEnabled(value: string): Promise<void> { | ||
savingAutoRenameEnabled.value = true; | ||
await settingsStore.saveSetting("autoRenameEnabled", value.toLowerCase() === "on", "setting"); | ||
await settingsStore.getSettings(false); | ||
savingAutoRenameEnabled.value = false; | ||
} | ||
</script> | ||
<style scoped> | ||
/* https://css-tricks.com/fluid-width-video/ */ | ||
video { | ||
/* override other styles to make responsive */ | ||
width: 100% !important; | ||
height: auto !important; | ||
} | ||
.association-card { | ||
max-width: 30%; | ||
min-height: 500px; | ||
} | ||
</style> |
Oops, something went wrong.