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:
@@ -63,8 +63,13 @@ export const useAuthStore = defineStore('auth', {
|
||||
isTeamSession: (state) => Boolean(state.session?.teamLogin),
|
||||
},
|
||||
actions: {
|
||||
clearSession() {
|
||||
this.session = null
|
||||
writeStoredToken(null)
|
||||
},
|
||||
async hydrate() {
|
||||
if (!readStoredToken()) {
|
||||
this.session = null
|
||||
this.hydrated = true
|
||||
return
|
||||
}
|
||||
@@ -72,9 +77,8 @@ export const useAuthStore = defineStore('auth', {
|
||||
try {
|
||||
this.session = await api.getSession()
|
||||
} catch (error) {
|
||||
this.session = null
|
||||
if (error instanceof ApiRequestError && (error.status === 401 || error.status === 403)) {
|
||||
writeStoredToken(null)
|
||||
this.clearSession()
|
||||
}
|
||||
} finally {
|
||||
this.hydrated = true
|
||||
@@ -162,8 +166,7 @@ export const useAuthStore = defineStore('auth', {
|
||||
try {
|
||||
await api.logout()
|
||||
} finally {
|
||||
this.session = null
|
||||
writeStoredToken(null)
|
||||
this.clearSession()
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
@@ -171,8 +174,7 @@ export const useAuthStore = defineStore('auth', {
|
||||
this.loading = true
|
||||
try {
|
||||
const result = await api.deleteMyData()
|
||||
this.session = null
|
||||
writeStoredToken(null)
|
||||
this.clearSession()
|
||||
return result
|
||||
} finally {
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user