Add viewer-range categories, nomination tracking, dynamic showact form, session timeout, share URLs, and workflow-per-season

Features:
- Category viewer ranges + subcategory templates (admin group modal, tree workspace)
- Nomination enrichment via TwitchTracker API (NominationEnrichmentService,
  TwitchTrackerViewerStatsProvider) with admin tracking rules editor
- Nomination group tracker: CategoryGroupName as primary identifier,
  CategoryId stays as nullable legacy field; StreamerIdentity table
- Dynamic showact application form builder (AdminShowactFormBuilder,
  ShowactApplicationSchedule)
- Session idle timeout setting (AdminSessionTimeoutCard)
- Share URLs for X and Discord (SiteSettings, public extras)
- Workflow rules now stored per season (falls back to global SiteSettings)
- New admin routes: settings/access, settings/workflows, tracking-rules
- New admin review workspace with subcategory tabs
- AdminCategoriesView rebuilt with group/subcategory modals

Migrations (all additive):
- AddShareUrls, AddShowactDynamicForm, AddCategoryViewerRanges,
  AddSessionIdleTimeoutSettings, AddSeasonSubcategoryTemplates,
  AddNominationGroupTrackerIdentity, AddShowactApplicationSchedule,
  AddSeasonWorkflowRulesJson

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
AzuTear
2026-06-28 23:32:21 +02:00
parent 4b2c5fa15d
commit b53c7fb736
178 changed files with 28933 additions and 1908 deletions
+26 -24
View File
@@ -35,29 +35,29 @@
</button>
<Teleport to="body">
<div v-if="open" :id="listboxId" class="native-select__menu" :style="menuStyle" role="listbox">
<template v-for="(option, index) in options" :key="optionKey(option.value)">
<p v-if="option.group && option.group !== options[index - 1]?.group" class="native-select__group">
{{ option.group }}
</p>
<button
type="button"
class="native-select__option"
:class="{
'native-select__option--active': index === activeIndex,
'native-select__option--selected': isSelected(option),
}"
:disabled="option.disabled"
role="option"
:aria-selected="isSelected(option)"
@mouseenter="setActiveIndex(index)"
@click="selectOption(option)"
>
<span class="native-select__option-label">{{ option.label }}</span>
<Check v-if="isSelected(option)" class="native-select__check" :size="18" :stroke-width="3" />
</button>
</template>
</div>
<div v-if="open" ref="menuEl" :id="listboxId" class="native-select__menu" :style="menuStyle" role="listbox">
<template v-for="(option, index) in options" :key="optionKey(option.value)">
<p v-if="option.group && option.group !== options[index - 1]?.group" class="native-select__group">
{{ option.group }}
</p>
<button
type="button"
class="native-select__option"
:class="{
'native-select__option--active': index === activeIndex,
'native-select__option--selected': isSelected(option),
}"
:disabled="option.disabled"
role="option"
:aria-selected="isSelected(option)"
@mouseenter="setActiveIndex(index)"
@click="selectOption(option)"
>
<span class="native-select__option-label">{{ option.label }}</span>
<Check v-if="isSelected(option)" class="native-select__check" :size="18" :stroke-width="3" />
</button>
</template>
</div>
</Teleport>
</div>
</template>
@@ -92,6 +92,7 @@ const emit = defineEmits<{
const rootEl = ref<HTMLElement | null>(null)
const triggerEl = ref<HTMLButtonElement | null>(null)
const menuEl = ref<HTMLElement | null>(null)
const open = ref(false)
const activeIndex = ref(0)
const listboxId = `native-select-${Math.random().toString(36).slice(2)}`
@@ -240,7 +241,8 @@ function onButtonKeydown(event: KeyboardEvent) {
}
function onDocumentPointerDown(event: PointerEvent) {
if (!rootEl.value?.contains(event.target as Node)) {
const target = event.target as Node
if (!rootEl.value?.contains(target) && !menuEl.value?.contains(target)) {
closeDropdown()
}
}